@jitsu/js 1.3.2 → 1.6.1

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,95 +1,105 @@
1
- @jitsu/js:build: cache hit, replaying output 64fc282b0923aab8
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/analytics-plugin.js
11
- @jitsu/js:build: 1: /* global analytics */
12
- @jitsu/js:build: 2: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
- @jitsu/js:build:  ^
14
- @jitsu/js:build: 3: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
- @jitsu/js:build: 4: return new (P || (P = Promise))(function (resolve, reject) {
16
- @jitsu/js:build: ...and 1 other occurrence
17
- @jitsu/js:build: compiled/src/destination-plugins/tag.js
18
- @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
19
- @jitsu/js:build:  ^
20
- @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
21
- @jitsu/js:build: 3: 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: compiled/src/destination-plugins/gtm.js
30
- @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
- @jitsu/js:build:  ^
32
- @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
33
- @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
34
- @jitsu/js:build: ...and 1 other occurrence
35
- @jitsu/js:build: (!) Circular dependencies
36
- @jitsu/js:build: compiled/src/index.js -> compiled/src/analytics-plugin.js -> compiled/src/index.js
37
- @jitsu/js:build: compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/tag.js -> compiled/src/destination-plugins/index.js
38
- @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
39
- @jitsu/js:build: compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/logrocket.js -> compiled/src/destination-plugins/index.js
40
- @jitsu/js:build: compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/gtm.js -> compiled/src/destination-plugins/index.js
41
- @jitsu/js:build: (!) Use of eval is strongly discouraged
42
- @jitsu/js:build: https://rollupjs.org/troubleshooting/#avoiding-eval
43
- @jitsu/js:build: compiled/src/destination-plugins/tag.js
44
- @jitsu/js:build: 68: })()`;
45
- @jitsu/js:build: 69: try {
46
- @jitsu/js:build: 70: eval(iif);
47
- @jitsu/js:build:  ^
48
- @jitsu/js:build: 71: }
49
- @jitsu/js:build: 72: catch (e) {
50
- @jitsu/js:build: created dist/web/p.js.txt in 659ms
51
- @jitsu/js:build: 
52
- @jitsu/js:build: ./compiled/src/index.js, ./compiled/src/jitsu.js, ./compiled/src/analytics-plugin.js → dist/jitsu.es.js, dist/jitsu.cjs.js...
53
- @jitsu/js:build: (!) "this" has been rewritten to "undefined"
54
- @jitsu/js:build: https://rollupjs.org/troubleshooting/#error-this-is-undefined
55
- @jitsu/js:build: compiled/src/analytics-plugin.js
56
- @jitsu/js:build: 1: /* global analytics */
57
- @jitsu/js:build: 2: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
58
- @jitsu/js:build:  ^
59
- @jitsu/js:build: 3: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
60
- @jitsu/js:build: 4: return new (P || (P = Promise))(function (resolve, reject) {
61
- @jitsu/js:build: ...and 1 other occurrence
62
- @jitsu/js:build: compiled/src/destination-plugins/tag.js
63
- @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
64
- @jitsu/js:build:  ^
65
- @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
66
- @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
67
- @jitsu/js:build: ...and 1 other occurrence
68
- @jitsu/js:build: compiled/src/destination-plugins/logrocket.js
69
- @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
70
- @jitsu/js:build:  ^
71
- @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
72
- @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
73
- @jitsu/js:build: ...and 1 other occurrence
74
- @jitsu/js:build: compiled/src/destination-plugins/gtm.js
75
- @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
76
- @jitsu/js:build:  ^
77
- @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
78
- @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
79
- @jitsu/js:build: ...and 1 other occurrence
80
- @jitsu/js:build: (!) Circular dependencies
81
- @jitsu/js:build: compiled/src/index.js -> compiled/src/analytics-plugin.js -> compiled/src/index.js
82
- @jitsu/js:build: compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/tag.js -> compiled/src/destination-plugins/index.js
83
- @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
84
- @jitsu/js:build: compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/logrocket.js -> compiled/src/destination-plugins/index.js
85
- @jitsu/js:build: compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/gtm.js -> compiled/src/destination-plugins/index.js
86
- @jitsu/js:build: (!) Use of eval is strongly discouraged
87
- @jitsu/js:build: https://rollupjs.org/troubleshooting/#avoiding-eval
88
- @jitsu/js:build: compiled/src/destination-plugins/tag.js
89
- @jitsu/js:build: 68: })()`;
90
- @jitsu/js:build: 69: try {
91
- @jitsu/js:build: 70: eval(iif);
92
- @jitsu/js:build:  ^
93
- @jitsu/js:build: 71: }
94
- @jitsu/js:build: 72: catch (e) {
95
- @jitsu/js:build: created dist/jitsu.es.js, dist/jitsu.cjs.js in 192ms
1
+ @jitsu/js:build: cache hit, replaying output c3f20c137ae4b178
2
+ @jitsu/js:build: 
3
+ @jitsu/js:build: > @jitsu/js@0.0.0 build /Users/vklmn/dev2/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/analytics-plugin.js
11
+ @jitsu/js:build: 1: /* global analytics */
12
+ @jitsu/js:build: 2: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ @jitsu/js:build:  ^
14
+ @jitsu/js:build: 3: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
+ @jitsu/js:build: 4: return new (P || (P = Promise))(function (resolve, reject) {
16
+ @jitsu/js:build: ...and 1 other occurrence
17
+ @jitsu/js:build: compiled/src/destination-plugins/logrocket.js
18
+ @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
19
+ @jitsu/js:build:  ^
20
+ @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
21
+ @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
22
+ @jitsu/js:build: ...and 1 other occurrence
23
+ @jitsu/js:build: compiled/src/destination-plugins/tag.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: compiled/src/destination-plugins/ga4.js
30
+ @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ @jitsu/js:build:  ^
32
+ @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
33
+ @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
34
+ @jitsu/js:build: ...and 1 other occurrence
35
+ @jitsu/js:build: compiled/src/destination-plugins/gtm.js
36
+ @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ @jitsu/js:build:  ^
38
+ @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
39
+ @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
40
+ @jitsu/js:build: ...and 1 other occurrence
41
+ @jitsu/js:build: (!) Circular dependencies
42
+ @jitsu/js:build: compiled/src/index.js -> compiled/src/analytics-plugin.js -> compiled/src/index.js
43
+ @jitsu/js:build: compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/tag.js -> compiled/src/destination-plugins/index.js
44
+ @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
45
+ @jitsu/js:build: ...and 3 more
46
+ @jitsu/js:build: (!) Use of eval is strongly discouraged
47
+ @jitsu/js:build: https://rollupjs.org/troubleshooting/#avoiding-eval
48
+ @jitsu/js:build: compiled/src/destination-plugins/tag.js
49
+ @jitsu/js:build: 68: })()`;
50
+ @jitsu/js:build: 69: try {
51
+ @jitsu/js:build: 70: eval(iif);
52
+ @jitsu/js:build:  ^
53
+ @jitsu/js:build: 71: }
54
+ @jitsu/js:build: 72: catch (e) {
55
+ @jitsu/js:build: created dist/web/p.js.txt in 434ms
56
+ @jitsu/js:build: 
57
+ @jitsu/js:build: ./compiled/src/index.js, ./compiled/src/jitsu.js, ./compiled/src/analytics-plugin.js dist/jitsu.es.js, dist/jitsu.cjs.js...
58
+ @jitsu/js:build: (!) "this" has been rewritten to "undefined"
59
+ @jitsu/js:build: https://rollupjs.org/troubleshooting/#error-this-is-undefined
60
+ @jitsu/js:build: compiled/src/analytics-plugin.js
61
+ @jitsu/js:build: 1: /* global analytics */
62
+ @jitsu/js:build: 2: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
63
+ @jitsu/js:build:  ^
64
+ @jitsu/js:build: 3: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
65
+ @jitsu/js:build: 4: return new (P || (P = Promise))(function (resolve, reject) {
66
+ @jitsu/js:build: ...and 1 other occurrence
67
+ @jitsu/js:build: compiled/src/destination-plugins/gtm.js
68
+ @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
69
+ @jitsu/js:build:  ^
70
+ @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
71
+ @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
72
+ @jitsu/js:build: ...and 1 other occurrence
73
+ @jitsu/js:build: compiled/src/destination-plugins/ga4.js
74
+ @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
75
+ @jitsu/js:build:  ^
76
+ @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
77
+ @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
78
+ @jitsu/js:build: ...and 1 other occurrence
79
+ @jitsu/js:build: compiled/src/destination-plugins/tag.js
80
+ @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
81
+ @jitsu/js:build:  ^
82
+ @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
83
+ @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
84
+ @jitsu/js:build: ...and 1 other occurrence
85
+ @jitsu/js:build: compiled/src/destination-plugins/logrocket.js
86
+ @jitsu/js:build: 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
87
+ @jitsu/js:build:  ^
88
+ @jitsu/js:build: 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
89
+ @jitsu/js:build: 3: return new (P || (P = Promise))(function (resolve, reject) {
90
+ @jitsu/js:build: ...and 1 other occurrence
91
+ @jitsu/js:build: (!) Circular dependencies
92
+ @jitsu/js:build: compiled/src/index.js -> compiled/src/analytics-plugin.js -> compiled/src/index.js
93
+ @jitsu/js:build: compiled/src/destination-plugins/index.js -> compiled/src/destination-plugins/tag.js -> compiled/src/destination-plugins/index.js
94
+ @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
95
+ @jitsu/js:build: ...and 3 more
96
+ @jitsu/js:build: (!) Use of eval is strongly discouraged
97
+ @jitsu/js:build: https://rollupjs.org/troubleshooting/#avoiding-eval
98
+ @jitsu/js:build: compiled/src/destination-plugins/tag.js
99
+ @jitsu/js:build: 68: })()`;
100
+ @jitsu/js:build: 69: try {
101
+ @jitsu/js:build: 70: eval(iif);
102
+ @jitsu/js:build:  ^
103
+ @jitsu/js:build: 71: }
104
+ @jitsu/js:build: 72: catch (e) {
105
+ @jitsu/js:build: created dist/jitsu.es.js, dist/jitsu.cjs.js in 126ms
@@ -1,5 +1,5 @@
1
- @jitsu/js:clean: cache hit, replaying output 46a3acf44fce768a
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 01f8d33de867ec80
2
+ @jitsu/js:clean: 
3
+ @jitsu/js:clean: > @jitsu/js@0.0.0 clean /Users/vklmn/dev2/newjitsu/libs/jitsu-js
4
+ @jitsu/js:clean: > rm -rf ./dist
5
+ @jitsu/js:clean: 
@@ -0,0 +1,126 @@
1
+ @jitsu/js:test: cache hit, replaying output f6f1c53af2069a68
2
+ @jitsu/js:test: 
3
+ @jitsu/js:test: > @jitsu/js@0.0.0 test /Users/vklmn/dev2/newjitsu/libs/jitsu-js
4
+ @jitsu/js:test: > pnpm run test:node && pnpm run test:playwright
5
+ @jitsu/js:test: 
6
+ @jitsu/js:test: 
7
+ @jitsu/js:test: > @jitsu/js@0.0.0 test:node /Users/vklmn/dev2/newjitsu/libs/jitsu-js
8
+ @jitsu/js:test: > jest
9
+ @jitsu/js:test: 
10
+ @jitsu/js:test: watchman warning: Recrawled this watch 1 times, most recently because:
11
+ @jitsu/js:test: MustScanSubDirs UserDroppedTo resolve, please review the information on
12
+ @jitsu/js:test: https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
13
+ @jitsu/js:test: To clear this warning, run:
14
+ @jitsu/js:test: `watchman watch-del '/Users/vklmn/dev2/newjitsu' ; watchman watch-project '/Users/vklmn/dev2/newjitsu'`
15
+ @jitsu/js:test: 
16
+ @jitsu/js:test: ts-jest[ts-jest-transformer] (WARN) Define `ts-jest` config under `globals` is deprecated. Please do
17
+ @jitsu/js:test: transform: {
18
+ @jitsu/js:test:  <transform_regex>: ['ts-jest', { /* ts-jest config goes here in Jest */ }],
19
+ @jitsu/js:test: },
20
+ @jitsu/js:test: ts-jest[ts-jest-transformer] (WARN) Define `ts-jest` config under `globals` is deprecated. Please do
21
+ @jitsu/js:test: transform: {
22
+ @jitsu/js:test:  <transform_regex>: ['ts-jest', { /* ts-jest config goes here in Jest */ }],
23
+ @jitsu/js:test: },
24
+ @jitsu/js:test: ts-jest[backports] (WARN) "[jest-config].globals.ts-jest.tsConfig" is deprecated, use "[jest-config].globals.ts-jest.tsconfig" instead.
25
+ @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>.
26
+ @jitsu/js:test: ts-jest[backports] (WARN) "[jest-config].globals.ts-jest.tsConfig" is deprecated, use "[jest-config].globals.ts-jest.tsconfig" instead.
27
+ @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>.
28
+ @jitsu/js:test: PASS __tests__/node/method-queue.test.ts
29
+ @jitsu/js:test: FAIL __tests__/node/nodejs.test.ts (6.06 s)
30
+ @jitsu/js:test:  ● Console
31
+ @jitsu/js:test: 
32
+ @jitsu/js:test:  console.log
33
+ @jitsu/js:test:  Running on http://localhost:3088
34
+ @jitsu/js:test: 
35
+ @jitsu/js:test:  at nodejs.test.ts:28:13
36
+ @jitsu/js:test: 
37
+ @jitsu/js:test:  console.log
38
+ @jitsu/js:test:  [JITSU EMPTY RUNTIME] Get storage item __user_id=undefined
39
+ @jitsu/js:test: 
40
+ @jitsu/js:test:  at Object.getItem (../../dist/jitsu.cjs.js:605:29)
41
+ @jitsu/js:test: 
42
+ @jitsu/js:test:  console.log
43
+ @jitsu/js:test:  [JITSU EMPTY RUNTIME] Get storage item __anon_id=undefined
44
+ @jitsu/js:test: 
45
+ @jitsu/js:test:  at Object.getItem (../../dist/jitsu.cjs.js:605:29)
46
+ @jitsu/js:test: 
47
+ @jitsu/js:test:  console.log
48
+ @jitsu/js:test:  [JITSU EMPTY RUNTIME] Get storage item __user_traits=undefined
49
+ @jitsu/js:test: 
50
+ @jitsu/js:test:  at Object.getItem (../../dist/jitsu.cjs.js:605:29)
51
+ @jitsu/js:test: 
52
+ @jitsu/js:test:  console.log
53
+ @jitsu/js:test:  [JITSU EMPTY RUNTIME] Get storage item __user_id=undefined
54
+ @jitsu/js:test: 
55
+ @jitsu/js:test:  at Object.getItem (../../dist/jitsu.cjs.js:605:29)
56
+ @jitsu/js:test: 
57
+ @jitsu/js:test:  console.log
58
+ @jitsu/js:test:  [JITSU EMPTY RUNTIME] Get storage item __anon_id=undefined
59
+ @jitsu/js:test: 
60
+ @jitsu/js:test:  at Object.getItem (../../dist/jitsu.cjs.js:605:29)
61
+ @jitsu/js:test: 
62
+ @jitsu/js:test:  console.log
63
+ @jitsu/js:test:  [JITSU EMPTY RUNTIME] Get storage item __user_traits=undefined
64
+ @jitsu/js:test: 
65
+ @jitsu/js:test:  at Object.getItem (../../dist/jitsu.cjs.js:605:29)
66
+ @jitsu/js:test: 
67
+ @jitsu/js:test:  console.log
68
+ @jitsu/js:test:  [JITSU EMPTY RUNTIME] Set storage item __anon_id="e045c540-4f1f-49ee-b96f-ef07c8c0d981"
69
+ @jitsu/js:test: 
70
+ @jitsu/js:test:  at Object.setItem (../../dist/jitsu.cjs.js:598:29)
71
+ @jitsu/js:test: 
72
+ @jitsu/js:test:  console.debug
73
+ @jitsu/js:test:  [JITSU] Initializing Jitsu plugin with config: {"writeKey":"key:secret","host":"http://localhost:3088","debug":true,"echoEvents":false}
74
+ @jitsu/js:test: 
75
+ @jitsu/js:test:  at Object.initialize (../../dist/jitsu.cjs.js:849:25)
76
+ @jitsu/js:test: 
77
+ @jitsu/js:test:  console.log
78
+ @jitsu/js:test:  [JITSU EMPTY RUNTIME] Get storage item __user_traits=undefined
79
+ @jitsu/js:test: 
80
+ @jitsu/js:test:  at Object.getItem (../../dist/jitsu.cjs.js:605:29)
81
+ @jitsu/js:test: 
82
+ @jitsu/js:test:  ● Test Jitsu NodeJS client › node js
83
+ @jitsu/js:test: 
84
+ @jitsu/js:test:  The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
85
+ @jitsu/js:test:  Consider using the "jsdom" test environment.
86
+ @jitsu/js:test: 
87
+ @jitsu/js:test:  ReferenceError: document is not defined
88
+ @jitsu/js:test: 
89
+ @jitsu/js:test:  496 | }
90
+ @jitsu/js:test:  497 | function getCookie(name) {
91
+ @jitsu/js:test:  > 498 | const value = `; ${document.cookie}`;
92
+ @jitsu/js:test:  | ^
93
+ @jitsu/js:test:  499 | const parts = value.split(`; ${name}=`);
94
+ @jitsu/js:test:  500 | return parts.length === 2 ? parts.pop().split(";").shift() : undefined;
95
+ @jitsu/js:test:  501 | }
96
+ @jitsu/js:test: 
97
+ @jitsu/js:test:  at getCookie (../../dist/jitsu.cjs.js:498:24)
98
+ @jitsu/js:test:  at adjustPayload (../../dist/jitsu.cjs.js:681:18)
99
+ @jitsu/js:test:  at send (../../dist/jitsu.cjs.js:785:29)
100
+ @jitsu/js:test:  at Object.track (../../dist/jitsu.cjs.js:862:20)
101
+ @jitsu/js:test:  at ../../dist/jitsu.cjs.js:11:7761
102
+ @jitsu/js:test: 
103
+ @jitsu/js:test:  ● Test Jitsu NodeJS client › node js
104
+ @jitsu/js:test: 
105
+ @jitsu/js:test:  thrown: "Exceeded timeout of 5000 ms for a test.
106
+ @jitsu/js:test:  Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
107
+ @jitsu/js:test: 
108
+ @jitsu/js:test:  33 | };
109
+ @jitsu/js:test:  34 |
110
+ @jitsu/js:test:  > 35 | test("node js", async () => {
111
+ @jitsu/js:test:  | ^
112
+ @jitsu/js:test:  36 | await startServer();
113
+ @jitsu/js:test:  37 | try {
114
+ @jitsu/js:test:  38 | const jitsu: AnalyticsInterface = jitsuAnalytics({
115
+ @jitsu/js:test: 
116
+ @jitsu/js:test:  at nodejs.test.ts:35:3
117
+ @jitsu/js:test:  at Object.<anonymous> (nodejs.test.ts:8:1)
118
+ @jitsu/js:test: 
119
+ @jitsu/js:test: A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active timers can also cause this, ensure that .unref() was called on them.
120
+ @jitsu/js:test: Test Suites: 1 failed, 1 passed, 2 total
121
+ @jitsu/js:test: Tests: 1 failed, 3 passed, 4 total
122
+ @jitsu/js:test: Snapshots: 0 total
123
+ @jitsu/js:test: Time: 6.792 s
124
+ @jitsu/js:test: Ran all test suites.
125
+ @jitsu/js:test:  ELIFECYCLE  Command failed with exit code 1.
126
+ @jitsu/js:test:  ELIFECYCLE  Test failed. See above for more details.
package/README.md ADDED
@@ -0,0 +1,9 @@
1
+ ## Install
2
+
3
+ ```bash
4
+ npm install --save @jitsu/jitsu-react
5
+ ```
6
+
7
+ ## Usage
8
+
9
+ **Please read a documentation on [Jitsu Docs](https://docs.jitsu.com/sending-data/npm)**
@@ -10,6 +10,7 @@ export type DestinationDescriptor = {
10
10
  destinationType: string;
11
11
  credentials: any;
12
12
  options: any;
13
+ newEvents?: any[];
13
14
  deviceOptions: DeviceOptions;
14
15
  };
15
16
  export type AnalyticsPluginDescriptor = {
package/dist/index.d.ts CHANGED
@@ -11,4 +11,5 @@ export declare const emptyAnalytics: {
11
11
  export declare function jitsuAnalytics(opts: JitsuOptions): AnalyticsInterface;
12
12
  export * from "./jitsu";
13
13
  export * from "./analytics-plugin";
14
+ export { applyFilters } from "./destination-plugins";
14
15
  export { getTopLevelDomain } from "./tlds";