@netacea/netaceaintegrationbase 2.0.35 → 2.0.36

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
@@ -141,11 +141,11 @@ const captchaMap = {
141
141
  };
142
142
  const captchaStatusCodes = {
143
143
  '': 0,
144
- 'captchaServe': 1,
145
- 'captchaPass': 2,
146
- 'captchaFail': 3,
147
- 'captchaCookiePass': 4,
148
- 'captchaCookieFail': 5
144
+ captchaServe: 1,
145
+ captchaPass: 2,
146
+ captchaFail: 3,
147
+ captchaCookiePass: 4,
148
+ captchaCookieFail: 5
149
149
  };
150
150
  const bestMitigationMap = {
151
151
  0: mitigationTypes.none,
@@ -412,7 +412,6 @@ function defaultInvalidResponse() {
412
412
  };
413
413
  }
414
414
 
415
- // eslint-disable-next-line complexity
416
415
  function configureCookiesDomain(cookieAttr, captchaCookieAttr) {
417
416
  cookieAttr = removeDuplicateAttrs(cookieAttr ?? '', true);
418
417
  captchaCookieAttr = removeDuplicateAttrs(captchaCookieAttr ?? '', true);
@@ -425,7 +424,6 @@ function configureCookiesDomain(cookieAttr, captchaCookieAttr) {
425
424
  finalCaptchaCookieAttr = captchaCookieAttr.replace(captchaDomain, domain);
426
425
  }
427
426
  else if (domain !== undefined && captchaDomain === undefined) {
428
- // eslint-disable-next-line max-len
429
427
  finalCaptchaCookieAttr = captchaCookieAttr + (captchaCookieAttr !== '' ? `; Domain=${domain}` : `Domain=${domain}`);
430
428
  }
431
429
  else if (domain === undefined && captchaDomain !== undefined) {
package/dist/index.mjs CHANGED
@@ -139,11 +139,11 @@ const captchaMap = {
139
139
  };
140
140
  const captchaStatusCodes = {
141
141
  '': 0,
142
- 'captchaServe': 1,
143
- 'captchaPass': 2,
144
- 'captchaFail': 3,
145
- 'captchaCookiePass': 4,
146
- 'captchaCookieFail': 5
142
+ captchaServe: 1,
143
+ captchaPass: 2,
144
+ captchaFail: 3,
145
+ captchaCookiePass: 4,
146
+ captchaCookieFail: 5
147
147
  };
148
148
  const bestMitigationMap = {
149
149
  0: mitigationTypes.none,
@@ -410,7 +410,6 @@ function defaultInvalidResponse() {
410
410
  };
411
411
  }
412
412
 
413
- // eslint-disable-next-line complexity
414
413
  function configureCookiesDomain(cookieAttr, captchaCookieAttr) {
415
414
  cookieAttr = removeDuplicateAttrs(cookieAttr ?? '', true);
416
415
  captchaCookieAttr = removeDuplicateAttrs(captchaCookieAttr ?? '', true);
@@ -423,7 +422,6 @@ function configureCookiesDomain(cookieAttr, captchaCookieAttr) {
423
422
  finalCaptchaCookieAttr = captchaCookieAttr.replace(captchaDomain, domain);
424
423
  }
425
424
  else if (domain !== undefined && captchaDomain === undefined) {
426
- // eslint-disable-next-line max-len
427
425
  finalCaptchaCookieAttr = captchaCookieAttr + (captchaCookieAttr !== '' ? `; Domain=${domain}` : `Domain=${domain}`);
428
426
  }
429
427
  else if (domain === undefined && captchaDomain !== undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netacea/netaceaintegrationbase",
3
- "version": "2.0.35",
3
+ "version": "2.0.36",
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.53"
27
+ "@netacea/kinesisingest": "^1.5.54"
28
28
  },
29
- "gitHead": "c1946ccdfdec28c1030fe76cd3442eea92f14cc5"
29
+ "gitHead": "6a7870a1569541c04f792429141980159d5beaf6"
30
30
  }