@blotoutio/providers-klaviyo-sdk 0.68.2 → 0.69.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 +6 -15
- package/index.js +6 -15
- package/index.mjs +6 -15
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -26,7 +26,7 @@ const capture = (rule, value) => {
|
|
|
26
26
|
return value;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
const sdkVersion = "0.
|
|
29
|
+
const sdkVersion = "0.69.0" ;
|
|
30
30
|
const tag = () => ({
|
|
31
31
|
sdkVersion,
|
|
32
32
|
isIdentified: sessionStorage.getItem('identifiedByKlaviyo') === '1',
|
|
@@ -40,35 +40,26 @@ const canLog = () => {
|
|
|
40
40
|
return false;
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
+
const prefix = `[EdgeTag]`;
|
|
43
44
|
const logger = {
|
|
44
45
|
log: (...args) => {
|
|
45
46
|
if (canLog()) {
|
|
46
|
-
console.log(...args);
|
|
47
|
+
console.log(prefix, ...args);
|
|
47
48
|
}
|
|
48
49
|
},
|
|
49
50
|
error: (...args) => {
|
|
50
51
|
if (canLog()) {
|
|
51
|
-
console.error(...args);
|
|
52
|
+
console.error(prefix, ...args);
|
|
52
53
|
}
|
|
53
54
|
},
|
|
54
55
|
info: (...args) => {
|
|
55
56
|
if (canLog()) {
|
|
56
|
-
console.info(...args);
|
|
57
|
+
console.info(prefix, ...args);
|
|
57
58
|
}
|
|
58
59
|
},
|
|
59
60
|
trace: (...args) => {
|
|
60
61
|
if (canLog()) {
|
|
61
|
-
console.trace(...args);
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
table: (...args) => {
|
|
65
|
-
if (canLog()) {
|
|
66
|
-
console.table(...args);
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
dir: (...args) => {
|
|
70
|
-
if (canLog()) {
|
|
71
|
-
console.dir(...args);
|
|
62
|
+
console.trace(prefix, ...args);
|
|
72
63
|
}
|
|
73
64
|
},
|
|
74
65
|
};
|
package/index.js
CHANGED
|
@@ -27,7 +27,7 @@ var ProvidersKlaviyoSdk = (function () {
|
|
|
27
27
|
return value;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
const sdkVersion = "0.
|
|
30
|
+
const sdkVersion = "0.69.0" ;
|
|
31
31
|
const tag = () => ({
|
|
32
32
|
sdkVersion,
|
|
33
33
|
isIdentified: sessionStorage.getItem('identifiedByKlaviyo') === '1',
|
|
@@ -41,35 +41,26 @@ var ProvidersKlaviyoSdk = (function () {
|
|
|
41
41
|
return false;
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
+
const prefix = `[EdgeTag]`;
|
|
44
45
|
const logger = {
|
|
45
46
|
log: (...args) => {
|
|
46
47
|
if (canLog()) {
|
|
47
|
-
console.log(...args);
|
|
48
|
+
console.log(prefix, ...args);
|
|
48
49
|
}
|
|
49
50
|
},
|
|
50
51
|
error: (...args) => {
|
|
51
52
|
if (canLog()) {
|
|
52
|
-
console.error(...args);
|
|
53
|
+
console.error(prefix, ...args);
|
|
53
54
|
}
|
|
54
55
|
},
|
|
55
56
|
info: (...args) => {
|
|
56
57
|
if (canLog()) {
|
|
57
|
-
console.info(...args);
|
|
58
|
+
console.info(prefix, ...args);
|
|
58
59
|
}
|
|
59
60
|
},
|
|
60
61
|
trace: (...args) => {
|
|
61
62
|
if (canLog()) {
|
|
62
|
-
console.trace(...args);
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
table: (...args) => {
|
|
66
|
-
if (canLog()) {
|
|
67
|
-
console.table(...args);
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
dir: (...args) => {
|
|
71
|
-
if (canLog()) {
|
|
72
|
-
console.dir(...args);
|
|
63
|
+
console.trace(prefix, ...args);
|
|
73
64
|
}
|
|
74
65
|
},
|
|
75
66
|
};
|
package/index.mjs
CHANGED
|
@@ -24,7 +24,7 @@ const capture = (rule, value) => {
|
|
|
24
24
|
return value;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
const sdkVersion = "0.
|
|
27
|
+
const sdkVersion = "0.69.0" ;
|
|
28
28
|
const tag = () => ({
|
|
29
29
|
sdkVersion,
|
|
30
30
|
isIdentified: sessionStorage.getItem('identifiedByKlaviyo') === '1',
|
|
@@ -38,35 +38,26 @@ const canLog = () => {
|
|
|
38
38
|
return false;
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
+
const prefix = `[EdgeTag]`;
|
|
41
42
|
const logger = {
|
|
42
43
|
log: (...args) => {
|
|
43
44
|
if (canLog()) {
|
|
44
|
-
console.log(...args);
|
|
45
|
+
console.log(prefix, ...args);
|
|
45
46
|
}
|
|
46
47
|
},
|
|
47
48
|
error: (...args) => {
|
|
48
49
|
if (canLog()) {
|
|
49
|
-
console.error(...args);
|
|
50
|
+
console.error(prefix, ...args);
|
|
50
51
|
}
|
|
51
52
|
},
|
|
52
53
|
info: (...args) => {
|
|
53
54
|
if (canLog()) {
|
|
54
|
-
console.info(...args);
|
|
55
|
+
console.info(prefix, ...args);
|
|
55
56
|
}
|
|
56
57
|
},
|
|
57
58
|
trace: (...args) => {
|
|
58
59
|
if (canLog()) {
|
|
59
|
-
console.trace(...args);
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
table: (...args) => {
|
|
63
|
-
if (canLog()) {
|
|
64
|
-
console.table(...args);
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
dir: (...args) => {
|
|
68
|
-
if (canLog()) {
|
|
69
|
-
console.dir(...args);
|
|
60
|
+
console.trace(prefix, ...args);
|
|
70
61
|
}
|
|
71
62
|
},
|
|
72
63
|
};
|