@jitsu/js 1.9.2 → 1.9.3-canary.798.20240508224448
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/.turbo/turbo-build.log +67 -85
- package/.turbo/turbo-clean.log +5 -5
- package/dist/jitsu.cjs.js +7 -1
- package/dist/jitsu.es.js +7 -1
- package/dist/web/p.js.txt +7 -1
- package/package.json +4 -4
- package/src/destination-plugins/tag.ts +8 -1
- package/.turbo/turbo-test.log +0 -1964
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,85 +1,67 @@
|
|
|
1
|
-
@jitsu/js:build: cache hit, replaying output [
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
35
|
-
[
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
45
|
-
[
|
|
46
|
-
[
|
|
47
|
-
[
|
|
48
|
-
[
|
|
49
|
-
[
|
|
50
|
-
[
|
|
51
|
-
[
|
|
52
|
-
[
|
|
53
|
-
[
|
|
54
|
-
[
|
|
55
|
-
[
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
[
|
|
62
|
-
[
|
|
63
|
-
[
|
|
64
|
-
[
|
|
65
|
-
[
|
|
66
|
-
[
|
|
67
|
-
[
|
|
68
|
-
[34m@jitsu/js:build: [0m...and 1 other occurrence
|
|
69
|
-
[34m@jitsu/js:build: [0m
|
|
70
|
-
[34m@jitsu/js:build: [0m...and 3 other files
|
|
71
|
-
[34m@jitsu/js:build: [0m[1m[33m(!) Circular dependencies[39m[22m
|
|
72
|
-
[34m@jitsu/js:build: [0mcompiled/src/index.js -> compiled/src/analytics-plugin.js -> compiled/src/index.js
|
|
73
|
-
[34m@jitsu/js:build: [0mcompiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/tag.js -> compiled/src/destination-plugins/index.js
|
|
74
|
-
[34m@jitsu/js:build: [0mcompiled/src/analytics-plugin.js -> compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/tag.js -> compiled/src/analytics-plugin.js
|
|
75
|
-
[34m@jitsu/js:build: [0m...and 3 more
|
|
76
|
-
[34m@jitsu/js:build: [0m[1m[33m(!) Use of eval is strongly discouraged[39m[22m
|
|
77
|
-
[34m@jitsu/js:build: [0m[90mhttps://rollupjs.org/troubleshooting/#avoiding-eval[39m
|
|
78
|
-
[34m@jitsu/js:build: [0m[1mcompiled/src/destination-plugins/tag.js[22m
|
|
79
|
-
[34m@jitsu/js:build: [0m[90m68: })()`;
|
|
80
|
-
[34m@jitsu/js:build: [0m69: try {
|
|
81
|
-
[34m@jitsu/js:build: [0m70: eval(iif);
|
|
82
|
-
[34m@jitsu/js:build: [0m ^
|
|
83
|
-
[34m@jitsu/js:build: [0m71: }
|
|
84
|
-
[34m@jitsu/js:build: [0m72: catch (e) {[39m
|
|
85
|
-
[34m@jitsu/js:build: [0m[32mcreated [1mdist/jitsu.es.js, dist/jitsu.cjs.js[22m in [1m433ms[22m[39m
|
|
1
|
+
@jitsu/js:build: cache hit, replaying output [2madd8c682d745c4de[0m
|
|
2
|
+
[36m@jitsu/js:build: [0m
|
|
3
|
+
[36m@jitsu/js:build: [0m> @jitsu/js@0.0.0 build /Users/vklmn/dev2/newjitsu/libs/jitsu-js
|
|
4
|
+
[36m@jitsu/js:build: [0m> tsc -p . && rollup -c && cp compiled/src/*.d.ts dist
|
|
5
|
+
[36m@jitsu/js:build: [0m
|
|
6
|
+
[36m@jitsu/js:build: [0m[36m
|
|
7
|
+
[36m@jitsu/js:build: [0m[1m./compiled/src/browser.js[22m → [1mdist/web/p.js.txt[22m...[39m
|
|
8
|
+
[36m@jitsu/js:build: [0m[1m[33m(!) "this" has been rewritten to "undefined"[39m[22m
|
|
9
|
+
[36m@jitsu/js:build: [0m[90mhttps://rollupjs.org/troubleshooting/#error-this-is-undefined[39m
|
|
10
|
+
[36m@jitsu/js:build: [0m[1mcompiled/src/index.js[22m
|
|
11
|
+
[36m@jitsu/js:build: [0m[90m1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
+
[36m@jitsu/js:build: [0m ^
|
|
13
|
+
[36m@jitsu/js:build: [0m2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
[36m@jitsu/js:build: [0m3: return new (P || (P = Promise))(function (resolve, reject) {[39m
|
|
15
|
+
[36m@jitsu/js:build: [0m...and 1 other occurrence
|
|
16
|
+
[36m@jitsu/js:build: [0m[1mcompiled/src/analytics-plugin.js[22m
|
|
17
|
+
[36m@jitsu/js:build: [0m[90m1: /* global analytics */
|
|
18
|
+
[36m@jitsu/js:build: [0m2: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
19
|
+
[36m@jitsu/js:build: [0m ^
|
|
20
|
+
[36m@jitsu/js:build: [0m3: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
|
+
[36m@jitsu/js:build: [0m4: return new (P || (P = Promise))(function (resolve, reject) {[39m
|
|
22
|
+
[36m@jitsu/js:build: [0m...and 1 other occurrence
|
|
23
|
+
[36m@jitsu/js:build: [0m[1mcompiled/src/destination-plugins/tag.js[22m
|
|
24
|
+
[36m@jitsu/js:build: [0m[90m1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
25
|
+
[36m@jitsu/js:build: [0m ^
|
|
26
|
+
[36m@jitsu/js:build: [0m2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
[36m@jitsu/js:build: [0m3: return new (P || (P = Promise))(function (resolve, reject) {[39m
|
|
28
|
+
[36m@jitsu/js:build: [0m...and 1 other occurrence
|
|
29
|
+
[36m@jitsu/js:build: [0m
|
|
30
|
+
[36m@jitsu/js:build: [0m...and 3 other files
|
|
31
|
+
[36m@jitsu/js:build: [0m[1m[33m(!) Circular dependencies[39m[22m
|
|
32
|
+
[36m@jitsu/js:build: [0mcompiled/src/index.js -> compiled/src/analytics-plugin.js -> compiled/src/index.js
|
|
33
|
+
[36m@jitsu/js:build: [0mcompiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/tag.js -> compiled/src/destination-plugins/index.js
|
|
34
|
+
[36m@jitsu/js:build: [0mcompiled/src/analytics-plugin.js -> compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/tag.js -> compiled/src/analytics-plugin.js
|
|
35
|
+
[36m@jitsu/js:build: [0m...and 3 more
|
|
36
|
+
[36m@jitsu/js:build: [0m[32mcreated [1mdist/web/p.js.txt[22m in [1m394ms[22m[39m
|
|
37
|
+
[36m@jitsu/js:build: [0m[36m
|
|
38
|
+
[36m@jitsu/js:build: [0m[1m./compiled/src/index.js, ./compiled/src/jitsu.js, ./compiled/src/analytics-plugin.js[22m → [1mdist/jitsu.es.js, dist/jitsu.cjs.js[22m...[39m
|
|
39
|
+
[36m@jitsu/js:build: [0m[1m[33m(!) "this" has been rewritten to "undefined"[39m[22m
|
|
40
|
+
[36m@jitsu/js:build: [0m[90mhttps://rollupjs.org/troubleshooting/#error-this-is-undefined[39m
|
|
41
|
+
[36m@jitsu/js:build: [0m[1mcompiled/src/index.js[22m
|
|
42
|
+
[36m@jitsu/js:build: [0m[90m1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
43
|
+
[36m@jitsu/js:build: [0m ^
|
|
44
|
+
[36m@jitsu/js:build: [0m2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
45
|
+
[36m@jitsu/js:build: [0m3: return new (P || (P = Promise))(function (resolve, reject) {[39m
|
|
46
|
+
[36m@jitsu/js:build: [0m...and 1 other occurrence
|
|
47
|
+
[36m@jitsu/js:build: [0m[1mcompiled/src/analytics-plugin.js[22m
|
|
48
|
+
[36m@jitsu/js:build: [0m[90m1: /* global analytics */
|
|
49
|
+
[36m@jitsu/js:build: [0m2: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
50
|
+
[36m@jitsu/js:build: [0m ^
|
|
51
|
+
[36m@jitsu/js:build: [0m3: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
52
|
+
[36m@jitsu/js:build: [0m4: return new (P || (P = Promise))(function (resolve, reject) {[39m
|
|
53
|
+
[36m@jitsu/js:build: [0m...and 1 other occurrence
|
|
54
|
+
[36m@jitsu/js:build: [0m[1mcompiled/src/destination-plugins/ga4.js[22m
|
|
55
|
+
[36m@jitsu/js:build: [0m[90m1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
56
|
+
[36m@jitsu/js:build: [0m ^
|
|
57
|
+
[36m@jitsu/js:build: [0m2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
58
|
+
[36m@jitsu/js:build: [0m3: return new (P || (P = Promise))(function (resolve, reject) {[39m
|
|
59
|
+
[36m@jitsu/js:build: [0m...and 1 other occurrence
|
|
60
|
+
[36m@jitsu/js:build: [0m
|
|
61
|
+
[36m@jitsu/js:build: [0m...and 3 other files
|
|
62
|
+
[36m@jitsu/js:build: [0m[1m[33m(!) Circular dependencies[39m[22m
|
|
63
|
+
[36m@jitsu/js:build: [0mcompiled/src/index.js -> compiled/src/analytics-plugin.js -> compiled/src/index.js
|
|
64
|
+
[36m@jitsu/js:build: [0mcompiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/tag.js -> compiled/src/destination-plugins/index.js
|
|
65
|
+
[36m@jitsu/js:build: [0mcompiled/src/analytics-plugin.js -> compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/tag.js -> compiled/src/analytics-plugin.js
|
|
66
|
+
[36m@jitsu/js:build: [0m...and 3 more
|
|
67
|
+
[36m@jitsu/js:build: [0m[32mcreated [1mdist/jitsu.es.js, dist/jitsu.cjs.js[22m in [1m183ms[22m[39m
|
package/.turbo/turbo-clean.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@jitsu/js:clean: cache hit, replaying output [
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
1
|
+
@jitsu/js:clean: cache hit, replaying output [2mca56ac46e5cdc149[0m
|
|
2
|
+
[36m@jitsu/js:clean: [0m
|
|
3
|
+
[36m@jitsu/js:clean: [0m> @jitsu/js@0.0.0 clean /Users/vklmn/dev2/newjitsu/libs/jitsu-js
|
|
4
|
+
[36m@jitsu/js:clean: [0m> rm -rf ./dist
|
|
5
|
+
[36m@jitsu/js:clean: [0m
|
package/dist/jitsu.cjs.js
CHANGED
|
@@ -169,6 +169,12 @@ function insertTags(code, event, opts = {}) {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
+
//This weird code is used to mask eval() usage.
|
|
173
|
+
//Although the code can be executed in the browser, some server side bundlers (like Vercel) fails
|
|
174
|
+
//the build if a direct reference to eval() is found.
|
|
175
|
+
let al = "al";
|
|
176
|
+
let ev = "ve".split("").reverse().join("");
|
|
177
|
+
const execF = globalThis[ev + al];
|
|
172
178
|
function execJs(code, event) {
|
|
173
179
|
const varName = `jitsu_event_${randomId()}`;
|
|
174
180
|
window[varName] = event;
|
|
@@ -177,7 +183,7 @@ function execJs(code, event) {
|
|
|
177
183
|
${code}
|
|
178
184
|
})()`;
|
|
179
185
|
try {
|
|
180
|
-
|
|
186
|
+
execF(iif);
|
|
181
187
|
}
|
|
182
188
|
catch (e) {
|
|
183
189
|
console.error(`[JITSU] Error executing JS code: ${e.message}. Code: `, iif);
|
package/dist/jitsu.es.js
CHANGED
|
@@ -167,6 +167,12 @@ function insertTags(code, event, opts = {}) {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
+
//This weird code is used to mask eval() usage.
|
|
171
|
+
//Although the code can be executed in the browser, some server side bundlers (like Vercel) fails
|
|
172
|
+
//the build if a direct reference to eval() is found.
|
|
173
|
+
let al = "al";
|
|
174
|
+
let ev = "ve".split("").reverse().join("");
|
|
175
|
+
const execF = globalThis[ev + al];
|
|
170
176
|
function execJs(code, event) {
|
|
171
177
|
const varName = `jitsu_event_${randomId()}`;
|
|
172
178
|
window[varName] = event;
|
|
@@ -175,7 +181,7 @@ function execJs(code, event) {
|
|
|
175
181
|
${code}
|
|
176
182
|
})()`;
|
|
177
183
|
try {
|
|
178
|
-
|
|
184
|
+
execF(iif);
|
|
179
185
|
}
|
|
180
186
|
catch (e) {
|
|
181
187
|
console.error(`[JITSU] Error executing JS code: ${e.message}. Code: `, iif);
|
package/dist/web/p.js.txt
CHANGED
|
@@ -170,6 +170,12 @@
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
+
//This weird code is used to mask eval() usage.
|
|
174
|
+
//Although the code can be executed in the browser, some server side bundlers (like Vercel) fails
|
|
175
|
+
//the build if a direct reference to eval() is found.
|
|
176
|
+
let al = "al";
|
|
177
|
+
let ev = "ve".split("").reverse().join("");
|
|
178
|
+
const execF = globalThis[ev + al];
|
|
173
179
|
function execJs(code, event) {
|
|
174
180
|
const varName = `jitsu_event_${randomId()}`;
|
|
175
181
|
window[varName] = event;
|
|
@@ -178,7 +184,7 @@
|
|
|
178
184
|
${code}
|
|
179
185
|
})()`;
|
|
180
186
|
try {
|
|
181
|
-
|
|
187
|
+
execF(iif);
|
|
182
188
|
}
|
|
183
189
|
catch (e) {
|
|
184
190
|
console.error(`[JITSU] Error executing JS code: ${e.message}. Code: `, iif);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jitsu/js",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.3-canary.798.20240508224448",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Jitsu Dev Team <dev@jitsu.com>",
|
|
6
6
|
"main": "dist/jitsu.cjs.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@segment/analytics-next": "^1.46.0",
|
|
23
23
|
"@types/chalk": "^2.2.0",
|
|
24
24
|
"@types/jest": "^29.2.0",
|
|
25
|
-
"@types/node": "^
|
|
25
|
+
"@types/node": "^18.15.3",
|
|
26
26
|
"chalk": "^4.1.2",
|
|
27
27
|
"cookie-parser": "^1.4.6",
|
|
28
28
|
"ejs": "^3.1.8",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"rollup": "^3.2.5",
|
|
35
35
|
"ts-jest": "29.0.5",
|
|
36
36
|
"typescript": "^5.3.3",
|
|
37
|
-
"@jitsu/protocols": "1.9.
|
|
38
|
-
"jsondiffpatch": "1.9.
|
|
37
|
+
"@jitsu/protocols": "1.9.3-canary.798.20240508224448",
|
|
38
|
+
"jsondiffpatch": "1.9.3-canary.798.20240508224448"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"analytics": "0.8.9"
|
|
@@ -56,6 +56,13 @@ function insertTags(code, event: AnalyticsClientEvent, opts: { debug?: boolean }
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
//This weird code is used to mask eval() usage.
|
|
60
|
+
//Although the code can be executed in the browser, some server side bundlers (like Vercel) fails
|
|
61
|
+
//the build if a direct reference to eval() is found.
|
|
62
|
+
let al = "al";
|
|
63
|
+
let ev = "ve".split("").reverse().join("");
|
|
64
|
+
const execF = globalThis[ev + al];
|
|
65
|
+
|
|
59
66
|
function execJs(code: string, event: any) {
|
|
60
67
|
const varName = `jitsu_event_${randomId()}`;
|
|
61
68
|
window[varName] = event;
|
|
@@ -64,7 +71,7 @@ function execJs(code: string, event: any) {
|
|
|
64
71
|
${code}
|
|
65
72
|
})()`;
|
|
66
73
|
try {
|
|
67
|
-
|
|
74
|
+
execF(iif);
|
|
68
75
|
} catch (e) {
|
|
69
76
|
console.error(`[JITSU] Error executing JS code: ${e.message}. Code: `, iif);
|
|
70
77
|
} finally {
|