@fingerprintjs/fingerprintjs-pro
Advanced tools
Comparing version 3.6.0 to 3.6.1
/** | ||
* FingerprintJS Pro v3.6.0 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprintjs.com) | ||
* FingerprintJS Pro v3.6.1 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprintjs.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");function E(e,R,t){return void 0===t&&(t=0),R(t).catch((function(r){if(t>=e.maxRetries)throw r;var o,n,_,i,a=(o=e.baseDelay,n=e.maxDelay,_=e.baseDelay*Math.pow(2,t),Math.max(o,Math.min(n,_)));return(i=a,new Promise((function(e){return setTimeout(e,i)}))).then((function(){return E(e,R,t+1)}))}))}var _="Failed to load the JS script of the agent",i="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js";function a(R){var t=R.scriptUrlPattern,r=R.token,o=R.apiKey,n=void 0===o?r:o,a=e.__rest(R,["scriptUrlPattern","token","apiKey"]),s=[];return Promise.resolve().then((function(){if(!n||"string"!=typeof n)throw new Error("API key required");return E({maxRetries:5,baseDelay:100,maxDelay:3e3},(function(){var e,R=new Date,r=function(){return s.push({startedAt:R,finishedAt:new Date})},o=(e=function(e,R){void 0===R&&(R=i);var t=encodeURIComponent;return R.replace(/<[^<>]+>/g,(function(R){return"<version>"===R?"3":"<apiKey>"===R?t(e):"<loaderVersion>"===R?t("3.6.0"):R}))}(n,t),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(_))},r.async=!0,r.src=e,n.appendChild(r)})));return o.then(r,r),o}))})).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(_);return r.load(e.__assign(e.__assign({},a),{ldi:{attempts:s}}))}))}var s={load:a,ERROR_SCRIPT_LOAD_FAIL:_,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_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_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=_,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=s,exports.load=a; | ||
"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");function E(e,R,t){return void 0===t&&(t=0),R(t).catch((function(r){if(t>=e.maxRetries)throw r;var o,n,_,i,a=(o=e.baseDelay,n=e.maxDelay,_=e.baseDelay*Math.pow(2,t),Math.max(o,Math.min(n,_)));return(i=a,new Promise((function(e){return setTimeout(e,i)}))).then((function(){return E(e,R,t+1)}))}))}var _="Failed to load the JS script of the agent",i="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js";function a(R){var t=R.scriptUrlPattern,r=R.token,o=R.apiKey,n=void 0===o?r:o,a=e.__rest(R,["scriptUrlPattern","token","apiKey"]),s=[];return Promise.resolve().then((function(){if(!n||"string"!=typeof n)throw new Error("API key required");return E({maxRetries:5,baseDelay:100,maxDelay:3e3},(function(){var e,R=new Date,r=function(){return s.push({startedAt:R,finishedAt:new Date})},o=(e=function(e,R){void 0===R&&(R=i);var t=encodeURIComponent;return R.replace(/<[^<>]+>/g,(function(R){return"<version>"===R?"3":"<apiKey>"===R?t(e):"<loaderVersion>"===R?t("3.6.1"):R}))}(n,t),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(_))},r.async=!0,r.src=e,n.appendChild(r)})));return o.then(r,r),o}))})).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(_);return r.load(e.__assign(e.__assign({},a),{ldi:{attempts:s}}))}))}var s={load:a,ERROR_SCRIPT_LOAD_FAIL:_,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_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_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=_,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=s,exports.load=a; |
/** | ||
* FingerprintJS Pro v3.6.0 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprintjs.com) | ||
* FingerprintJS Pro v3.6.1 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprintjs.com) | ||
* | ||
@@ -4,0 +4,0 @@ * This software contains code from open-source projects: |
/** | ||
* FingerprintJS Pro v3.6.0 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprintjs.com) | ||
* FingerprintJS Pro v3.6.1 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprintjs.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 n=e[r].toLowerCase();n!==e[r]?t+=" "+n:t+=e[r]}else t+=e[r].toUpperCase();return t}var n="Client timeout",o="Network connection error",i="Network request aborted",R="Response cannot be parsed",a=r("WrongRegion"),d=r("SubscriptionNotActive"),s=r("UnsupportedVersion"),u=r("InstallationMethodRestricted"),E="API key required",l="API key not found",_="API key expired",c="Request cannot be parsed",I="Request failed",O="Request failed to process",p="Too many requests, rate limit exceeded",f="Not available for this origin",N="Not available with restricted header",A="API key required",v="API key not found",T="API key expired";function y(e,t,r){return void 0===r&&(r=0),t(r).catch((function(n){if(r>=e.maxRetries)throw n;var o,i,R,a,d=(o=e.baseDelay,i=e.maxDelay,R=e.baseDelay*Math.pow(2,r),Math.max(o,Math.min(i,R)));return(a=d,new Promise((function(e){return setTimeout(e,a)}))).then((function(){return y(e,t,r+1)}))}))}var P="Failed to load the JS script of the agent",h="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js";function m(r){var n=r.scriptUrlPattern,o=r.token,i=r.apiKey,R=void 0===i?o:i,a=e(r,["scriptUrlPattern","token","apiKey"]),d=[];return Promise.resolve().then((function(){if(!R||"string"!=typeof R)throw new Error("API key required");return y({maxRetries:5,baseDelay:100,maxDelay:3e3},(function(){var e,t=new Date,r=function(){return d.push({startedAt:t,finishedAt:new Date})},o=(e=function(e,t){void 0===t&&(t=h);var r=encodeURIComponent;return t.replace(/<[^<>]+>/g,(function(t){return"<version>"===t?"3":"<apiKey>"===t?r(e):"<loaderVersion>"===t?r("3.6.0"):t}))}(R,n),new Promise((function(t,r){var n=document.createElement("script"),o=function(){var e;return null===(e=n.parentNode)||void 0===e?void 0:e.removeChild(n)},i=document.head||document.getElementsByTagName("head")[0];n.onload=function(){o(),t()},n.onerror=function(){o(),r(new Error(P))},n.async=!0,n.src=e,i.appendChild(n)})));return o.then(r,r),o}))})).then((function(){var e=window,r="__fpjs_p_l_b",n=e[r];if(function(e,t){var r,n=null===(r=Object.getOwnPropertyDescriptor)||void 0===r?void 0:r.call(Object,e,t);(null==n?void 0:n.configurable)?delete e[t]:n&&!n.writable||(e[t]=void 0)}(e,r),"function"!=typeof(null==n?void 0:n.load))throw new Error(P);return n.load(t(t({},a),{ldi:{attempts:d}}))}))}var D={load:m,ERROR_SCRIPT_LOAD_FAIL:P,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_HEADER:"Not available with restricted header",ERROR_FORBIDDEN_ORIGIN:"Not available for this origin",ERROR_GENERAL_SERVER_FAILURE:"Request failed",ERROR_INSTALLATION_METHOD_RESTRICTED:u,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 D;export{_ as ERROR_API_KEY_EXPIRED,l as ERROR_API_KEY_INVALID,E as ERROR_API_KEY_MISSING,c as ERROR_BAD_REQUEST_FORMAT,R as ERROR_BAD_RESPONSE_FORMAT,n as ERROR_CLIENT_TIMEOUT,N as ERROR_FORBIDDEN_HEADER,f as ERROR_FORBIDDEN_ORIGIN,I as ERROR_GENERAL_SERVER_FAILURE,u as ERROR_INSTALLATION_METHOD_RESTRICTED,i as ERROR_NETWORK_ABORT,o as ERROR_NETWORK_CONNECTION,p as ERROR_RATE_LIMIT,P as ERROR_SCRIPT_LOAD_FAIL,O as ERROR_SERVER_TIMEOUT,d as ERROR_SUBSCRIPTION_NOT_ACTIVE,T as ERROR_TOKEN_EXPIRED,v as ERROR_TOKEN_INVALID,A as ERROR_TOKEN_MISSING,s as ERROR_UNSUPPORTED_VERSION,a as ERROR_WRONG_REGION,m 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 n=e[r].toLowerCase();n!==e[r]?t+=" "+n:t+=e[r]}else t+=e[r].toUpperCase();return t}var n="Client timeout",o="Network connection error",i="Network request aborted",R="Response cannot be parsed",a=r("WrongRegion"),d=r("SubscriptionNotActive"),s=r("UnsupportedVersion"),u=r("InstallationMethodRestricted"),E="API key required",l="API key not found",_="API key expired",c="Request cannot be parsed",I="Request failed",O="Request failed to process",p="Too many requests, rate limit exceeded",f="Not available for this origin",N="Not available with restricted header",A="API key required",v="API key not found",T="API key expired";function y(e,t,r){return void 0===r&&(r=0),t(r).catch((function(n){if(r>=e.maxRetries)throw n;var o,i,R,a,d=(o=e.baseDelay,i=e.maxDelay,R=e.baseDelay*Math.pow(2,r),Math.max(o,Math.min(i,R)));return(a=d,new Promise((function(e){return setTimeout(e,a)}))).then((function(){return y(e,t,r+1)}))}))}var P="Failed to load the JS script of the agent",h="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js";function m(r){var n=r.scriptUrlPattern,o=r.token,i=r.apiKey,R=void 0===i?o:i,a=e(r,["scriptUrlPattern","token","apiKey"]),d=[];return Promise.resolve().then((function(){if(!R||"string"!=typeof R)throw new Error("API key required");return y({maxRetries:5,baseDelay:100,maxDelay:3e3},(function(){var e,t=new Date,r=function(){return d.push({startedAt:t,finishedAt:new Date})},o=(e=function(e,t){void 0===t&&(t=h);var r=encodeURIComponent;return t.replace(/<[^<>]+>/g,(function(t){return"<version>"===t?"3":"<apiKey>"===t?r(e):"<loaderVersion>"===t?r("3.6.1"):t}))}(R,n),new Promise((function(t,r){var n=document.createElement("script"),o=function(){var e;return null===(e=n.parentNode)||void 0===e?void 0:e.removeChild(n)},i=document.head||document.getElementsByTagName("head")[0];n.onload=function(){o(),t()},n.onerror=function(){o(),r(new Error(P))},n.async=!0,n.src=e,i.appendChild(n)})));return o.then(r,r),o}))})).then((function(){var e=window,r="__fpjs_p_l_b",n=e[r];if(function(e,t){var r,n=null===(r=Object.getOwnPropertyDescriptor)||void 0===r?void 0:r.call(Object,e,t);(null==n?void 0:n.configurable)?delete e[t]:n&&!n.writable||(e[t]=void 0)}(e,r),"function"!=typeof(null==n?void 0:n.load))throw new Error(P);return n.load(t(t({},a),{ldi:{attempts:d}}))}))}var D={load:m,ERROR_SCRIPT_LOAD_FAIL:P,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_HEADER:"Not available with restricted header",ERROR_FORBIDDEN_ORIGIN:"Not available for this origin",ERROR_GENERAL_SERVER_FAILURE:"Request failed",ERROR_INSTALLATION_METHOD_RESTRICTED:u,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 D;export{_ as ERROR_API_KEY_EXPIRED,l as ERROR_API_KEY_INVALID,E as ERROR_API_KEY_MISSING,c as ERROR_BAD_REQUEST_FORMAT,R as ERROR_BAD_RESPONSE_FORMAT,n as ERROR_CLIENT_TIMEOUT,N as ERROR_FORBIDDEN_HEADER,f as ERROR_FORBIDDEN_ORIGIN,I as ERROR_GENERAL_SERVER_FAILURE,u as ERROR_INSTALLATION_METHOD_RESTRICTED,i as ERROR_NETWORK_ABORT,o as ERROR_NETWORK_CONNECTION,p as ERROR_RATE_LIMIT,P as ERROR_SCRIPT_LOAD_FAIL,O as ERROR_SERVER_TIMEOUT,d as ERROR_SUBSCRIPTION_NOT_ACTIVE,T as ERROR_TOKEN_EXPIRED,v as ERROR_TOKEN_INVALID,A as ERROR_TOKEN_MISSING,s as ERROR_UNSUPPORTED_VERSION,a as ERROR_WRONG_REGION,m as load}; |
{ | ||
"name": "@fingerprintjs/fingerprintjs-pro", | ||
"description": "FingerprintJS Pro client agent", | ||
"version": "3.6.0", | ||
"version": "3.6.1", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "browser", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
173569
1061
2