@netacea/f5 4.2.44 → 4.2.46
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/.vscode/launch.json +23 -0
- package/CHANGELOG.md +16 -0
- package/dist/package.json +14 -4
- package/dist/src/F5.d.ts +32 -4
- package/package.json +14 -4
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"type": "node",
|
|
6
|
+
"request": "launch",
|
|
7
|
+
"name": "Debug Tests",
|
|
8
|
+
"program": "${workspaceFolder}/node_modules/.bin/mocha",
|
|
9
|
+
"args": [
|
|
10
|
+
"-r",
|
|
11
|
+
"ts-node/register",
|
|
12
|
+
"-r",
|
|
13
|
+
"tsconfig-paths/register",
|
|
14
|
+
"./tests/mocha/*.test.ts"
|
|
15
|
+
],
|
|
16
|
+
"console": "internalConsole",
|
|
17
|
+
"skipFiles": [
|
|
18
|
+
"<node_internals>/**",
|
|
19
|
+
"${workspaceFolder}/node_modules/**"
|
|
20
|
+
],
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 4.2.46 (2023-07-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @netacea/f5
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 4.2.45 (2023-07-19)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @netacea/f5
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## 4.2.44 (2023-07-19)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @netacea/f5
|
package/dist/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netacea/f5",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.46",
|
|
4
4
|
"description": "Netacea F5 CDN integration",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"test": "
|
|
8
|
+
"test": "npm run test:unit && npm run test:integration:no-clean",
|
|
9
|
+
"test:unit": "npx nyc tape -r ts-node/register -r tsconfig-paths/register './tests/tape/*.test.ts'",
|
|
10
|
+
"test:integration": "npx nyc -r=lcov -r=html -r=text mocha --timeout 60000 -r ts-node/register -r tsconfig-paths/register './tests/mocha/*.test.ts'",
|
|
11
|
+
"test:integration:no-clean": "npx nyc --no-clean -r=lcov -r=html -r=text mocha --timeout 60000 -r ts-node/register -r tsconfig-paths/register './tests/mocha/*.test.ts'",
|
|
9
12
|
"lint": "npx eslint . --ext ts",
|
|
13
|
+
"lint:fix": "npx eslint . --ext ts --fix",
|
|
10
14
|
"prepublishOnly": "npx tsc --project tsconfig.build.json"
|
|
11
15
|
},
|
|
12
16
|
"author": "Jack Scotson <jack.scotson@netacea.com> (https://netacea.com)",
|
|
@@ -15,11 +19,17 @@
|
|
|
15
19
|
},
|
|
16
20
|
"license": "ISC",
|
|
17
21
|
"devDependencies": {
|
|
22
|
+
"@types/chai": "^4.3.5",
|
|
23
|
+
"@types/mocha": "^10.0.1",
|
|
18
24
|
"@types/node": "^14.11.2",
|
|
25
|
+
"@types/proxyquire": "^1.3.28",
|
|
19
26
|
"@types/sinon": "^9.0.8",
|
|
20
27
|
"@types/tape": "^4.13.0",
|
|
21
28
|
"aws-sdk": "^2.763.0",
|
|
29
|
+
"chai": "^4.3.7",
|
|
30
|
+
"mocha": "^10.2.0",
|
|
22
31
|
"nyc": "^15.1.0",
|
|
32
|
+
"proxyquire": "^2.1.3",
|
|
23
33
|
"sinon": "^9.1.0",
|
|
24
34
|
"tape": "^5.0.1",
|
|
25
35
|
"ts-node": "^9.0.0",
|
|
@@ -27,8 +37,8 @@
|
|
|
27
37
|
"typescript": "^3.9.7"
|
|
28
38
|
},
|
|
29
39
|
"dependencies": {
|
|
30
|
-
"@netacea/netaceaintegrationbase": "^1.16.
|
|
40
|
+
"@netacea/netaceaintegrationbase": "^1.16.46",
|
|
31
41
|
"f5-nodejs": "^1.0.0"
|
|
32
42
|
},
|
|
33
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "9cdb47c42b3f26fb0e322063f2471ea49113978c"
|
|
34
44
|
}
|
package/dist/src/F5.d.ts
CHANGED
|
@@ -31,14 +31,43 @@ export interface F5IngestArgs {
|
|
|
31
31
|
mitataCookie?: string;
|
|
32
32
|
sessionStatus?: string;
|
|
33
33
|
}
|
|
34
|
-
declare type
|
|
34
|
+
export declare type IngestRequestParams = [string | undefined, // ip
|
|
35
|
+
// ip
|
|
36
|
+
string | undefined, // userAgent
|
|
37
|
+
// userAgent
|
|
38
|
+
string | undefined, // status
|
|
39
|
+
// status
|
|
40
|
+
string | undefined, // method
|
|
41
|
+
// method
|
|
42
|
+
string | undefined, // path
|
|
43
|
+
// path
|
|
44
|
+
string | undefined, // protocol
|
|
45
|
+
// protocol
|
|
46
|
+
string | undefined, // referer
|
|
47
|
+
// referer
|
|
48
|
+
string | undefined, // bytesSent
|
|
49
|
+
// bytesSent
|
|
50
|
+
string | undefined, // requestTime
|
|
51
|
+
// requestTime
|
|
52
|
+
string | undefined, // mitataCookie
|
|
53
|
+
// mitataCookie
|
|
54
|
+
string | undefined];
|
|
55
|
+
export declare type HandleRequestParams = [string, // ip
|
|
56
|
+
string, // userAgent
|
|
57
|
+
string, // method
|
|
58
|
+
string, // url
|
|
59
|
+
// url
|
|
60
|
+
string | null, // cookies
|
|
61
|
+
// cookies
|
|
62
|
+
string | undefined];
|
|
63
|
+
export declare type NetaceaF5InjectHeaders = [string, // match
|
|
35
64
|
string, // mitigate
|
|
36
65
|
string, // captcha
|
|
37
66
|
string] | [];
|
|
38
|
-
interface F5Request<T extends any[]> {
|
|
67
|
+
export interface F5Request<T extends any[]> {
|
|
39
68
|
params(): T;
|
|
40
69
|
}
|
|
41
|
-
interface F5Res {
|
|
70
|
+
export interface F5Res {
|
|
42
71
|
reply(args: [string, // body
|
|
43
72
|
number, // apiCallStatus
|
|
44
73
|
string[], // setCookie
|
|
@@ -70,4 +99,3 @@ export default class F5 extends NetaceaBase<F5MitigateArgs | F5IngestArgs, F5Res
|
|
|
70
99
|
ingest({ ip, userAgent, status, method, path, protocol, referer, bytesSent, requestTime, mitataCookie, sessionStatus }: F5IngestArgs): Promise<any>;
|
|
71
100
|
getCookieHeader(args: F5IngestArgs): string | undefined;
|
|
72
101
|
}
|
|
73
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netacea/f5",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.46",
|
|
4
4
|
"description": "Netacea F5 CDN integration",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"test": "
|
|
8
|
+
"test": "npm run test:unit && npm run test:integration:no-clean",
|
|
9
|
+
"test:unit": "npx nyc tape -r ts-node/register -r tsconfig-paths/register './tests/tape/*.test.ts'",
|
|
10
|
+
"test:integration": "npx nyc -r=lcov -r=html -r=text mocha --timeout 60000 -r ts-node/register -r tsconfig-paths/register './tests/mocha/*.test.ts'",
|
|
11
|
+
"test:integration:no-clean": "npx nyc --no-clean -r=lcov -r=html -r=text mocha --timeout 60000 -r ts-node/register -r tsconfig-paths/register './tests/mocha/*.test.ts'",
|
|
9
12
|
"lint": "npx eslint . --ext ts",
|
|
13
|
+
"lint:fix": "npx eslint . --ext ts --fix",
|
|
10
14
|
"prepublishOnly": "npx tsc --project tsconfig.build.json"
|
|
11
15
|
},
|
|
12
16
|
"author": "Jack Scotson <jack.scotson@netacea.com> (https://netacea.com)",
|
|
@@ -15,11 +19,17 @@
|
|
|
15
19
|
},
|
|
16
20
|
"license": "ISC",
|
|
17
21
|
"devDependencies": {
|
|
22
|
+
"@types/chai": "^4.3.5",
|
|
23
|
+
"@types/mocha": "^10.0.1",
|
|
18
24
|
"@types/node": "^14.11.2",
|
|
25
|
+
"@types/proxyquire": "^1.3.28",
|
|
19
26
|
"@types/sinon": "^9.0.8",
|
|
20
27
|
"@types/tape": "^4.13.0",
|
|
21
28
|
"aws-sdk": "^2.763.0",
|
|
29
|
+
"chai": "^4.3.7",
|
|
30
|
+
"mocha": "^10.2.0",
|
|
22
31
|
"nyc": "^15.1.0",
|
|
32
|
+
"proxyquire": "^2.1.3",
|
|
23
33
|
"sinon": "^9.1.0",
|
|
24
34
|
"tape": "^5.0.1",
|
|
25
35
|
"ts-node": "^9.0.0",
|
|
@@ -27,8 +37,8 @@
|
|
|
27
37
|
"typescript": "^3.9.7"
|
|
28
38
|
},
|
|
29
39
|
"dependencies": {
|
|
30
|
-
"@netacea/netaceaintegrationbase": "^1.16.
|
|
40
|
+
"@netacea/netaceaintegrationbase": "^1.16.46",
|
|
31
41
|
"f5-nodejs": "^1.0.0"
|
|
32
42
|
},
|
|
33
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "9cdb47c42b3f26fb0e322063f2471ea49113978c"
|
|
34
44
|
}
|