@blotoutio/edgetag-sdk-browser 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 (2) hide show
  1. package/index.js +15 -13
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -336,7 +336,7 @@
336
336
  referrer: getReferrer(),
337
337
  search: getSearch(),
338
338
  locale: getLocale(),
339
- sdkVersion: "0.36.0" ,
339
+ sdkVersion: "0.36.1" ,
340
340
  ...(payload || {}),
341
341
  };
342
342
  let storage = {};
@@ -902,18 +902,20 @@
902
902
  }
903
903
  });
904
904
  }
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 (pkg && pkg.name && pkg.init && hasConsent) {
908
- pkg.init({
909
- userId,
910
- manifest: provider,
911
- sendTag,
912
- sendEdgeData: handleData,
913
- getEdgeData: handleGetData,
914
- keyName: `${keyPrefix}Store`,
915
- executionContext,
916
- });
905
+ if (pkg && pkg.name && pkg.init) {
906
+ /* this defines if the consent is given for a specific instance of a provider */
907
+ const hasConsent = hasUserConsent(consent, pkg.name, provider.tagName);
908
+ if (hasConsent) {
909
+ pkg.init({
910
+ userId,
911
+ manifest: provider,
912
+ sendTag,
913
+ sendEdgeData: handleData,
914
+ getEdgeData: handleGetData,
915
+ keyName: `${keyPrefix}Store`,
916
+ executionContext,
917
+ });
918
+ }
917
919
  }
918
920
  });
919
921
  setInitialized();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/edgetag-sdk-browser",
3
- "version": "0.36.0",
3
+ "version": "0.36.1",
4
4
  "description": "Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",