@jitsu/js 1.1.0-canary.205 → 1.1.0-canary.211.20230220172137
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/dist/index.d.ts +7 -0
- package/dist/jitsu.cjs.js +8 -0
- package/dist/jitsu.es.js +8 -1
- package/package.json +3 -3
- package/src/index.ts +8 -0
- package/.turbo/turbo-build.log +0 -65
- package/.turbo/turbo-clean.log +0 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { AnalyticsInterface, JitsuOptions } from "./jitsu";
|
|
2
2
|
export default function parse(input: any): any;
|
|
3
|
+
export declare const emptyAnalytics: {
|
|
4
|
+
track: () => Promise<void>;
|
|
5
|
+
page: () => Promise<void>;
|
|
6
|
+
user: () => {};
|
|
7
|
+
identify: () => Promise<{}>;
|
|
8
|
+
reset: () => Promise<{}>;
|
|
9
|
+
};
|
|
3
10
|
export declare function jitsuAnalytics(opts: JitsuOptions): AnalyticsInterface;
|
|
4
11
|
export * from "./jitsu";
|
|
5
12
|
export * from "./analytics-plugin";
|
package/dist/jitsu.cjs.js
CHANGED
|
@@ -664,6 +664,13 @@ function parse(input) {
|
|
|
664
664
|
}
|
|
665
665
|
return value;
|
|
666
666
|
}
|
|
667
|
+
const emptyAnalytics = {
|
|
668
|
+
track: () => Promise.resolve(),
|
|
669
|
+
page: () => Promise.resolve(),
|
|
670
|
+
user: () => ({}),
|
|
671
|
+
identify: () => Promise.resolve({}),
|
|
672
|
+
reset: () => Promise.resolve({}),
|
|
673
|
+
};
|
|
667
674
|
function createUnderlyingAnalyticsInstance(opts, rt, plugins = []) {
|
|
668
675
|
const analytics = analyticsLib({
|
|
669
676
|
app: "test",
|
|
@@ -710,6 +717,7 @@ function jitsuAnalytics(opts) {
|
|
|
710
717
|
// }
|
|
711
718
|
}
|
|
712
719
|
|
|
720
|
+
exports.emptyAnalytics = emptyAnalytics;
|
|
713
721
|
exports.emptyRuntime = emptyRuntime;
|
|
714
722
|
exports.getTopLevelDomain = getTopLevelDomain;
|
|
715
723
|
exports.isInBrowser = isInBrowser;
|
package/dist/jitsu.es.js
CHANGED
|
@@ -662,6 +662,13 @@ function parse(input) {
|
|
|
662
662
|
}
|
|
663
663
|
return value;
|
|
664
664
|
}
|
|
665
|
+
const emptyAnalytics = {
|
|
666
|
+
track: () => Promise.resolve(),
|
|
667
|
+
page: () => Promise.resolve(),
|
|
668
|
+
user: () => ({}),
|
|
669
|
+
identify: () => Promise.resolve({}),
|
|
670
|
+
reset: () => Promise.resolve({}),
|
|
671
|
+
};
|
|
665
672
|
function createUnderlyingAnalyticsInstance(opts, rt, plugins = []) {
|
|
666
673
|
const analytics = analyticsLib({
|
|
667
674
|
app: "test",
|
|
@@ -708,4 +715,4 @@ function jitsuAnalytics(opts) {
|
|
|
708
715
|
// }
|
|
709
716
|
}
|
|
710
717
|
|
|
711
|
-
export { emptyRuntime, getTopLevelDomain, isInBrowser, jitsuAnalytics, parseQuery, randomId, windowRuntime };
|
|
718
|
+
export { emptyAnalytics, emptyRuntime, getTopLevelDomain, isInBrowser, jitsuAnalytics, parseQuery, randomId, windowRuntime };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jitsu/js",
|
|
3
|
-
"version": "1.1.0-canary.
|
|
3
|
+
"version": "1.1.0-canary.211.20230220172137",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Jitsu Dev Team <dev@jitsu.com>",
|
|
6
6
|
"main": "dist/jitsu.cjs.js",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"node-forge": "^1.3.1",
|
|
33
33
|
"raw-loader": "^4.0.2",
|
|
34
34
|
"rollup": "^3.2.5",
|
|
35
|
-
"ts-jest": "^29.0.3"
|
|
35
|
+
"ts-jest": "^29.0.3",
|
|
36
|
+
"@jitsu/protocols": "1.1.0-canary.211.20230220172137"
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
|
-
"@jitsu/protocols": "1.1.0-canary.205",
|
|
39
39
|
"analytics": "^0.8.1"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
package/src/index.ts
CHANGED
|
@@ -24,6 +24,14 @@ export default function parse(input) {
|
|
|
24
24
|
return value;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
export const emptyAnalytics = {
|
|
28
|
+
track: () => Promise.resolve(),
|
|
29
|
+
page: () => Promise.resolve(),
|
|
30
|
+
user: () => ({}),
|
|
31
|
+
identify: () => Promise.resolve({}),
|
|
32
|
+
reset: () => Promise.resolve({}),
|
|
33
|
+
};
|
|
34
|
+
|
|
27
35
|
function createUnderlyingAnalyticsInstance(
|
|
28
36
|
opts: JitsuOptions,
|
|
29
37
|
rt: RuntimeFacade,
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
@jitsu/js:build: cache hit, replaying output [2mf3b801c8a9ae72dd[0m
|
|
2
|
-
[36m@jitsu/js:build: [0m
|
|
3
|
-
[36m@jitsu/js:build: [0m> @jitsu/js@0.0.0 build /Users/vklmn/dev2/onetag/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/guide/en/#error-this-is-undefined[39m
|
|
10
|
-
[36m@jitsu/js:build: [0m[1mcompiled/src/analytics-plugin.js[22m
|
|
11
|
-
[36m@jitsu/js:build: [0m[90m1: /* global analytics */
|
|
12
|
-
[36m@jitsu/js:build: [0m2: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
-
[36m@jitsu/js:build: [0m ^
|
|
14
|
-
[36m@jitsu/js:build: [0m3: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
-
[36m@jitsu/js:build: [0m4: return new (P || (P = Promise))(function (resolve, reject) {[39m
|
|
16
|
-
[36m@jitsu/js:build: [0m...and 1 other occurrence
|
|
17
|
-
[36m@jitsu/js:build: [0m[1mcompiled/src/destination-plugins.js[22m
|
|
18
|
-
[36m@jitsu/js:build: [0m[90m1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
19
|
-
[36m@jitsu/js:build: [0m ^
|
|
20
|
-
[36m@jitsu/js:build: [0m2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
|
-
[36m@jitsu/js:build: [0m3: 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[1m[33m(!) Circular dependencies[39m[22m
|
|
24
|
-
[36m@jitsu/js:build: [0mcompiled/src/index.js -> compiled/src/analytics-plugin.js -> compiled/src/index.js
|
|
25
|
-
[36m@jitsu/js:build: [0mcompiled/src/analytics-plugin.js -> compiled/src/destination-plugins.js -> compiled/src/analytics-plugin.js
|
|
26
|
-
[36m@jitsu/js:build: [0m[1m[33m(!) Use of eval is strongly discouraged[39m[22m
|
|
27
|
-
[36m@jitsu/js:build: [0m[90mhttps://rollupjs.org/guide/en/#avoiding-eval[39m
|
|
28
|
-
[36m@jitsu/js:build: [0m[1mcompiled/src/destination-plugins.js[22m
|
|
29
|
-
[36m@jitsu/js:build: [0m[90m75: })()`;
|
|
30
|
-
[36m@jitsu/js:build: [0m76: try {
|
|
31
|
-
[36m@jitsu/js:build: [0m77: eval(iif);
|
|
32
|
-
[36m@jitsu/js:build: [0m ^
|
|
33
|
-
[36m@jitsu/js:build: [0m78: }
|
|
34
|
-
[36m@jitsu/js:build: [0m79: catch (e) {[39m
|
|
35
|
-
[36m@jitsu/js:build: [0m[32mcreated [1mdist/web/p.js.txt[22m in [1m280ms[22m[39m
|
|
36
|
-
[36m@jitsu/js:build: [0m[36m
|
|
37
|
-
[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
|
|
38
|
-
[36m@jitsu/js:build: [0m[1m[33m(!) "this" has been rewritten to "undefined"[39m[22m
|
|
39
|
-
[36m@jitsu/js:build: [0m[90mhttps://rollupjs.org/guide/en/#error-this-is-undefined[39m
|
|
40
|
-
[36m@jitsu/js:build: [0m[1mcompiled/src/analytics-plugin.js[22m
|
|
41
|
-
[36m@jitsu/js:build: [0m[90m1: /* global analytics */
|
|
42
|
-
[36m@jitsu/js:build: [0m2: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
43
|
-
[36m@jitsu/js:build: [0m ^
|
|
44
|
-
[36m@jitsu/js:build: [0m3: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
45
|
-
[36m@jitsu/js:build: [0m4: 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/destination-plugins.js[22m
|
|
48
|
-
[36m@jitsu/js:build: [0m[90m1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
49
|
-
[36m@jitsu/js:build: [0m ^
|
|
50
|
-
[36m@jitsu/js:build: [0m2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
51
|
-
[36m@jitsu/js:build: [0m3: return new (P || (P = Promise))(function (resolve, reject) {[39m
|
|
52
|
-
[36m@jitsu/js:build: [0m...and 1 other occurrence
|
|
53
|
-
[36m@jitsu/js:build: [0m[1m[33m(!) Circular dependencies[39m[22m
|
|
54
|
-
[36m@jitsu/js:build: [0mcompiled/src/index.js -> compiled/src/analytics-plugin.js -> compiled/src/index.js
|
|
55
|
-
[36m@jitsu/js:build: [0mcompiled/src/analytics-plugin.js -> compiled/src/destination-plugins.js -> compiled/src/analytics-plugin.js
|
|
56
|
-
[36m@jitsu/js:build: [0m[1m[33m(!) Use of eval is strongly discouraged[39m[22m
|
|
57
|
-
[36m@jitsu/js:build: [0m[90mhttps://rollupjs.org/guide/en/#avoiding-eval[39m
|
|
58
|
-
[36m@jitsu/js:build: [0m[1mcompiled/src/destination-plugins.js[22m
|
|
59
|
-
[36m@jitsu/js:build: [0m[90m75: })()`;
|
|
60
|
-
[36m@jitsu/js:build: [0m76: try {
|
|
61
|
-
[36m@jitsu/js:build: [0m77: eval(iif);
|
|
62
|
-
[36m@jitsu/js:build: [0m ^
|
|
63
|
-
[36m@jitsu/js:build: [0m78: }
|
|
64
|
-
[36m@jitsu/js:build: [0m79: catch (e) {[39m
|
|
65
|
-
[36m@jitsu/js:build: [0m[32mcreated [1mdist/jitsu.es.js, dist/jitsu.cjs.js[22m in [1m150ms[22m[39m
|
package/.turbo/turbo-clean.log
DELETED