@amplitude/analytics-browser 2.12.0 → 2.12.2
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/attribution/campaign-parser.js.map +1 -1
- package/lib/cjs/attribution/helpers.js.map +1 -1
- package/lib/cjs/attribution/web-attribution.js.map +1 -1
- package/lib/cjs/browser-client.js +1 -1
- package/lib/cjs/browser-client.js.map +1 -1
- package/lib/cjs/config/joined-config.js +10 -10
- package/lib/cjs/config/joined-config.js.map +1 -1
- package/lib/cjs/config.d.ts +4 -3
- package/lib/cjs/config.d.ts.map +1 -1
- package/lib/cjs/config.js +5 -7
- package/lib/cjs/config.js.map +1 -1
- package/lib/cjs/constants.d.ts +12 -12
- package/lib/cjs/constants.d.ts.map +1 -1
- package/lib/cjs/cookie-migration/index.d.ts.map +1 -1
- package/lib/cjs/cookie-migration/index.js +3 -7
- package/lib/cjs/cookie-migration/index.js.map +1 -1
- package/lib/cjs/default-tracking.js.map +1 -1
- package/lib/cjs/det-notification.js.map +1 -1
- package/lib/cjs/gtm-snippet-index.js.map +1 -1
- package/lib/cjs/index.d.ts +46 -5
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +15 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/plugins/context.js +1 -1
- package/lib/cjs/plugins/context.js.map +1 -1
- package/lib/cjs/plugins/file-download-tracking.d.ts.map +1 -1
- package/lib/cjs/plugins/file-download-tracking.js +19 -8
- package/lib/cjs/plugins/file-download-tracking.js.map +1 -1
- package/lib/cjs/plugins/form-interaction-tracking.d.ts.map +1 -1
- package/lib/cjs/plugins/form-interaction-tracking.js +18 -8
- package/lib/cjs/plugins/form-interaction-tracking.js.map +1 -1
- package/lib/cjs/plugins/network-connectivity-checker.js.map +1 -1
- package/lib/cjs/snippet-index.js.map +1 -1
- package/lib/cjs/storage/browser-storage.d.ts.map +1 -1
- package/lib/cjs/storage/browser-storage.js +4 -4
- package/lib/cjs/storage/browser-storage.js.map +1 -1
- package/lib/cjs/storage/local-storage.js +3 -2
- package/lib/cjs/storage/local-storage.js.map +1 -1
- package/lib/cjs/storage/session-storage.js.map +1 -1
- package/lib/cjs/transports/send-beacon.js.map +1 -1
- package/lib/cjs/transports/xhr.js +1 -1
- package/lib/cjs/transports/xhr.js.map +1 -1
- package/lib/cjs/utils/snippet-helper.d.ts.map +1 -1
- package/lib/cjs/utils/snippet-helper.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/attribution/campaign-parser.js.map +1 -1
- package/lib/esm/attribution/helpers.js.map +1 -1
- package/lib/esm/attribution/web-attribution.js.map +1 -1
- package/lib/esm/browser-client.js +1 -1
- package/lib/esm/browser-client.js.map +1 -1
- package/lib/esm/config/joined-config.js +10 -10
- package/lib/esm/config/joined-config.js.map +1 -1
- package/lib/esm/config.d.ts +4 -3
- package/lib/esm/config.d.ts.map +1 -1
- package/lib/esm/config.js +6 -8
- package/lib/esm/config.js.map +1 -1
- package/lib/esm/constants.d.ts +12 -12
- package/lib/esm/constants.d.ts.map +1 -1
- package/lib/esm/cookie-migration/index.d.ts.map +1 -1
- package/lib/esm/cookie-migration/index.js +4 -8
- package/lib/esm/cookie-migration/index.js.map +1 -1
- package/lib/esm/default-tracking.js.map +1 -1
- package/lib/esm/det-notification.js.map +1 -1
- package/lib/esm/gtm-snippet-index.js.map +1 -1
- package/lib/esm/index.d.ts +46 -5
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +15 -2
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/plugins/context.js +1 -1
- package/lib/esm/plugins/context.js.map +1 -1
- package/lib/esm/plugins/file-download-tracking.d.ts.map +1 -1
- package/lib/esm/plugins/file-download-tracking.js +19 -8
- package/lib/esm/plugins/file-download-tracking.js.map +1 -1
- package/lib/esm/plugins/form-interaction-tracking.d.ts.map +1 -1
- package/lib/esm/plugins/form-interaction-tracking.js +18 -8
- package/lib/esm/plugins/form-interaction-tracking.js.map +1 -1
- package/lib/esm/plugins/network-connectivity-checker.js.map +1 -1
- package/lib/esm/snippet-index.js.map +1 -1
- package/lib/esm/storage/browser-storage.d.ts.map +1 -1
- package/lib/esm/storage/browser-storage.js +4 -4
- package/lib/esm/storage/browser-storage.js.map +1 -1
- package/lib/esm/storage/local-storage.js +3 -2
- package/lib/esm/storage/local-storage.js.map +1 -1
- package/lib/esm/storage/session-storage.js.map +1 -1
- package/lib/esm/transports/send-beacon.js.map +1 -1
- package/lib/esm/transports/xhr.js +2 -2
- package/lib/esm/transports/xhr.js.map +1 -1
- package/lib/esm/utils/snippet-helper.d.ts.map +1 -1
- package/lib/esm/utils/snippet-helper.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 -0
- package/lib/scripts/config.d.ts.map +1 -1
- package/lib/scripts/index.d.ts +46 -5
- package/lib/scripts/index.d.ts.map +1 -1
- package/lib/scripts/plugins/file-download-tracking.d.ts.map +1 -1
- package/lib/scripts/plugins/form-interaction-tracking.d.ts.map +1 -1
- package/lib/scripts/version.d.ts +1 -1
- package/package.json +5 -6
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script type="text/javascript">
|
|
2
|
-
!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._q.push({name:t,args:Array.prototype.slice.call(r,0)})},i=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(s(e,t,Array.prototype.slice.call(arguments)))};o(e,t,Array.prototype.slice.call(arguments))}},c=function(e){for(var t=0;t<g.length;t++)i(e,g[t],!1);for(var r=0;r<m.length;r++)i(e,m[r],!0)};r.invoked=!0;var a=t.createElement("script");a.type="text/javascript",a.integrity="sha384-
|
|
2
|
+
!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._q.push({name:t,args:Array.prototype.slice.call(r,0)})},i=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(s(e,t,Array.prototype.slice.call(arguments)))};o(e,t,Array.prototype.slice.call(arguments))}},c=function(e){for(var t=0;t<g.length;t++)i(e,g[t],!1);for(var r=0;r<m.length;r++)i(e,m[r],!0)};r.invoked=!0;var a=t.createElement("script");a.type="text/javascript",a.integrity="sha384-ZNQpM6W99BKecTIDzxEeg1vpQbbq+rfMhiN3nQVDGVNUGP4CV+t8maNr0ZZ43Bqf",a.crossOrigin="anonymous",a.async=!0,a.src="https://cdn.amplitude.com/libs/analytics-browser-2.12.2-min.js.gz",a.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var u=t.getElementsByTagName("script")[0];u.parentNode.insertBefore(a,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 f=function(){return this._q=[],this},v=["getEventProperties","setProductId","setQuantity","setPrice","setRevenue","setRevenueType","setReceipt","setReceiptSig","setCurrency","setEventProperties"],y=0;y<v.length;y++)n(f,v[y]);r.Revenue=f;var g=["getDeviceId","setDeviceId","getSessionId","setSessionId","getUserId","setUserId","setOptOut","setTransport","reset","extendSession"],m=["init","add","remove","track","logEvent","identify","groupIdentify","setGroup","revenue","flush"];c(r),r.createInstance=function(e){return r._iq[e]={_q:[]},c(r._iq[e]),r._iq[e]},e.amplitude=r}}(window,document)}();
|
|
3
3
|
|
|
4
4
|
amplitude.init("<YOUR_API_KEY>");
|
|
5
5
|
</script>
|
|
@@ -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}},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._q.push({name:t,args:Array.prototype.slice.call(r,0)})},i=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(s(e,t,Array.prototype.slice.call(arguments)))};o(e,t,Array.prototype.slice.call(arguments))}},c=function(e){for(var t=0;t<g.length;t++)i(e,g[t],!1);for(var r=0;r<m.length;r++)i(e,m[r],!0)};r.invoked=!0;var a=t.createElement("script");a.type="text/javascript",a.integrity="sha384-
|
|
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}},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._q.push({name:t,args:Array.prototype.slice.call(r,0)})},i=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(s(e,t,Array.prototype.slice.call(arguments)))};o(e,t,Array.prototype.slice.call(arguments))}},c=function(e){for(var t=0;t<g.length;t++)i(e,g[t],!1);for(var r=0;r<m.length;r++)i(e,m[r],!0)};r.invoked=!0;var a=t.createElement("script");a.type="text/javascript",a.integrity="sha384-ZNQpM6W99BKecTIDzxEeg1vpQbbq+rfMhiN3nQVDGVNUGP4CV+t8maNr0ZZ43Bqf",a.crossOrigin="anonymous",a.async=!0,a.src="https://cdn.amplitude.com/libs/analytics-browser-2.12.2-min.js.gz",a.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var u=t.getElementsByTagName("script")[0];u.parentNode.insertBefore(a,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 f=function(){return this._q=[],this},v=["getEventProperties","setProductId","setQuantity","setPrice","setRevenue","setRevenueType","setReceipt","setReceiptSig","setCurrency","setEventProperties"],y=0;y<v.length;y++)n(f,v[y]);r.Revenue=f;var g=["getDeviceId","setDeviceId","getSessionId","setSessionId","getUserId","setUserId","setOptOut","setTransport","reset","extendSession"],m=["init","add","remove","track","logEvent","identify","groupIdentify","setGroup","revenue","flush"];c(r),r.createInstance=function(e){return r._iq[e]={_q:[]},c(r._iq[e]),r._iq[e]},e.amplitude=r}}(window,document)}();
|
package/lib/scripts/config.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export declare class BrowserConfig extends Config implements IBrowserConfig {
|
|
|
30
30
|
transport: 'fetch' | 'xhr' | 'beacon';
|
|
31
31
|
useBatch: boolean;
|
|
32
32
|
fetchRemoteConfig: boolean;
|
|
33
|
+
readonly version = "2.12.2";
|
|
33
34
|
protected _cookieStorage: Storage<UserSession>;
|
|
34
35
|
protected _deviceId?: string;
|
|
35
36
|
protected _lastEventId?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EAEN,OAAO,EACP,QAAQ,EACR,KAAK,EACL,OAAO,EACP,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,IAAI,EACJ,mBAAmB,EACnB,aAAa,EACb,aAAa,EAEb,aAAa,EAEb,cAAc,EAEd,WAAW,EACX,cAAc,EACd,aAAa,IAAI,cAAc,EAC/B,sBAAsB,EACtB,eAAe,EACf,kBAAkB,EAClB,aAAa,EACd,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAG/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EAEN,OAAO,EACP,QAAQ,EACR,KAAK,EACL,OAAO,EACP,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,IAAI,EACJ,mBAAmB,EACnB,aAAa,EACb,aAAa,EAEb,aAAa,EAEb,cAAc,EAEd,WAAW,EACX,cAAc,EACd,aAAa,IAAI,cAAc,EAC/B,sBAAsB,EACtB,eAAe,EACf,kBAAkB,EAClB,aAAa,EACd,MAAM,2BAA2B,CAAC;AAEnC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@
|
|
|
1
1
|
export { createInstance } from './browser-client-factory';
|
|
2
|
-
export declare const add: (plugin:
|
|
3
|
-
(apiKey: string, options?:
|
|
4
|
-
(apiKey: string, userId?: string | undefined, options?:
|
|
5
|
-
}, logEvent: (eventInput: string |
|
|
2
|
+
export declare const add: (plugin: PluginType<BrowserClientType, BrowserConfigType>) => AmplitudeReturnType<void>, extendSession: () => void, flush: () => AmplitudeReturnType<void>, getDeviceId: () => string | undefined, getSessionId: () => number | undefined, getUserId: () => string | undefined, groupIdentify: (groupType: string, groupName: string | string[], identify: IIdentifyType, eventOptions?: EventOptionsType | undefined) => AmplitudeReturnType<ResultType>, identify: (identify: IIdentifyType, eventOptions?: EventOptionsType | undefined) => AmplitudeReturnType<ResultType>, init: {
|
|
3
|
+
(apiKey: string, options?: BrowserOptionsType | undefined): AmplitudeReturnType<void>;
|
|
4
|
+
(apiKey: string, userId?: string | undefined, options?: BrowserOptionsType | undefined): AmplitudeReturnType<void>;
|
|
5
|
+
}, logEvent: (eventInput: string | BaseEventType, eventProperties?: Record<string, any> | undefined, eventOptions?: EventOptionsType | undefined) => AmplitudeReturnType<ResultType>, remove: (pluginName: string) => AmplitudeReturnType<void>, reset: () => void, revenue: (revenue: IRevenueType, eventOptions?: EventOptionsType | undefined) => AmplitudeReturnType<ResultType>, setDeviceId: (deviceId: string) => void, setGroup: (groupType: string, groupName: string | string[], eventOptions?: EventOptionsType | undefined) => AmplitudeReturnType<ResultType>, setOptOut: (optOut: boolean) => void, setSessionId: (sessionId: number) => void, setTransport: (transport: TransportTypeType) => void, setUserId: (userId: string | undefined) => void, track: (eventInput: string | BaseEventType, eventProperties?: Record<string, any> | undefined, eventOptions?: EventOptionsType | undefined) => AmplitudeReturnType<ResultType>;
|
|
6
6
|
export { runQueuedFunctions } from './utils/snippet-helper';
|
|
7
7
|
export { Revenue, Identify } from '@amplitude/analytics-core';
|
|
8
|
-
|
|
8
|
+
import { AmplitudeReturn as AmplitudeReturnType, BaseEvent as BaseEventType, EventOptions as EventOptionsType, BrowserClient as BrowserClientType, AttributionOptions as AttributionOptionsType, AutocaptureOptions as AutocaptureOptionsType, BrowserOptions as BrowserOptionsType, BrowserConfig as BrowserConfigType, IConfig as IConfigType, Event as EventType, IdentifyOperation as IdentifyOperationType, SpecialEventType as SpecialEventTypeType, IIdentify as IIdentifyType, IRevenue as IRevenueType, RevenueProperty as RevenuePropertyType, ILogger as ILoggerType, LogLevel as LogLevelType, Plugin as PluginType, BeforePlugin as BeforePluginType, EnrichmentPlugin as EnrichmentPluginType, DestinationPlugin as DestinationPluginType, Result as ResultType, ServerZoneType as ServerZoneTypeType, IdentityStorageType as IdentityStorageTypeType, Storage as StorageTypeType, TransportType as TransportTypeType, Messenger as MessengerType, ElementInteractionsOptions as ElementInteractionsOptionsType, ActionType as ActionTypeType } from '@amplitude/analytics-core';
|
|
9
|
+
import { Campaign as CampaignType, CampaignParser as CampaignParserType, ClickIdParameters as ClickIdParametersType, ReferrerParameters as ReferrerParametersType, UTMParameters as UTMParametersType } from './attribution/campaign';
|
|
10
|
+
export declare namespace Types {
|
|
11
|
+
type AmplitudeReturn<T> = AmplitudeReturnType<T>;
|
|
12
|
+
type BaseEvent = BaseEventType;
|
|
13
|
+
type EventOptions = EventOptionsType;
|
|
14
|
+
type Campaign = CampaignType;
|
|
15
|
+
type CampaignParser = CampaignParserType;
|
|
16
|
+
type ClickIdParameters = ClickIdParametersType;
|
|
17
|
+
type ReferrerParameters = ReferrerParametersType;
|
|
18
|
+
type UTMParameters = UTMParametersType;
|
|
19
|
+
type BrowserClient = BrowserClientType;
|
|
20
|
+
type AttributionOptions = AttributionOptionsType;
|
|
21
|
+
type AutocaptureOptions = AutocaptureOptionsType;
|
|
22
|
+
type BrowserConfig = BrowserConfigType;
|
|
23
|
+
type BrowserOptions = BrowserOptionsType;
|
|
24
|
+
type Config = IConfigType;
|
|
25
|
+
type Event = EventType;
|
|
26
|
+
const IdentifyOperation: typeof IdentifyOperationType;
|
|
27
|
+
const SpecialEventType: typeof SpecialEventTypeType;
|
|
28
|
+
type Identify = IIdentifyType;
|
|
29
|
+
type Revenue = IRevenueType;
|
|
30
|
+
const RevenueProperty: typeof RevenuePropertyType;
|
|
31
|
+
type Logger = ILoggerType;
|
|
32
|
+
const LogLevel: typeof LogLevelType;
|
|
33
|
+
type Plugin = PluginType;
|
|
34
|
+
type BeforePlugin = BeforePluginType;
|
|
35
|
+
type EnrichmentPlugin = EnrichmentPluginType;
|
|
36
|
+
type DestinationPlugin = DestinationPluginType;
|
|
37
|
+
type Result = ResultType;
|
|
38
|
+
type ServerZoneType = ServerZoneTypeType;
|
|
39
|
+
type IdentityStorageType = IdentityStorageTypeType;
|
|
40
|
+
type Storage<T> = StorageTypeType<T>;
|
|
41
|
+
type TransportType = TransportTypeType;
|
|
42
|
+
const OfflineDisabled: null;
|
|
43
|
+
type Messenger = MessengerType;
|
|
44
|
+
type ElementInteractionsOptions = ElementInteractionsOptionsType;
|
|
45
|
+
type ActionType = ActionTypeType;
|
|
46
|
+
const DEFAULT_CSS_SELECTOR_ALLOWLIST: string[];
|
|
47
|
+
const DEFAULT_DATA_ATTRIBUTE_PREFIX = "data-amp-track-";
|
|
48
|
+
const DEFAULT_ACTION_CLICK_ALLOWLIST: string[];
|
|
49
|
+
}
|
|
9
50
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,eAAO,MACL,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,eAAO,MACL,GAAG,2FACH,aAAa,cACb,KAAK,mCACL,WAAW,4BACX,YAAY,4BACZ,SAAS,4BACT,aAAa,8JACb,QAAQ,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I,eAAe,CAAC,CAAC,CAAC,CAAC;IAC5C,KAAY,aAAa,GAAG,iBAAiB,CAAC;IACvC,MAAM,eAAe,MAAsB,CAAC;IACnD,KAAY,SAAS,GAAG,aAAa,CAAC;IACtC,KAAY,0BAA0B,GAAG,8BAA8B,CAAC;IACxE,KAAY,UAAU,GAAG,cAAc,CAAC;IACjC,MAAM,8BAA8B,UAAsC,CAAC;IAC3E,MAAM,6BAA6B,oBAAqC,CAAC;IACzE,MAAM,8BAA8B,UAAsC,CAAC;CACnF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-download-tracking.d.ts","sourceRoot":"","sources":["../../../src/plugins/file-download-tracking.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyB,gBAAgB,EAAiB,MAAM,2BAA2B,CAAC;AAQnG,eAAO,MAAM,oBAAoB,QAAO,
|
|
1
|
+
{"version":3,"file":"file-download-tracking.d.ts","sourceRoot":"","sources":["../../../src/plugins/file-download-tracking.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyB,gBAAgB,EAAiB,MAAM,2BAA2B,CAAC;AAQnG,eAAO,MAAM,oBAAoB,QAAO,gBA4HvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-interaction-tracking.d.ts","sourceRoot":"","sources":["../../../src/plugins/form-interaction-tracking.ts"],"names":[],"mappings":"AAQA,OAAO,EAAyB,gBAAgB,EAAiB,MAAM,2BAA2B,CAAC;AAQnG,eAAO,MAAM,uBAAuB,QAAO,
|
|
1
|
+
{"version":3,"file":"form-interaction-tracking.d.ts","sourceRoot":"","sources":["../../../src/plugins/form-interaction-tracking.ts"],"names":[],"mappings":"AAQA,OAAO,EAAyB,gBAAgB,EAAiB,MAAM,2BAA2B,CAAC;AAQnG,eAAO,MAAM,uBAAuB,QAAO,gBAkI1C,CAAC;AAEF,eAAO,MAAM,iBAAiB,uDAU7B,CAAC;AAGF,eAAO,MAAM,iBAAiB,SAAU,eAAe,KAAG,MAAM,GAAG,IASlE,CAAC"}
|
package/lib/scripts/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.12.
|
|
1
|
+
export declare const VERSION = "2.12.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amplitude/analytics-browser",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.2",
|
|
4
4
|
"description": "Official Amplitude SDK for Web",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"analytics",
|
|
@@ -45,11 +45,10 @@
|
|
|
45
45
|
"url": "https://github.com/amplitude/Amplitude-TypeScript/issues"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@amplitude/analytics-core": "^2.6.
|
|
48
|
+
"@amplitude/analytics-core": "^2.6.1",
|
|
49
49
|
"@amplitude/analytics-remote-config": "^0.4.0",
|
|
50
|
-
"@amplitude/
|
|
51
|
-
"@amplitude/plugin-
|
|
52
|
-
"@amplitude/plugin-page-view-tracking-browser": "^2.3.10",
|
|
50
|
+
"@amplitude/plugin-autocapture-browser": "^1.1.2",
|
|
51
|
+
"@amplitude/plugin-page-view-tracking-browser": "^2.3.12",
|
|
53
52
|
"tslib": "^2.4.1"
|
|
54
53
|
},
|
|
55
54
|
"devDependencies": {
|
|
@@ -68,5 +67,5 @@
|
|
|
68
67
|
"files": [
|
|
69
68
|
"lib"
|
|
70
69
|
],
|
|
71
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "f9ad87802cf6ba3a3787cc78b7c6191da41104ac"
|
|
72
71
|
}
|