@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,19 +0,0 @@
1
- export type InterfaceWrapper<T> = {
2
- get(): WithAsyncMethods<T>;
3
- loaded(instance: T): any;
4
- };
5
- type WithAsyncMethods<T> = {
6
- [K in keyof T]: T[K] extends (...args: infer A) => infer R
7
- ? (...args: A) => R extends Promise<any> ? R : Promise<R>
8
- : T[K];
9
- };
10
- /**
11
- * This function creates a wrapper around an interface that allows to call methods on it, but all methods will go to queue. Once actual instance
12
- * implementation becomes available, all queued methods will be called on it.
13
- *
14
- *
15
- * @param methods of methods that should be wrapped. Per each method of you should specify if it should be wrapped. You'll need to mark all
16
- * methods for type safety. If method is not wrapped, it will throw an error when called.
17
- */
18
- export declare function delayMethodExec<T>(methods: Record<keyof T, boolean>): InterfaceWrapper<T>;
19
- export {};
@@ -1,8 +0,0 @@
1
- export type ScriptOptions = {
2
- attributes?: Record<string, string>;
3
- www?: boolean;
4
- js?: boolean;
5
- min?: boolean;
6
- query?: string;
7
- };
8
- export declare function loadScript(src: string, options?: ScriptOptions): Promise<HTMLScriptElement>;
@@ -1,3 +0,0 @@
1
- export declare const publicSuffixes: string[];
2
- export declare const publicSuffixesMap: Record<string, boolean>;
3
- export declare function getTopLevelDomain(hostname: string): string;
@@ -1,3 +0,0 @@
1
- declare const jitsuVersion: string;
2
- declare const jitsuLibraryName = "@jitsu/js";
3
- export { jitsuVersion, jitsuLibraryName };