@netacea/netaceaintegrationbase 2.0.60 → 2.0.61
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 +0 -11
- package/dist/index.d.ts +1 -48
- package/dist/index.mjs +1 -12
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -23,17 +23,6 @@ exports.NetaceaIngestType = void 0;
|
|
|
23
23
|
*/
|
|
24
24
|
NetaceaIngestType["NATIVE"] = "NATIVE";
|
|
25
25
|
})(exports.NetaceaIngestType || (exports.NetaceaIngestType = {}));
|
|
26
|
-
exports.NetaceaLogVersion = void 0;
|
|
27
|
-
(function (NetaceaLogVersion) {
|
|
28
|
-
/**
|
|
29
|
-
* Current style log version
|
|
30
|
-
*/
|
|
31
|
-
NetaceaLogVersion["V1"] = "V1";
|
|
32
|
-
/**
|
|
33
|
-
* V2 Log format, should only be used if Netacea instructs
|
|
34
|
-
*/
|
|
35
|
-
NetaceaLogVersion["V2"] = "V2";
|
|
36
|
-
})(exports.NetaceaLogVersion || (exports.NetaceaLogVersion = {}));
|
|
37
26
|
exports.NetaceaMitigationType = void 0;
|
|
38
27
|
(function (NetaceaMitigationType) {
|
|
39
28
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -19,16 +19,6 @@ declare enum NetaceaIngestType {
|
|
|
19
19
|
*/
|
|
20
20
|
NATIVE = "NATIVE"
|
|
21
21
|
}
|
|
22
|
-
declare enum NetaceaLogVersion {
|
|
23
|
-
/**
|
|
24
|
-
* Current style log version
|
|
25
|
-
*/
|
|
26
|
-
V1 = "V1",
|
|
27
|
-
/**
|
|
28
|
-
* V2 Log format, should only be used if Netacea instructs
|
|
29
|
-
*/
|
|
30
|
-
V2 = "V2"
|
|
31
|
-
}
|
|
32
22
|
declare enum NetaceaMitigationType {
|
|
33
23
|
/**
|
|
34
24
|
* Run Netacea with mitigation mode enabled.
|
|
@@ -172,14 +162,6 @@ interface NetaceaBaseArgs {
|
|
|
172
162
|
* Netacea will provide you with the details for this stream.
|
|
173
163
|
*/
|
|
174
164
|
kinesis?: KinesisIngestConfigArgs;
|
|
175
|
-
/**
|
|
176
|
-
* Version of ingest, see the `NetaceaLogVersion` ENUM
|
|
177
|
-
* - V1 - Standard ingest.
|
|
178
|
-
* - V2 - New BETA ingest.
|
|
179
|
-
* Use NetaceaLogVersion.V1 unless instructed otherwise.
|
|
180
|
-
* DEFAULT: NetaceaLogVersion.V1
|
|
181
|
-
*/
|
|
182
|
-
logVersion?: NetaceaLogVersion;
|
|
183
165
|
/**
|
|
184
166
|
* Deprecated: alias for netaceaCookieExpirySeconds.
|
|
185
167
|
* If both are set, netaceaCookieExpirySeconds is prefered.
|
|
@@ -331,35 +313,6 @@ interface WebLog {
|
|
|
331
313
|
NetaceaUserIdCookieStatus?: number;
|
|
332
314
|
HeaderHash?: string;
|
|
333
315
|
}
|
|
334
|
-
interface V2WebLog {
|
|
335
|
-
'@timestamp': string;
|
|
336
|
-
bc_type?: string;
|
|
337
|
-
bytes_sent: number;
|
|
338
|
-
client: string;
|
|
339
|
-
domain_name?: string;
|
|
340
|
-
domain_name_orig?: string;
|
|
341
|
-
hour: number;
|
|
342
|
-
integration_type?: string;
|
|
343
|
-
integration_version?: string;
|
|
344
|
-
protection_mode?: string;
|
|
345
|
-
method: string;
|
|
346
|
-
minute: number;
|
|
347
|
-
protector_latency_ms?: number;
|
|
348
|
-
protector_status?: number;
|
|
349
|
-
path: string;
|
|
350
|
-
protocol: string | null;
|
|
351
|
-
query?: string;
|
|
352
|
-
referrer?: string;
|
|
353
|
-
request: string;
|
|
354
|
-
request_time: number;
|
|
355
|
-
request_host?: string;
|
|
356
|
-
status: string;
|
|
357
|
-
user_agent: string;
|
|
358
|
-
user_id?: string;
|
|
359
|
-
x_forwarded_for?: string;
|
|
360
|
-
worker_instance_id?: string;
|
|
361
|
-
optional?: Record<string, unknown>;
|
|
362
|
-
}
|
|
363
316
|
interface NetaceaResponseBase {
|
|
364
317
|
/**
|
|
365
318
|
* Cookies that should be set back to the user.
|
|
@@ -637,4 +590,4 @@ declare class HashGenerator {
|
|
|
637
590
|
hashHeaders(headerNames: string[], sort?: boolean): Promise<string>;
|
|
638
591
|
}
|
|
639
592
|
|
|
640
|
-
export { type APICallResponse, type CheckCookieResponse, type ComposeResultResponse, type CookiesAttributes, type FindBestMitigationResponse, HashGenerator, type IngestArgs, type InjectHeaders, type InjectResponse, type MakeCaptchaApiCallResponse, type MakeMitigateAPICallResponse, type MakeRequestArgs, type MakeRequestResponse, type MitataCookie, type MitigateResponse, type NetaceaBaseArgs, type NetaceaCookieV3, NetaceaCookieV3IssueReason, type NetaceaCookieV3OptionalFeatures, NetaceaIngestType,
|
|
593
|
+
export { type APICallResponse, type CheckCookieResponse, type ComposeResultResponse, type CookiesAttributes, type FindBestMitigationResponse, HashGenerator, type IngestArgs, type InjectHeaders, type InjectResponse, type MakeCaptchaApiCallResponse, type MakeMitigateAPICallResponse, type MakeRequestArgs, type MakeRequestResponse, type MitataCookie, type MitigateResponse, type NetaceaBaseArgs, type NetaceaCookieV3, NetaceaCookieV3IssueReason, type NetaceaCookieV3OptionalFeatures, NetaceaIngestType, type NetaceaMitigationResponse, NetaceaMitigationType, type NetaceaParts, type NetaceaResponseBase, type NetaceaWorker, type ProcessMitigateRequestArgs, type SlicedCookieAttributes, type WebLog, checkMitataCookie, checkNetaceaCookieV3, configureMitataExpiry, cookieIsNetaceaV3Format, correctTimeout, createMitataCookie, createNetaceaCookieV3, defaultInvalidResponse, dictionary_d as dictionary, generateId, hexSha256, ingestIgnoredIpValue, lib, matchMitataCookie, matchNetaceaCookieV3, objectIsNetaceaCookieV3, safeParseInt, warmupCookie };
|
package/dist/index.mjs
CHANGED
|
@@ -21,17 +21,6 @@ var NetaceaIngestType;
|
|
|
21
21
|
*/
|
|
22
22
|
NetaceaIngestType["NATIVE"] = "NATIVE";
|
|
23
23
|
})(NetaceaIngestType || (NetaceaIngestType = {}));
|
|
24
|
-
var NetaceaLogVersion;
|
|
25
|
-
(function (NetaceaLogVersion) {
|
|
26
|
-
/**
|
|
27
|
-
* Current style log version
|
|
28
|
-
*/
|
|
29
|
-
NetaceaLogVersion["V1"] = "V1";
|
|
30
|
-
/**
|
|
31
|
-
* V2 Log format, should only be used if Netacea instructs
|
|
32
|
-
*/
|
|
33
|
-
NetaceaLogVersion["V2"] = "V2";
|
|
34
|
-
})(NetaceaLogVersion || (NetaceaLogVersion = {}));
|
|
35
24
|
var NetaceaMitigationType;
|
|
36
25
|
(function (NetaceaMitigationType) {
|
|
37
26
|
/**
|
|
@@ -628,4 +617,4 @@ class HashGenerator {
|
|
|
628
617
|
}
|
|
629
618
|
}
|
|
630
619
|
|
|
631
|
-
export { HashGenerator, NetaceaCookieV3IssueReason, NetaceaIngestType,
|
|
620
|
+
export { HashGenerator, NetaceaCookieV3IssueReason, NetaceaIngestType, NetaceaMitigationType, checkMitataCookie, checkNetaceaCookieV3, configureMitataExpiry, cookieIsNetaceaV3Format, correctTimeout, createMitataCookie, createNetaceaCookieV3, defaultInvalidResponse, dictionary, generateId, hexSha256, ingestIgnoredIpValue, lib, matchMitataCookie, matchNetaceaCookieV3, objectIsNetaceaCookieV3, safeParseInt, warmupCookie };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netacea/netaceaintegrationbase",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.61",
|
|
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.79"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "28b71c4e2ac0d44b5aa1004aa775ac0d846e0949"
|
|
30
30
|
}
|