@netlify/nock-udp 3.0.0 → 3.0.1
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/lib/main.d.ts +7 -9
- package/lib/main.js +1 -0
- package/package.json +7 -7
package/lib/main.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export declare const isMocked: () => boolean;
|
|
2
|
+
export declare const intercept: (address: any, { persist, startIntercept, allowUnknown }?: {
|
|
3
3
|
persist?: boolean;
|
|
4
4
|
startIntercept?: boolean;
|
|
5
5
|
allowUnknown?: boolean;
|
|
6
|
-
})
|
|
6
|
+
}) => {
|
|
7
7
|
used: boolean;
|
|
8
8
|
persist: boolean;
|
|
9
9
|
buffers: any[];
|
|
@@ -12,10 +12,8 @@ export function intercept(address: any, { persist, startIntercept, allowUnknown
|
|
|
12
12
|
address: any;
|
|
13
13
|
clean: () => void;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export declare const cleanAll: ({ stopIntercept }?: {
|
|
16
16
|
stopIntercept?: boolean;
|
|
17
|
-
})
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
allowUnknown: any;
|
|
21
|
-
}): void;
|
|
17
|
+
}) => void;
|
|
18
|
+
export declare const restoreSocketSend: () => void;
|
|
19
|
+
export declare const interceptSocketSend: ({ allowUnknown }?: any) => void;
|
package/lib/main.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/nock-udp",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Here to mock your UDP packets",
|
|
5
5
|
"exports": "./lib/main.js",
|
|
6
6
|
"main": "./lib/main.js",
|
|
@@ -12,8 +12,9 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"prebuild": "rm -rf lib",
|
|
14
14
|
"build": "tsc",
|
|
15
|
-
"test": "
|
|
16
|
-
"test:
|
|
15
|
+
"test": "vitest run",
|
|
16
|
+
"test:dev": "vitest",
|
|
17
|
+
"test:ci": "vitest run --reporter=default"
|
|
17
18
|
},
|
|
18
19
|
"keywords": [],
|
|
19
20
|
"license": "MIT",
|
|
@@ -23,12 +24,11 @@
|
|
|
23
24
|
"author": "Netlify Inc.",
|
|
24
25
|
"devDependencies": {
|
|
25
26
|
"@types/node": "^14.18.31",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"typescript": "^4.8.4"
|
|
27
|
+
"typescript": "^4.8.4",
|
|
28
|
+
"vitest": "^0.24.1"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": "^14.16.0 || >=16.0.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "be9da6e85afa0223bdcd6d228c929f4372515538"
|
|
34
34
|
}
|