@jswork/i18n-language-detect
Advanced tools
Comparing version 1.0.26 to 1.0.27
@@ -21,2 +21,30 @@ "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; | ||
@@ -110,3 +138,3 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
_class_call_check(this, I18nLanguageDetect); | ||
this.options = Object.assign({}, defaults); | ||
this.options = _object_spread({}, defaults); | ||
} | ||
@@ -128,3 +156,3 @@ _create_class(I18nLanguageDetect, [ | ||
this.services = services; | ||
this.options = Object.assign({}, defaults, opts); | ||
this.options = _object_spread({}, defaults, opts); | ||
} | ||
@@ -131,0 +159,0 @@ }, |
{ | ||
"name": "@jswork/i18n-language-detect", | ||
"version": "1.0.26", | ||
"version": "1.0.27", | ||
"description": "Language detect plugin.", | ||
@@ -31,3 +31,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "1d5679b986b7d5d2beff15e494365f7d7897cb85" | ||
"gitHead": "51ccbe9bfd2767f4657b9e22b40114d4e164de18" | ||
} |
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
18609
253