@zimic/interceptor 1.1.6 → 1.1.7-canary.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/dist/{chunk-TDULAKH2.js → chunk-C4BVIHSP.js} +2 -2
- package/dist/{chunk-TDULAKH2.js.map → chunk-C4BVIHSP.js.map} +1 -1
- package/dist/{chunk-CL2KWDK6.mjs → chunk-YPRAL5BM.mjs} +2 -2
- package/dist/{chunk-CL2KWDK6.mjs.map → chunk-YPRAL5BM.mjs.map} +1 -1
- package/dist/cli.js +18 -18
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/cli.mjs.map +1 -1
- package/dist/http.d.ts +3 -3
- package/dist/http.js.map +1 -1
- package/dist/http.mjs.map +1 -1
- package/dist/server.js +6 -6
- package/dist/server.mjs +1 -1
- package/package.json +4 -4
- package/src/http/requestHandler/types/requests.ts +3 -3
package/dist/server.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkC4BVIHSP_js = require('./chunk-C4BVIHSP.js');
|
|
4
4
|
require('./chunk-DGUM43GV.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "DEFAULT_ACCESS_CONTROL_HEADERS", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkC4BVIHSP_js.DEFAULT_ACCESS_CONTROL_HEADERS; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "DEFAULT_PREFLIGHT_STATUS_CODE", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkC4BVIHSP_js.DEFAULT_PREFLIGHT_STATUS_CODE; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "NotRunningInterceptorServerError", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkC4BVIHSP_js.NotRunningInterceptorServerError_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "RunningInterceptorServerError", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkC4BVIHSP_js.RunningInterceptorServerError_default; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "createInterceptorServer", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkC4BVIHSP_js.createInterceptorServer; }
|
|
27
27
|
});
|
|
28
28
|
//# sourceMappingURL=server.js.map
|
|
29
29
|
//# sourceMappingURL=server.js.map
|
package/dist/server.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DEFAULT_ACCESS_CONTROL_HEADERS, DEFAULT_PREFLIGHT_STATUS_CODE, NotRunningInterceptorServerError_default as NotRunningInterceptorServerError, RunningInterceptorServerError_default as RunningInterceptorServerError, createInterceptorServer } from './chunk-
|
|
1
|
+
export { DEFAULT_ACCESS_CONTROL_HEADERS, DEFAULT_PREFLIGHT_STATUS_CODE, NotRunningInterceptorServerError_default as NotRunningInterceptorServerError, RunningInterceptorServerError_default as RunningInterceptorServerError, createInterceptorServer } from './chunk-YPRAL5BM.mjs';
|
|
2
2
|
import './chunk-BJTO5JO5.mjs';
|
|
3
3
|
//# sourceMappingURL=server.mjs.map
|
|
4
4
|
//# sourceMappingURL=server.mjs.map
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"api",
|
|
15
15
|
"static"
|
|
16
16
|
],
|
|
17
|
-
"version": "1.1.
|
|
17
|
+
"version": "1.1.7-canary.1",
|
|
18
18
|
"homepage": "https://zimic.dev/docs/interceptor",
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"bufferutil": "4.0.9"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
|
-
"@types/node": "^24.
|
|
113
|
+
"@types/node": "^24.8.1",
|
|
114
114
|
"@types/ws": "^8.18.1",
|
|
115
115
|
"@types/yargs": "^17.0.33",
|
|
116
116
|
"@vitest/browser": "^3.2.4",
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
"@zimic/utils": "workspace:*",
|
|
122
122
|
"concurrently": "^9.2.1",
|
|
123
123
|
"dotenv-cli": "^10.0.0",
|
|
124
|
-
"eslint": "^9.
|
|
125
|
-
"playwright": "^1.56.
|
|
124
|
+
"eslint": "^9.38.0",
|
|
125
|
+
"playwright": "^1.56.1",
|
|
126
126
|
"tsup": "^8.4.0",
|
|
127
127
|
"typescript": "^5.9.3",
|
|
128
128
|
"vitest": "^3.2.4"
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
HttpStatusCode,
|
|
15
15
|
InferPathParams,
|
|
16
16
|
} from '@zimic/http';
|
|
17
|
-
import { Default, PartialByKey, PossiblePromise,
|
|
17
|
+
import { Default, PartialByKey, PossiblePromise, Replace } from '@zimic/utils/types';
|
|
18
18
|
|
|
19
19
|
type HttpRequestHandlerResponseBody<
|
|
20
20
|
ResponseSchema extends HttpResponseSchema,
|
|
@@ -92,7 +92,7 @@ export interface HttpInterceptorRequest<Path extends string, MethodSchema extend
|
|
|
92
92
|
*
|
|
93
93
|
* @see {@link https://zimic.dev/docs/interceptor/guides/http/bodies#using-request-bodies Using request bodies}
|
|
94
94
|
*/
|
|
95
|
-
body:
|
|
95
|
+
body: Replace<HttpRequestBodySchema<MethodSchema>, ArrayBuffer | ReadableStream, Blob>;
|
|
96
96
|
|
|
97
97
|
/** The raw request object. */
|
|
98
98
|
raw: HttpRequest<HttpRequestBodySchema<MethodSchema>, Default<HttpRequestHeadersSchema<MethodSchema>>>;
|
|
@@ -117,7 +117,7 @@ export interface HttpInterceptorResponse<MethodSchema extends HttpMethodSchema,
|
|
|
117
117
|
*
|
|
118
118
|
* @see {@link https://zimic.dev/docs/interceptor/guides/http/bodies#using-response-bodies Using response bodies}
|
|
119
119
|
*/
|
|
120
|
-
body:
|
|
120
|
+
body: Replace<HttpResponseBodySchema<MethodSchema, StatusCode>, ArrayBuffer | ReadableStream, Blob>;
|
|
121
121
|
|
|
122
122
|
/** The raw response object. */
|
|
123
123
|
raw: HttpResponse<
|