@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.
- package/README.md +1 -1
- package/lib/cjs/browser-client.js +7 -7
- package/lib/cjs/browser-client.js.map +1 -1
- package/lib/cjs/config.d.ts +6 -6
- package/lib/cjs/config.d.ts.map +1 -1
- package/lib/cjs/config.js +18 -18
- package/lib/cjs/config.js.map +1 -1
- package/lib/cjs/cookie-migration/index.d.ts +2 -2
- package/lib/cjs/cookie-migration/index.d.ts.map +1 -1
- package/lib/cjs/cookie-migration/index.js +3 -3
- package/lib/cjs/cookie-migration/index.js.map +1 -1
- package/lib/cjs/index.js +2 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/plugins/context.js +4 -4
- package/lib/cjs/plugins/context.js.map +1 -1
- package/lib/cjs/snippet-index.js +1 -1
- package/lib/cjs/snippet-index.js.map +1 -1
- package/lib/cjs/storage/local-storage.js +12 -12
- package/lib/cjs/transports/send-beacon.js +3 -3
- package/lib/cjs/transports/send-beacon.js.map +1 -1
- package/lib/cjs/transports/xhr.js +3 -3
- package/lib/cjs/transports/xhr.js.map +1 -1
- package/lib/cjs/version.d.ts +1 -1
- package/lib/cjs/version.js +1 -1
- package/lib/cjs/version.js.map +1 -1
- package/lib/esm/config.d.ts +6 -6
- package/lib/esm/config.d.ts.map +1 -1
- package/lib/esm/config.js +1 -1
- package/lib/esm/config.js.map +1 -1
- package/lib/esm/cookie-migration/index.d.ts +2 -2
- package/lib/esm/cookie-migration/index.d.ts.map +1 -1
- package/lib/esm/version.d.ts +1 -1
- package/lib/esm/version.js +1 -1
- package/lib/esm/version.js.map +1 -1
- package/lib/scripts/amplitude-min.js +1 -1
- package/lib/scripts/amplitude-min.js.gz +0 -0
- package/lib/scripts/amplitude-min.umd.js +1 -1
- package/lib/scripts/amplitude-min.umd.js.gz +0 -0
- package/lib/scripts/amplitude-snippet-instructions.html +1 -1
- package/lib/scripts/amplitude-snippet-min.js +1 -1
- package/lib/scripts/browser-client.d.ts +21 -0
- package/lib/scripts/browser-client.d.ts.map +1 -0
- package/lib/scripts/config.d.ts +63 -0
- package/lib/scripts/config.d.ts.map +1 -0
- package/lib/scripts/cookie-migration/index.d.ts +5 -0
- package/lib/scripts/cookie-migration/index.d.ts.map +1 -0
- package/lib/scripts/index.d.ts +6 -0
- package/lib/scripts/index.d.ts.map +1 -0
- package/lib/scripts/plugins/context.d.ts +15 -0
- package/lib/scripts/plugins/context.d.ts.map +1 -0
- package/lib/scripts/snippet-index.d.ts +2 -0
- package/lib/scripts/snippet-index.d.ts.map +1 -0
- package/lib/scripts/storage/local-storage.d.ts +10 -0
- package/lib/scripts/storage/local-storage.d.ts.map +1 -0
- package/lib/scripts/transports/send-beacon.d.ts +6 -0
- package/lib/scripts/transports/send-beacon.d.ts.map +1 -0
- package/lib/scripts/transports/xhr.d.ts +7 -0
- package/lib/scripts/transports/xhr.d.ts.map +1 -0
- package/lib/scripts/utils/snippet-helper.d.ts +16 -0
- package/lib/scripts/utils/snippet-helper.d.ts.map +1 -0
- package/lib/scripts/version.d.ts +2 -0
- package/lib/scripts/version.d.ts.map +1 -0
- 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 @@
|
|
|
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.
|
|
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.
|
|
47
|
-
"@amplitude/analytics-core": "^0.11.
|
|
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.
|
|
50
|
+
"tslib": "^2.4.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@aws-sdk/client-s3": "^3.
|
|
54
|
-
"@rollup/plugin-commonjs": "^
|
|
55
|
-
"@rollup/plugin-node-resolve": "^
|
|
56
|
-
"@rollup/plugin-typescript": "^
|
|
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.
|
|
60
|
+
"rollup": "^2.79.1",
|
|
61
61
|
"rollup-plugin-execute": "^1.1.1",
|
|
62
|
-
"rollup-plugin-gzip": "^3.
|
|
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": "
|
|
68
|
+
"gitHead": "bb021b75fd1c48cbdb98d8f328eebb74f85c6fb4"
|
|
69
69
|
}
|