@nuskin/ns-util
Advanced tools
Comparing version 4.2.4-cx24-3503.1 to 4.2.4
{ | ||
"name": "@nuskin/ns-util", | ||
"version": "4.2.4-cx24-3503.1", | ||
"version": "4.2.4", | ||
"baseURL": "/", | ||
@@ -5,0 +5,0 @@ "main": "src/util.js", |
@@ -55,3 +55,4 @@ import nuskin from './namespace.js'; // import global namespace we can attach to | ||
this.onLoad = function() { | ||
const onLoadEmpty = () => {}; | ||
const onLoadReady = () => { | ||
for(let x = 0; x < loadFunctions.length; x++) { | ||
@@ -65,2 +66,4 @@ if(!loadFunctions[x].hasRun) { | ||
this.onLoad = onLoadEmpty; | ||
this.init = function(config) { | ||
@@ -98,2 +101,3 @@ RunConfigService.setRunConfig(config); | ||
event.unsubscribe(event.global.CS_CONFIG_SET, configCallback); | ||
this.onLoad = onLoadReady; | ||
this.onLoad(); | ||
@@ -100,0 +104,0 @@ } |
@@ -68,3 +68,3 @@ import './ajaxWrapper.js'; | ||
evnts.unsubscribe(evnts.global.RUN_CONFIG_CHANGED, runConfigCallback); | ||
getConfiguration(['Signup', 'Url', 'Storefront', 'Loyalty']).then(() => console.log('ns-util config loaded')); | ||
getConfiguration(['Signup', 'Url', 'Storefront']).then(() => console.log('ns-util config loaded')); | ||
} | ||
@@ -71,0 +71,0 @@ } |
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
366124
9076
0