@amplitude/analytics-browser
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -11,2 +11,3 @@ import { AmplitudeCore } from '@amplitude/analytics-core'; | ||
regenerateDeviceId(): void; | ||
reset(): void; | ||
getSessionId(): number | undefined; | ||
@@ -159,3 +160,3 @@ setSessionId(sessionId: number): void; | ||
* are doing. This can be used in conjunction with `setUserId(undefined)` to anonymize users after they log out. | ||
* With an `unefined` userId and a completely new deviceId, the current user would appear as a brand new user in dashboard. | ||
* With an `undefined` userId and a completely new deviceId, the current user would appear as a brand new user in dashboard. | ||
* | ||
@@ -168,2 +169,14 @@ * ```typescript | ||
/** | ||
* reset is a shortcut to anonymize users after they log out, by: | ||
* - setting userId to `undefined` | ||
* - regenerating a new random deviceId | ||
* | ||
* With an `undefined` userId and a completely new deviceId, the current user would appear as a brand new user in dashboard. | ||
* | ||
* ```typescript | ||
* reset(); | ||
* ``` | ||
*/ | ||
export declare const reset: () => void; | ||
/** | ||
* Returns current session ID. | ||
@@ -170,0 +183,0 @@ * |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.flush = exports.setTransport = exports.setOptOut = exports.setSessionId = exports.getSessionId = exports.regenerateDeviceId = exports.setDeviceId = exports.getDeviceId = exports.setUserId = exports.getUserId = exports.revenue = exports.setGroup = exports.groupIdentify = exports.identify = exports.logEvent = exports.track = exports.remove = exports.add = exports.init = exports.AmplitudeBrowser = void 0; | ||
exports.flush = exports.setTransport = exports.setOptOut = exports.setSessionId = exports.getSessionId = exports.reset = exports.regenerateDeviceId = exports.setDeviceId = exports.getDeviceId = exports.setUserId = exports.getUserId = exports.revenue = exports.setGroup = exports.groupIdentify = exports.identify = exports.logEvent = exports.track = exports.remove = exports.add = exports.init = exports.AmplitudeBrowser = void 0; | ||
var tslib_1 = require("tslib"); | ||
@@ -102,2 +102,6 @@ var analytics_core_1 = require("@amplitude/analytics-core"); | ||
}; | ||
AmplitudeBrowser.prototype.reset = function () { | ||
this.setUserId(undefined); | ||
this.regenerateDeviceId(); | ||
}; | ||
AmplitudeBrowser.prototype.getSessionId = function () { | ||
@@ -282,3 +286,3 @@ return this.config.sessionId; | ||
* are doing. This can be used in conjunction with `setUserId(undefined)` to anonymize users after they log out. | ||
* With an `unefined` userId and a completely new deviceId, the current user would appear as a brand new user in dashboard. | ||
* With an `undefined` userId and a completely new deviceId, the current user would appear as a brand new user in dashboard. | ||
* | ||
@@ -291,2 +295,14 @@ * ```typescript | ||
/** | ||
* reset is a shortcut to anonymize users after they log out, by: | ||
* - setting userId to `undefined` | ||
* - regenerating a new random deviceId | ||
* | ||
* With an `undefined` userId and a completely new deviceId, the current user would appear as a brand new user in dashboard. | ||
* | ||
* ```typescript | ||
* reset(); | ||
* ``` | ||
*/ | ||
exports.reset = client.reset.bind(client); | ||
/** | ||
* Returns current session ID. | ||
@@ -293,0 +309,0 @@ * |
@@ -1,2 +0,2 @@ | ||
export { add, flush, getDeviceId, getSessionId, getUserId, groupIdentify, identify, init, logEvent, remove, revenue, setDeviceId, setGroup, setOptOut, setSessionId, setTransport, setUserId, track, } from './browser-client'; | ||
export { add, flush, getDeviceId, getSessionId, getUserId, groupIdentify, identify, init, logEvent, remove, reset, revenue, setDeviceId, setGroup, setOptOut, setSessionId, setTransport, setUserId, track, } from './browser-client'; | ||
export { runQueuedFunctions } from './utils/snippet-helper'; | ||
@@ -3,0 +3,0 @@ export { Revenue, Identify } from '@amplitude/analytics-core'; |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Types = exports.Identify = exports.Revenue = exports.runQueuedFunctions = exports.track = exports.setUserId = exports.setTransport = exports.setSessionId = exports.setOptOut = exports.setGroup = exports.setDeviceId = exports.revenue = exports.remove = exports.logEvent = exports.init = exports.identify = exports.groupIdentify = exports.getUserId = exports.getSessionId = exports.getDeviceId = exports.flush = exports.add = void 0; | ||
exports.Types = exports.Identify = exports.Revenue = exports.runQueuedFunctions = exports.track = exports.setUserId = exports.setTransport = exports.setSessionId = exports.setOptOut = exports.setGroup = exports.setDeviceId = exports.revenue = exports.reset = exports.remove = exports.logEvent = exports.init = exports.identify = exports.groupIdentify = exports.getUserId = exports.getSessionId = exports.getDeviceId = exports.flush = exports.add = void 0; | ||
var tslib_1 = require("tslib"); | ||
@@ -15,2 +15,3 @@ var browser_client_1 = require("./browser-client"); | ||
Object.defineProperty(exports, "remove", { enumerable: true, get: function () { return browser_client_1.remove; } }); | ||
Object.defineProperty(exports, "reset", { enumerable: true, get: function () { return browser_client_1.reset; } }); | ||
Object.defineProperty(exports, "revenue", { enumerable: true, get: function () { return browser_client_1.revenue; } }); | ||
@@ -17,0 +18,0 @@ Object.defineProperty(exports, "setDeviceId", { enumerable: true, get: function () { return browser_client_1.setDeviceId; } }); |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.0.3"; | ||
export declare const VERSION = "1.1.0"; | ||
//# sourceMappingURL=version.d.ts.map |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = '1.0.3'; | ||
exports.VERSION = '1.1.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -11,2 +11,3 @@ import { AmplitudeCore } from '@amplitude/analytics-core'; | ||
regenerateDeviceId(): void; | ||
reset(): void; | ||
getSessionId(): number | undefined; | ||
@@ -159,3 +160,3 @@ setSessionId(sessionId: number): void; | ||
* are doing. This can be used in conjunction with `setUserId(undefined)` to anonymize users after they log out. | ||
* With an `unefined` userId and a completely new deviceId, the current user would appear as a brand new user in dashboard. | ||
* With an `undefined` userId and a completely new deviceId, the current user would appear as a brand new user in dashboard. | ||
* | ||
@@ -168,2 +169,14 @@ * ```typescript | ||
/** | ||
* reset is a shortcut to anonymize users after they log out, by: | ||
* - setting userId to `undefined` | ||
* - regenerating a new random deviceId | ||
* | ||
* With an `undefined` userId and a completely new deviceId, the current user would appear as a brand new user in dashboard. | ||
* | ||
* ```typescript | ||
* reset(); | ||
* ``` | ||
*/ | ||
export declare const reset: () => void; | ||
/** | ||
* Returns current session ID. | ||
@@ -170,0 +183,0 @@ * |
@@ -100,2 +100,6 @@ import { __assign, __awaiter, __extends, __generator } from "tslib"; | ||
}; | ||
AmplitudeBrowser.prototype.reset = function () { | ||
this.setUserId(undefined); | ||
this.regenerateDeviceId(); | ||
}; | ||
AmplitudeBrowser.prototype.getSessionId = function () { | ||
@@ -280,3 +284,3 @@ return this.config.sessionId; | ||
* are doing. This can be used in conjunction with `setUserId(undefined)` to anonymize users after they log out. | ||
* With an `unefined` userId and a completely new deviceId, the current user would appear as a brand new user in dashboard. | ||
* With an `undefined` userId and a completely new deviceId, the current user would appear as a brand new user in dashboard. | ||
* | ||
@@ -289,2 +293,14 @@ * ```typescript | ||
/** | ||
* reset is a shortcut to anonymize users after they log out, by: | ||
* - setting userId to `undefined` | ||
* - regenerating a new random deviceId | ||
* | ||
* With an `undefined` userId and a completely new deviceId, the current user would appear as a brand new user in dashboard. | ||
* | ||
* ```typescript | ||
* reset(); | ||
* ``` | ||
*/ | ||
export var reset = client.reset.bind(client); | ||
/** | ||
* Returns current session ID. | ||
@@ -291,0 +307,0 @@ * |
@@ -1,2 +0,2 @@ | ||
export { add, flush, getDeviceId, getSessionId, getUserId, groupIdentify, identify, init, logEvent, remove, revenue, setDeviceId, setGroup, setOptOut, setSessionId, setTransport, setUserId, track, } from './browser-client'; | ||
export { add, flush, getDeviceId, getSessionId, getUserId, groupIdentify, identify, init, logEvent, remove, reset, revenue, setDeviceId, setGroup, setOptOut, setSessionId, setTransport, setUserId, track, } from './browser-client'; | ||
export { runQueuedFunctions } from './utils/snippet-helper'; | ||
@@ -3,0 +3,0 @@ export { Revenue, Identify } from '@amplitude/analytics-core'; |
@@ -1,2 +0,2 @@ | ||
export { add, flush, getDeviceId, getSessionId, getUserId, groupIdentify, identify, init, logEvent, remove, revenue, setDeviceId, setGroup, setOptOut, setSessionId, setTransport, setUserId, track, } from './browser-client'; | ||
export { add, flush, getDeviceId, getSessionId, getUserId, groupIdentify, identify, init, logEvent, remove, reset, revenue, setDeviceId, setGroup, setOptOut, setSessionId, setTransport, setUserId, track, } from './browser-client'; | ||
export { runQueuedFunctions } from './utils/snippet-helper'; | ||
@@ -3,0 +3,0 @@ export { Revenue, Identify } from '@amplitude/analytics-core'; |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.0.3"; | ||
export declare const VERSION = "1.1.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export var VERSION = '1.0.3'; | ||
export var VERSION = '1.1.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@amplitude/analytics-browser", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "Official Amplitude SDK for Web", | ||
@@ -64,3 +64,3 @@ "keywords": [ | ||
], | ||
"gitHead": "321002ef9a539959373204c3d7b15322b0936752" | ||
"gitHead": "617299ff3c624cade6e02cc44e82314a15498fc5" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
568612
4868
9