@jitsu/js 1.9.18-canary.1288.20250415191203 → 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 +8 -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,78 +0,0 @@
1
- import type { AnalyticsInterface } from "@jitsu/protocols/analytics";
2
- type JitsuOptions = {
3
- /**
4
- * API Key. Optional. If not set, Jitsu will send event to the server without auth, and server
5
- * will link the call to configured source by domain name
6
- */
7
- writeKey?: string;
8
- /**
9
- * API Host. Default value: same host as script origin
10
- */
11
- host?: string;
12
- /**
13
- * To enable debug logging
14
- */
15
- debug?: boolean;
16
- /**
17
- * Explicitly specify cookie domain. If not set, cookie domain will be set to top level
18
- * of the current domain. Example: if JS lives on "app.example.com", cookie domain will be
19
- * set to ".example.com". If it lives on "example.com", cookie domain will be set to ".example.com" too
20
- */
21
- cookieDomain?: string;
22
- /**
23
- * Provide fetch implementation. It is required if you want to use Jitsu in NodeJS
24
- */
25
- fetch?: typeof fetch;
26
- /**
27
- * Which runtime to use. Runtime is used for obtaining context of the event: cookes,
28
- * url, etc. At the moment, Jitsu supports browser runtime and NodeJS runtime, but you
29
- * can provide your own implementation.
30
- *
31
- * If it's not set, the runtime will be detected automatically by presense of `window` object
32
- */
33
- runtime?: RuntimeFacade;
34
- /**
35
- * If set to true, jitsu will output events in console. In this case you don't need to set
36
- * writeKey / host. It's useful for debugging development environment
37
- */
38
- echoEvents?: boolean;
39
- /**
40
- * If true, events will go to s2s endpoints like ${host}/api/s/s2s/{type}. Otherwise they'll go to ${host}/api/s/{type}.
41
- *
42
- * If not set at all, it will be detected automatically by presence of `window` object
43
- */
44
- s2s?: boolean;
45
- /**
46
- * Timeout for fetch requests. Default value: 5000
47
- */
48
- fetchTimeoutMs?: number;
49
- };
50
- type PersistentStorage = {
51
- getItem: (key: string, options?: any) => any;
52
- setItem: (key: string, value: any, options?: any) => void;
53
- removeItem: (key: string, options?: any) => void;
54
- reset: () => void;
55
- };
56
- type RuntimeFacade = {
57
- store(): PersistentStorage;
58
- userAgent(): string | undefined;
59
- language(): string | undefined;
60
- pageUrl(): string | undefined;
61
- documentEncoding(): string | undefined;
62
- getCookie(name: string): string | undefined;
63
- getCookies(): Record<string, string>;
64
- timezoneOffset(): number | undefined;
65
- screen():
66
- | {
67
- width: number;
68
- height: number;
69
- innerWidth: number;
70
- innerHeight: number;
71
- density: number;
72
- }
73
- | undefined;
74
- referrer(): string | undefined;
75
- pageTitle(): string | undefined;
76
- };
77
- export declare function jitsuAnalytics(opts: JitsuOptions): AnalyticsInterface;
78
- export { AnalyticsInterface, JitsuOptions, PersistentStorage, RuntimeFacade };