@jitsu/js 0.0.0-alpha.108 → 0.0.0-alpha.109
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 +15 -15
- package/.turbo/turbo-clean.log +5 -5
- package/dist/jitsu.cjs.js +2 -2
- package/dist/jitsu.es.js +2 -2
- package/dist/web/p.js.txt +2 -2
- package/package.json +2 -2
- package/src/analytics-plugin.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
@jitsu/js:build: cache hit, replaying output [
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
1
|
+
@jitsu/js:build: cache hit, replaying output [2m56d215edc97590fc[0m
|
|
2
|
+
[35m@jitsu/js:build: [0m
|
|
3
|
+
[35m@jitsu/js:build: [0m> @jitsu/js@0.0.0 build /Users/ildarnurislamov/Projects/onetag/libs/jitsu-js
|
|
4
|
+
[35m@jitsu/js:build: [0m> tsc -p . && rollup -c && cp src/jitsu.d.ts dist
|
|
5
|
+
[35m@jitsu/js:build: [0m
|
|
6
|
+
[35m@jitsu/js:build: [0m[36m
|
|
7
|
+
[35m@jitsu/js:build: [0m[1m./compiled/src/browser.js[22m → [1mdist/web/p.js.txt[22m...[39m
|
|
8
|
+
[35m@jitsu/js:build: [0m[1m[33m(!) Circular dependency[39m[22m
|
|
9
|
+
[35m@jitsu/js:build: [0mcompiled/src/index.js -> compiled/src/analytics-plugin.js -> compiled/src/index.js
|
|
10
|
+
[35m@jitsu/js:build: [0m[32mcreated [1mdist/web/p.js.txt[22m in [1m256ms[22m[39m
|
|
11
|
+
[35m@jitsu/js:build: [0m[36m
|
|
12
|
+
[35m@jitsu/js:build: [0m[1m./compiled/src/index.js[22m → [1mdist/jitsu.es.js, dist/jitsu.cjs.js[22m...[39m
|
|
13
|
+
[35m@jitsu/js:build: [0m[1m[33m(!) Circular dependency[39m[22m
|
|
14
|
+
[35m@jitsu/js:build: [0mcompiled/src/index.js -> compiled/src/analytics-plugin.js -> compiled/src/index.js
|
|
15
|
+
[35m@jitsu/js:build: [0m[32mcreated [1mdist/jitsu.es.js, dist/jitsu.cjs.js[22m in [1m166ms[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 [2m8c6bbff3b2efe796[0m
|
|
2
|
+
[35m@jitsu/js:clean: [0m
|
|
3
|
+
[35m@jitsu/js:clean: [0m> @jitsu/js@0.0.0 clean /Users/ildarnurislamov/Projects/onetag/libs/jitsu-js
|
|
4
|
+
[35m@jitsu/js:clean: [0m> rm -rf ./dist
|
|
5
|
+
[35m@jitsu/js:clean: [0m
|
package/dist/jitsu.cjs.js
CHANGED
|
@@ -1132,8 +1132,8 @@ const cookieStorage = (cookieDomain, key2cookie) => {
|
|
|
1132
1132
|
const cookieName = key2cookie[key] || key;
|
|
1133
1133
|
const result = getCookie(cookieName);
|
|
1134
1134
|
if (typeof result === "undefined" && key === "__user_id") {
|
|
1135
|
-
//backward compatibility with old jitsu
|
|
1136
|
-
const traits = parse(getCookie(
|
|
1135
|
+
//backward compatibility with old jitsu cookie. get user id if from traits
|
|
1136
|
+
const traits = parse(getCookie("__eventn_id_usr")) || {};
|
|
1137
1137
|
return traits.internal_id || traits.user_id || traits.id || traits.userId;
|
|
1138
1138
|
}
|
|
1139
1139
|
return parse(result);
|
package/dist/jitsu.es.js
CHANGED
|
@@ -1130,8 +1130,8 @@ const cookieStorage = (cookieDomain, key2cookie) => {
|
|
|
1130
1130
|
const cookieName = key2cookie[key] || key;
|
|
1131
1131
|
const result = getCookie(cookieName);
|
|
1132
1132
|
if (typeof result === "undefined" && key === "__user_id") {
|
|
1133
|
-
//backward compatibility with old jitsu
|
|
1134
|
-
const traits = parse(getCookie(
|
|
1133
|
+
//backward compatibility with old jitsu cookie. get user id if from traits
|
|
1134
|
+
const traits = parse(getCookie("__eventn_id_usr")) || {};
|
|
1135
1135
|
return traits.internal_id || traits.user_id || traits.id || traits.userId;
|
|
1136
1136
|
}
|
|
1137
1137
|
return parse(result);
|
package/dist/web/p.js.txt
CHANGED
|
@@ -1133,8 +1133,8 @@
|
|
|
1133
1133
|
const cookieName = key2cookie[key] || key;
|
|
1134
1134
|
const result = getCookie(cookieName);
|
|
1135
1135
|
if (typeof result === "undefined" && key === "__user_id") {
|
|
1136
|
-
//backward compatibility with old jitsu
|
|
1137
|
-
const traits = parse(getCookie(
|
|
1136
|
+
//backward compatibility with old jitsu cookie. get user id if from traits
|
|
1137
|
+
const traits = parse(getCookie("__eventn_id_usr")) || {};
|
|
1138
1138
|
return traits.internal_id || traits.user_id || traits.id || traits.userId;
|
|
1139
1139
|
}
|
|
1140
1140
|
return parse(result);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jitsu/js",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.109",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Jitsu Dev Team <dev@jitsu.com>",
|
|
6
6
|
"main": "dist/jitsu.cjs.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"raw-loader": "^4.0.2",
|
|
35
35
|
"rollup": "^3.2.5",
|
|
36
36
|
"ts-jest": "^29.0.3",
|
|
37
|
-
"@jitsu/types": "0.0.0-alpha.
|
|
37
|
+
"@jitsu/types": "0.0.0-alpha.109"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"analytics": "^0.8.1"
|
package/src/analytics-plugin.ts
CHANGED
|
@@ -124,7 +124,7 @@ const cookieStorage: StorageFactory = (cookieDomain, key2cookie) => {
|
|
|
124
124
|
const result = getCookie(cookieName);
|
|
125
125
|
if (typeof result === "undefined" && key === "__user_id") {
|
|
126
126
|
//backward compatibility with old jitsu cookie. get user id if from traits
|
|
127
|
-
const traits = parse(getCookie(
|
|
127
|
+
const traits = parse(getCookie("__eventn_id_usr")) || {};
|
|
128
128
|
return traits.internal_id || traits.user_id || traits.id || traits.userId;
|
|
129
129
|
}
|
|
130
130
|
return parse(result);
|