update node modules

This commit is contained in:
s2
2020-07-20 16:20:39 +02:00
parent dcb748f037
commit f9fb05e4db
906 changed files with 124011 additions and 93468 deletions

View File

@@ -135,6 +135,36 @@ var localStorage = {
}
};
var hasSessionStorageSupport;
try {
hasSessionStorageSupport = window !== 'undefined' && window.sessionStorage !== null;
var testKey$1 = 'i18next.translate.boo';
window.sessionStorage.setItem(testKey$1, 'foo');
window.sessionStorage.removeItem(testKey$1);
} catch (e) {
hasSessionStorageSupport = false;
}
var sessionStorage = {
name: 'sessionStorage',
lookup: function lookup(options) {
var found;
if (options.lookupsessionStorage && hasSessionStorageSupport) {
var lng = window.sessionStorage.getItem(options.lookupsessionStorage);
if (lng) found = lng;
}
return found;
},
cacheUserLanguage: function cacheUserLanguage(lng, options) {
if (options.lookupsessionStorage && hasSessionStorageSupport) {
window.sessionStorage.setItem(options.lookupsessionStorage, lng);
}
}
};
var navigator$1 = {
name: 'navigator',
lookup: function lookup(options) {
@@ -223,7 +253,7 @@ var subdomain = {
function getDefaults() {
return {
order: ['querystring', 'cookie', 'localStorage', 'navigator', 'htmlTag'],
order: ['querystring', 'cookie', 'localStorage', 'sessionStorage', 'navigator', 'htmlTag'],
lookupQuerystring: 'lng',
lookupCookie: 'i18next',
lookupLocalStorage: 'i18nextLng',
@@ -265,6 +295,7 @@ function () {
this.addDetector(cookie$1);
this.addDetector(querystring);
this.addDetector(localStorage);
this.addDetector(sessionStorage);
this.addDetector(navigator$1);
this.addDetector(htmlTag);
this.addDetector(path);