@nuskin/ns-util
Advanced tools
Comparing version 4.2.2-cx24-3438.2 to 4.2.2
{ | ||
"name": "@nuskin/ns-util", | ||
"version": "4.2.2-cx24-3438.2", | ||
"version": "4.2.2", | ||
"baseURL": "/", | ||
@@ -26,4 +26,3 @@ "main": "src/util.js", | ||
"dependencies": { | ||
"@nuskin/configuration-sdk": "2.2.2", | ||
"@nuskin/events": "1.0.0", | ||
"@nuskin/events": "1.0.1", | ||
"@nuskin/ns-common-lib": "1.2.3", | ||
@@ -50,2 +49,3 @@ "@nuskin/nuskinjquery": "2.3.1", | ||
"devDependencies": { | ||
"@nuskin/configuration-sdk": "2.2.0", | ||
"@nuskin/ns-jsanalyzer": "1.0.1", | ||
@@ -87,5 +87,4 @@ "axios-mock-adapter": "1.18.2", | ||
"peerDependencies": { | ||
"@nuskin/configuration-sdk": "2.x", | ||
"@nuskin/events": "1.x" | ||
"@nuskin/configuration-sdk": "2.x" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import {getCachedConfigField} from '@nuskin/configuration-sdk'; | ||
import {getConfiguration} from '@nuskin/configuration-sdk'; | ||
import storage from "./storage.js"; | ||
@@ -42,4 +42,4 @@ | ||
if (!source) { | ||
const userDisplayNameSrc = getCachedConfigField('userDisplayNameSrc'); | ||
source = userDisplayNameSrc || ''; | ||
const {Storefront: storefrontCfg} = await getConfiguration(['Storefront']); | ||
source = storefrontCfg.userDisplayNameSrc || ''; | ||
} | ||
@@ -46,0 +46,0 @@ |
@@ -5,3 +5,3 @@ ("use strict"); | ||
import events from "./event.js"; | ||
import { getCachedConfigField } from "@nuskin/configuration-sdk"; | ||
import { getConfiguration } from "@nuskin/configuration-sdk"; | ||
import RunConfigService from "./runConfigService.js"; | ||
@@ -173,3 +173,4 @@ | ||
async function getServerStrings(locale) { | ||
let url = (getCachedConfigField('commonStringsUrl') || '').replace( | ||
const {Url: urlCfg} = await getConfiguration(['Url']); | ||
let url = (urlCfg.commonStringsUrl || '').replace( | ||
"{locale}", | ||
@@ -176,0 +177,0 @@ locale |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
365936
10
9073
0
35
+ Added@nuskin/configuration-sdk@2.3.3(transitive)
+ Added@nuskin/events@1.0.1(transitive)
+ Addedaxios@1.6.5(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
- Removed@nuskin/configuration-sdk@2.2.2
- Removed@nuskin/configuration-sdk@2.2.2(transitive)
- Removed@nuskin/events@1.0.0(transitive)
- Removedaxios@0.27.2(transitive)
- Removedaxios-cache-adapter@2.7.3(transitive)
- Removedcache-control-esm@1.0.0(transitive)
- Removedcharenc@0.0.2(transitive)
- Removedcrypt@0.0.2(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedmd5@2.3.0(transitive)
Updated@nuskin/events@1.0.1