@netacea/netaceaintegrationbase 2.0.49 → 2.0.51
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 +2 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +2 -1
- package/package.json +3 -3
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
|
@@ -301,6 +301,7 @@ interface IngestArgs {
|
|
|
301
301
|
requestHost?: string;
|
|
302
302
|
mitigationLatency?: number;
|
|
303
303
|
mitigationStatus?: number;
|
|
304
|
+
netaceaCookieStatus?: number;
|
|
304
305
|
}
|
|
305
306
|
interface WebLog {
|
|
306
307
|
Request: string;
|
|
@@ -321,6 +322,7 @@ interface WebLog {
|
|
|
321
322
|
RequestHost?: string;
|
|
322
323
|
ProtectorLatencyMs?: number;
|
|
323
324
|
ProtectorStatus?: number;
|
|
325
|
+
NetaceaUserIdCookieStatus?: number;
|
|
324
326
|
}
|
|
325
327
|
interface V2WebLog {
|
|
326
328
|
'@timestamp': string;
|
|
@@ -361,6 +363,7 @@ interface NetaceaResponseBase {
|
|
|
361
363
|
sessionStatus: string;
|
|
362
364
|
apiCallLatency?: number;
|
|
363
365
|
apiCallStatus?: number;
|
|
366
|
+
cookieSessionStatus?: string | undefined;
|
|
364
367
|
}
|
|
365
368
|
interface MitigateResponse<T = any> extends NetaceaResponseBase {
|
|
366
369
|
/**
|
|
@@ -484,6 +487,7 @@ interface CheckCookieResponse {
|
|
|
484
487
|
mitigate: number;
|
|
485
488
|
captcha: number;
|
|
486
489
|
issueReason?: NetaceaCookieV3IssueReason;
|
|
490
|
+
userId?: string | undefined;
|
|
487
491
|
}
|
|
488
492
|
declare function matchMitataCookie(netaceaCookie: string | undefined): MitataCookie | undefined;
|
|
489
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.
|
|
3
|
+
"version": "2.0.51",
|
|
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.
|
|
27
|
+
"@netacea/kinesisingest": "^1.5.69"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "094acb64590a4031a7bf322858fd934ac5eb5512"
|
|
30
30
|
}
|