@opexa/portal-sdk 0.59.12 → 0.59.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6355,15 +6355,14 @@ function parseFbCxd(input) {
|
|
|
6355
6355
|
return { cxd, fbAdditionalCxd };
|
|
6356
6356
|
}
|
|
6357
6357
|
var thumbmark_instance;
|
|
6358
|
-
async function getFingerprint() {
|
|
6358
|
+
async function getFingerprint(environment) {
|
|
6359
6359
|
if (typeof window === "undefined") return null;
|
|
6360
6360
|
if (!thumbmark_instance) {
|
|
6361
6361
|
thumbmark_instance = new Thumbmark({
|
|
6362
|
-
api_key: "8294c227c5194f96e4deb022e8e76293",
|
|
6362
|
+
api_key: environment === "production" ? "8294c227c5194f96e4deb022e8e76293" : void 0,
|
|
6363
6363
|
logging: false,
|
|
6364
6364
|
timeout: 3e4,
|
|
6365
|
-
cache_lifetime_in_ms:
|
|
6366
|
-
// 24h
|
|
6365
|
+
cache_lifetime_in_ms: 1 * 60 * 60 * 1e3
|
|
6367
6366
|
});
|
|
6368
6367
|
}
|
|
6369
6368
|
try {
|
|
@@ -9252,7 +9251,7 @@ var Sdk = class {
|
|
|
9252
9251
|
};
|
|
9253
9252
|
}
|
|
9254
9253
|
async fingerprint() {
|
|
9255
|
-
return await getFingerprint();
|
|
9254
|
+
return await getFingerprint(this.config.environment ?? "development");
|
|
9256
9255
|
}
|
|
9257
9256
|
get miscMiddleware() {
|
|
9258
9257
|
return async (request) => {
|