@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 CHANGED
@@ -6360,15 +6360,14 @@ function parseFbCxd(input) {
6360
6360
  return { cxd, fbAdditionalCxd };
6361
6361
  }
6362
6362
  var thumbmark_instance;
6363
- async function getFingerprint() {
6363
+ async function getFingerprint(environment) {
6364
6364
  if (typeof window === "undefined") return null;
6365
6365
  if (!thumbmark_instance) {
6366
6366
  thumbmark_instance = new thumbmarkjs.Thumbmark({
6367
- api_key: "8294c227c5194f96e4deb022e8e76293",
6367
+ api_key: environment === "production" ? "8294c227c5194f96e4deb022e8e76293" : void 0,
6368
6368
  logging: false,
6369
6369
  timeout: 3e4,
6370
- cache_lifetime_in_ms: 24 * 60 * 60 * 1e3
6371
- // 24h
6370
+ cache_lifetime_in_ms: 1 * 60 * 60 * 1e3
6372
6371
  });
6373
6372
  }
6374
6373
  try {
@@ -9257,7 +9256,7 @@ var Sdk = class {
9257
9256
  };
9258
9257
  }
9259
9258
  async fingerprint() {
9260
- return await getFingerprint();
9259
+ return await getFingerprint(this.config.environment ?? "development");
9261
9260
  }
9262
9261
  get miscMiddleware() {
9263
9262
  return async (request) => {