@netacea/netaceaintegrationbase 2.0.50 → 2.0.52

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
@@ -295,7 +295,8 @@ function checkMitataCookie(netaceaCookie, clientIP, secretKey) {
295
295
  isPrimaryHashValid: valid,
296
296
  match: mitata.match,
297
297
  mitigate: mitata.mitigate,
298
- captcha: mitata.captcha
298
+ captcha: mitata.captcha,
299
+ userId: mitata.userId
299
300
  };
300
301
  }
301
302
  return defaultInvalidResponse;
package/dist/index.d.ts CHANGED
@@ -363,6 +363,7 @@ interface NetaceaResponseBase {
363
363
  sessionStatus: string;
364
364
  apiCallLatency?: number;
365
365
  apiCallStatus?: number;
366
+ cookieSessionStatus?: string | undefined;
366
367
  }
367
368
  interface MitigateResponse<T = any> extends NetaceaResponseBase {
368
369
  /**
@@ -486,6 +487,7 @@ interface CheckCookieResponse {
486
487
  mitigate: number;
487
488
  captcha: number;
488
489
  issueReason?: NetaceaCookieV3IssueReason;
490
+ userId?: string | undefined;
489
491
  }
490
492
  declare function matchMitataCookie(netaceaCookie: string | undefined): MitataCookie | undefined;
491
493
  declare function generateId(length?: number, charset?: string[]): string;
package/dist/index.mjs CHANGED
@@ -293,7 +293,8 @@ function checkMitataCookie(netaceaCookie, clientIP, secretKey) {
293
293
  isPrimaryHashValid: valid,
294
294
  match: mitata.match,
295
295
  mitigate: mitata.mitigate,
296
- captcha: mitata.captcha
296
+ captcha: mitata.captcha,
297
+ userId: mitata.userId
297
298
  };
298
299
  }
299
300
  return defaultInvalidResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netacea/netaceaintegrationbase",
3
- "version": "2.0.50",
3
+ "version": "2.0.52",
4
4
  "description": "Base package for Netacea CDN integrations.",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "license": "UNLICENSED",
26
26
  "dependencies": {
27
- "@netacea/kinesisingest": "^1.5.68"
27
+ "@netacea/kinesisingest": "^1.5.70"
28
28
  },
29
- "gitHead": "51e05dcf0ade1373d0bf3ce0dae2c67c1da7b9c1"
29
+ "gitHead": "80732378d96f2330deec92daa70ad0effa4e066a"
30
30
  }