@blotoutio/edgetag-sdk-js 0.36.0 → 0.36.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.cjs.js +15 -13
  2. package/index.mjs +15 -13
  3. package/package.json +1 -1
package/index.cjs.js CHANGED
@@ -335,7 +335,7 @@ const getStandardPayload = (payload) => {
335
335
  referrer: getReferrer(),
336
336
  search: getSearch(),
337
337
  locale: getLocale(),
338
- sdkVersion: "0.36.0" ,
338
+ sdkVersion: "0.36.1" ,
339
339
  ...(payload || {}),
340
340
  };
341
341
  let storage = {};
@@ -901,18 +901,20 @@ const handleManifest = (manifest, consent) => {
901
901
  }
902
902
  });
903
903
  }
904
- /* this defines if the consent is given for a specific instance of a provider */
905
- const hasConsent = hasUserConsent(consent, pkg.name, provider.tagName);
906
- if (pkg && pkg.name && pkg.init && hasConsent) {
907
- pkg.init({
908
- userId,
909
- manifest: provider,
910
- sendTag,
911
- sendEdgeData: handleData,
912
- getEdgeData: handleGetData,
913
- keyName: `${keyPrefix}Store`,
914
- executionContext,
915
- });
904
+ if (pkg && pkg.name && pkg.init) {
905
+ /* this defines if the consent is given for a specific instance of a provider */
906
+ const hasConsent = hasUserConsent(consent, pkg.name, provider.tagName);
907
+ if (hasConsent) {
908
+ pkg.init({
909
+ userId,
910
+ manifest: provider,
911
+ sendTag,
912
+ sendEdgeData: handleData,
913
+ getEdgeData: handleGetData,
914
+ keyName: `${keyPrefix}Store`,
915
+ executionContext,
916
+ });
917
+ }
916
918
  }
917
919
  });
918
920
  setInitialized();
package/index.mjs CHANGED
@@ -333,7 +333,7 @@ const getStandardPayload = (payload) => {
333
333
  referrer: getReferrer(),
334
334
  search: getSearch(),
335
335
  locale: getLocale(),
336
- sdkVersion: "0.36.0" ,
336
+ sdkVersion: "0.36.1" ,
337
337
  ...(payload || {}),
338
338
  };
339
339
  let storage = {};
@@ -899,18 +899,20 @@ const handleManifest = (manifest, consent) => {
899
899
  }
900
900
  });
901
901
  }
902
- /* this defines if the consent is given for a specific instance of a provider */
903
- const hasConsent = hasUserConsent(consent, pkg.name, provider.tagName);
904
- if (pkg && pkg.name && pkg.init && hasConsent) {
905
- pkg.init({
906
- userId,
907
- manifest: provider,
908
- sendTag,
909
- sendEdgeData: handleData,
910
- getEdgeData: handleGetData,
911
- keyName: `${keyPrefix}Store`,
912
- executionContext,
913
- });
902
+ if (pkg && pkg.name && pkg.init) {
903
+ /* this defines if the consent is given for a specific instance of a provider */
904
+ const hasConsent = hasUserConsent(consent, pkg.name, provider.tagName);
905
+ if (hasConsent) {
906
+ pkg.init({
907
+ userId,
908
+ manifest: provider,
909
+ sendTag,
910
+ sendEdgeData: handleData,
911
+ getEdgeData: handleGetData,
912
+ keyName: `${keyPrefix}Store`,
913
+ executionContext,
914
+ });
915
+ }
914
916
  }
915
917
  });
916
918
  setInitialized();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/edgetag-sdk-js",
3
- "version": "0.36.0",
3
+ "version": "0.36.1",
4
4
  "description": "JS SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",