@amplitude/analytics-browser 2.39.0 → 2.39.1
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/config.d.ts +1 -1
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +2 -0
- package/lib/cjs/index.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 +1 -1
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +2 -0
- package/lib/esm/index.js.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-bookmarklet-snippet-min.js +1 -1
- package/lib/scripts/amplitude-bookmarklet.html +1 -1
- package/lib/scripts/amplitude-gtm-min.js +1 -1
- package/lib/scripts/amplitude-gtm-min.js.gz +0 -0
- package/lib/scripts/amplitude-gtm-min.js.map +1 -1
- package/lib/scripts/amplitude-gtm-snippet-min.js +1 -1
- package/lib/scripts/amplitude-min.js +1 -1
- package/lib/scripts/amplitude-min.js.gz +0 -0
- package/lib/scripts/amplitude-min.js.map +1 -1
- 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/config.d.ts +1 -1
- package/lib/scripts/index.d.ts.map +1 -1
- package/lib/scripts/version.d.ts +1 -1
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ This SDK is also available through CDN. Copy the script loader below and paste b
|
|
|
53
53
|
<!-- README_SNIPPET_BLOCK -->
|
|
54
54
|
```html
|
|
55
55
|
<script type="text/javascript">
|
|
56
|
-
!function(){"use strict";!function(e,t){var r=e.amplitude||{_q:[],_iq:{}};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{var n=function(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}},s=function(e,t,r){return function(n){e._q.push({name:t,args:Array.prototype.slice.call(r,0),resolve:n})}},o=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(s(e,t,Array.prototype.slice.call(arguments)))};!function(e,t,r){e._q.push({name:t,args:Array.prototype.slice.call(r,0)})}(e,t,Array.prototype.slice.call(arguments))}},i=function(e){for(var t=0;t<
|
|
56
|
+
!function(){"use strict";!function(e,t){var r=e.amplitude||{_q:[],_iq:{}};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{var n=function(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}},s=function(e,t,r){return function(n){e._q.push({name:t,args:Array.prototype.slice.call(r,0),resolve:n})}},o=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(s(e,t,Array.prototype.slice.call(arguments)))};!function(e,t,r){e._q.push({name:t,args:Array.prototype.slice.call(r,0)})}(e,t,Array.prototype.slice.call(arguments))}},i=function(e){for(var t=0;t<g.length;t++)o(e,g[t],!1);for(var r=0;r<y.length;r++)o(e,y[r],!0)};r.invoked=!0;var c=t.createElement("script");c.type="text/javascript",c.integrity="sha384-pcq953YEN4bF3txMZUHnUeQuNlbdiSMWYVvh320Tgw9e2frrJO7kA/9gT1HVuReD",c.crossOrigin="anonymous",c.async=!0,c.src="https://cdn.amplitude.com/libs/analytics-browser-2.39.1-min.js.gz",c.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var a=t.getElementsByTagName("script")[0];a.parentNode.insertBefore(c,a);for(var u=function(){return this._q=[],this},p=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove","getUserProperties"],l=0;l<p.length;l++)n(u,p[l]);r.Identify=u;for(var d=function(){return this._q=[],this},f=["getEventProperties","setProductId","setQuantity","setPrice","setRevenue","setRevenueType","setReceipt","setReceiptSig","setCurrency","setEventProperties"],v=0;v<f.length;v++)n(d,f[v]);r.Revenue=d;var g=["getDeviceId","setDeviceId","getSessionId","setSessionId","getUserId","setUserId","setOptOut","setTransport","reset","extendSession"],y=["init","add","remove","track","logEvent","identify","groupIdentify","setGroup","revenue","flush"];i(r),r.createInstance=function(e){return r._iq[e]={_q:[]},i(r._iq[e]),r._iq[e]},e.amplitude=r}}(window,document)}();
|
|
57
57
|
|
|
58
58
|
amplitude.init("<YOUR_API_KEY>");
|
|
59
59
|
</script>
|
package/lib/cjs/config.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export declare class BrowserConfig extends Config implements IBrowserConfig {
|
|
|
41
41
|
enableRequestBodyCompression: boolean;
|
|
42
42
|
_enableRequestBodyCompressionExperimental: boolean;
|
|
43
43
|
customEnrichment?: boolean | CustomEnrichmentOptions | undefined;
|
|
44
|
-
readonly version = "2.39.
|
|
44
|
+
readonly version = "2.39.1";
|
|
45
45
|
protected _cookieStorage: Storage<UserSession>;
|
|
46
46
|
protected _deviceId?: string;
|
|
47
47
|
protected _lastEventId?: number;
|
package/lib/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,eAAO,MACL,GAAG,2NACH,aAAa,cACb,KAAK,mEACL,WAAW,4BACX,WAAW,+DACX,SAAS,6BACT,YAAY,4BACZ,SAAS,4BACT,aAAa,8RACb,QAAQ,6OACR,IAAI;;;GACJ,QAAQ,2SACR,MAAM,qFACN,KAAK,cACL,OAAO,2OACP,WAAW,8BACX,QAAQ,qOACR,WAAW,sFACX,SAAS,6BACT,YAAY,+BACZ,YAAY,mFACZ,SAAS,wCACT,KAAK,2SACL,yBAAyB,gCACzB,yCAAyC,4BACjC,CAAC;AACX,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAAE,UAAU,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAIrF,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}
|
package/lib/cjs/index.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Types = exports.trackVideo = exports.Identify = exports.Revenue = exports.runQueuedFunctions = exports.AmplitudeBrowser = exports._enableRequestBodyCompressionExperimental = exports._setDiagnosticsSampleRate = exports.track = exports.setUserId = exports.setTransport = exports.setSessionId = exports.setOptOut = exports.setIdentity = exports.setGroup = exports.setDeviceId = exports.revenue = exports.reset = exports.remove = exports.logEvent = exports.init = exports.identify = exports.groupIdentify = exports.getUserId = exports.getSessionId = exports.getOptOut = exports.getIdentity = exports.getDeviceId = exports.flush = exports.extendSession = exports.add = exports.createInstance = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
/* eslint-disable @typescript-eslint/unbound-method */
|
|
6
|
+
// dummy patch analytics-browser to force GTM deploy
|
|
6
7
|
var browser_client_factory_1 = tslib_1.__importDefault(require("./browser-client-factory"));
|
|
7
8
|
var browser_client_factory_2 = require("./browser-client-factory");
|
|
8
9
|
Object.defineProperty(exports, "createInstance", { enumerable: true, get: function () { return browser_client_factory_2.createInstance; } });
|
|
@@ -19,4 +20,5 @@ Object.defineProperty(exports, "trackVideo", { enumerable: true, get: function (
|
|
|
19
20
|
// Export types to maintain backward compatibility with `analytics-types`.
|
|
20
21
|
// In the next major version, only export customer-facing types to reduce the public API surface.
|
|
21
22
|
exports.Types = tslib_1.__importStar(require("./types"));
|
|
23
|
+
// empty code change to create patch
|
|
22
24
|
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,sDAAsD;AACtD,4FAA8C;AAC9C,mEAA0D;AAAjD,wHAAA,cAAc,OAAA;AAErB,QAAA,GAAG,GAyBD,gCAAM,MAxBR,QAAA,aAAa,GAwBX,gCAAM,gBAvBR,QAAA,KAAK,GAuBH,gCAAM,QAtBR,QAAA,WAAW,GAsBT,gCAAM,cArBR,QAAA,WAAW,GAqBT,gCAAM,cApBR,QAAA,SAAS,GAoBP,gCAAM,YAnBR,QAAA,YAAY,GAmBV,gCAAM,eAlBR,QAAA,SAAS,GAkBP,gCAAM,YAjBR,QAAA,aAAa,GAiBX,gCAAM,gBAhBR,QAAA,QAAQ,GAgBN,gCAAM,WAfR,QAAA,IAAI,GAeF,gCAAM,OAdR,QAAA,QAAQ,GAcN,gCAAM,WAbR,QAAA,MAAM,GAaJ,gCAAM,SAZR,QAAA,KAAK,GAYH,gCAAM,QAXR,QAAA,OAAO,GAWL,gCAAM,UAVR,QAAA,WAAW,GAUT,gCAAM,cATR,QAAA,QAAQ,GASN,gCAAM,WARR,QAAA,WAAW,GAQT,gCAAM,cAPR,QAAA,SAAS,GAOP,gCAAM,YANR,QAAA,YAAY,GAMV,gCAAM,eALR,QAAA,YAAY,GAKV,gCAAM,eAJR,QAAA,SAAS,GAIP,gCAAM,YAHR,QAAA,KAAK,GAGH,gCAAM,QAFR,QAAA,yBAAyB,GAEvB,gCAAM,4BADR,QAAA,yCAAyC,GACvC,gCAAM,2CAAC;AACX,mDAAoD;AAA3C,kHAAA,gBAAgB,OAAA;AACzB,yDAA4D;AAAnD,oHAAA,kBAAkB,OAAA;AAC3B,4DAA8D;AAArD,yGAAA,OAAO,OAAA;AAAE,0GAAA,QAAQ,OAAA;AAE1B,+DAAqF;AAA5E,2GAAA,UAAU,OAAA;AAEnB,0EAA0E;AAC1E,iGAAiG;AACjG,yDAAiC","sourcesContent":["/* eslint-disable @typescript-eslint/unbound-method */\nimport client from './browser-client-factory';\nexport { createInstance } from './browser-client-factory';\nexport const {\n add,\n extendSession,\n flush,\n getDeviceId,\n getIdentity,\n getOptOut,\n getSessionId,\n getUserId,\n groupIdentify,\n identify,\n init,\n logEvent,\n remove,\n reset,\n revenue,\n setDeviceId,\n setGroup,\n setIdentity,\n setOptOut,\n setSessionId,\n setTransport,\n setUserId,\n track,\n _setDiagnosticsSampleRate,\n _enableRequestBodyCompressionExperimental,\n} = client;\nexport { AmplitudeBrowser } from './browser-client';\nexport { runQueuedFunctions } from './utils/snippet-helper';\nexport { Revenue, Identify } from '@amplitude/analytics-core';\n\nexport { trackVideo, type VideoCaptureOptions } from './video-capture/video-capture';\n\n// Export types to maintain backward compatibility with `analytics-types`.\n// In the next major version, only export customer-facing types to reduce the public API surface.\nexport * as Types from './types';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,sDAAsD;AACtD,oDAAoD;AACpD,4FAA8C;AAC9C,mEAA0D;AAAjD,wHAAA,cAAc,OAAA;AAErB,QAAA,GAAG,GAyBD,gCAAM,MAxBR,QAAA,aAAa,GAwBX,gCAAM,gBAvBR,QAAA,KAAK,GAuBH,gCAAM,QAtBR,QAAA,WAAW,GAsBT,gCAAM,cArBR,QAAA,WAAW,GAqBT,gCAAM,cApBR,QAAA,SAAS,GAoBP,gCAAM,YAnBR,QAAA,YAAY,GAmBV,gCAAM,eAlBR,QAAA,SAAS,GAkBP,gCAAM,YAjBR,QAAA,aAAa,GAiBX,gCAAM,gBAhBR,QAAA,QAAQ,GAgBN,gCAAM,WAfR,QAAA,IAAI,GAeF,gCAAM,OAdR,QAAA,QAAQ,GAcN,gCAAM,WAbR,QAAA,MAAM,GAaJ,gCAAM,SAZR,QAAA,KAAK,GAYH,gCAAM,QAXR,QAAA,OAAO,GAWL,gCAAM,UAVR,QAAA,WAAW,GAUT,gCAAM,cATR,QAAA,QAAQ,GASN,gCAAM,WARR,QAAA,WAAW,GAQT,gCAAM,cAPR,QAAA,SAAS,GAOP,gCAAM,YANR,QAAA,YAAY,GAMV,gCAAM,eALR,QAAA,YAAY,GAKV,gCAAM,eAJR,QAAA,SAAS,GAIP,gCAAM,YAHR,QAAA,KAAK,GAGH,gCAAM,QAFR,QAAA,yBAAyB,GAEvB,gCAAM,4BADR,QAAA,yCAAyC,GACvC,gCAAM,2CAAC;AACX,mDAAoD;AAA3C,kHAAA,gBAAgB,OAAA;AACzB,yDAA4D;AAAnD,oHAAA,kBAAkB,OAAA;AAC3B,4DAA8D;AAArD,yGAAA,OAAO,OAAA;AAAE,0GAAA,QAAQ,OAAA;AAE1B,+DAAqF;AAA5E,2GAAA,UAAU,OAAA;AAEnB,0EAA0E;AAC1E,iGAAiG;AACjG,yDAAiC;AAEjC,oCAAoC","sourcesContent":["/* eslint-disable @typescript-eslint/unbound-method */\n// dummy patch analytics-browser to force GTM deploy\nimport client from './browser-client-factory';\nexport { createInstance } from './browser-client-factory';\nexport const {\n add,\n extendSession,\n flush,\n getDeviceId,\n getIdentity,\n getOptOut,\n getSessionId,\n getUserId,\n groupIdentify,\n identify,\n init,\n logEvent,\n remove,\n reset,\n revenue,\n setDeviceId,\n setGroup,\n setIdentity,\n setOptOut,\n setSessionId,\n setTransport,\n setUserId,\n track,\n _setDiagnosticsSampleRate,\n _enableRequestBodyCompressionExperimental,\n} = client;\nexport { AmplitudeBrowser } from './browser-client';\nexport { runQueuedFunctions } from './utils/snippet-helper';\nexport { Revenue, Identify } from '@amplitude/analytics-core';\n\nexport { trackVideo, type VideoCaptureOptions } from './video-capture/video-capture';\n\n// Export types to maintain backward compatibility with `analytics-types`.\n// In the next major version, only export customer-facing types to reduce the public API surface.\nexport * as Types from './types';\n\n// empty code change to create patch\n"]}
|
package/lib/cjs/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.39.
|
|
1
|
+
export declare const VERSION = "2.39.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/lib/cjs/version.js
CHANGED
package/lib/cjs/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC","sourcesContent":["export const VERSION = '2.39.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC","sourcesContent":["export const VERSION = '2.39.1';\n"]}
|
package/lib/esm/config.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export declare class BrowserConfig extends Config implements IBrowserConfig {
|
|
|
41
41
|
enableRequestBodyCompression: boolean;
|
|
42
42
|
_enableRequestBodyCompressionExperimental: boolean;
|
|
43
43
|
customEnrichment?: boolean | CustomEnrichmentOptions | undefined;
|
|
44
|
-
readonly version = "2.39.
|
|
44
|
+
readonly version = "2.39.1";
|
|
45
45
|
protected _cookieStorage: Storage<UserSession>;
|
|
46
46
|
protected _deviceId?: string;
|
|
47
47
|
protected _lastEventId?: number;
|
package/lib/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,eAAO,MACL,GAAG,2NACH,aAAa,cACb,KAAK,mEACL,WAAW,4BACX,WAAW,+DACX,SAAS,6BACT,YAAY,4BACZ,SAAS,4BACT,aAAa,8RACb,QAAQ,6OACR,IAAI;;;GACJ,QAAQ,2SACR,MAAM,qFACN,KAAK,cACL,OAAO,2OACP,WAAW,8BACX,QAAQ,qOACR,WAAW,sFACX,SAAS,6BACT,YAAY,+BACZ,YAAY,mFACZ,SAAS,wCACT,KAAK,2SACL,yBAAyB,gCACzB,yCAAyC,4BACjC,CAAC;AACX,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAAE,UAAU,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAIrF,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}
|
package/lib/esm/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/unbound-method */
|
|
2
|
+
// dummy patch analytics-browser to force GTM deploy
|
|
2
3
|
import client from './browser-client-factory';
|
|
3
4
|
export { createInstance } from './browser-client-factory';
|
|
4
5
|
export var add = client.add, extendSession = client.extendSession, flush = client.flush, getDeviceId = client.getDeviceId, getIdentity = client.getIdentity, getOptOut = client.getOptOut, getSessionId = client.getSessionId, getUserId = client.getUserId, groupIdentify = client.groupIdentify, identify = client.identify, init = client.init, logEvent = client.logEvent, remove = client.remove, reset = client.reset, revenue = client.revenue, setDeviceId = client.setDeviceId, setGroup = client.setGroup, setIdentity = client.setIdentity, setOptOut = client.setOptOut, setSessionId = client.setSessionId, setTransport = client.setTransport, setUserId = client.setUserId, track = client.track, _setDiagnosticsSampleRate = client._setDiagnosticsSampleRate, _enableRequestBodyCompressionExperimental = client._enableRequestBodyCompressionExperimental;
|
|
@@ -8,4 +9,5 @@ export { Revenue, Identify } from '@amplitude/analytics-core';
|
|
|
8
9
|
export { trackVideo } from './video-capture/video-capture';
|
|
9
10
|
import * as Types_1 from './types';
|
|
10
11
|
export { Types_1 as Types };
|
|
12
|
+
// empty code change to create patch
|
|
11
13
|
//# sourceMappingURL=index.js.map
|
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,MAAM,CACJ,IAAA,GAAG,GAyBD,MAAM,IAzBL,EACH,aAAa,GAwBX,MAAM,cAxBK,EACb,KAAK,GAuBH,MAAM,MAvBH,EACL,WAAW,GAsBT,MAAM,YAtBG,EACX,WAAW,GAqBT,MAAM,YArBG,EACX,SAAS,GAoBP,MAAM,UApBC,EACT,YAAY,GAmBV,MAAM,aAnBI,EACZ,SAAS,GAkBP,MAAM,UAlBC,EACT,aAAa,GAiBX,MAAM,cAjBK,EACb,QAAQ,GAgBN,MAAM,SAhBA,EACR,IAAI,GAeF,MAAM,KAfJ,EACJ,QAAQ,GAcN,MAAM,SAdA,EACR,MAAM,GAaJ,MAAM,OAbF,EACN,KAAK,GAYH,MAAM,MAZH,EACL,OAAO,GAWL,MAAM,QAXD,EACP,WAAW,GAUT,MAAM,YAVG,EACX,QAAQ,GASN,MAAM,SATA,EACR,WAAW,GAQT,MAAM,YARG,EACX,SAAS,GAOP,MAAM,UAPC,EACT,YAAY,GAMV,MAAM,aANI,EACZ,YAAY,GAKV,MAAM,aALI,EACZ,SAAS,GAIP,MAAM,UAJC,EACT,KAAK,GAGH,MAAM,MAHH,EACL,yBAAyB,GAEvB,MAAM,0BAFiB,EACzB,yCAAyC,GACvC,MAAM,0CADiC,CAChC;AACX,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAAE,UAAU,EAA4B,MAAM,+BAA+B,CAAC;yBAI9D,SAAS;oBAApB,KAAK","sourcesContent":["/* eslint-disable @typescript-eslint/unbound-method */\nimport client from './browser-client-factory';\nexport { createInstance } from './browser-client-factory';\nexport const {\n add,\n extendSession,\n flush,\n getDeviceId,\n getIdentity,\n getOptOut,\n getSessionId,\n getUserId,\n groupIdentify,\n identify,\n init,\n logEvent,\n remove,\n reset,\n revenue,\n setDeviceId,\n setGroup,\n setIdentity,\n setOptOut,\n setSessionId,\n setTransport,\n setUserId,\n track,\n _setDiagnosticsSampleRate,\n _enableRequestBodyCompressionExperimental,\n} = client;\nexport { AmplitudeBrowser } from './browser-client';\nexport { runQueuedFunctions } from './utils/snippet-helper';\nexport { Revenue, Identify } from '@amplitude/analytics-core';\n\nexport { trackVideo, type VideoCaptureOptions } from './video-capture/video-capture';\n\n// Export types to maintain backward compatibility with `analytics-types`.\n// In the next major version, only export customer-facing types to reduce the public API surface.\nexport * as Types from './types';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,oDAAoD;AACpD,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,MAAM,CACJ,IAAA,GAAG,GAyBD,MAAM,IAzBL,EACH,aAAa,GAwBX,MAAM,cAxBK,EACb,KAAK,GAuBH,MAAM,MAvBH,EACL,WAAW,GAsBT,MAAM,YAtBG,EACX,WAAW,GAqBT,MAAM,YArBG,EACX,SAAS,GAoBP,MAAM,UApBC,EACT,YAAY,GAmBV,MAAM,aAnBI,EACZ,SAAS,GAkBP,MAAM,UAlBC,EACT,aAAa,GAiBX,MAAM,cAjBK,EACb,QAAQ,GAgBN,MAAM,SAhBA,EACR,IAAI,GAeF,MAAM,KAfJ,EACJ,QAAQ,GAcN,MAAM,SAdA,EACR,MAAM,GAaJ,MAAM,OAbF,EACN,KAAK,GAYH,MAAM,MAZH,EACL,OAAO,GAWL,MAAM,QAXD,EACP,WAAW,GAUT,MAAM,YAVG,EACX,QAAQ,GASN,MAAM,SATA,EACR,WAAW,GAQT,MAAM,YARG,EACX,SAAS,GAOP,MAAM,UAPC,EACT,YAAY,GAMV,MAAM,aANI,EACZ,YAAY,GAKV,MAAM,aALI,EACZ,SAAS,GAIP,MAAM,UAJC,EACT,KAAK,GAGH,MAAM,MAHH,EACL,yBAAyB,GAEvB,MAAM,0BAFiB,EACzB,yCAAyC,GACvC,MAAM,0CADiC,CAChC;AACX,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAAE,UAAU,EAA4B,MAAM,+BAA+B,CAAC;yBAI9D,SAAS;oBAApB,KAAK;AAEjB,oCAAoC","sourcesContent":["/* eslint-disable @typescript-eslint/unbound-method */\n// dummy patch analytics-browser to force GTM deploy\nimport client from './browser-client-factory';\nexport { createInstance } from './browser-client-factory';\nexport const {\n add,\n extendSession,\n flush,\n getDeviceId,\n getIdentity,\n getOptOut,\n getSessionId,\n getUserId,\n groupIdentify,\n identify,\n init,\n logEvent,\n remove,\n reset,\n revenue,\n setDeviceId,\n setGroup,\n setIdentity,\n setOptOut,\n setSessionId,\n setTransport,\n setUserId,\n track,\n _setDiagnosticsSampleRate,\n _enableRequestBodyCompressionExperimental,\n} = client;\nexport { AmplitudeBrowser } from './browser-client';\nexport { runQueuedFunctions } from './utils/snippet-helper';\nexport { Revenue, Identify } from '@amplitude/analytics-core';\n\nexport { trackVideo, type VideoCaptureOptions } from './video-capture/video-capture';\n\n// Export types to maintain backward compatibility with `analytics-types`.\n// In the next major version, only export customer-facing types to reduce the public API surface.\nexport * as Types from './types';\n\n// empty code change to create patch\n"]}
|
package/lib/esm/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.39.
|
|
1
|
+
export declare const VERSION = "2.39.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/lib/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export var VERSION = '2.39.
|
|
1
|
+
export var VERSION = '2.39.1';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/lib/esm/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,OAAO,GAAG,QAAQ,CAAC","sourcesContent":["export const VERSION = '2.39.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,OAAO,GAAG,QAAQ,CAAC","sourcesContent":["export const VERSION = '2.39.1';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";!function(e,t){var r=e.amplitude||{_q:[],_iq:{}};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{var n=function(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}},i=function(e,t,r){return function(n){e._q.push({name:t,args:Array.prototype.slice.call(r,0),resolve:n})}},
|
|
1
|
+
!function(){"use strict";!function(e,t){var r=e.amplitude||{_q:[],_iq:{}};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{var n=function(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}},i=function(e,t,r){return function(n){e._q.push({name:t,args:Array.prototype.slice.call(r,0),resolve:n})}},o=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(i(e,t,Array.prototype.slice.call(arguments)))}}},s=function(e){for(var t=0;t<v.length;t++)o(e,v[t],!1);for(var r=0;r<y.length;r++)o(e,y[r],!0)};r.invoked=!0;var u=t.getElementsByTagName("script")[0],a=t.createElement("script");a.src="https://cdn.amplitude.com/libs/plugin-autocapture-browser-0.9.0-min.js.gz",a.async=!1,u.parentNode.insertBefore(a,u);var c=t.createElement("script");c.type="text/javascript",c.integrity="sha384-pcq953YEN4bF3txMZUHnUeQuNlbdiSMWYVvh320Tgw9e2frrJO7kA/9gT1HVuReD",c.crossOrigin="anonymous",c.async=!1,c.src="https://cdn.amplitude.com/libs/analytics-browser-2.39.1-min.js.gz",c.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK"),e.amplitude.init("YOUR_API_KEY","YOUR_USER_ID",{instanceName:"amplitude-bookmarklet",serverZone:"YOUR_SERVER_ZONE",ingestionMetadata:{sourceName:"browser-typescript-bookmarklet",sourceVersion:"1.0.0"},optOut:!1}),amplitudeAutocapturePlugin&&litudeAutocapturePlugin.autocapturePlugin&&"function"==typeof amplitudeAutocapturePlugin.autocapturePlugin&&e.amplitude.add(amplitudeAutocapturePlugin.autocapturePlugin()),alert("Amplitude is now tracking events!")},u.parentNode.insertBefore(c,u);for(var p=function(){return this._q=[],this},l=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove","getUserProperties"],d=0;d<l.length;d++)n(p,l[d]);r.Identify=p;for(var m=function(){return this._q=[],this},g=["getEventProperties","setProductId","setQuantity","setPrice","setRevenue","setRevenueType","setReceipt","setReceiptSig","setCurrency","setEventProperties"],f=0;f<g.length;f++)n(m,g[f]);r.Revenue=m;var v=["getDeviceId","setDeviceId","getSessionId","setSessionId","getUserId","setUserId","setOptOut","setTransport","reset","extendSession"],y=["init","add","remove","track","logEvent","identify","groupIdentify","setGroup","revenue","flush"];s(r),r.createInstance=function(e){return r._iq[e]={_q:[]},s(r._iq[e]),r._iq[e]},e.amplitude=r}}(window,document)}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
javascript:!function()%7B%22use%20strict%22%3B!function(e%2Ct)%7Bvar%20r%3De.amplitude%7C%7C%7B_q%3A%5B%5D%2C_iq%3A%7B%7D%7D%3Bif(r.invoked)e.console%26%26console.error%26%26console.error(%22Amplitude%20snippet%20has%20been%20loaded.%22)%3Belse%7Bvar%20n%3Dfunction(e%2Ct)%7Be.prototype%5Bt%5D%3Dfunction()%7Breturn%20this._q.push(%7Bname%3At%2Cargs%3AArray.prototype.slice.call(arguments%2C0)%7D)%2Cthis%7D%7D%2Ci%3Dfunction(e%2Ct%2Cr)%7Breturn%20function(n)%7Be._q.push(%7Bname%3At%2Cargs%3AArray.prototype.slice.call(r%2C0)%2Cresolve%3An%7D)%7D%7D%
|
|
1
|
+
javascript:!function()%7B%22use%20strict%22%3B!function(e%2Ct)%7Bvar%20r%3De.amplitude%7C%7C%7B_q%3A%5B%5D%2C_iq%3A%7B%7D%7D%3Bif(r.invoked)e.console%26%26console.error%26%26console.error(%22Amplitude%20snippet%20has%20been%20loaded.%22)%3Belse%7Bvar%20n%3Dfunction(e%2Ct)%7Be.prototype%5Bt%5D%3Dfunction()%7Breturn%20this._q.push(%7Bname%3At%2Cargs%3AArray.prototype.slice.call(arguments%2C0)%7D)%2Cthis%7D%7D%2Ci%3Dfunction(e%2Ct%2Cr)%7Breturn%20function(n)%7Be._q.push(%7Bname%3At%2Cargs%3AArray.prototype.slice.call(r%2C0)%2Cresolve%3An%7D)%7D%7D%2Co%3Dfunction(e%2Ct%2Cr)%7Be%5Bt%5D%3Dfunction()%7Bif(r)return%7Bpromise%3Anew%20Promise(i(e%2Ct%2CArray.prototype.slice.call(arguments)))%7D%7D%7D%2Cs%3Dfunction(e)%7Bfor(var%20t%3D0%3Bt%3Cv.length%3Bt%2B%2B)o(e%2Cv%5Bt%5D%2C!1)%3Bfor(var%20r%3D0%3Br%3Cy.length%3Br%2B%2B)o(e%2Cy%5Br%5D%2C!0)%7D%3Br.invoked%3D!0%3Bvar%20u%3Dt.getElementsByTagName(%22script%22)%5B0%5D%2Ca%3Dt.createElement(%22script%22)%3Ba.src%3D%22https%3A%2F%2Fcdn.amplitude.com%2Flibs%2Fplugin-autocapture-browser-0.9.0-min.js.gz%22%2Ca.async%3D!1%2Cu.parentNode.insertBefore(a%2Cu)%3Bvar%20c%3Dt.createElement(%22script%22)%3Bc.type%3D%22text%2Fjavascript%22%2Cc.integrity%3D%22sha384-pcq953YEN4bF3txMZUHnUeQuNlbdiSMWYVvh320Tgw9e2frrJO7kA%2F9gT1HVuReD%22%2Cc.crossOrigin%3D%22anonymous%22%2Cc.async%3D!1%2Cc.src%3D%22https%3A%2F%2Fcdn.amplitude.com%2Flibs%2Fanalytics-browser-2.39.1-min.js.gz%22%2Cc.onload%3Dfunction()%7Be.amplitude.runQueuedFunctions%7C%7Cconsole.log(%22%5BAmplitude%5D%20Error%3A%20could%20not%20load%20SDK%22)%2Ce.amplitude.init(%22YOUR_API_KEY%22%2C%22YOUR_USER_ID%22%2C%7BinstanceName%3A%22amplitude-bookmarklet%22%2CserverZone%3A%22YOUR_SERVER_ZONE%22%2CingestionMetadata%3A%7BsourceName%3A%22browser-typescript-bookmarklet%22%2CsourceVersion%3A%221.0.0%22%7D%2CoptOut%3A!1%7D)%2CamplitudeAutocapturePlugin%26%26amplitudeAutocapturePlugin.autocapturePlugin%26%26%22function%22%3D%3Dtypeof%20amplitudeAutocapturePlugin.autocapturePlugin%26%26e.amplitude.add(amplitudeAutocapturePlugin.autocapturePlugin())%2Calert(%22Amplitude%20is%20now%20tracking%20events!%22)%7D%2Cu.parentNode.insertBefore(c%2Cu)%3Bfor(var%20p%3Dfunction()%7Breturn%20this._q%3D%5B%5D%2Cthis%7D%2Cl%3D%5B%22add%22%2C%22append%22%2C%22clearAll%22%2C%22prepend%22%2C%22set%22%2C%22setOnce%22%2C%22unset%22%2C%22preInsert%22%2C%22postInsert%22%2C%22remove%22%2C%22getUserProperties%22%5D%2Cd%3D0%3Bd%3Cl.length%3Bd%2B%2B)n(p%2Cl%5Bd%5D)%3Br.Identify%3Dp%3Bfor(var%20m%3Dfunction()%7Breturn%20this._q%3D%5B%5D%2Cthis%7D%2Cg%3D%5B%22getEventProperties%22%2C%22setProductId%22%2C%22setQuantity%22%2C%22setPrice%22%2C%22setRevenue%22%2C%22setRevenueType%22%2C%22setReceipt%22%2C%22setReceiptSig%22%2C%22setCurrency%22%2C%22setEventProperties%22%5D%2Cf%3D0%3Bf%3Cg.length%3Bf%2B%2B)n(m%2Cg%5Bf%5D)%3Br.Revenue%3Dm%3Bvar%20v%3D%5B%22getDeviceId%22%2C%22setDeviceId%22%2C%22getSessionId%22%2C%22setSessionId%22%2C%22getUserId%22%2C%22setUserId%22%2C%22setOptOut%22%2C%22setTransport%22%2C%22reset%22%2C%22extendSession%22%5D%2Cy%3D%5B%22init%22%2C%22add%22%2C%22remove%22%2C%22track%22%2C%22logEvent%22%2C%22identify%22%2C%22groupIdentify%22%2C%22setGroup%22%2C%22revenue%22%2C%22flush%22%5D%3Bs(r)%2Cr.createInstance%3Dfunction(e)%7Breturn%20r._iq%5Be%5D%3D%7B_q%3A%5B%5D%7D%2Cs(r._iq%5Be%5D)%2Cr._iq%5Be%5D%7D%2Ce.amplitude%3Dr%7D%7D(window%2Cdocument)%7D()%3B%0A
|