@zimic/interceptor 1.1.6-canary.1 → 1.1.7-canary.0

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/server.js CHANGED
@@ -1,29 +1,29 @@
1
1
  'use strict';
2
2
 
3
- var chunkTDULAKH2_js = require('./chunk-TDULAKH2.js');
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 chunkTDULAKH2_js.DEFAULT_ACCESS_CONTROL_HEADERS; }
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 chunkTDULAKH2_js.DEFAULT_PREFLIGHT_STATUS_CODE; }
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 chunkTDULAKH2_js.NotRunningInterceptorServerError_default; }
18
+ get: function () { return chunkC4BVIHSP_js.NotRunningInterceptorServerError_default; }
19
19
  });
20
20
  Object.defineProperty(exports, "RunningInterceptorServerError", {
21
21
  enumerable: true,
22
- get: function () { return chunkTDULAKH2_js.RunningInterceptorServerError_default; }
22
+ get: function () { return chunkC4BVIHSP_js.RunningInterceptorServerError_default; }
23
23
  });
24
24
  Object.defineProperty(exports, "createInterceptorServer", {
25
25
  enumerable: true,
26
- get: function () { return chunkTDULAKH2_js.createInterceptorServer; }
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-CL2KWDK6.mjs';
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.6-canary.1",
17
+ "version": "1.1.7-canary.0",
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.7.2",
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.37.0",
125
- "playwright": "^1.56.0",
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, ReplaceBy } from '@zimic/utils/types';
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: ReplaceBy<HttpRequestBodySchema<MethodSchema>, ArrayBuffer | ReadableStream, Blob>;
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: ReplaceBy<HttpResponseBodySchema<MethodSchema, StatusCode>, ArrayBuffer | ReadableStream, Blob>;
120
+ body: Replace<HttpResponseBodySchema<MethodSchema, StatusCode>, ArrayBuffer | ReadableStream, Blob>;
121
121
 
122
122
  /** The raw response object. */
123
123
  raw: HttpResponse<