@fingerprintjs/fingerprintjs-pro
Advanced tools
Comparing version 3.6.4 to 3.7.0
/** | ||
* FingerprintJS Pro v3.6.4 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com) | ||
* FingerprintJS Pro v3.7.0 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com) | ||
* | ||
@@ -8,2 +8,2 @@ * This software contains code from open-source projects: | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib");function R(e){for(var R="",t=0;t<e.length;++t)if(t>0){var r=e[t].toLowerCase();r!==e[t]?R+=" "+r:R+=e[t]}else R+=e[t].toUpperCase();return R}var t=R("WrongRegion"),r=R("SubscriptionNotActive"),o=R("UnsupportedVersion"),n=R("InstallationMethodRestricted"),E=R("HostnameRestricted");function _(e,R,t){return void 0===t&&(t=0),R(t).catch((function(r){if(t>=e.maxRetries)throw r;var o,n,E,i,a=(o=e.baseDelay,n=e.maxDelay,E=e.baseDelay*Math.pow(2,t),Math.max(o,Math.min(n,E)));return(i=a,new Promise((function(e){return setTimeout(e,i)}))).then((function(){return _(e,R,t+1)}))}))}var i="Failed to load the JS script of the agent",a="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js";function s(R){var t,r,o=R.scriptUrlPattern,n=R.token,E=R.apiKey,s=void 0===E?n:E,O=e.__rest(R,["scriptUrlPattern","token","apiKey"]),I=(t=R,r="scriptUrlPattern",Object.prototype.hasOwnProperty.call(t,r)?o:void 0),d=[];return Promise.resolve().then((function(){if(!s||"string"!=typeof s)throw new Error("API key required");return _({maxRetries:5,baseDelay:100,maxDelay:3e3},(function(){var e,R=new Date,t=function(){return d.push({startedAt:R,finishedAt:new Date})},r=(e=function(e,R){void 0===R&&(R=a);var t=encodeURIComponent;return R.replace(/<[^<>]+>/g,(function(R){return"<version>"===R?"3":"<apiKey>"===R?t(e):"<loaderVersion>"===R?t("3.6.4"):R}))}(s,I),new Promise((function(R,t){var r=document.createElement("script"),o=function(){var e;return null===(e=r.parentNode)||void 0===e?void 0:e.removeChild(r)},n=document.head||document.getElementsByTagName("head")[0];r.onload=function(){o(),R()},r.onerror=function(){o(),t(new Error(i))},r.async=!0,r.src=e,n.appendChild(r)})));return r.then(t,t),r}))})).then((function(){var R=window,t="__fpjs_p_l_b",r=R[t];if(function(e,R){var t,r=null===(t=Object.getOwnPropertyDescriptor)||void 0===t?void 0:t.call(Object,e,R);(null==r?void 0:r.configurable)?delete e[R]:r&&!r.writable||(e[R]=void 0)}(R,t),"function"!=typeof(null==r?void 0:r.load))throw new Error(i);return r.load(e.__assign(e.__assign({},O),{ldi:{attempts:d}}))}))}var O={load:s,ERROR_SCRIPT_LOAD_FAIL:i,ERROR_API_KEY_EXPIRED:"API key expired",ERROR_API_KEY_INVALID:"API key not found",ERROR_API_KEY_MISSING:"API key required",ERROR_BAD_REQUEST_FORMAT:"Request cannot be parsed",ERROR_BAD_RESPONSE_FORMAT:"Response cannot be parsed",ERROR_CLIENT_TIMEOUT:"Client timeout",ERROR_FORBIDDEN_ENDPOINT:E,ERROR_FORBIDDEN_HEADER:"Not available with restricted header",ERROR_FORBIDDEN_ORIGIN:"Not available for this origin",ERROR_GENERAL_SERVER_FAILURE:"Request failed",ERROR_INSTALLATION_METHOD_RESTRICTED:n,ERROR_NETWORK_ABORT:"Network request aborted",ERROR_NETWORK_CONNECTION:"Network connection error",ERROR_RATE_LIMIT:"Too many requests, rate limit exceeded",ERROR_SERVER_TIMEOUT:"Request failed to process",ERROR_SUBSCRIPTION_NOT_ACTIVE:r,ERROR_TOKEN_EXPIRED:"API key expired",ERROR_TOKEN_INVALID:"API key not found",ERROR_TOKEN_MISSING:"API key required",ERROR_UNSUPPORTED_VERSION:o,ERROR_WRONG_REGION:t};exports.ERROR_API_KEY_EXPIRED="API key expired",exports.ERROR_API_KEY_INVALID="API key not found",exports.ERROR_API_KEY_MISSING="API key required",exports.ERROR_BAD_REQUEST_FORMAT="Request cannot be parsed",exports.ERROR_BAD_RESPONSE_FORMAT="Response cannot be parsed",exports.ERROR_CLIENT_TIMEOUT="Client timeout",exports.ERROR_FORBIDDEN_ENDPOINT=E,exports.ERROR_FORBIDDEN_HEADER="Not available with restricted header",exports.ERROR_FORBIDDEN_ORIGIN="Not available for this origin",exports.ERROR_GENERAL_SERVER_FAILURE="Request failed",exports.ERROR_INSTALLATION_METHOD_RESTRICTED=n,exports.ERROR_NETWORK_ABORT="Network request aborted",exports.ERROR_NETWORK_CONNECTION="Network connection error",exports.ERROR_RATE_LIMIT="Too many requests, rate limit exceeded",exports.ERROR_SCRIPT_LOAD_FAIL=i,exports.ERROR_SERVER_TIMEOUT="Request failed to process",exports.ERROR_SUBSCRIPTION_NOT_ACTIVE=r,exports.ERROR_TOKEN_EXPIRED="API key expired",exports.ERROR_TOKEN_INVALID="API key not found",exports.ERROR_TOKEN_MISSING="API key required",exports.ERROR_UNSUPPORTED_VERSION=o,exports.ERROR_WRONG_REGION=t,exports.default=O,exports.load=s; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib");function R(e){for(var R="",t=0;t<e.length;++t)if(t>0){var r=e[t].toLowerCase();r!==e[t]?R+=" "+r:R+=e[t]}else R+=e[t].toUpperCase();return R}var t=R("WrongRegion"),r=R("SubscriptionNotActive"),o=R("UnsupportedVersion"),n=R("InstallationMethodRestricted"),E=R("HostnameRestricted");function _(e,R,t){return void 0===t&&(t=0),R(t).catch((function(r){if(t>=e.maxRetries)throw r;var o,n,E,i,a=(o=e.baseDelay,n=e.maxDelay,E=e.baseDelay*Math.pow(2,t),Math.max(o,Math.min(n,E)));return(i=a,new Promise((function(e){return setTimeout(e,i)}))).then((function(){return _(e,R,t+1)}))}))}var i="Failed to load the JS script of the agent",a="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js";function s(R){var t,r,o=R.scriptUrlPattern,n=R.token,E=R.apiKey,s=void 0===E?n:E,O=e.__rest(R,["scriptUrlPattern","token","apiKey"]),I=(t=R,r="scriptUrlPattern",Object.prototype.hasOwnProperty.call(t,r)?o:void 0),d=[];return Promise.resolve().then((function(){if(!s||"string"!=typeof s)throw new Error("API key required");return _({maxRetries:5,baseDelay:100,maxDelay:3e3},(function(){var e,R=new Date,t=function(){return d.push({startedAt:R,finishedAt:new Date})},r=(e=function(e,R){void 0===R&&(R=a);var t=encodeURIComponent;return R.replace(/<[^<>]+>/g,(function(R){return"<version>"===R?"3":"<apiKey>"===R?t(e):"<loaderVersion>"===R?t("3.7.0"):R}))}(s,I),new Promise((function(R,t){var r=document.createElement("script"),o=function(){var e;return null===(e=r.parentNode)||void 0===e?void 0:e.removeChild(r)},n=document.head||document.getElementsByTagName("head")[0];r.onload=function(){o(),R()},r.onerror=function(){o(),t(new Error(i))},r.async=!0,r.src=e,n.appendChild(r)})));return r.then(t,t),r}))})).then((function(){var R=window,t="__fpjs_p_l_b",r=R[t];if(function(e,R){var t,r=null===(t=Object.getOwnPropertyDescriptor)||void 0===t?void 0:t.call(Object,e,R);(null==r?void 0:r.configurable)?delete e[R]:r&&!r.writable||(e[R]=void 0)}(R,t),"function"!=typeof(null==r?void 0:r.load))throw new Error(i);return r.load(e.__assign(e.__assign({},O),{ldi:{attempts:d}}))}))}var O={load:s,ERROR_SCRIPT_LOAD_FAIL:i,ERROR_API_KEY_EXPIRED:"API key expired",ERROR_API_KEY_INVALID:"API key not found",ERROR_API_KEY_MISSING:"API key required",ERROR_BAD_REQUEST_FORMAT:"Request cannot be parsed",ERROR_BAD_RESPONSE_FORMAT:"Response cannot be parsed",ERROR_CLIENT_TIMEOUT:"Client timeout",ERROR_FORBIDDEN_ENDPOINT:E,ERROR_FORBIDDEN_HEADER:"Not available with restricted header",ERROR_FORBIDDEN_ORIGIN:"Not available for this origin",ERROR_GENERAL_SERVER_FAILURE:"Request failed",ERROR_INSTALLATION_METHOD_RESTRICTED:n,ERROR_NETWORK_ABORT:"Network request aborted",ERROR_NETWORK_CONNECTION:"Network connection error",ERROR_RATE_LIMIT:"Too many requests, rate limit exceeded",ERROR_SERVER_TIMEOUT:"Request failed to process",ERROR_SUBSCRIPTION_NOT_ACTIVE:r,ERROR_TOKEN_EXPIRED:"API key expired",ERROR_TOKEN_INVALID:"API key not found",ERROR_TOKEN_MISSING:"API key required",ERROR_UNSUPPORTED_VERSION:o,ERROR_WRONG_REGION:t};exports.ERROR_API_KEY_EXPIRED="API key expired",exports.ERROR_API_KEY_INVALID="API key not found",exports.ERROR_API_KEY_MISSING="API key required",exports.ERROR_BAD_REQUEST_FORMAT="Request cannot be parsed",exports.ERROR_BAD_RESPONSE_FORMAT="Response cannot be parsed",exports.ERROR_CLIENT_TIMEOUT="Client timeout",exports.ERROR_FORBIDDEN_ENDPOINT=E,exports.ERROR_FORBIDDEN_HEADER="Not available with restricted header",exports.ERROR_FORBIDDEN_ORIGIN="Not available for this origin",exports.ERROR_GENERAL_SERVER_FAILURE="Request failed",exports.ERROR_INSTALLATION_METHOD_RESTRICTED=n,exports.ERROR_NETWORK_ABORT="Network request aborted",exports.ERROR_NETWORK_CONNECTION="Network connection error",exports.ERROR_RATE_LIMIT="Too many requests, rate limit exceeded",exports.ERROR_SCRIPT_LOAD_FAIL=i,exports.ERROR_SERVER_TIMEOUT="Request failed to process",exports.ERROR_SUBSCRIPTION_NOT_ACTIVE=r,exports.ERROR_TOKEN_EXPIRED="API key expired",exports.ERROR_TOKEN_INVALID="API key not found",exports.ERROR_TOKEN_MISSING="API key required",exports.ERROR_UNSUPPORTED_VERSION=o,exports.ERROR_WRONG_REGION=t,exports.default=O,exports.load=s; |
/** | ||
* FingerprintJS Pro v3.6.4 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com) | ||
* FingerprintJS Pro v3.7.0 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com) | ||
* | ||
@@ -245,9 +245,2 @@ * This software contains code from open-source projects: | ||
/** | ||
* Handles a debug event | ||
*/ | ||
declare type PublicDebugOutput = (event: { | ||
e: number; | ||
}) => void; | ||
declare type Region = | ||
@@ -264,2 +257,7 @@ /** N. Virginia, USA */ | ||
declare type IPResolution = 'city' | 'full'; | ||
declare type Product = | ||
/** Browser identification */ | ||
'identification' | ||
/** Bot detection */ | ||
| 'botd'; | ||
declare type ApiKeyOptions = { | ||
@@ -317,13 +315,5 @@ /** Public API key */ | ||
/** | ||
* Options for FingerprintJS agent loading | ||
* A portion of LoadOptions that will be available in the loader package | ||
*/ | ||
declare type PublicLoadOptions = CommonLoadOptions & { | ||
/** | ||
* If you need to debug the agent, set a debug output channel here. | ||
* | ||
* Warning! This is an experimental API, it's out of Semantic Versioning, i.e. may have incompatible changes within | ||
* a major version. | ||
*/ | ||
debug?: PublicDebugOutput; | ||
}; | ||
declare type LoaderLoadOptions = CommonLoadOptions; | ||
/** | ||
@@ -368,2 +358,7 @@ * Options of getting a visitor identifier. | ||
/** | ||
* Products to enable (within those that are turned on in Dashboard). You won't be billed for the disabled products. | ||
* By default, all the products are enabled. | ||
*/ | ||
products?: readonly Product[]; | ||
/** | ||
* @deprecated Does nothing | ||
@@ -419,3 +414,3 @@ */ | ||
declare type LoadOptions = PublicLoadOptions & { | ||
declare type LoadOptions = LoaderLoadOptions & { | ||
/** | ||
@@ -460,3 +455,2 @@ * The pattern of the JS agent script URL. | ||
export default _default; | ||
export { PublicAgent as Agent, Confidence, ERROR_API_KEY_EXPIRED, ERROR_API_KEY_INVALID, ERROR_API_KEY_MISSING, ERROR_BAD_REQUEST_FORMAT, ERROR_BAD_RESPONSE_FORMAT, ERROR_CLIENT_TIMEOUT, ERROR_FORBIDDEN_ENDPOINT, ERROR_FORBIDDEN_HEADER, ERROR_FORBIDDEN_ORIGIN, ERROR_GENERAL_SERVER_FAILURE, ERROR_INSTALLATION_METHOD_RESTRICTED, ERROR_NETWORK_ABORT, ERROR_NETWORK_CONNECTION, ERROR_RATE_LIMIT, ERROR_SCRIPT_LOAD_FAIL, ERROR_SERVER_TIMEOUT, ERROR_SUBSCRIPTION_NOT_ACTIVE, ERROR_TOKEN_EXPIRED, ERROR_TOKEN_INVALID, ERROR_TOKEN_MISSING, ERROR_UNSUPPORTED_VERSION, ERROR_WRONG_REGION, ExtendedGetResult, FullIpExtendedGetResult, FullIpLocation, PublicGetOptions as GetOptions, GetResult, IPResolution, IpLocation, LoadOptions, Region, ZeroTrust, load }; | ||
export { PublicAgent as Agent, Confidence, ERROR_API_KEY_EXPIRED, ERROR_API_KEY_INVALID, ERROR_API_KEY_MISSING, ERROR_BAD_REQUEST_FORMAT, ERROR_BAD_RESPONSE_FORMAT, ERROR_CLIENT_TIMEOUT, ERROR_FORBIDDEN_ENDPOINT, ERROR_FORBIDDEN_HEADER, ERROR_FORBIDDEN_ORIGIN, ERROR_GENERAL_SERVER_FAILURE, ERROR_INSTALLATION_METHOD_RESTRICTED, ERROR_NETWORK_ABORT, ERROR_NETWORK_CONNECTION, ERROR_RATE_LIMIT, ERROR_SCRIPT_LOAD_FAIL, ERROR_SERVER_TIMEOUT, ERROR_SUBSCRIPTION_NOT_ACTIVE, ERROR_TOKEN_EXPIRED, ERROR_TOKEN_INVALID, ERROR_TOKEN_MISSING, ERROR_UNSUPPORTED_VERSION, ERROR_WRONG_REGION, ExtendedGetResult, FullIpExtendedGetResult, FullIpLocation, PublicGetOptions as GetOptions, GetResult, IPResolution, IpLocation, LoadOptions, Product, Region, ZeroTrust, _default as default, load }; |
/** | ||
* FingerprintJS Pro v3.6.4 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com) | ||
* FingerprintJS Pro v3.7.0 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com) | ||
* | ||
@@ -8,2 +8,2 @@ * This software contains code from open-source projects: | ||
import{__rest as e,__assign as t}from"tslib";function r(e){for(var t="",r=0;r<e.length;++r)if(r>0){var o=e[r].toLowerCase();o!==e[r]?t+=" "+o:t+=e[r]}else t+=e[r].toUpperCase();return t}var o="Client timeout",n="Network connection error",i="Network request aborted",R="Response cannot be parsed",a=r("WrongRegion"),d=r("SubscriptionNotActive"),s=r("UnsupportedVersion"),E=r("InstallationMethodRestricted"),u=r("HostnameRestricted"),l="API key required",c="API key not found",_="API key expired",O="Request cannot be parsed",I="Request failed",p="Request failed to process",f="Too many requests, rate limit exceeded",N="Not available for this origin",v="Not available with restricted header",A="API key required",P="API key not found",T="API key expired";function y(e,t,r){return void 0===r&&(r=0),t(r).catch((function(o){if(r>=e.maxRetries)throw o;var n,i,R,a,d=(n=e.baseDelay,i=e.maxDelay,R=e.baseDelay*Math.pow(2,r),Math.max(n,Math.min(i,R)));return(a=d,new Promise((function(e){return setTimeout(e,a)}))).then((function(){return y(e,t,r+1)}))}))}var h="Failed to load the JS script of the agent",m="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js";function D(r){var o,n,i=r.scriptUrlPattern,R=r.token,a=r.apiKey,d=void 0===a?R:a,s=e(r,["scriptUrlPattern","token","apiKey"]),E=(o=r,n="scriptUrlPattern",Object.prototype.hasOwnProperty.call(o,n)?i:void 0),u=[];return Promise.resolve().then((function(){if(!d||"string"!=typeof d)throw new Error("API key required");return y({maxRetries:5,baseDelay:100,maxDelay:3e3},(function(){var e,t=new Date,r=function(){return u.push({startedAt:t,finishedAt:new Date})},o=(e=function(e,t){void 0===t&&(t=m);var r=encodeURIComponent;return t.replace(/<[^<>]+>/g,(function(t){return"<version>"===t?"3":"<apiKey>"===t?r(e):"<loaderVersion>"===t?r("3.6.4"):t}))}(d,E),new Promise((function(t,r){var o=document.createElement("script"),n=function(){var e;return null===(e=o.parentNode)||void 0===e?void 0:e.removeChild(o)},i=document.head||document.getElementsByTagName("head")[0];o.onload=function(){n(),t()},o.onerror=function(){n(),r(new Error(h))},o.async=!0,o.src=e,i.appendChild(o)})));return o.then(r,r),o}))})).then((function(){var e=window,r="__fpjs_p_l_b",o=e[r];if(function(e,t){var r,o=null===(r=Object.getOwnPropertyDescriptor)||void 0===r?void 0:r.call(Object,e,t);(null==o?void 0:o.configurable)?delete e[t]:o&&!o.writable||(e[t]=void 0)}(e,r),"function"!=typeof(null==o?void 0:o.load))throw new Error(h);return o.load(t(t({},s),{ldi:{attempts:u}}))}))}var w={load:D,ERROR_SCRIPT_LOAD_FAIL:h,ERROR_API_KEY_EXPIRED:"API key expired",ERROR_API_KEY_INVALID:"API key not found",ERROR_API_KEY_MISSING:"API key required",ERROR_BAD_REQUEST_FORMAT:"Request cannot be parsed",ERROR_BAD_RESPONSE_FORMAT:"Response cannot be parsed",ERROR_CLIENT_TIMEOUT:"Client timeout",ERROR_FORBIDDEN_ENDPOINT:u,ERROR_FORBIDDEN_HEADER:"Not available with restricted header",ERROR_FORBIDDEN_ORIGIN:"Not available for this origin",ERROR_GENERAL_SERVER_FAILURE:"Request failed",ERROR_INSTALLATION_METHOD_RESTRICTED:E,ERROR_NETWORK_ABORT:"Network request aborted",ERROR_NETWORK_CONNECTION:"Network connection error",ERROR_RATE_LIMIT:"Too many requests, rate limit exceeded",ERROR_SERVER_TIMEOUT:"Request failed to process",ERROR_SUBSCRIPTION_NOT_ACTIVE:d,ERROR_TOKEN_EXPIRED:"API key expired",ERROR_TOKEN_INVALID:"API key not found",ERROR_TOKEN_MISSING:"API key required",ERROR_UNSUPPORTED_VERSION:s,ERROR_WRONG_REGION:a};export default w;export{_ as ERROR_API_KEY_EXPIRED,c as ERROR_API_KEY_INVALID,l as ERROR_API_KEY_MISSING,O as ERROR_BAD_REQUEST_FORMAT,R as ERROR_BAD_RESPONSE_FORMAT,o as ERROR_CLIENT_TIMEOUT,u as ERROR_FORBIDDEN_ENDPOINT,v as ERROR_FORBIDDEN_HEADER,N as ERROR_FORBIDDEN_ORIGIN,I as ERROR_GENERAL_SERVER_FAILURE,E as ERROR_INSTALLATION_METHOD_RESTRICTED,i as ERROR_NETWORK_ABORT,n as ERROR_NETWORK_CONNECTION,f as ERROR_RATE_LIMIT,h as ERROR_SCRIPT_LOAD_FAIL,p as ERROR_SERVER_TIMEOUT,d as ERROR_SUBSCRIPTION_NOT_ACTIVE,T as ERROR_TOKEN_EXPIRED,P as ERROR_TOKEN_INVALID,A as ERROR_TOKEN_MISSING,s as ERROR_UNSUPPORTED_VERSION,a as ERROR_WRONG_REGION,D as load}; | ||
import{__rest as e,__assign as t}from"tslib";function r(e){for(var t="",r=0;r<e.length;++r)if(r>0){var o=e[r].toLowerCase();o!==e[r]?t+=" "+o:t+=e[r]}else t+=e[r].toUpperCase();return t}var o="Client timeout",n="Network connection error",i="Network request aborted",R="Response cannot be parsed",a=/*#__PURE__*/r("WrongRegion"),d=/*#__PURE__*/r("SubscriptionNotActive"),s=/*#__PURE__*/r("UnsupportedVersion"),E=/*#__PURE__*/r("InstallationMethodRestricted"),u=/*#__PURE__*/r("HostnameRestricted"),l="API key required",c="API key not found",_="API key expired",O="Request cannot be parsed",I="Request failed",p="Request failed to process",f="Too many requests, rate limit exceeded",N="Not available for this origin",v="Not available with restricted header",A="API key required",P="API key not found",T="API key expired";function y(e,t,r){return void 0===r&&(r=0),t(r).catch((function(o){if(r>=e.maxRetries)throw o;var n,i,R,a,d=(n=e.baseDelay,i=e.maxDelay,R=e.baseDelay*Math.pow(2,r),Math.max(n,Math.min(i,R)));return(a=d,new Promise((function(e){return setTimeout(e,a)}))).then((function(){return y(e,t,r+1)}))}))}var h="Failed to load the JS script of the agent",m="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js";function D(r){var o,n,i=r.scriptUrlPattern,R=r.token,a=r.apiKey,d=void 0===a?R:a,s=e(r,["scriptUrlPattern","token","apiKey"]),E=(o=r,n="scriptUrlPattern",Object.prototype.hasOwnProperty.call(o,n)?i:void 0),u=[];return Promise.resolve().then((function(){if(!d||"string"!=typeof d)throw new Error("API key required");return y({maxRetries:5,baseDelay:100,maxDelay:3e3},(function(){var e,t=new Date,r=function(){return u.push({startedAt:t,finishedAt:new Date})},o=(e=function(e,t){void 0===t&&(t=m);var r=encodeURIComponent;return t.replace(/<[^<>]+>/g,(function(t){return"<version>"===t?"3":"<apiKey>"===t?r(e):"<loaderVersion>"===t?r("3.7.0"):t}))}(d,E),new Promise((function(t,r){var o=document.createElement("script"),n=function(){var e;return null===(e=o.parentNode)||void 0===e?void 0:e.removeChild(o)},i=document.head||document.getElementsByTagName("head")[0];o.onload=function(){n(),t()},o.onerror=function(){n(),r(new Error(h))},o.async=!0,o.src=e,i.appendChild(o)})));return o.then(r,r),o}))})).then((function(){var e=window,r="__fpjs_p_l_b",o=e[r];if(function(e,t){var r,o=null===(r=Object.getOwnPropertyDescriptor)||void 0===r?void 0:r.call(Object,e,t);(null==o?void 0:o.configurable)?delete e[t]:o&&!o.writable||(e[t]=void 0)}(e,r),"function"!=typeof(null==o?void 0:o.load))throw new Error(h);return o.load(t(t({},s),{ldi:{attempts:u}}))}))}var w={load:D,ERROR_SCRIPT_LOAD_FAIL:h,ERROR_API_KEY_EXPIRED:"API key expired",ERROR_API_KEY_INVALID:"API key not found",ERROR_API_KEY_MISSING:"API key required",ERROR_BAD_REQUEST_FORMAT:"Request cannot be parsed",ERROR_BAD_RESPONSE_FORMAT:"Response cannot be parsed",ERROR_CLIENT_TIMEOUT:"Client timeout",ERROR_FORBIDDEN_ENDPOINT:u,ERROR_FORBIDDEN_HEADER:"Not available with restricted header",ERROR_FORBIDDEN_ORIGIN:"Not available for this origin",ERROR_GENERAL_SERVER_FAILURE:"Request failed",ERROR_INSTALLATION_METHOD_RESTRICTED:E,ERROR_NETWORK_ABORT:"Network request aborted",ERROR_NETWORK_CONNECTION:"Network connection error",ERROR_RATE_LIMIT:"Too many requests, rate limit exceeded",ERROR_SERVER_TIMEOUT:"Request failed to process",ERROR_SUBSCRIPTION_NOT_ACTIVE:d,ERROR_TOKEN_EXPIRED:"API key expired",ERROR_TOKEN_INVALID:"API key not found",ERROR_TOKEN_MISSING:"API key required",ERROR_UNSUPPORTED_VERSION:s,ERROR_WRONG_REGION:a};export{_ as ERROR_API_KEY_EXPIRED,c as ERROR_API_KEY_INVALID,l as ERROR_API_KEY_MISSING,O as ERROR_BAD_REQUEST_FORMAT,R as ERROR_BAD_RESPONSE_FORMAT,o as ERROR_CLIENT_TIMEOUT,u as ERROR_FORBIDDEN_ENDPOINT,v as ERROR_FORBIDDEN_HEADER,N as ERROR_FORBIDDEN_ORIGIN,I as ERROR_GENERAL_SERVER_FAILURE,E as ERROR_INSTALLATION_METHOD_RESTRICTED,i as ERROR_NETWORK_ABORT,n as ERROR_NETWORK_CONNECTION,f as ERROR_RATE_LIMIT,h as ERROR_SCRIPT_LOAD_FAIL,p as ERROR_SERVER_TIMEOUT,d as ERROR_SUBSCRIPTION_NOT_ACTIVE,T as ERROR_TOKEN_EXPIRED,P as ERROR_TOKEN_INVALID,A as ERROR_TOKEN_MISSING,s as ERROR_UNSUPPORTED_VERSION,a as ERROR_WRONG_REGION,w as default,D as load}; |
{ | ||
"name": "@fingerprintjs/fingerprintjs-pro", | ||
"description": "FingerprintJS Pro client agent", | ||
"version": "3.6.4", | ||
"version": "3.7.0", | ||
"keywords": [ | ||
@@ -28,6 +28,7 @@ "browser", | ||
"scripts": { | ||
"build": "rimraf dist && rimraf tests/dist && yarn build:index && yarn build:mock-cdn && rollup -c", | ||
"build": "rimraf dist && rimraf tests/dist && yarn build:index && yarn build:mock-cdn && yarn build:ts", | ||
"build:index": "ts-node --compiler-options '{\"module\": \"CommonJS\"}' ./resources/build_index.ts", | ||
"build:mock-cdn": "ts-node --compiler-options '{\"module\": \"CommonJS\"}' ./resources/build_mock_cdn.ts" | ||
"build:mock-cdn": "ts-node --compiler-options '{\"module\": \"CommonJS\"}' ./resources/build_mock_cdn.ts", | ||
"build:ts": "rollup -c rollup.config.ts --configPlugin '@rollup/plugin-typescript={tsconfig:`tsconfig.rollupConfig.json`,include:[/\\.ts$/i]}'" | ||
} | ||
} |
@@ -5,4 +5,4 @@ <p align="center"> | ||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset="resources/logo_light.svg" /> | ||
<source media="(prefers-color-scheme: light)" srcset="resources/logo_dark.svg" /> | ||
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/fingerprintjs/library-template-typescript/4565c620a936fa4a503facc6f206d6626b68d5fc/resources/logo_light.svg" /> | ||
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/fingerprintjs/library-template-typescript/4565c620a936fa4a503facc6f206d6626b68d5fc/resources/logo_dark.svg" /> | ||
<img src="resources/logo_dark.svg" alt="Fingerprint logo" width="312px" /> | ||
@@ -9,0 +9,0 @@ </picture> |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
0
36113
532