@fingerprintjs/fingerprintjs-pro-spa
Advanced tools
Comparing version 0.6.0 to 0.7.0
/** | ||
* FingerprintJS Pro SPA v0.5.0 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com) | ||
* FingerprintJS Pro SPA v0.6.0 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com) | ||
* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license. | ||
@@ -253,3 +253,3 @@ */ | ||
var version = "0.5.0"; | ||
var version = "0.6.0"; | ||
@@ -307,5 +307,10 @@ const cacheLocationBuilders = { | ||
if (!this.agentPromise) { | ||
this.agentPromise = FingerprintJS__namespace.load(this.loadOptions).then((agent) => { | ||
this.agentPromise = FingerprintJS__namespace.load(this.loadOptions) | ||
.then((agent) => { | ||
this.agent = agent; | ||
return agent; | ||
}) | ||
.catch((error) => { | ||
this.agentPromise = null; | ||
throw error; | ||
}); | ||
@@ -328,5 +333,4 @@ } | ||
if (!this.inFlightRequests.has(key)) { | ||
const promise = this._identify(options, ignoreCache).then((visitorData) => { | ||
const promise = this._identify(options, ignoreCache).finally(() => { | ||
this.inFlightRequests.delete(key); | ||
return visitorData; | ||
}); | ||
@@ -333,0 +337,0 @@ this.inFlightRequests.set(key, promise); |
/** | ||
* FingerprintJS Pro SPA v0.5.0 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com) | ||
* FingerprintJS Pro SPA v0.6.0 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com) | ||
* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license. | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* FingerprintJS Pro SPA v0.5.0 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com) | ||
* FingerprintJS Pro SPA v0.6.0 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com) | ||
* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license. | ||
@@ -229,3 +229,3 @@ */ | ||
var version = "0.5.0"; | ||
var version = "0.6.0"; | ||
@@ -283,5 +283,10 @@ const cacheLocationBuilders = { | ||
if (!this.agentPromise) { | ||
this.agentPromise = FingerprintJS.load(this.loadOptions).then((agent) => { | ||
this.agentPromise = FingerprintJS.load(this.loadOptions) | ||
.then((agent) => { | ||
this.agent = agent; | ||
return agent; | ||
}) | ||
.catch((error) => { | ||
this.agentPromise = null; | ||
throw error; | ||
}); | ||
@@ -304,5 +309,4 @@ } | ||
if (!this.inFlightRequests.has(key)) { | ||
const promise = this._identify(options, ignoreCache).then((visitorData) => { | ||
const promise = this._identify(options, ignoreCache).finally(() => { | ||
this.inFlightRequests.delete(key); | ||
return visitorData; | ||
}); | ||
@@ -309,0 +313,0 @@ this.inFlightRequests.set(key, promise); |
{ | ||
"name": "@fingerprintjs/fingerprintjs-pro-spa", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "FingerprintJS Pro JavaScript agent for Single-Page Applications (SPA)", | ||
@@ -23,2 +23,3 @@ "main": "dist/fp-pro-spa.cjs.js", | ||
"build": "rimraf dist && rollup -c rollup.config.js", | ||
"watch": "rimraf dist && rollup -c rollup.config.js -w", | ||
"lint": "eslint --ext .js,.ts --ignore-path .gitignore --max-warnings 0 .", | ||
@@ -53,3 +54,3 @@ "lint:fix": "yarn lint --fix", | ||
"dependencies": { | ||
"@fingerprintjs/fingerprintjs-pro": "^3.8.0", | ||
"@fingerprintjs/fingerprintjs-pro": "^3.8.1", | ||
"tslib": "^2.2.0" | ||
@@ -56,0 +57,0 @@ }, |
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
43408
844