@fingerprintjs/fingerprintjs-pro-spa
Advanced tools
Comparing version 0.2.3 to 0.2.4
/** | ||
* FingerprintJS Pro SPA v0.2.3 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprintjs.com) | ||
* FingerprintJS Pro SPA v0.2.4 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprintjs.com) | ||
* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license. | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* FingerprintJS Pro SPA v0.2.3 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprintjs.com) | ||
* FingerprintJS Pro SPA v0.2.4 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprintjs.com) | ||
* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license. | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* FingerprintJS Pro SPA v0.2.3 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprintjs.com) | ||
* FingerprintJS Pro SPA v0.2.4 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprintjs.com) | ||
* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license. | ||
@@ -4,0 +4,0 @@ */ |
{ | ||
"name": "@fingerprintjs/fingerprintjs-pro-spa", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "FingerprintJS Pro JavaScript agent for Single-Page Applications (SPA)", | ||
@@ -41,3 +41,3 @@ "main": "dist/fp-pro-spa.cjs.js", | ||
"dependencies": { | ||
"@fingerprintjs/fingerprintjs-pro": "^3.5.5", | ||
"@fingerprintjs/fingerprintjs-pro": "^3.5.6", | ||
"tslib": "^2.2.0" | ||
@@ -44,0 +44,0 @@ }, |
@@ -6,6 +6,10 @@ # @fingerprintjs/fingerprintjs-pro-spa | ||
This SDK was designed to be used in SPA framework wrappers for the FingerprintJS Pro Javascript Agent. | ||
This library was designed to be used in SPA framework wrappers for the FingerprintJS Pro Javascript Agent. | ||
It also has several built-in caching mechanism that are optimized according to the official recommendations. | ||
If just need the [JS agent](https://github.com/fingerprintjs/fingerprintjs), you can use it directly, without this wrapper. | ||
**This SDK works with FingerprintJS Pro, it will not work with the OSS version!** | ||
Learn more about the [difference between Pro and OSS](https://dev.fingerprintjs.com/docs/pro-vs-open-source). | ||
If you'd like to have a similar SPA wrapper for the OSS version of FingerprintJS, consider [raising and issue on our issue tracker](https://github.com/fingerprintjs/fingerprintjs-pro-spa/issues). | ||
## Table of Contents | ||
@@ -22,2 +26,3 @@ | ||
This library uses [FingerprintJS Pro](https://fingerprintjs.com/github/) under the hood, you can view the document for the core technology. | ||
- [Documentation](https://dev.fingerprintjs.com/docs) | ||
@@ -27,4 +32,2 @@ | ||
From the CDN: | ||
Using [npm](https://npmjs.org): | ||
@@ -59,6 +62,6 @@ | ||
// It can receive mulptiple parameters but the only required one is `loadOptions`, which contains the token | ||
// It can receive mulptiple parameters but the only required one is `loadOptions`, which contains the public API key | ||
const fpjsClient = new FpjsClient({ | ||
loadOptions: { | ||
token: "your-fpjs-public-api-key" // insert your public api key from the dashboard here | ||
apiKey: "your-fpjs-public-api-key" // insert your public api key from the dashboard here | ||
} | ||
@@ -111,3 +114,3 @@ }); | ||
loadOptions: { | ||
token: "your-fpjs-public-api-key" | ||
apiKey: "your-fpjs-public-api-key" | ||
}, | ||
@@ -122,3 +125,3 @@ cacheLocation: 'localstorage' | ||
loadOptions: { | ||
token: "your-fpjs-public-api-key" | ||
apiKey: "your-fpjs-public-api-key" | ||
}, | ||
@@ -125,0 +128,0 @@ cacheLocation: CacheLocation.LocalStorage |
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
37319
7
176