@jitsu/js 1.9.18-canary.1288.20250415192732 → 1.9.18-canary.1288.20250415193648

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.
Files changed (48) hide show
  1. package/package.json +6 -3
  2. package/.turbo/turbo-build.log +0 -67
  3. package/.turbo/turbo-clean.log +0 -5
  4. package/.turbo/turbo-test.log +0 -2884
  5. package/__tests__/node/method-queue.test.ts +0 -66
  6. package/__tests__/node/nodejs.test.ts +0 -306
  7. package/__tests__/playwright/cases/anonymous-id-bug.html +0 -26
  8. package/__tests__/playwright/cases/basic.html +0 -32
  9. package/__tests__/playwright/cases/callbacks.html +0 -21
  10. package/__tests__/playwright/cases/cookie-names.html +0 -22
  11. package/__tests__/playwright/cases/disable-user-ids.html +0 -23
  12. package/__tests__/playwright/cases/dont-send.html +0 -22
  13. package/__tests__/playwright/cases/ip-policy.html +0 -22
  14. package/__tests__/playwright/cases/reset.html +0 -32
  15. package/__tests__/playwright/cases/segment-reference.html +0 -64
  16. package/__tests__/playwright/cases/url-bug.html +0 -20
  17. package/__tests__/playwright/integration.test.ts +0 -640
  18. package/__tests__/simple-syrup.ts +0 -136
  19. package/jest.config.js +0 -13
  20. package/package/README.md +0 -9
  21. package/package/dist/analytics-plugin.d.ts +0 -28
  22. package/package/dist/browser.d.ts +0 -10
  23. package/package/dist/index.d.ts +0 -28
  24. package/package/dist/jitsu.cjs.js +0 -2100
  25. package/package/dist/jitsu.d.ts +0 -78
  26. package/package/dist/jitsu.es.js +0 -2090
  27. package/package/dist/method-queue.d.ts +0 -19
  28. package/package/dist/script-loader.d.ts +0 -8
  29. package/package/dist/tlds.d.ts +0 -3
  30. package/package/dist/version.d.ts +0 -3
  31. package/package/dist/web/p.js.txt +0 -2219
  32. package/package/package.json +0 -56
  33. package/playwrite.config.ts +0 -91
  34. package/rollup.config.js +0 -32
  35. package/src/analytics-plugin.ts +0 -989
  36. package/src/browser.ts +0 -163
  37. package/src/destination-plugins/ga4.ts +0 -138
  38. package/src/destination-plugins/gtm.ts +0 -142
  39. package/src/destination-plugins/index.ts +0 -61
  40. package/src/destination-plugins/logrocket.ts +0 -85
  41. package/src/destination-plugins/tag.ts +0 -85
  42. package/src/index.ts +0 -255
  43. package/src/method-queue.ts +0 -70
  44. package/src/script-loader.ts +0 -76
  45. package/src/tlds.ts +0 -27
  46. package/src/version.ts +0 -6
  47. package/tsconfig.json +0 -23
  48. package/tsconfig.test.json +0 -15
@@ -1,56 +0,0 @@
1
- {
2
- "name": "@jitsu/js",
3
- "version": "0.0.0",
4
- "description": "",
5
- "author": "Jitsu Dev Team <dev@jitsu.com>",
6
- "main": "dist/jitsu.cjs.js",
7
- "module": "dist/jitsu.es.js",
8
- "types": "dist/index.d.ts",
9
- "publishConfig": {
10
- "access": "public"
11
- },
12
- "files": ["dist"],
13
- "license": "MIT",
14
- "private": false,
15
- "scripts": {
16
- "clean": "rm -rf ./dist",
17
- "test:node": "jest",
18
- "test:playwright": "playwright test ./__tests__/playwright",
19
- "test": "pnpm run test:node && pnpm run test:playwright",
20
- "compile": "tsc -p .",
21
- "build": "tsc -p . && rollup -c && cp compiled/src/*.d.ts dist"
22
- },
23
- "devDependencies": {
24
- "@jitsu/protocols": "workspace:*",
25
- "tslib": "^2.6.3",
26
- "@playwright/test": "1.39.0",
27
- "@rollup/plugin-commonjs": "^28.0.2",
28
- "@rollup/plugin-json": "^5.0.1",
29
- "@rollup/plugin-multi-entry": "^6.0.0",
30
- "@rollup/plugin-node-resolve": "^16.0.0",
31
- "@rollup/plugin-replace": "^5.0.1",
32
- "@rollup/plugin-terser": "^0.1.0",
33
- "@segment/analytics-next": "^1.75.0",
34
- "@types/chalk": "^2.2.0",
35
- "@types/jest": "^29.2.0",
36
- "@types/node": "^18.15.3",
37
- "chalk": "^4.1.2",
38
- "cookie-parser": "^1.4.7",
39
- "ejs": "^3.1.8",
40
- "express": "^4.21.2",
41
- "jest": "^29.2.2",
42
- "node-fetch-commonjs": "^3.3.2",
43
- "node-forge": "^1.3.1",
44
- "raw-loader": "^4.0.2",
45
- "rollup": "^3.29.5",
46
- "ts-jest": "29.0.5",
47
- "typescript": "^5.6.3",
48
- "jsondiffpatch": "workspace:*"
49
- },
50
- "peerDependencies": {
51
- "@jitsu/protocols": "workspace:*"
52
- },
53
- "dependencies": {
54
- "analytics": "0.8.9"
55
- }
56
- }
@@ -1,91 +0,0 @@
1
- import { devices, PlaywrightTestConfig } from "@playwright/test";
2
-
3
- /**
4
- * Read environment variables from file.
5
- * https://github.com/motdotla/dotenv
6
- */
7
- // require('dotenv').config();
8
-
9
- /**
10
- * See https://playwright.dev/docs/test-configuration.
11
- */
12
- const config: PlaywrightTestConfig = {
13
- /* Maximum time one test can run for. */
14
- timeout: 30 * 1000,
15
- expect: {
16
- /**
17
- * Maximum time expect() should wait for the condition to be met.
18
- * For example in `await expect(locator).toHaveText();`
19
- */
20
- timeout: 5000,
21
- },
22
- /* Run tests in files in parallel */
23
- fullyParallel: true,
24
- /* Fail the build on CI if you accidentally left test.only in the source code. */
25
- forbidOnly: !!process.env.CI,
26
- /* Retry on CI only */
27
- retries: process.env.CI ? 2 : 0,
28
- /* Opt out of parallel tests on CI. */
29
- workers: process.env.CI ? 1 : undefined,
30
- /* Reporter to use. See https://playwright.dev/docs/test-reporters */
31
- reporter: "html",
32
- /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
33
- use: {
34
- /* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
35
- actionTimeout: 0,
36
- /* Base URL to use in actions like `await page.goto('/')`. */
37
- // baseURL: 'http://localhost:3000',
38
-
39
- /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
40
- trace: "on-first-retry",
41
- },
42
-
43
- /* Configure projects for major browsers */
44
- projects: [
45
- {
46
- name: "chromium",
47
- use: {
48
- ...devices["Desktop Chrome"],
49
- },
50
- },
51
-
52
- /* Test against mobile viewports. */
53
- // {
54
- // name: 'Mobile Chrome',
55
- // use: {
56
- // ...devices['Pixel 5'],
57
- // },
58
- // },
59
- // {
60
- // name: 'Mobile Safari',
61
- // use: {
62
- // ...devices['iPhone 12'],
63
- // },
64
- // },
65
-
66
- /* Test against branded browsers. */
67
- // {
68
- // name: 'Microsoft Edge',
69
- // use: {
70
- // channel: 'msedge',
71
- // },
72
- // },
73
- // {
74
- // name: 'Google Chrome',
75
- // use: {
76
- // channel: 'chrome',
77
- // },
78
- // },
79
- ],
80
-
81
- /* Folder for test artifacts such as screenshots, videos, traces, etc. */
82
- outputDir: "__tests__/results",
83
-
84
- /* Run your local dev server before starting the tests */
85
- // webServer: {
86
- // command: 'npm run start',
87
- // port: 3000,
88
- // },
89
- };
90
-
91
- export default config;
package/rollup.config.js DELETED
@@ -1,32 +0,0 @@
1
- const multi = require("@rollup/plugin-multi-entry");
2
- const resolve = require("@rollup/plugin-node-resolve");
3
- const commonjs = require("@rollup/plugin-commonjs");
4
- const rollupJson = require("@rollup/plugin-json");
5
- const terser = require("@rollup/plugin-terser");
6
-
7
-
8
- module.exports = [
9
- {
10
- plugins: [
11
- multi(),
12
- resolve({ preferBuiltins: false }),
13
- commonjs(),
14
- rollupJson(),
15
- (process.JITSU_JS_DEBUG_BUILD = "1" ? undefined : terser()),
16
- ],
17
- input: "./compiled/src/browser.js",
18
- output: {
19
- file: `dist/web/p.js.txt`,
20
- format: "iife",
21
- sourcemap: false,
22
- },
23
- },
24
- {
25
- plugins: [multi(), resolve({ preferBuiltins: false }), commonjs(), rollupJson()],
26
- input: ["./compiled/src/index.js", "./compiled/src/jitsu.js", "./compiled/src/analytics-plugin.js"],
27
- output: [
28
- { file: "dist/jitsu.es.js", format: "es" },
29
- { file: "dist/jitsu.cjs.js", format: "cjs" },
30
- ],
31
- },
32
- ];