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

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 (52) hide show
  1. package/dist/analytics-plugin.d.ts +1 -0
  2. package/dist/jitsu.cjs.js +36 -31
  3. package/dist/jitsu.es.js +36 -32
  4. package/dist/web/p.js.txt +35 -31
  5. package/package.json +6 -3
  6. package/.turbo/turbo-build.log +0 -67
  7. package/.turbo/turbo-clean.log +0 -5
  8. package/.turbo/turbo-test.log +0 -2884
  9. package/__tests__/node/method-queue.test.ts +0 -66
  10. package/__tests__/node/nodejs.test.ts +0 -306
  11. package/__tests__/playwright/cases/anonymous-id-bug.html +0 -26
  12. package/__tests__/playwright/cases/basic.html +0 -32
  13. package/__tests__/playwright/cases/callbacks.html +0 -21
  14. package/__tests__/playwright/cases/cookie-names.html +0 -22
  15. package/__tests__/playwright/cases/disable-user-ids.html +0 -23
  16. package/__tests__/playwright/cases/dont-send.html +0 -22
  17. package/__tests__/playwright/cases/ip-policy.html +0 -22
  18. package/__tests__/playwright/cases/reset.html +0 -32
  19. package/__tests__/playwright/cases/segment-reference.html +0 -64
  20. package/__tests__/playwright/cases/url-bug.html +0 -20
  21. package/__tests__/playwright/integration.test.ts +0 -640
  22. package/__tests__/simple-syrup.ts +0 -136
  23. package/jest.config.js +0 -13
  24. package/package/README.md +0 -9
  25. package/package/dist/analytics-plugin.d.ts +0 -28
  26. package/package/dist/browser.d.ts +0 -10
  27. package/package/dist/index.d.ts +0 -28
  28. package/package/dist/jitsu.cjs.js +0 -2100
  29. package/package/dist/jitsu.d.ts +0 -78
  30. package/package/dist/jitsu.es.js +0 -2090
  31. package/package/dist/method-queue.d.ts +0 -19
  32. package/package/dist/script-loader.d.ts +0 -8
  33. package/package/dist/tlds.d.ts +0 -3
  34. package/package/dist/version.d.ts +0 -3
  35. package/package/dist/web/p.js.txt +0 -2219
  36. package/package/package.json +0 -56
  37. package/playwrite.config.ts +0 -91
  38. package/rollup.config.js +0 -32
  39. package/src/analytics-plugin.ts +0 -989
  40. package/src/browser.ts +0 -163
  41. package/src/destination-plugins/ga4.ts +0 -138
  42. package/src/destination-plugins/gtm.ts +0 -142
  43. package/src/destination-plugins/index.ts +0 -61
  44. package/src/destination-plugins/logrocket.ts +0 -85
  45. package/src/destination-plugins/tag.ts +0 -85
  46. package/src/index.ts +0 -255
  47. package/src/method-queue.ts +0 -70
  48. package/src/script-loader.ts +0 -76
  49. package/src/tlds.ts +0 -27
  50. package/src/version.ts +0 -6
  51. package/tsconfig.json +0 -23
  52. 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 };