@blotoutio/edgetag-sdk-js 0.26.6 → 0.27.0
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.
- package/index.cjs.js +4 -2
- package/index.mjs +4 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -334,7 +334,7 @@ const getStandardPayload = (payload) => {
|
|
|
334
334
|
referrer: getReferrer(),
|
|
335
335
|
search: getSearch(),
|
|
336
336
|
locale: getLocale(),
|
|
337
|
-
sdkVersion: "0.
|
|
337
|
+
sdkVersion: "0.27.0" ,
|
|
338
338
|
...(payload || {}),
|
|
339
339
|
};
|
|
340
340
|
let storage = {};
|
|
@@ -499,7 +499,9 @@ const isProviderInstanceAllowed = (providersConfig, provider, tagName) => {
|
|
|
499
499
|
};
|
|
500
500
|
|
|
501
501
|
const upsert = (map, key, update, createDefault) => {
|
|
502
|
-
const currentValue = map.has(key)
|
|
502
|
+
const currentValue = map.has(key)
|
|
503
|
+
? map.get(key)
|
|
504
|
+
: createDefault();
|
|
503
505
|
return map.set(key, update(currentValue));
|
|
504
506
|
};
|
|
505
507
|
|
package/index.mjs
CHANGED
|
@@ -332,7 +332,7 @@ const getStandardPayload = (payload) => {
|
|
|
332
332
|
referrer: getReferrer(),
|
|
333
333
|
search: getSearch(),
|
|
334
334
|
locale: getLocale(),
|
|
335
|
-
sdkVersion: "0.
|
|
335
|
+
sdkVersion: "0.27.0" ,
|
|
336
336
|
...(payload || {}),
|
|
337
337
|
};
|
|
338
338
|
let storage = {};
|
|
@@ -497,7 +497,9 @@ const isProviderInstanceAllowed = (providersConfig, provider, tagName) => {
|
|
|
497
497
|
};
|
|
498
498
|
|
|
499
499
|
const upsert = (map, key, update, createDefault) => {
|
|
500
|
-
const currentValue = map.has(key)
|
|
500
|
+
const currentValue = map.has(key)
|
|
501
|
+
? map.get(key)
|
|
502
|
+
: createDefault();
|
|
501
503
|
return map.set(key, update(currentValue));
|
|
502
504
|
};
|
|
503
505
|
|