@jswork/i18n-language-detect
Advanced tools
Comparing version 1.0.23 to 1.0.24
@@ -21,33 +21,6 @@ "use strict"; | ||
} | ||
function _define_property(obj, key, value) { | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
return obj; | ||
} | ||
function _object_spread(target) { | ||
for(var i = 1; i < arguments.length; i++){ | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
var ownKeys = Object.keys(source); | ||
if (typeof Object.getOwnPropertySymbols === "function") { | ||
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { | ||
return Object.getOwnPropertyDescriptor(source, sym).enumerable; | ||
})); | ||
} | ||
ownKeys.forEach(function(key) { | ||
_define_property(target, key, source[key]); | ||
}); | ||
} | ||
return target; | ||
} | ||
var i18nHelper = function() { | ||
var getLanguage = // ../i18n-helper/dist/index.mjs | ||
function getLanguage(inRouterType, inKeys) { | ||
if (typeof inRouterType !== "string") throw new Error("inRouterType must be a string"); | ||
var isHashType = inRouterType === "hash"; | ||
@@ -178,3 +151,3 @@ var keys = inKeys || [ | ||
_class_call_check(this, I18nLanguageDetect); | ||
this.options = _object_spread({}, defaults); | ||
this.options = Object.assign({}, defaults); | ||
} | ||
@@ -196,3 +169,3 @@ _create_class(I18nLanguageDetect, [ | ||
this.services = services; | ||
this.options = _object_spread({}, defaults, opts); | ||
this.options = Object.assign({}, defaults, opts); | ||
} | ||
@@ -199,0 +172,0 @@ }, |
@@ -21,30 +21,2 @@ "use strict"; | ||
} | ||
function _define_property(obj, key, value) { | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
return obj; | ||
} | ||
function _object_spread(target) { | ||
for(var i = 1; i < arguments.length; i++){ | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
var ownKeys = Object.keys(source); | ||
if (typeof Object.getOwnPropertySymbols === "function") { | ||
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { | ||
return Object.getOwnPropertyDescriptor(source, sym).enumerable; | ||
})); | ||
} | ||
ownKeys.forEach(function(key) { | ||
_define_property(target, key, source[key]); | ||
}); | ||
} | ||
return target; | ||
} | ||
var __defProp = Object.defineProperty; | ||
@@ -138,3 +110,3 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
_class_call_check(this, I18nLanguageDetect); | ||
this.options = _object_spread({}, defaults); | ||
this.options = Object.assign({}, defaults); | ||
} | ||
@@ -156,3 +128,3 @@ _create_class(I18nLanguageDetect, [ | ||
this.services = services; | ||
this.options = _object_spread({}, defaults, opts); | ||
this.options = Object.assign({}, defaults, opts); | ||
} | ||
@@ -159,0 +131,0 @@ }, |
{ | ||
"name": "@jswork/i18n-language-detect", | ||
"version": "1.0.23", | ||
"version": "1.0.24", | ||
"description": "Language detect plugin.", | ||
@@ -29,5 +29,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@jswork/i18n-helper": "^1.0.6" | ||
"@jswork/i18n-helper": "^1.0.7" | ||
}, | ||
"gitHead": "8423a40f57ed7ca258e8f3ac0a635198b7ec8404" | ||
"gitHead": "f021bea5b8cef4ae31086c5d23fe5ed35ad9651e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30257
11
417
Updated@jswork/i18n-helper@^1.0.7