@amplitude/analytics-client-common
Advanced tools
Comparing version 0.3.3-beta.0 to 0.3.3-beta.1
@@ -32,3 +32,2 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
}; | ||
console.debug("SessionManager.cache loaded with: ".concat(JSON.stringify(this.cache))); | ||
return [2 /*return*/, this]; | ||
@@ -41,10 +40,3 @@ } | ||
this.cache = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, this.cache), session); | ||
try { | ||
console.debug("SessionManager.setSession called with: ".concat(JSON.stringify(this.cache), ".")); | ||
void this.storage.set(this.storageKey, this.cache); | ||
} | ||
catch (e) { | ||
/* istanbul ignore next */ | ||
console.debug("SessionManager.setSession failed with: ".concat(String(e), ".")); | ||
} | ||
void this.storage.set(this.storageKey, this.cache); | ||
}; | ||
@@ -51,0 +43,0 @@ SessionManager.prototype.getSessionId = function () { |
@@ -17,6 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
if (!(0, global_scope_1.getGlobalScope)()) { | ||
console.debug('CookieStorage is not available.'); | ||
return [2 /*return*/, false]; | ||
} | ||
console.debug('CookieStorage is available.'); | ||
random = String(Date.now()); | ||
@@ -23,0 +21,0 @@ testStrorage = new CookieStorage(this.options); |
@@ -30,3 +30,2 @@ import { __assign, __awaiter, __generator } from "tslib"; | ||
}; | ||
console.debug("SessionManager.cache loaded with: ".concat(JSON.stringify(this.cache))); | ||
return [2 /*return*/, this]; | ||
@@ -39,10 +38,3 @@ } | ||
this.cache = __assign(__assign({}, this.cache), session); | ||
try { | ||
console.debug("SessionManager.setSession called with: ".concat(JSON.stringify(this.cache), ".")); | ||
void this.storage.set(this.storageKey, this.cache); | ||
} | ||
catch (e) { | ||
/* istanbul ignore next */ | ||
console.debug("SessionManager.setSession failed with: ".concat(String(e), ".")); | ||
} | ||
void this.storage.set(this.storageKey, this.cache); | ||
}; | ||
@@ -49,0 +41,0 @@ SessionManager.prototype.getSessionId = function () { |
@@ -15,6 +15,4 @@ import { __assign, __awaiter, __generator } from "tslib"; | ||
if (!getGlobalScope()) { | ||
console.debug('CookieStorage is not available.'); | ||
return [2 /*return*/, false]; | ||
} | ||
console.debug('CookieStorage is available.'); | ||
random = String(Date.now()); | ||
@@ -21,0 +19,0 @@ testStrorage = new CookieStorage(this.options); |
{ | ||
"name": "@amplitude/analytics-client-common", | ||
"version": "0.3.3-beta.0", | ||
"version": "0.3.3-beta.1", | ||
"description": "", | ||
@@ -45,3 +45,3 @@ "author": "Amplitude Inc", | ||
], | ||
"gitHead": "9aa85f93be0ec9a898f3f2c593c94ecb6a125049" | ||
"gitHead": "ee567d6393fdb879bd274c85ce9f75bab6e7361a" | ||
} |
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
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
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
148671
1542