@zimic/interceptor 0.18.1-canary.0 → 0.18.2-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/README.md +2 -3
- package/dist/{chunk-3GG7AT63.js → chunk-KBWRANAF.js} +2 -2
- package/dist/{chunk-3GG7AT63.js.map → chunk-KBWRANAF.js.map} +1 -1
- package/dist/{chunk-NYY2KKWB.mjs → chunk-XRFIPHQZ.mjs} +2 -2
- package/dist/{chunk-NYY2KKWB.mjs.map → chunk-XRFIPHQZ.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.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 +7 -7
- package/src/http/interceptor/types/requests.ts +2 -2
- package/src/http/interceptorWorker/HttpInterceptorWorker.ts +2 -2
- package/src/http/interceptorWorker/LocalHttpInterceptorWorker.ts +11 -11
- package/src/http/interceptorWorker/RemoteHttpInterceptorWorker.ts +3 -3
- package/src/http/interceptorWorker/types/msw.ts +18 -0
- package/src/http/interceptorWorker/types/requests.ts +0 -15
package/README.md
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
---
|
|
49
49
|
|
|
50
|
-
`@zimic/interceptor` provides a
|
|
50
|
+
`@zimic/interceptor` provides a readable and type-safe way to intercept and mock HTTP requests.
|
|
51
51
|
|
|
52
52
|
> [!NOTE]
|
|
53
53
|
>
|
|
@@ -67,8 +67,7 @@
|
|
|
67
67
|
application's point of view, the mocked responses are indistinguishable from the real ones.
|
|
68
68
|
- :wrench: **Flexibility**: Mock external services and reliably test how your application behaves. Simulate success,
|
|
69
69
|
loading, and error states with ease using [standard web APIs](https://developer.mozilla.org/docs/Web/API).
|
|
70
|
-
- :bulb: **
|
|
71
|
-
mocks.
|
|
70
|
+
- :bulb: **Readability**: `@zimic/interceptor` was designed to encourage clarity and readability in your mocks.
|
|
72
71
|
|
|
73
72
|
## Getting started
|
|
74
73
|
|
|
@@ -1893,5 +1893,5 @@ exports.listInterceptorTokens = listInterceptorTokens;
|
|
|
1893
1893
|
exports.logger = logger;
|
|
1894
1894
|
exports.readInterceptorTokenFromFile = readInterceptorTokenFromFile;
|
|
1895
1895
|
exports.removeInterceptorToken = removeInterceptorToken;
|
|
1896
|
-
//# sourceMappingURL=chunk-
|
|
1897
|
-
//# sourceMappingURL=chunk-
|
|
1896
|
+
//# sourceMappingURL=chunk-KBWRANAF.js.map
|
|
1897
|
+
//# sourceMappingURL=chunk-KBWRANAF.js.map
|