Socket
Socket
Sign inDemoInstall

@nuskin/ns-util

Package Overview
Dependencies
Maintainers
5
Versions
1730
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuskin/ns-util - npm Package Compare versions

Comparing version 4.2.5 to 4.2.6

2

package.json
{
"name": "@nuskin/ns-util",
"version": "4.2.5",
"version": "4.2.6",
"baseURL": "/",

@@ -5,0 +5,0 @@ "main": "src/util.js",

@@ -109,10 +109,7 @@ import nuskin from './namespace.js'; // import global namespace we can attach to

let runConfig = RunConfigService.getRunConfig();
if (!config.language || !config.country) {
const [language, country] = UrlService.getLocaleFromUrl();
const [language, country] = UrlService.getLocaleFromUrl();
// use locale on URL, else use en_US
config.language = language || 'en';
config.country = country || 'US';
// use locale on URL, else use locale in existing runConfig, else use en_US
config.language = language || runConfig.language || 'en';
config.country = country || runConfig.country || 'US';
}
config.assessmentApp = config.assessmentApp || false;

@@ -119,0 +116,0 @@ config.id = Math.floor(Math.random() * 1000000000000);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc