@jitsu/js 1.9.1 → 1.9.2

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.
@@ -1,85 +1,85 @@
1
- @jitsu/js:build: cache hit, replaying output 2617a3f605d6c2b8
2
- @jitsu/js:build: 
3
- @jitsu/js:build: > @jitsu/js@0.0.0 build /Users/ildarnurislamov/Projects/newjitsu/libs/jitsu-js
4
- @jitsu/js:build: > tsc -p . && rollup -c && cp compiled/src/*.d.ts dist
5
- @jitsu/js:build: 
6
- @jitsu/js:build: 
7
- @jitsu/js:build: ./compiled/src/browser.js → dist/web/p.js.txt...
8
- @jitsu/js:build: (!) "this" has been rewritten to "undefined"
9
- @jitsu/js:build: https://rollupjs.org/troubleshooting/#error-this-is-undefined
10
- @jitsu/js:build: compiled/src/index.js
11
- @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
12
- @jitsu/js:build:  ^
13
- @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
- @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
15
- @jitsu/js:build: ...and 1 other occurrence
16
- @jitsu/js:build: compiled/src/analytics-plugin.js
17
- @jitsu/js:build: 1: /* global analytics */
18
- @jitsu/js:build: 2: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
19
- @jitsu/js:build:  ^
20
- @jitsu/js:build: 3: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
21
- @jitsu/js:build: 4: return new (P || (P = Promise))(function (resolve, reject) {
22
- @jitsu/js:build: ...and 1 other occurrence
23
- @jitsu/js:build: compiled/src/destination-plugins/logrocket.js
24
- @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
25
- @jitsu/js:build:  ^
26
- @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
28
- @jitsu/js:build: ...and 1 other occurrence
29
- @jitsu/js:build: 
30
- @jitsu/js:build: ...and 3 other files
31
- @jitsu/js:build: (!) Circular dependencies
32
- @jitsu/js:build: compiled/src/index.js -> compiled/src/analytics-plugin.js -> compiled/src/index.js
33
- @jitsu/js:build: compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/tag.js -> compiled/src/destination-plugins/index.js
34
- @jitsu/js:build: compiled/src/analytics-plugin.js -> compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/tag.js -> compiled/src/analytics-plugin.js
35
- @jitsu/js:build: ...and 3 more
36
- @jitsu/js:build: (!) Use of eval is strongly discouraged
37
- @jitsu/js:build: https://rollupjs.org/troubleshooting/#avoiding-eval
38
- @jitsu/js:build: compiled/src/destination-plugins/tag.js
39
- @jitsu/js:build: 68: })()`;
40
- @jitsu/js:build: 69: try {
41
- @jitsu/js:build: 70: eval(iif);
42
- @jitsu/js:build:  ^
43
- @jitsu/js:build: 71: }
44
- @jitsu/js:build: 72: catch (e) {
45
- @jitsu/js:build: created dist/web/p.js.txt in 764ms
46
- @jitsu/js:build: 
47
- @jitsu/js:build: ./compiled/src/index.js, ./compiled/src/jitsu.js, ./compiled/src/analytics-plugin.js → dist/jitsu.es.js, dist/jitsu.cjs.js...
48
- @jitsu/js:build: (!) "this" has been rewritten to "undefined"
49
- @jitsu/js:build: https://rollupjs.org/troubleshooting/#error-this-is-undefined
50
- @jitsu/js:build: compiled/src/analytics-plugin.js
51
- @jitsu/js:build: 1: /* global analytics */
52
- @jitsu/js:build: 2: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
53
- @jitsu/js:build:  ^
54
- @jitsu/js:build: 3: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
55
- @jitsu/js:build: 4: return new (P || (P = Promise))(function (resolve, reject) {
56
- @jitsu/js:build: ...and 1 other occurrence
57
- @jitsu/js:build: compiled/src/index.js
58
- @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
59
- @jitsu/js:build:  ^
60
- @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
61
- @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
62
- @jitsu/js:build: ...and 1 other occurrence
63
- @jitsu/js:build: compiled/src/destination-plugins/tag.js
64
- @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
65
- @jitsu/js:build:  ^
66
- @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
67
- @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
68
- @jitsu/js:build: ...and 1 other occurrence
69
- @jitsu/js:build: 
70
- @jitsu/js:build: ...and 3 other files
71
- @jitsu/js:build: (!) Circular dependencies
72
- @jitsu/js:build: compiled/src/index.js -> compiled/src/analytics-plugin.js -> compiled/src/index.js
73
- @jitsu/js:build: compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/tag.js -> compiled/src/destination-plugins/index.js
74
- @jitsu/js:build: compiled/src/analytics-plugin.js -> compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/tag.js -> compiled/src/analytics-plugin.js
75
- @jitsu/js:build: ...and 3 more
76
- @jitsu/js:build: (!) Use of eval is strongly discouraged
77
- @jitsu/js:build: https://rollupjs.org/troubleshooting/#avoiding-eval
78
- @jitsu/js:build: compiled/src/destination-plugins/tag.js
79
- @jitsu/js:build: 68: })()`;
80
- @jitsu/js:build: 69: try {
81
- @jitsu/js:build: 70: eval(iif);
82
- @jitsu/js:build:  ^
83
- @jitsu/js:build: 71: }
84
- @jitsu/js:build: 72: catch (e) {
85
- @jitsu/js:build: created dist/jitsu.es.js, dist/jitsu.cjs.js in 595ms
1
+ @jitsu/js:build: cache hit, replaying output 3b3c00d053d45d0e
2
+ @jitsu/js:build: 
3
+ @jitsu/js:build: > @jitsu/js@0.0.0 build /Users/ildarnurislamov/Projects/newjitsu/libs/jitsu-js
4
+ @jitsu/js:build: > tsc -p . && rollup -c && cp compiled/src/*.d.ts dist
5
+ @jitsu/js:build: 
6
+ @jitsu/js:build: 
7
+ @jitsu/js:build: ./compiled/src/browser.js → dist/web/p.js.txt...
8
+ @jitsu/js:build: (!) "this" has been rewritten to "undefined"
9
+ @jitsu/js:build: https://rollupjs.org/troubleshooting/#error-this-is-undefined
10
+ @jitsu/js:build: compiled/src/index.js
11
+ @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
12
+ @jitsu/js:build:  ^
13
+ @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
15
+ @jitsu/js:build: ...and 1 other occurrence
16
+ @jitsu/js:build: compiled/src/analytics-plugin.js
17
+ @jitsu/js:build: 1: /* global analytics */
18
+ @jitsu/js:build: 2: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
19
+ @jitsu/js:build:  ^
20
+ @jitsu/js:build: 3: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
21
+ @jitsu/js:build: 4: return new (P || (P = Promise))(function (resolve, reject) {
22
+ @jitsu/js:build: ...and 1 other occurrence
23
+ @jitsu/js:build: compiled/src/destination-plugins/logrocket.js
24
+ @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
25
+ @jitsu/js:build:  ^
26
+ @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
+ @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
28
+ @jitsu/js:build: ...and 1 other occurrence
29
+ @jitsu/js:build: 
30
+ @jitsu/js:build: ...and 3 other files
31
+ @jitsu/js:build: (!) Circular dependencies
32
+ @jitsu/js:build: compiled/src/index.js -> compiled/src/analytics-plugin.js -> compiled/src/index.js
33
+ @jitsu/js:build: compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/tag.js -> compiled/src/destination-plugins/index.js
34
+ @jitsu/js:build: compiled/src/analytics-plugin.js -> compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/tag.js -> compiled/src/analytics-plugin.js
35
+ @jitsu/js:build: ...and 3 more
36
+ @jitsu/js:build: (!) Use of eval is strongly discouraged
37
+ @jitsu/js:build: https://rollupjs.org/troubleshooting/#avoiding-eval
38
+ @jitsu/js:build: compiled/src/destination-plugins/tag.js
39
+ @jitsu/js:build: 68: })()`;
40
+ @jitsu/js:build: 69: try {
41
+ @jitsu/js:build: 70: eval(iif);
42
+ @jitsu/js:build:  ^
43
+ @jitsu/js:build: 71: }
44
+ @jitsu/js:build: 72: catch (e) {
45
+ @jitsu/js:build: created dist/web/p.js.txt in 821ms
46
+ @jitsu/js:build: 
47
+ @jitsu/js:build: ./compiled/src/index.js, ./compiled/src/jitsu.js, ./compiled/src/analytics-plugin.js → dist/jitsu.es.js, dist/jitsu.cjs.js...
48
+ @jitsu/js:build: (!) "this" has been rewritten to "undefined"
49
+ @jitsu/js:build: https://rollupjs.org/troubleshooting/#error-this-is-undefined
50
+ @jitsu/js:build: compiled/src/index.js
51
+ @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
52
+ @jitsu/js:build:  ^
53
+ @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
54
+ @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
55
+ @jitsu/js:build: ...and 1 other occurrence
56
+ @jitsu/js:build: compiled/src/analytics-plugin.js
57
+ @jitsu/js:build: 1: /* global analytics */
58
+ @jitsu/js:build: 2: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
59
+ @jitsu/js:build:  ^
60
+ @jitsu/js:build: 3: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
61
+ @jitsu/js:build: 4: return new (P || (P = Promise))(function (resolve, reject) {
62
+ @jitsu/js:build: ...and 1 other occurrence
63
+ @jitsu/js:build: compiled/src/destination-plugins/tag.js
64
+ @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
65
+ @jitsu/js:build:  ^
66
+ @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
67
+ @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
68
+ @jitsu/js:build: ...and 1 other occurrence
69
+ @jitsu/js:build: 
70
+ @jitsu/js:build: ...and 3 other files
71
+ @jitsu/js:build: (!) Circular dependencies
72
+ @jitsu/js:build: compiled/src/index.js -> compiled/src/analytics-plugin.js -> compiled/src/index.js
73
+ @jitsu/js:build: compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/tag.js -> compiled/src/destination-plugins/index.js
74
+ @jitsu/js:build: compiled/src/analytics-plugin.js -> compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/tag.js -> compiled/src/analytics-plugin.js
75
+ @jitsu/js:build: ...and 3 more
76
+ @jitsu/js:build: (!) Use of eval is strongly discouraged
77
+ @jitsu/js:build: https://rollupjs.org/troubleshooting/#avoiding-eval
78
+ @jitsu/js:build: compiled/src/destination-plugins/tag.js
79
+ @jitsu/js:build: 68: })()`;
80
+ @jitsu/js:build: 69: try {
81
+ @jitsu/js:build: 70: eval(iif);
82
+ @jitsu/js:build:  ^
83
+ @jitsu/js:build: 71: }
84
+ @jitsu/js:build: 72: catch (e) {
85
+ @jitsu/js:build: created dist/jitsu.es.js, dist/jitsu.cjs.js in 433ms
@@ -1,5 +1,5 @@
1
- @jitsu/js:clean: cache hit, replaying output f4860d1cb14d0a1a
2
- @jitsu/js:clean: 
3
- @jitsu/js:clean: > @jitsu/js@0.0.0 clean /Users/ildarnurislamov/Projects/newjitsu/libs/jitsu-js
4
- @jitsu/js:clean: > rm -rf ./dist
5
- @jitsu/js:clean: 
1
+ @jitsu/js:clean: cache hit, replaying output 48eb8b5e19cc9aef
2
+ @jitsu/js:clean: 
3
+ @jitsu/js:clean: > @jitsu/js@0.0.0 clean /Users/ildarnurislamov/Projects/newjitsu/libs/jitsu-js
4
+ @jitsu/js:clean: > rm -rf ./dist
5
+ @jitsu/js:clean: 
@@ -1,4 +1,4 @@
1
- @jitsu/js:test: cache hit, replaying output 7caa1a90349f70a7
1
+ @jitsu/js:test: cache hit, replaying output d2ee64769eab0bd8
2
2
  @jitsu/js:test: 
3
3
  @jitsu/js:test: > @jitsu/js@0.0.0 test /Users/ildarnurislamov/Projects/newjitsu/libs/jitsu-js
4
4
  @jitsu/js:test: > pnpm run test:node && pnpm run test:playwright
@@ -21,7 +21,7 @@
21
21
  @jitsu/js:test: ts-jest[backports] (WARN) Your Jest configuration is outdated. Use the CLI to help migrating it: ts-jest config:migrate <config-file>.
22
22
  @jitsu/js:test: ts-jest[versions] (WARN) Version 5.3.3 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <5.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
23
23
  @jitsu/js:test: ts-jest[versions] (WARN) Version 5.3.3 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <5.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
24
- @jitsu/js:test: (node:719) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
24
+ @jitsu/js:test: (node:24609) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
25
25
  @jitsu/js:test: (Use `node --trace-warnings ...` to show where the warning was created)
26
26
  @jitsu/js:test: PASS __tests__/node/method-queue.test.ts
27
27
  @jitsu/js:test: PASS __tests__/node/nodejs.test.ts
@@ -150,7 +150,7 @@
150
150
  @jitsu/js:test:  at Object.getItem (../../dist/jitsu.cjs.js:1232:29)
151
151
  @jitsu/js:test: 
152
152
  @jitsu/js:test:  console.log
153
- @jitsu/js:test:  [JITSU EMPTY RUNTIME] Set storage item __anon_id="9df8d7c2-1f5e-49a4-82f7-c7dc377b5536"
153
+ @jitsu/js:test:  [JITSU EMPTY RUNTIME] Set storage item __anon_id="d96bdd03-5da4-406b-8ff2-88e42af2db85"
154
154
  @jitsu/js:test: 
155
155
  @jitsu/js:test:  at Object.setItem (../../dist/jitsu.cjs.js:1225:29)
156
156
  @jitsu/js:test: 
@@ -208,9 +208,9 @@
208
208
  @jitsu/js:test:  "properties": {},
209
209
  @jitsu/js:test:  "userId": null,
210
210
  @jitsu/js:test:  "anonymousId": "anonymous_id_test",
211
- @jitsu/js:test:  "timestamp": "2024-04-22T15:48:42.820Z",
212
- @jitsu/js:test:  "sentAt": "2024-04-22T15:48:42.820Z",
213
- @jitsu/js:test:  "messageId": "1n90quawc1f4swu3hndvu",
211
+ @jitsu/js:test:  "timestamp": "2024-04-23T12:16:56.410Z",
212
+ @jitsu/js:test:  "sentAt": "2024-04-23T12:16:56.410Z",
213
+ @jitsu/js:test:  "messageId": "1jrl7n8xflcnogkw6ilfj",
214
214
  @jitsu/js:test:  "writeKey": "key:***",
215
215
  @jitsu/js:test:  "context": {
216
216
  @jitsu/js:test:  "library": {
@@ -280,9 +280,9 @@
280
280
  @jitsu/js:test:  "properties": {},
281
281
  @jitsu/js:test:  "userId": null,
282
282
  @jitsu/js:test:  "anonymousId": "anonymous_id_test",
283
- @jitsu/js:test:  "timestamp": "2024-04-22T15:48:42.850Z",
284
- @jitsu/js:test:  "sentAt": "2024-04-22T15:48:42.850Z",
285
- @jitsu/js:test:  "messageId": "kjjarfjmcn2bogwadbsun",
283
+ @jitsu/js:test:  "timestamp": "2024-04-23T12:16:56.440Z",
284
+ @jitsu/js:test:  "sentAt": "2024-04-23T12:16:56.440Z",
285
+ @jitsu/js:test:  "messageId": "j3ksauj0ek13zuim5dplu",
286
286
  @jitsu/js:test:  "writeKey": "key:***",
287
287
  @jitsu/js:test:  "context": {
288
288
  @jitsu/js:test:  "library": {
@@ -352,9 +352,9 @@
352
352
  @jitsu/js:test:  "properties": {},
353
353
  @jitsu/js:test:  "userId": null,
354
354
  @jitsu/js:test:  "anonymousId": "anonymous_id_test",
355
- @jitsu/js:test:  "timestamp": "2024-04-22T15:48:42.856Z",
356
- @jitsu/js:test:  "sentAt": "2024-04-22T15:48:42.856Z",
357
- @jitsu/js:test:  "messageId": "18r0lou19n52eh7c1fnzfg",
355
+ @jitsu/js:test:  "timestamp": "2024-04-23T12:16:56.447Z",
356
+ @jitsu/js:test:  "sentAt": "2024-04-23T12:16:56.447Z",
357
+ @jitsu/js:test:  "messageId": "1rmb4knmdovzzl9jmsia4",
358
358
  @jitsu/js:test:  "writeKey": "key:***",
359
359
  @jitsu/js:test:  "context": {
360
360
  @jitsu/js:test:  "library": {
@@ -412,7 +412,7 @@
412
412
  @jitsu/js:test:  at Object.getItem (../../dist/jitsu.cjs.js:1232:29)
413
413
  @jitsu/js:test: 
414
414
  @jitsu/js:test:  console.log
415
- @jitsu/js:test:  [JITSU EMPTY RUNTIME] Set storage item __anon_id="09f61da7-08e2-46d1-8b58-013178cf08b1"
415
+ @jitsu/js:test:  [JITSU EMPTY RUNTIME] Set storage item __anon_id="3ff7dbe6-37da-4c0e-86f8-26a707fa2730"
416
416
  @jitsu/js:test: 
417
417
  @jitsu/js:test:  at Object.setItem (../../dist/jitsu.cjs.js:1225:29)
418
418
  @jitsu/js:test: 
@@ -463,10 +463,10 @@
463
463
  @jitsu/js:test:  "event": "testTrack",
464
464
  @jitsu/js:test:  "properties": {},
465
465
  @jitsu/js:test:  "userId": null,
466
- @jitsu/js:test:  "anonymousId": "09f61da7-08e2-46d1-8b58-013178cf08b1",
467
- @jitsu/js:test:  "timestamp": "2024-04-22T15:48:43.862Z",
468
- @jitsu/js:test:  "sentAt": "2024-04-22T15:48:43.862Z",
469
- @jitsu/js:test:  "messageId": "26epp5vb0or27qu9jta2yg",
466
+ @jitsu/js:test:  "anonymousId": "3ff7dbe6-37da-4c0e-86f8-26a707fa2730",
467
+ @jitsu/js:test:  "timestamp": "2024-04-23T12:16:57.452Z",
468
+ @jitsu/js:test:  "sentAt": "2024-04-23T12:16:57.452Z",
469
+ @jitsu/js:test:  "messageId": "yz38vs4y0f1xs1li0c5j1",
470
470
  @jitsu/js:test:  "writeKey": "key:***",
471
471
  @jitsu/js:test:  "context": {
472
472
  @jitsu/js:test:  "library": {
@@ -541,10 +541,10 @@
541
541
  @jitsu/js:test:  "traits": {
542
542
  @jitsu/js:test:  "email": "test@test.com"
543
543
  @jitsu/js:test:  },
544
- @jitsu/js:test:  "anonymousId": "09f61da7-08e2-46d1-8b58-013178cf08b1",
545
- @jitsu/js:test:  "timestamp": "2024-04-22T15:48:43.870Z",
546
- @jitsu/js:test:  "sentAt": "2024-04-22T15:48:43.870Z",
547
- @jitsu/js:test:  "messageId": "1qg7zw2dgdfy0qhrct2jt",
544
+ @jitsu/js:test:  "anonymousId": "3ff7dbe6-37da-4c0e-86f8-26a707fa2730",
545
+ @jitsu/js:test:  "timestamp": "2024-04-23T12:16:57.462Z",
546
+ @jitsu/js:test:  "sentAt": "2024-04-23T12:16:57.462Z",
547
+ @jitsu/js:test:  "messageId": "329s7ilru62ekst2g1ldr",
548
548
  @jitsu/js:test:  "writeKey": "key:***",
549
549
  @jitsu/js:test:  "context": {
550
550
  @jitsu/js:test:  "library": {
@@ -561,7 +561,7 @@
561
561
  @jitsu/js:test:  at ../../dist/jitsu.cjs.js:1477:21
562
562
  @jitsu/js:test: 
563
563
  @jitsu/js:test:  console.log
564
- @jitsu/js:test:  [JITSU EMPTY RUNTIME] Get storage item __anon_id="09f61da7-08e2-46d1-8b58-013178cf08b1"
564
+ @jitsu/js:test:  [JITSU EMPTY RUNTIME] Get storage item __anon_id="3ff7dbe6-37da-4c0e-86f8-26a707fa2730"
565
565
  @jitsu/js:test: 
566
566
  @jitsu/js:test:  at getItem (../../dist/jitsu.cjs.js:1232:29)
567
567
  @jitsu/js:test: 
@@ -618,11 +618,11 @@
618
618
  @jitsu/js:test:  "traits": {
619
619
  @jitsu/js:test:  "name": "Test Group"
620
620
  @jitsu/js:test:  },
621
- @jitsu/js:test:  "anonymousId": "09f61da7-08e2-46d1-8b58-013178cf08b1",
621
+ @jitsu/js:test:  "anonymousId": "3ff7dbe6-37da-4c0e-86f8-26a707fa2730",
622
622
  @jitsu/js:test:  "userId": "testUser",
623
- @jitsu/js:test:  "timestamp": "2024-04-22T15:48:43.875Z",
624
- @jitsu/js:test:  "sentAt": "2024-04-22T15:48:43.875Z",
625
- @jitsu/js:test:  "messageId": "10dig3rm4zh1r2c567g01q",
623
+ @jitsu/js:test:  "timestamp": "2024-04-23T12:16:57.467Z",
624
+ @jitsu/js:test:  "sentAt": "2024-04-23T12:16:57.467Z",
625
+ @jitsu/js:test:  "messageId": "1e9dj0rh633k4glizsaqm",
626
626
  @jitsu/js:test:  "writeKey": "key:***",
627
627
  @jitsu/js:test:  "context": {
628
628
  @jitsu/js:test:  "library": {
@@ -662,10 +662,10 @@
662
662
  @jitsu/js:test:  "environment": "nodejs"
663
663
  @jitsu/js:test:  },
664
664
  @jitsu/js:test:  "userId": "testUser",
665
- @jitsu/js:test:  "anonymousId": "09f61da7-08e2-46d1-8b58-013178cf08b1",
666
- @jitsu/js:test:  "timestamp": "2024-04-22T15:48:43.880Z",
667
- @jitsu/js:test:  "sentAt": "2024-04-22T15:48:43.880Z",
668
- @jitsu/js:test:  "messageId": "qem4ruo9xt1k0is93agxn",
665
+ @jitsu/js:test:  "anonymousId": "3ff7dbe6-37da-4c0e-86f8-26a707fa2730",
666
+ @jitsu/js:test:  "timestamp": "2024-04-23T12:16:57.472Z",
667
+ @jitsu/js:test:  "sentAt": "2024-04-23T12:16:57.472Z",
668
+ @jitsu/js:test:  "messageId": "j06p3l0z142b8r0mhmzed",
669
669
  @jitsu/js:test:  "writeKey": "key:***",
670
670
  @jitsu/js:test:  "groupId": "testGroup",
671
671
  @jitsu/js:test:  "context": {
@@ -692,12 +692,26 @@
692
692
  @jitsu/js:test:  pagePayload {
693
693
  @jitsu/js:test:  type: 'track',
694
694
  @jitsu/js:test:  event: 'testTrack',
695
+ @jitsu/js:test: 
696
+ @jitsu/js:test: > @jitsu/js@0.0.0 test:playwright /Users/ildarnurislamov/Projects/newjitsu/libs/jitsu-js
697
+ @jitsu/js:test: > playwright test ./__tests__/playwright
698
+ @jitsu/js:test: 
699
+ @jitsu/js:test: 
700
+ @jitsu/js:test: Running 4 tests using 1 worker
701
+ @jitsu/js:test: 
702
+ @jitsu/js:test: Processing file basic.html
703
+ @jitsu/js:test: Processing file callbacks.html
704
+ @jitsu/js:test: Processing file segment-reference.html
705
+ @jitsu/js:test: Processing file url-bug.html
706
+ @jitsu/js:test: Running on https://localhost:3088
695
707
  @jitsu/js:test:  properties: {},
708
+ @jitsu/js:test: Skipping segment reference generation, no SEGMENT_WRITE_KEY provided
709
+ @jitsu/js:test:  ✓ 1 __tests__/playwright/integration.test.ts:132:5 › segment-reference (32ms)
696
710
  @jitsu/js:test:  userId: null,
697
- @jitsu/js:test:  anonymousId: '09f61da7-08e2-46d1-8b58-013178cf08b1',
698
- @jitsu/js:test:  timestamp: '2024-04-22T15:48:43.862Z',
699
- @jitsu/js:test:  sentAt: '2024-04-22T15:48:43.862Z',
700
- @jitsu/js:test:  messageId: '26epp5vb0or27qu9jta2yg',
711
+ @jitsu/js:test:  anonymousId: '3ff7dbe6-37da-4c0e-86f8-26a707fa2730',
712
+ @jitsu/js:test:  timestamp: '2024-04-23T12:16:57.452Z',
713
+ @jitsu/js:test:  sentAt: '2024-04-23T12:16:57.452Z',
714
+ @jitsu/js:test:  messageId: 'yz38vs4y0f1xs1li0c5j1',
701
715
  @jitsu/js:test:  writeKey: 'key:***',
702
716
  @jitsu/js:test:  context: {
703
717
  @jitsu/js:test:  library: { name: '@jitsu/js', version: '2.0.0', env: 'node' },
@@ -725,28 +739,14 @@
725
739
  @jitsu/js:test: Test Suites: 2 passed, 2 total
726
740
  @jitsu/js:test: Tests: 5 passed, 5 total
727
741
  @jitsu/js:test: Snapshots: 0 total
728
- @jitsu/js:test: Time: 4.288 s
742
+ @jitsu/js:test: Time: 3.853 s, estimated 4 s
729
743
  @jitsu/js:test: Ran all test suites.
730
- @jitsu/js:test: 
731
- @jitsu/js:test: > @jitsu/js@0.0.0 test:playwright /Users/ildarnurislamov/Projects/newjitsu/libs/jitsu-js
732
- @jitsu/js:test: > playwright test ./__tests__/playwright
733
- @jitsu/js:test: 
734
- @jitsu/js:test: 
735
- @jitsu/js:test: Running 4 tests using 1 worker
736
- @jitsu/js:test: 
737
- @jitsu/js:test: Processing file basic.html
738
- @jitsu/js:test: Processing file callbacks.html
739
- @jitsu/js:test: Processing file segment-reference.html
740
- @jitsu/js:test: Processing file url-bug.html
741
- @jitsu/js:test: Running on https://localhost:3088
742
- @jitsu/js:test: Skipping segment reference generation, no SEGMENT_WRITE_KEY provided
743
- @jitsu/js:test:  ✓ 1 __tests__/playwright/integration.test.ts:132:5 › segment-reference (37ms)
744
744
  @jitsu/js:test: 📝 Request log size of 3 [
745
- @jitsu/js:test:  'track(test-event1)[anonId=662d2672-334d-43e8-b233-3133bfaec3ff, ]',
746
- @jitsu/js:test:  'track(test-event2)[anonId=662d2672-334d-43e8-b233-3133bfaec3ff, ]',
747
- @jitsu/js:test:  'page[anonId=662d2672-334d-43e8-b233-3133bfaec3ff, ]'
745
+ @jitsu/js:test:  'track(test-event1)[anonId=fdac0e2a-b8ac-45bd-b25a-48dc23d88544, ]',
746
+ @jitsu/js:test:  'track(test-event2)[anonId=fdac0e2a-b8ac-45bd-b25a-48dc23d88544, ]',
747
+ @jitsu/js:test:  'page[anonId=fdac0e2a-b8ac-45bd-b25a-48dc23d88544, ]'
748
748
  @jitsu/js:test: ]
749
- @jitsu/js:test:  ✓ 2 __tests__/playwright/integration.test.ts:199:5 › jitsu-queue-callbacks (1.2s)
749
+ @jitsu/js:test:  ✓ 2 __tests__/playwright/integration.test.ts:199:5 › jitsu-queue-callbacks (1.5s)
750
750
  @jitsu/js:test: 
751
751
  @jitsu/js:test: │ Browser Console LOG
752
752
  @jitsu/js:test: │ Jitsu options: {"debug":true,"host":"https://localhost:3088"}
@@ -788,10 +788,10 @@
788
788
  @jitsu/js:test: │ "event": "test-event",
789
789
  @jitsu/js:test: │ "properties": {},
790
790
  @jitsu/js:test: │ "userId": null,
791
- @jitsu/js:test: │ "anonymousId": "e1eefc05-f074-4a76-b880-cf1936d1ec51",
792
- @jitsu/js:test: │ "timestamp": "2024-04-22T15:48:53.114Z",
793
- @jitsu/js:test: │ "sentAt": "2024-04-22T15:48:53.114Z",
794
- @jitsu/js:test: │ "messageId": "33d0vufvbh1efopssbr8m",
791
+ @jitsu/js:test: │ "anonymousId": "11d7f8de-0d29-4cde-ac80-caba35ccf84b",
792
+ @jitsu/js:test: │ "timestamp": "2024-04-23T12:17:04.147Z",
793
+ @jitsu/js:test: │ "sentAt": "2024-04-23T12:17:04.147Z",
794
+ @jitsu/js:test: │ "messageId": "29wd5eo4etfcs4hpkrzcm",
795
795
  @jitsu/js:test: │ "writeKey": null,
796
796
  @jitsu/js:test: │ "context": {
797
797
  @jitsu/js:test: │ "library": {
@@ -838,10 +838,10 @@
838
838
  @jitsu/js:test: │ "height": 720
839
839
  @jitsu/js:test: │ },
840
840
  @jitsu/js:test: │ "userId": null,
841
- @jitsu/js:test: │ "anonymousId": "e1eefc05-f074-4a76-b880-cf1936d1ec51",
842
- @jitsu/js:test: │ "timestamp": "2024-04-22T15:48:53.117Z",
843
- @jitsu/js:test: │ "sentAt": "2024-04-22T15:48:53.117Z",
844
- @jitsu/js:test: │ "messageId": "15pjyss4geco1gxx7lpbk",
841
+ @jitsu/js:test: │ "anonymousId": "11d7f8de-0d29-4cde-ac80-caba35ccf84b",
842
+ @jitsu/js:test: │ "timestamp": "2024-04-23T12:17:04.148Z",
843
+ @jitsu/js:test: │ "sentAt": "2024-04-23T12:17:04.148Z",
844
+ @jitsu/js:test: │ "messageId": "2fg6qy5m2sz24y2uzutctp",
845
845
  @jitsu/js:test: │ "writeKey": null,
846
846
  @jitsu/js:test: │ "context": {
847
847
  @jitsu/js:test: │ "library": {
@@ -874,8 +874,8 @@
874
874
  @jitsu/js:test: │ }
875
875
  @jitsu/js:test: │ }
876
876
  @jitsu/js:test: 📝 Request log size of 2 [
877
- @jitsu/js:test:  'track(test-event)[anonId=e1eefc05-f074-4a76-b880-cf1936d1ec51, ]',
878
- @jitsu/js:test:  'page[anonId=e1eefc05-f074-4a76-b880-cf1936d1ec51, ]'
877
+ @jitsu/js:test:  'track(test-event)[anonId=11d7f8de-0d29-4cde-ac80-caba35ccf84b, ]',
878
+ @jitsu/js:test:  'page[anonId=11d7f8de-0d29-4cde-ac80-caba35ccf84b, ]'
879
879
  @jitsu/js:test: ]
880
880
  @jitsu/js:test:  ✓ 3 __tests__/playwright/integration.test.ts:217:5 › url-bug (1.1s)
881
881
  @jitsu/js:test: 
@@ -928,7 +928,7 @@
928
928
  @jitsu/js:test: │ Browser Console LOG
929
929
  @jitsu/js:test: │ [JITSU DEBUG] Caching storage getItem: __group_id=undefined. Evicted from cache: true
930
930
  @jitsu/js:test: 🍪 Jitsu Cookies {
931
- @jitsu/js:test:  __eventn_id: '14e4711f-0327-4aca-a5cc-7181aeca4d66',
931
+ @jitsu/js:test:  __eventn_id: '12951774-7136-4f25-b9ab-847a57ac2862',
932
932
  @jitsu/js:test:  __eventn_uid: 'john-doe-id-1',
933
933
  @jitsu/js:test:  __eventn_id_usr: '%7B%22email%22%3A%22john.doe%40gmail.com%22%7D'
934
934
  @jitsu/js:test: }
@@ -941,10 +941,10 @@
941
941
  @jitsu/js:test: │ "traits": {
942
942
  @jitsu/js:test: │ "email": "john.doe@gmail.com"
943
943
  @jitsu/js:test: │ },
944
- @jitsu/js:test: │ "anonymousId": "14e4711f-0327-4aca-a5cc-7181aeca4d66",
945
- @jitsu/js:test: │ "timestamp": "2024-04-22T15:48:54.225Z",
946
- @jitsu/js:test: │ "sentAt": "2024-04-22T15:48:54.225Z",
947
- @jitsu/js:test: │ "messageId": "49byjf4uev1x4nv1d59mv",
944
+ @jitsu/js:test: │ "anonymousId": "12951774-7136-4f25-b9ab-847a57ac2862",
945
+ @jitsu/js:test: │ "timestamp": "2024-04-23T12:17:05.249Z",
946
+ @jitsu/js:test: │ "sentAt": "2024-04-23T12:17:05.249Z",
947
+ @jitsu/js:test: │ "messageId": "3f0jxut4r8dd1v6trgxc",
948
948
  @jitsu/js:test: │ "writeKey": null,
949
949
  @jitsu/js:test: │ "context": {
950
950
  @jitsu/js:test: │ "library": {
@@ -989,10 +989,10 @@
989
989
  @jitsu/js:test: │ "trackParam": "trackValue"
990
990
  @jitsu/js:test: │ },
991
991
  @jitsu/js:test: │ "userId": "john-doe-id-1",
992
- @jitsu/js:test: │ "anonymousId": "14e4711f-0327-4aca-a5cc-7181aeca4d66",
993
- @jitsu/js:test: │ "timestamp": "2024-04-22T15:48:54.227Z",
994
- @jitsu/js:test: │ "sentAt": "2024-04-22T15:48:54.227Z",
995
- @jitsu/js:test: │ "messageId": "24txxg2se5u2frmn1zctkg",
992
+ @jitsu/js:test: │ "anonymousId": "12951774-7136-4f25-b9ab-847a57ac2862",
993
+ @jitsu/js:test: │ "timestamp": "2024-04-23T12:17:05.251Z",
994
+ @jitsu/js:test: │ "sentAt": "2024-04-23T12:17:05.251Z",
995
+ @jitsu/js:test: │ "messageId": "wtns9gugc9o68rhhdump",
996
996
  @jitsu/js:test: │ "writeKey": null,
997
997
  @jitsu/js:test: │ "context": {
998
998
  @jitsu/js:test: │ "library": {
@@ -1045,10 +1045,10 @@
1045
1045
  @jitsu/js:test: │ "height": 720
1046
1046
  @jitsu/js:test: │ },
1047
1047
  @jitsu/js:test: │ "userId": "john-doe-id-1",
1048
- @jitsu/js:test: │ "anonymousId": "14e4711f-0327-4aca-a5cc-7181aeca4d66",
1049
- @jitsu/js:test: │ "timestamp": "2024-04-22T15:48:54.229Z",
1050
- @jitsu/js:test: │ "sentAt": "2024-04-22T15:48:54.229Z",
1051
- @jitsu/js:test: │ "messageId": "xqs3wnphf41uoxyxi1vym",
1048
+ @jitsu/js:test: │ "anonymousId": "12951774-7136-4f25-b9ab-847a57ac2862",
1049
+ @jitsu/js:test: │ "timestamp": "2024-04-23T12:17:05.253Z",
1050
+ @jitsu/js:test: │ "sentAt": "2024-04-23T12:17:05.253Z",
1051
+ @jitsu/js:test: │ "messageId": "1fwjl2zpnud1j3cx1kiz2v",
1052
1052
  @jitsu/js:test: │ "writeKey": null,
1053
1053
  @jitsu/js:test: │ "context": {
1054
1054
  @jitsu/js:test: │ "library": {
@@ -1087,9 +1087,9 @@
1087
1087
  @jitsu/js:test: │ }
1088
1088
  @jitsu/js:test: │ }
1089
1089
  @jitsu/js:test: 📝 Request log size of 3 [
1090
- @jitsu/js:test:  'identify[userId=john-doe-id-1, anonId=14e4711f-0327-4aca-a5cc-7181aeca4d66, traits={"email":"john.doe@gmail.com"}]',
1091
- @jitsu/js:test:  'track(pageLoaded)[userId=john-doe-id-1, anonId=14e4711f-0327-4aca-a5cc-7181aeca4d66, ]',
1092
- @jitsu/js:test:  'page[userId=john-doe-id-1, anonId=14e4711f-0327-4aca-a5cc-7181aeca4d66, ]'
1090
+ @jitsu/js:test:  'identify[userId=john-doe-id-1, anonId=12951774-7136-4f25-b9ab-847a57ac2862, traits={"email":"john.doe@gmail.com"}]',
1091
+ @jitsu/js:test:  'track(pageLoaded)[userId=john-doe-id-1, anonId=12951774-7136-4f25-b9ab-847a57ac2862, ]',
1092
+ @jitsu/js:test:  'page[userId=john-doe-id-1, anonId=12951774-7136-4f25-b9ab-847a57ac2862, ]'
1093
1093
  @jitsu/js:test: ]
1094
1094
  @jitsu/js:test: 📝 Checking track event {
1095
1095
  @jitsu/js:test:  "type": "track",
@@ -1098,10 +1098,10 @@
1098
1098
  @jitsu/js:test:  "trackParam": "trackValue"
1099
1099
  @jitsu/js:test:  },
1100
1100
  @jitsu/js:test:  "userId": "john-doe-id-1",
1101
- @jitsu/js:test:  "anonymousId": "14e4711f-0327-4aca-a5cc-7181aeca4d66",
1102
- @jitsu/js:test:  "timestamp": "2024-04-22T15:48:54.227Z",
1103
- @jitsu/js:test:  "sentAt": "2024-04-22T15:48:54.227Z",
1104
- @jitsu/js:test:  "messageId": "24txxg2se5u2frmn1zctkg",
1101
+ @jitsu/js:test:  "anonymousId": "12951774-7136-4f25-b9ab-847a57ac2862",
1102
+ @jitsu/js:test:  "timestamp": "2024-04-23T12:17:05.251Z",
1103
+ @jitsu/js:test:  "sentAt": "2024-04-23T12:17:05.251Z",
1104
+ @jitsu/js:test:  "messageId": "wtns9gugc9o68rhhdump",
1105
1105
  @jitsu/js:test:  "writeKey": null,
1106
1106
  @jitsu/js:test:  "context": {
1107
1107
  @jitsu/js:test:  "library": {
@@ -1145,10 +1145,10 @@
1145
1145
  @jitsu/js:test:  "traits": {
1146
1146
  @jitsu/js:test:  "email": "john.doe@gmail.com"
1147
1147
  @jitsu/js:test:  },
1148
- @jitsu/js:test:  "anonymousId": "14e4711f-0327-4aca-a5cc-7181aeca4d66",
1149
- @jitsu/js:test:  "timestamp": "2024-04-22T15:48:54.225Z",
1150
- @jitsu/js:test:  "sentAt": "2024-04-22T15:48:54.225Z",
1151
- @jitsu/js:test:  "messageId": "49byjf4uev1x4nv1d59mv",
1148
+ @jitsu/js:test:  "anonymousId": "12951774-7136-4f25-b9ab-847a57ac2862",
1149
+ @jitsu/js:test:  "timestamp": "2024-04-23T12:17:05.249Z",
1150
+ @jitsu/js:test:  "sentAt": "2024-04-23T12:17:05.249Z",
1151
+ @jitsu/js:test:  "messageId": "3f0jxut4r8dd1v6trgxc",
1152
1152
  @jitsu/js:test:  "writeKey": null,
1153
1153
  @jitsu/js:test:  "context": {
1154
1154
  @jitsu/js:test:  "library": {
@@ -1195,10 +1195,10 @@
1195
1195
  @jitsu/js:test:  "height": 720
1196
1196
  @jitsu/js:test:  },
1197
1197
  @jitsu/js:test:  "userId": "john-doe-id-1",
1198
- @jitsu/js:test:  "anonymousId": "14e4711f-0327-4aca-a5cc-7181aeca4d66",
1199
- @jitsu/js:test:  "timestamp": "2024-04-22T15:48:54.229Z",
1200
- @jitsu/js:test:  "sentAt": "2024-04-22T15:48:54.229Z",
1201
- @jitsu/js:test:  "messageId": "xqs3wnphf41uoxyxi1vym",
1198
+ @jitsu/js:test:  "anonymousId": "12951774-7136-4f25-b9ab-847a57ac2862",
1199
+ @jitsu/js:test:  "timestamp": "2024-04-23T12:17:05.253Z",
1200
+ @jitsu/js:test:  "sentAt": "2024-04-23T12:17:05.253Z",
1201
+ @jitsu/js:test:  "messageId": "1fwjl2zpnud1j3cx1kiz2v",
1202
1202
  @jitsu/js:test:  "writeKey": null,
1203
1203
  @jitsu/js:test:  "context": {
1204
1204
  @jitsu/js:test:  "library": {
@@ -1312,10 +1312,10 @@
1312
1312
  @jitsu/js:test: │ "traits": {
1313
1313
  @jitsu/js:test: │ "email": "john.doe@gmail.com"
1314
1314
  @jitsu/js:test: │ },
1315
- @jitsu/js:test: │ "anonymousId": "14e4711f-0327-4aca-a5cc-7181aeca4d66",
1316
- @jitsu/js:test: │ "timestamp": "2024-04-22T15:48:55.324Z",
1317
- @jitsu/js:test: │ "sentAt": "2024-04-22T15:48:55.324Z",
1318
- @jitsu/js:test: │ "messageId": "hwe2xv3cmpu4yvlwbn1",
1315
+ @jitsu/js:test: │ "anonymousId": "12951774-7136-4f25-b9ab-847a57ac2862",
1316
+ @jitsu/js:test: │ "timestamp": "2024-04-23T12:17:06.357Z",
1317
+ @jitsu/js:test: │ "sentAt": "2024-04-23T12:17:06.357Z",
1318
+ @jitsu/js:test: │ "messageId": "27wkzyorewix8elocqwh1",
1319
1319
  @jitsu/js:test: │ "writeKey": null,
1320
1320
  @jitsu/js:test: │ "context": {
1321
1321
  @jitsu/js:test: │ "library": {
@@ -1360,10 +1360,10 @@
1360
1360
  @jitsu/js:test: │ "trackParam": "trackValue"
1361
1361
  @jitsu/js:test: │ },
1362
1362
  @jitsu/js:test: │ "userId": "john-doe-id-1",
1363
- @jitsu/js:test: │ "anonymousId": "14e4711f-0327-4aca-a5cc-7181aeca4d66",
1364
- @jitsu/js:test: │ "timestamp": "2024-04-22T15:48:55.325Z",
1365
- @jitsu/js:test: │ "sentAt": "2024-04-22T15:48:55.326Z",
1366
- @jitsu/js:test: │ "messageId": "ql5p5d46vx1hesazvk58a",
1363
+ @jitsu/js:test: │ "anonymousId": "12951774-7136-4f25-b9ab-847a57ac2862",
1364
+ @jitsu/js:test: │ "timestamp": "2024-04-23T12:17:06.359Z",
1365
+ @jitsu/js:test: │ "sentAt": "2024-04-23T12:17:06.359Z",
1366
+ @jitsu/js:test: │ "messageId": "1qpqvrf7nd0178ubhdp6si",
1367
1367
  @jitsu/js:test: │ "writeKey": null,
1368
1368
  @jitsu/js:test: │ "context": {
1369
1369
  @jitsu/js:test: │ "library": {
@@ -1416,10 +1416,10 @@
1416
1416
  @jitsu/js:test: │ "height": 720
1417
1417
  @jitsu/js:test: │ },
1418
1418
  @jitsu/js:test: │ "userId": "john-doe-id-1",
1419
- @jitsu/js:test: │ "anonymousId": "14e4711f-0327-4aca-a5cc-7181aeca4d66",
1420
- @jitsu/js:test: │ "timestamp": "2024-04-22T15:48:55.327Z",
1421
- @jitsu/js:test: │ "sentAt": "2024-04-22T15:48:55.327Z",
1422
- @jitsu/js:test: │ "messageId": "25qphnm9jqn1hp8qhzounf",
1419
+ @jitsu/js:test: │ "anonymousId": "12951774-7136-4f25-b9ab-847a57ac2862",
1420
+ @jitsu/js:test: │ "timestamp": "2024-04-23T12:17:06.360Z",
1421
+ @jitsu/js:test: │ "sentAt": "2024-04-23T12:17:06.360Z",
1422
+ @jitsu/js:test: │ "messageId": "nl8y1jlshw12ehavh22ie",
1423
1423
  @jitsu/js:test: │ "writeKey": null,
1424
1424
  @jitsu/js:test: │ "context": {
1425
1425
  @jitsu/js:test: │ "library": {
@@ -1467,10 +1467,10 @@
1467
1467
  @jitsu/js:test: │ "email": "john.doe2@gmail.com",
1468
1468
  @jitsu/js:test: │ "caseName": "basic-identify"
1469
1469
  @jitsu/js:test: │ },
1470
- @jitsu/js:test: │ "anonymousId": "14e4711f-0327-4aca-a5cc-7181aeca4d66",
1471
- @jitsu/js:test: │ "timestamp": "2024-04-22T15:48:55.341Z",
1472
- @jitsu/js:test: │ "sentAt": "2024-04-22T15:48:55.341Z",
1473
- @jitsu/js:test: │ "messageId": "1vmybskcup04uml0b0fak",
1470
+ @jitsu/js:test: │ "anonymousId": "12951774-7136-4f25-b9ab-847a57ac2862",
1471
+ @jitsu/js:test: │ "timestamp": "2024-04-23T12:17:06.375Z",
1472
+ @jitsu/js:test: │ "sentAt": "2024-04-23T12:17:06.375Z",
1473
+ @jitsu/js:test: │ "messageId": "hwsf8yr899dfsv8s7lv6",
1474
1474
  @jitsu/js:test: │ "writeKey": null,
1475
1475
  @jitsu/js:test: │ "context": {
1476
1476
  @jitsu/js:test: │ "library": {
@@ -1531,10 +1531,10 @@
1531
1531
  @jitsu/js:test: │ "caseName": "test-page-right-after-identify"
1532
1532
  @jitsu/js:test: │ },
1533
1533
  @jitsu/js:test: │ "userId": "userId2",
1534
- @jitsu/js:test: │ "anonymousId": "14e4711f-0327-4aca-a5cc-7181aeca4d66",
1535
- @jitsu/js:test: │ "timestamp": "2024-04-22T15:48:55.397Z",
1536
- @jitsu/js:test: │ "sentAt": "2024-04-22T15:48:55.397Z",
1537
- @jitsu/js:test: │ "messageId": "6duj82e7gk1lx1vpnw78y",
1534
+ @jitsu/js:test: │ "anonymousId": "12951774-7136-4f25-b9ab-847a57ac2862",
1535
+ @jitsu/js:test: │ "timestamp": "2024-04-23T12:17:06.432Z",
1536
+ @jitsu/js:test: │ "sentAt": "2024-04-23T12:17:06.432Z",
1537
+ @jitsu/js:test: │ "messageId": "1knbix2xaqi2dq8oz98022",
1538
1538
  @jitsu/js:test: │ "writeKey": null,
1539
1539
  @jitsu/js:test: │ "context": {
1540
1540
  @jitsu/js:test: │ "library": {
@@ -1595,10 +1595,10 @@
1595
1595
  @jitsu/js:test: │ "email": "john.doe3@gmail.com",
1596
1596
  @jitsu/js:test: │ "caseName": "identify-without-user-id"
1597
1597
  @jitsu/js:test: │ },
1598
- @jitsu/js:test: │ "anonymousId": "14e4711f-0327-4aca-a5cc-7181aeca4d66",
1599
- @jitsu/js:test: │ "timestamp": "2024-04-22T15:48:55.452Z",
1600
- @jitsu/js:test: │ "sentAt": "2024-04-22T15:48:55.452Z",
1601
- @jitsu/js:test: │ "messageId": "1fjrs7djiqv240k66h77r2",
1598
+ @jitsu/js:test: │ "anonymousId": "12951774-7136-4f25-b9ab-847a57ac2862",
1599
+ @jitsu/js:test: │ "timestamp": "2024-04-23T12:17:06.488Z",
1600
+ @jitsu/js:test: │ "sentAt": "2024-04-23T12:17:06.488Z",
1601
+ @jitsu/js:test: │ "messageId": "1hwmlb6wx4ww499un5haq",
1602
1602
  @jitsu/js:test: │ "writeKey": null,
1603
1603
  @jitsu/js:test: │ "context": {
1604
1604
  @jitsu/js:test: │ "library": {
@@ -1652,11 +1652,11 @@
1652
1652
  @jitsu/js:test: │ "name": "Group 1",
1653
1653
  @jitsu/js:test: │ "caseName": "basic-group"
1654
1654
  @jitsu/js:test: │ },
1655
- @jitsu/js:test: │ "anonymousId": "14e4711f-0327-4aca-a5cc-7181aeca4d66",
1655
+ @jitsu/js:test: │ "anonymousId": "12951774-7136-4f25-b9ab-847a57ac2862",
1656
1656
  @jitsu/js:test: │ "userId": "userId2",
1657
- @jitsu/js:test: │ "timestamp": "2024-04-22T15:48:55.506Z",
1658
- @jitsu/js:test: │ "sentAt": "2024-04-22T15:48:55.506Z",
1659
- @jitsu/js:test: │ "messageId": "u2g99jikfe2fgq7qbo2l2",
1657
+ @jitsu/js:test: │ "timestamp": "2024-04-23T12:17:06.542Z",
1658
+ @jitsu/js:test: │ "sentAt": "2024-04-23T12:17:06.542Z",
1659
+ @jitsu/js:test: │ "messageId": "10rxwvosl8f6f1n0llsj5",
1660
1660
  @jitsu/js:test: │ "writeKey": null,
1661
1661
  @jitsu/js:test: │ "context": {
1662
1662
  @jitsu/js:test: │ "library": {
@@ -1716,10 +1716,10 @@
1716
1716
  @jitsu/js:test: │ "caseName": "page-without-name"
1717
1717
  @jitsu/js:test: │ },
1718
1718
  @jitsu/js:test: │ "userId": "userId2",
1719
- @jitsu/js:test: │ "anonymousId": "14e4711f-0327-4aca-a5cc-7181aeca4d66",
1720
- @jitsu/js:test: │ "timestamp": "2024-04-22T15:48:55.560Z",
1721
- @jitsu/js:test: │ "sentAt": "2024-04-22T15:48:55.560Z",
1722
- @jitsu/js:test: │ "messageId": "pew7xmkrzf1ej97yndj4s",
1719
+ @jitsu/js:test: │ "anonymousId": "12951774-7136-4f25-b9ab-847a57ac2862",
1720
+ @jitsu/js:test: │ "timestamp": "2024-04-23T12:17:06.596Z",
1721
+ @jitsu/js:test: │ "sentAt": "2024-04-23T12:17:06.596Z",
1722
+ @jitsu/js:test: │ "messageId": "1urlqtbn6xx2bgespm2tc4",
1723
1723
  @jitsu/js:test: │ "writeKey": null,
1724
1724
  @jitsu/js:test: │ "groupId": "group1",
1725
1725
  @jitsu/js:test: │ "context": {
@@ -1786,10 +1786,10 @@
1786
1786
  @jitsu/js:test: │ "caseName": "page-with-name"
1787
1787
  @jitsu/js:test: │ },
1788
1788
  @jitsu/js:test: │ "userId": "userId2",
1789
- @jitsu/js:test: │ "anonymousId": "14e4711f-0327-4aca-a5cc-7181aeca4d66",
1790
- @jitsu/js:test: │ "timestamp": "2024-04-22T15:48:55.613Z",
1791
- @jitsu/js:test: │ "sentAt": "2024-04-22T15:48:55.613Z",
1792
- @jitsu/js:test: │ "messageId": "23c30ropxgb1w3ttwa7jel",
1789
+ @jitsu/js:test: │ "anonymousId": "12951774-7136-4f25-b9ab-847a57ac2862",
1790
+ @jitsu/js:test: │ "timestamp": "2024-04-23T12:17:06.650Z",
1791
+ @jitsu/js:test: │ "sentAt": "2024-04-23T12:17:06.650Z",
1792
+ @jitsu/js:test: │ "messageId": "11m98nkn0cg1ixyo86ys66",
1793
1793
  @jitsu/js:test: │ "writeKey": null,
1794
1794
  @jitsu/js:test: │ "groupId": "group1",
1795
1795
  @jitsu/js:test: │ "context": {
@@ -1849,10 +1849,10 @@
1849
1849
  @jitsu/js:test: │ "caseName": "track-with-name"
1850
1850
  @jitsu/js:test: │ },
1851
1851
  @jitsu/js:test: │ "userId": "userId2",
1852
- @jitsu/js:test: │ "anonymousId": "14e4711f-0327-4aca-a5cc-7181aeca4d66",
1853
- @jitsu/js:test: │ "timestamp": "2024-04-22T15:48:55.666Z",
1854
- @jitsu/js:test: │ "sentAt": "2024-04-22T15:48:55.666Z",
1855
- @jitsu/js:test: │ "messageId": "7ueeji0mqs120aluk2jpw",
1852
+ @jitsu/js:test: │ "anonymousId": "12951774-7136-4f25-b9ab-847a57ac2862",
1853
+ @jitsu/js:test: │ "timestamp": "2024-04-23T12:17:06.705Z",
1854
+ @jitsu/js:test: │ "sentAt": "2024-04-23T12:17:06.705Z",
1855
+ @jitsu/js:test: │ "messageId": "1uunkb7hemfe39uykwmgo",
1856
1856
  @jitsu/js:test: │ "writeKey": null,
1857
1857
  @jitsu/js:test: │ "groupId": "group1",
1858
1858
  @jitsu/js:test: │ "context": {
@@ -1917,10 +1917,10 @@
1917
1917
  @jitsu/js:test: │ "traits": {
1918
1918
  @jitsu/js:test: │ "caseName": "identify-with-numeric-id-1"
1919
1919
  @jitsu/js:test: │ },
1920
- @jitsu/js:test: │ "anonymousId": "14e4711f-0327-4aca-a5cc-7181aeca4d66",
1921
- @jitsu/js:test: │ "timestamp": "2024-04-22T15:48:55.720Z",
1922
- @jitsu/js:test: │ "sentAt": "2024-04-22T15:48:55.720Z",
1923
- @jitsu/js:test: │ "messageId": "1lowgtno1771myyr0fc314",
1920
+ @jitsu/js:test: │ "anonymousId": "12951774-7136-4f25-b9ab-847a57ac2862",
1921
+ @jitsu/js:test: │ "timestamp": "2024-04-23T12:17:06.760Z",
1922
+ @jitsu/js:test: │ "sentAt": "2024-04-23T12:17:06.760Z",
1923
+ @jitsu/js:test: │ "messageId": "1ps7e8vfepte45w8lgf44",
1924
1924
  @jitsu/js:test: │ "writeKey": null,
1925
1925
  @jitsu/js:test: │ "groupId": "group1",
1926
1926
  @jitsu/js:test: │ "context": {
@@ -1959,6 +1959,6 @@
1959
1959
  @jitsu/js:test: 
1960
1960
  @jitsu/js:test: │ Browser Console LOG
1961
1961
  @jitsu/js:test: │ Test events for jitsu has been generated
1962
- @jitsu/js:test:  ✓ 4 __tests__/playwright/integration.test.ts:247:5 › basic (1.6s)
1962
+ @jitsu/js:test:  ✓ 4 __tests__/playwright/integration.test.ts:247:5 › basic (1.7s)
1963
1963
  @jitsu/js:test: 
1964
- @jitsu/js:test:  4 passed (14.8s)
1964
+ @jitsu/js:test:  4 passed (11.7s)
package/dist/jitsu.cjs.js CHANGED
@@ -1063,14 +1063,14 @@ function restoreTraits(storage) {
1063
1063
  if (typeof val === "string") {
1064
1064
  val = safeCall(() => JSON.parse(val), {});
1065
1065
  }
1066
- if (typeof val !== "object" || val === null) {
1066
+ if (typeof val !== "object" || val === null || Array.isArray(val)) {
1067
1067
  val = {};
1068
1068
  }
1069
1069
  let groupVal = storage.getItem("__group_traits");
1070
1070
  if (typeof groupVal === "string") {
1071
1071
  groupVal = safeCall(() => JSON.parse(groupVal), {});
1072
1072
  }
1073
- if (typeof groupVal !== "object" || groupVal === null) {
1073
+ if (typeof groupVal !== "object" || groupVal === null || Array.isArray(groupVal)) {
1074
1074
  groupVal = {};
1075
1075
  }
1076
1076
  return Object.assign(Object.assign({}, (groupVal || {})), (val || {}));
@@ -1349,7 +1349,7 @@ function processDestinations(destinations, method, originalEvent, debug, analyti
1349
1349
  if (plugin) {
1350
1350
  for (const event of newEvents) {
1351
1351
  try {
1352
- promises.push(plugin.handle(Object.assign(Object.assign({}, credentials), { debug: true }), event));
1352
+ promises.push(plugin.handle(Object.assign(Object.assign({}, credentials), { debug }), event));
1353
1353
  }
1354
1354
  catch (e) {
1355
1355
  console.warn(`[JITSU] Error processing event with internal plugin '${destination.deviceOptions.name}': ${e === null || e === void 0 ? void 0 : e.message}`, e);
package/dist/jitsu.es.js CHANGED
@@ -1061,14 +1061,14 @@ function restoreTraits(storage) {
1061
1061
  if (typeof val === "string") {
1062
1062
  val = safeCall(() => JSON.parse(val), {});
1063
1063
  }
1064
- if (typeof val !== "object" || val === null) {
1064
+ if (typeof val !== "object" || val === null || Array.isArray(val)) {
1065
1065
  val = {};
1066
1066
  }
1067
1067
  let groupVal = storage.getItem("__group_traits");
1068
1068
  if (typeof groupVal === "string") {
1069
1069
  groupVal = safeCall(() => JSON.parse(groupVal), {});
1070
1070
  }
1071
- if (typeof groupVal !== "object" || groupVal === null) {
1071
+ if (typeof groupVal !== "object" || groupVal === null || Array.isArray(groupVal)) {
1072
1072
  groupVal = {};
1073
1073
  }
1074
1074
  return Object.assign(Object.assign({}, (groupVal || {})), (val || {}));
@@ -1347,7 +1347,7 @@ function processDestinations(destinations, method, originalEvent, debug, analyti
1347
1347
  if (plugin) {
1348
1348
  for (const event of newEvents) {
1349
1349
  try {
1350
- promises.push(plugin.handle(Object.assign(Object.assign({}, credentials), { debug: true }), event));
1350
+ promises.push(plugin.handle(Object.assign(Object.assign({}, credentials), { debug }), event));
1351
1351
  }
1352
1352
  catch (e) {
1353
1353
  console.warn(`[JITSU] Error processing event with internal plugin '${destination.deviceOptions.name}': ${e === null || e === void 0 ? void 0 : e.message}`, e);
package/dist/web/p.js.txt CHANGED
@@ -1064,14 +1064,14 @@
1064
1064
  if (typeof val === "string") {
1065
1065
  val = safeCall(() => JSON.parse(val), {});
1066
1066
  }
1067
- if (typeof val !== "object" || val === null) {
1067
+ if (typeof val !== "object" || val === null || Array.isArray(val)) {
1068
1068
  val = {};
1069
1069
  }
1070
1070
  let groupVal = storage.getItem("__group_traits");
1071
1071
  if (typeof groupVal === "string") {
1072
1072
  groupVal = safeCall(() => JSON.parse(groupVal), {});
1073
1073
  }
1074
- if (typeof groupVal !== "object" || groupVal === null) {
1074
+ if (typeof groupVal !== "object" || groupVal === null || Array.isArray(groupVal)) {
1075
1075
  groupVal = {};
1076
1076
  }
1077
1077
  return Object.assign(Object.assign({}, (groupVal || {})), (val || {}));
@@ -1350,7 +1350,7 @@
1350
1350
  if (plugin) {
1351
1351
  for (const event of newEvents) {
1352
1352
  try {
1353
- promises.push(plugin.handle(Object.assign(Object.assign({}, credentials), { debug: true }), event));
1353
+ promises.push(plugin.handle(Object.assign(Object.assign({}, credentials), { debug }), event));
1354
1354
  }
1355
1355
  catch (e) {
1356
1356
  console.warn(`[JITSU] Error processing event with internal plugin '${destination.deviceOptions.name}': ${e === null || e === void 0 ? void 0 : e.message}`, e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jitsu/js",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "",
5
5
  "author": "Jitsu Dev Team <dev@jitsu.com>",
6
6
  "main": "dist/jitsu.cjs.js",
@@ -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.1",
38
- "jsondiffpatch": "1.9.1"
37
+ "@jitsu/protocols": "1.9.2",
38
+ "jsondiffpatch": "1.9.2"
39
39
  },
40
40
  "dependencies": {
41
41
  "analytics": "0.8.9"
@@ -71,14 +71,14 @@ function restoreTraits(storage: PersistentStorage) {
71
71
  if (typeof val === "string") {
72
72
  val = safeCall(() => JSON.parse(val), {});
73
73
  }
74
- if (typeof val !== "object" || val === null) {
74
+ if (typeof val !== "object" || val === null || Array.isArray(val)) {
75
75
  val = {};
76
76
  }
77
77
  let groupVal = storage.getItem("__group_traits");
78
78
  if (typeof groupVal === "string") {
79
79
  groupVal = safeCall(() => JSON.parse(groupVal), {});
80
80
  }
81
- if (typeof groupVal !== "object" || groupVal === null) {
81
+ if (typeof groupVal !== "object" || groupVal === null || Array.isArray(groupVal)) {
82
82
  groupVal = {};
83
83
  }
84
84
  return {
@@ -426,7 +426,7 @@ async function processDestinations(
426
426
  if (plugin) {
427
427
  for (const event of newEvents) {
428
428
  try {
429
- promises.push(plugin.handle({ ...credentials, debug: true }, event));
429
+ promises.push(plugin.handle({ ...credentials, debug }, event));
430
430
  } catch (e) {
431
431
  console.warn(
432
432
  `[JITSU] Error processing event with internal plugin '${destination.deviceOptions.name}': ${e?.message}`,