@amplitude/analytics-browser 1.6.6 → 1.6.7

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 (63) hide show
  1. package/README.md +1 -1
  2. package/lib/cjs/browser-client.js +7 -7
  3. package/lib/cjs/browser-client.js.map +1 -1
  4. package/lib/cjs/config.d.ts +6 -6
  5. package/lib/cjs/config.d.ts.map +1 -1
  6. package/lib/cjs/config.js +18 -18
  7. package/lib/cjs/config.js.map +1 -1
  8. package/lib/cjs/cookie-migration/index.d.ts +2 -2
  9. package/lib/cjs/cookie-migration/index.d.ts.map +1 -1
  10. package/lib/cjs/cookie-migration/index.js +3 -3
  11. package/lib/cjs/cookie-migration/index.js.map +1 -1
  12. package/lib/cjs/index.js +2 -2
  13. package/lib/cjs/index.js.map +1 -1
  14. package/lib/cjs/plugins/context.js +4 -4
  15. package/lib/cjs/plugins/context.js.map +1 -1
  16. package/lib/cjs/snippet-index.js +1 -1
  17. package/lib/cjs/snippet-index.js.map +1 -1
  18. package/lib/cjs/storage/local-storage.js +12 -12
  19. package/lib/cjs/transports/send-beacon.js +3 -3
  20. package/lib/cjs/transports/send-beacon.js.map +1 -1
  21. package/lib/cjs/transports/xhr.js +3 -3
  22. package/lib/cjs/transports/xhr.js.map +1 -1
  23. package/lib/cjs/version.d.ts +1 -1
  24. package/lib/cjs/version.js +1 -1
  25. package/lib/cjs/version.js.map +1 -1
  26. package/lib/esm/config.d.ts +6 -6
  27. package/lib/esm/config.d.ts.map +1 -1
  28. package/lib/esm/config.js +1 -1
  29. package/lib/esm/config.js.map +1 -1
  30. package/lib/esm/cookie-migration/index.d.ts +2 -2
  31. package/lib/esm/cookie-migration/index.d.ts.map +1 -1
  32. package/lib/esm/version.d.ts +1 -1
  33. package/lib/esm/version.js +1 -1
  34. package/lib/esm/version.js.map +1 -1
  35. package/lib/scripts/amplitude-min.js +1 -1
  36. package/lib/scripts/amplitude-min.js.gz +0 -0
  37. package/lib/scripts/amplitude-min.umd.js +1 -1
  38. package/lib/scripts/amplitude-min.umd.js.gz +0 -0
  39. package/lib/scripts/amplitude-snippet-instructions.html +1 -1
  40. package/lib/scripts/amplitude-snippet-min.js +1 -1
  41. package/lib/scripts/browser-client.d.ts +21 -0
  42. package/lib/scripts/browser-client.d.ts.map +1 -0
  43. package/lib/scripts/config.d.ts +63 -0
  44. package/lib/scripts/config.d.ts.map +1 -0
  45. package/lib/scripts/cookie-migration/index.d.ts +5 -0
  46. package/lib/scripts/cookie-migration/index.d.ts.map +1 -0
  47. package/lib/scripts/index.d.ts +6 -0
  48. package/lib/scripts/index.d.ts.map +1 -0
  49. package/lib/scripts/plugins/context.d.ts +15 -0
  50. package/lib/scripts/plugins/context.d.ts.map +1 -0
  51. package/lib/scripts/snippet-index.d.ts +2 -0
  52. package/lib/scripts/snippet-index.d.ts.map +1 -0
  53. package/lib/scripts/storage/local-storage.d.ts +10 -0
  54. package/lib/scripts/storage/local-storage.d.ts.map +1 -0
  55. package/lib/scripts/transports/send-beacon.d.ts +6 -0
  56. package/lib/scripts/transports/send-beacon.d.ts.map +1 -0
  57. package/lib/scripts/transports/xhr.d.ts +7 -0
  58. package/lib/scripts/transports/xhr.d.ts.map +1 -0
  59. package/lib/scripts/utils/snippet-helper.d.ts +16 -0
  60. package/lib/scripts/utils/snippet-helper.d.ts.map +1 -0
  61. package/lib/scripts/version.d.ts +2 -0
  62. package/lib/scripts/version.d.ts.map +1 -0
  63. package/package.json +11 -11
@@ -0,0 +1,7 @@
1
+ import { BaseTransport } from '@amplitude/analytics-core';
2
+ import { Payload, Response, Transport } from '@amplitude/analytics-types';
3
+ export declare class XHRTransport extends BaseTransport implements Transport {
4
+ private state;
5
+ send(serverUrl: string, payload: Payload): Promise<Response | null>;
6
+ }
7
+ //# sourceMappingURL=xhr.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xhr.d.ts","sourceRoot":"","sources":["../../../src/transports/xhr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE1E,qBAAa,YAAa,SAAQ,aAAc,YAAW,SAAS;IAClE,OAAO,CAAC,KAAK,CAEX;IAEI,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;CA2B1E"}
@@ -0,0 +1,16 @@
1
+ import { InstanceProxy, QueueProxy } from '@amplitude/analytics-types';
2
+ /**
3
+ * Applies the proxied functions on the proxied amplitude snippet to an instance of the real object.
4
+ * @ignore
5
+ */
6
+ export declare const runQueuedFunctions: (instance: object, queue: QueueProxy) => void;
7
+ /**
8
+ * Applies the proxied functions on the proxied object to an instance of the real object.
9
+ * Used to convert proxied Identify and Revenue objects.
10
+ */
11
+ export declare const convertProxyObjectToRealObject: <T>(instance: T, queue: QueueProxy) => T;
12
+ /**
13
+ * Check if the param is snippet proxy
14
+ */
15
+ export declare const isInstanceProxy: (instance: unknown) => instance is InstanceProxy;
16
+ //# sourceMappingURL=snippet-helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snippet-helper.d.ts","sourceRoot":"","sources":["../../../src/utils/snippet-helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,aAAa,EAAE,UAAU,EAAU,MAAM,4BAA4B,CAAC;AAEhG;;;GAGG;AACH,eAAO,MAAM,kBAAkB,aAAc,MAAM,4BAElD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,8BAA8B,0CAY1C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,aAAc,OAAO,8BAGhD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const VERSION = "1.6.7";
2
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amplitude/analytics-browser",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "description": "Official Amplitude SDK for Web",
5
5
  "keywords": [
6
6
  "analytics",
@@ -43,27 +43,27 @@
43
43
  "url": "https://github.com/amplitude/Amplitude-TypeScript/issues"
44
44
  },
45
45
  "dependencies": {
46
- "@amplitude/analytics-client-common": "^0.5.0",
47
- "@amplitude/analytics-core": "^0.11.0",
46
+ "@amplitude/analytics-client-common": "^0.5.1",
47
+ "@amplitude/analytics-core": "^0.11.1",
48
48
  "@amplitude/analytics-types": "^0.14.0",
49
49
  "@amplitude/ua-parser-js": "^0.7.31",
50
- "tslib": "^2.3.1"
50
+ "tslib": "^2.4.1"
51
51
  },
52
52
  "devDependencies": {
53
- "@aws-sdk/client-s3": "^3.56.0",
54
- "@rollup/plugin-commonjs": "^21.0.2",
55
- "@rollup/plugin-node-resolve": "^13.1.3",
56
- "@rollup/plugin-typescript": "^8.3.1",
53
+ "@aws-sdk/client-s3": "^3.229.0",
54
+ "@rollup/plugin-commonjs": "^23.0.4",
55
+ "@rollup/plugin-node-resolve": "^15.0.1",
56
+ "@rollup/plugin-typescript": "^10.0.1",
57
57
  "@types/ua-parser-js": "^0.7.36",
58
58
  "http-server": "^14.1.1",
59
59
  "isomorphic-fetch": "^3.0.0",
60
- "rollup": "^2.69.0",
60
+ "rollup": "^2.79.1",
61
61
  "rollup-plugin-execute": "^1.1.1",
62
- "rollup-plugin-gzip": "^3.0.0",
62
+ "rollup-plugin-gzip": "^3.1.0",
63
63
  "rollup-plugin-terser": "^7.0.2"
64
64
  },
65
65
  "files": [
66
66
  "lib"
67
67
  ],
68
- "gitHead": "7ea7523f845b1a0dbc5b8e863bc0d2658f8bf38d"
68
+ "gitHead": "bb021b75fd1c48cbdb98d8f328eebb74f85c6fb4"
69
69
  }