@jitsu/js 0.0.1-alpha.120 → 0.0.1-alpha.122
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/__tests__/node/nodejs.test.ts +1 -1
- package/__tests__/playwright/integration.test.ts +1 -1
- package/dist/jitsu.d.ts +6 -4
- package/package.json +4 -4
- package/src/analytics-plugin.ts +1 -1
- package/src/index.ts +1 -1
- package/src/jitsu.d.ts +6 -4
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 [2m4195d34999fb1a4a[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 [1m247ms[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 [1m142ms[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 [2maea50bc0e75b3672[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
|
|
@@ -2,7 +2,7 @@ import fs from "fs";
|
|
|
2
2
|
import path from "path";
|
|
3
3
|
import { createServer, SimpleSyrup } from "../simple-syrup";
|
|
4
4
|
import process from "process";
|
|
5
|
-
import { AnalyticsClientEvent, AnalyticsInterface } from "@jitsu/
|
|
5
|
+
import { AnalyticsClientEvent, AnalyticsInterface } from "@jitsu/protocols/analytics";
|
|
6
6
|
|
|
7
7
|
const jitsuAnalytics = require("../../dist/jitsu.cjs.js").jitsuAnalytics;
|
|
8
8
|
const fetchImpl = require("node-fetch-commonjs");
|
|
@@ -6,7 +6,7 @@ import ejs from "ejs";
|
|
|
6
6
|
import chalk from "chalk";
|
|
7
7
|
import * as process from "process";
|
|
8
8
|
import * as console from "console";
|
|
9
|
-
import { AnalyticsClientEvent, AnalyticsInterface } from "@jitsu/
|
|
9
|
+
import { AnalyticsClientEvent, AnalyticsInterface } from "@jitsu/protocols/analytics.d";
|
|
10
10
|
import type { AnalyticsCore } from "@segment/analytics-next/src/core/analytics/interfaces";
|
|
11
11
|
import { response } from "express";
|
|
12
12
|
|
package/dist/jitsu.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AnalyticsInterface } from "@jitsu/
|
|
1
|
+
import { AnalyticsInterface } from "@jitsu/protocols/analytics";
|
|
2
2
|
import type { AnalyticsPlugin } from "analytics";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
type JitsuOptions = {
|
|
5
5
|
/**
|
|
6
6
|
* API Key. Optional. If not set, Jitsu will send event to the server without auth, and server
|
|
7
7
|
* will link the call to configured source by domain name
|
|
@@ -23,7 +23,7 @@ type PersistentStorage = {
|
|
|
23
23
|
removeItem: (key: string, options?: any) => void;
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
type RuntimeFacade = {
|
|
27
27
|
store(): PersistentStorage;
|
|
28
28
|
userAgent(): string | undefined;
|
|
29
29
|
language(): string | undefined;
|
|
@@ -43,6 +43,8 @@ export type RuntimeFacade = {
|
|
|
43
43
|
pageTitle(): string | undefined;
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
declare function jitsuAnalytics(opts: JitsuOptions): AnalyticsInterface;
|
|
47
47
|
|
|
48
48
|
declare const jitsuAnalyticsPlugin: AnalyticsPlugin;
|
|
49
|
+
|
|
50
|
+
export { AnalyticsInterface, JitsuOptions, PersistentStorage, RuntimeFacade, jitsuAnalytics, jitsuAnalyticsPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jitsu/js",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.122",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Jitsu Dev Team <dev@jitsu.com>",
|
|
6
6
|
"main": "dist/jitsu.cjs.js",
|
|
@@ -32,11 +32,11 @@
|
|
|
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": "0.0.1-alpha.122"
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
|
-
"analytics": "^0.8.1"
|
|
39
|
-
"@jitsu/analytics-types": "0.0.1-alpha.120"
|
|
39
|
+
"analytics": "^0.8.1"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"clean": "rm -rf ./dist",
|
package/src/analytics-plugin.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* global analytics */
|
|
2
2
|
|
|
3
3
|
import { JitsuOptions, PersistentStorage, RuntimeFacade } from "./jitsu";
|
|
4
|
-
import { AnalyticsClientEvent } from "@jitsu/
|
|
4
|
+
import { AnalyticsClientEvent } from "@jitsu/protocols/analytics";
|
|
5
5
|
import parse from "./index";
|
|
6
6
|
import { AnalyticsPlugin } from "analytics";
|
|
7
7
|
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnalyticsInterface } from "@jitsu/
|
|
1
|
+
import { AnalyticsInterface } from "@jitsu/protocols/analytics.d";
|
|
2
2
|
import Analytics from "analytics";
|
|
3
3
|
import { JitsuOptions, PersistentStorage } from "./jitsu";
|
|
4
4
|
import jitsuAnalyticsPlugin, { emptyRuntime, windowRuntime } from "./analytics-plugin";
|
package/src/jitsu.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AnalyticsInterface } from "@jitsu/
|
|
1
|
+
import { AnalyticsInterface } from "@jitsu/protocols/analytics";
|
|
2
2
|
import type { AnalyticsPlugin } from "analytics";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
type JitsuOptions = {
|
|
5
5
|
/**
|
|
6
6
|
* API Key. Optional. If not set, Jitsu will send event to the server without auth, and server
|
|
7
7
|
* will link the call to configured source by domain name
|
|
@@ -23,7 +23,7 @@ type PersistentStorage = {
|
|
|
23
23
|
removeItem: (key: string, options?: any) => void;
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
type RuntimeFacade = {
|
|
27
27
|
store(): PersistentStorage;
|
|
28
28
|
userAgent(): string | undefined;
|
|
29
29
|
language(): string | undefined;
|
|
@@ -43,6 +43,8 @@ export type RuntimeFacade = {
|
|
|
43
43
|
pageTitle(): string | undefined;
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
declare function jitsuAnalytics(opts: JitsuOptions): AnalyticsInterface;
|
|
47
47
|
|
|
48
48
|
declare const jitsuAnalyticsPlugin: AnalyticsPlugin;
|
|
49
|
+
|
|
50
|
+
export { AnalyticsInterface, JitsuOptions, PersistentStorage, RuntimeFacade, jitsuAnalytics, jitsuAnalyticsPlugin };
|