@nuskin/ns-util
Advanced tools
Comparing version 4.3.1 to 4.3.2-cx15-7289.1
{ | ||
"name": "@nuskin/ns-util", | ||
"version": "4.3.1", | ||
"version": "4.3.2-cx15-7289.1", | ||
"baseURL": "/", | ||
@@ -5,0 +5,0 @@ "main": "src/util.js", |
@@ -109,7 +109,10 @@ import nuskin from './namespace.js'; // import global namespace we can attach to | ||
let runConfig = RunConfigService.getRunConfig(); | ||
const [language, country] = UrlService.getLocaleFromUrl(); | ||
// use locale on URL, else use en_US | ||
config.language = language || 'en'; | ||
config.country = country || 'US'; | ||
if (!config.language || !config.country) { | ||
const [language, country] = UrlService.getLocaleFromUrl(); | ||
// use locale on URL, else use en_US | ||
config.language = language || 'en'; | ||
config.country = country || 'US'; | ||
} | ||
config.assessmentApp = config.assessmentApp || false; | ||
@@ -116,0 +119,0 @@ config.id = Math.floor(Math.random() * 1000000000000); |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
367573
9108
1