@zimic/interceptor 1.3.6-canary.2 → 1.3.6-canary.4
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-2YIGHTHM.js → chunk-SNMNOHD6.js} +5 -2
- package/dist/{chunk-2YIGHTHM.js.map → chunk-SNMNOHD6.js.map} +1 -1
- package/dist/{chunk-4XT4ZOJ2.mjs → chunk-WG7EXKWT.mjs} +5 -2
- package/dist/{chunk-4XT4ZOJ2.mjs.map → chunk-WG7EXKWT.mjs.map} +1 -1
- package/dist/cli.js +17 -17
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/cli.mjs.map +1 -1
- package/dist/http.js +73 -69
- package/dist/http.js.map +1 -1
- package/dist/http.mjs +73 -49
- package/dist/http.mjs.map +1 -1
- package/dist/scripts/postinstall.js +6 -52
- package/dist/scripts/postinstall.js.map +1 -1
- package/dist/scripts/postinstall.mjs +7 -52
- package/dist/scripts/postinstall.mjs.map +1 -1
- package/dist/server.js +6 -6
- package/dist/server.mjs +1 -1
- package/package.json +3 -3
- package/src/http/interceptor/HttpInterceptorStore.ts +1 -0
- package/src/http/interceptor/LocalHttpInterceptor.ts +2 -6
- package/src/http/interceptorWorker/HttpInterceptorWorker.ts +4 -0
- package/src/http/interceptorWorker/LocalHttpInterceptorWorker.ts +82 -43
- package/src/http/interceptorWorker/types/msw.ts +2 -2
|
@@ -1776,6 +1776,9 @@ function createInterceptorServer(options = {}) {
|
|
|
1776
1776
|
* We currently only support the 'socket:auth:valid' message and it is the only possible control message here. */
|
|
1777
1777
|
/* istanbul ignore if -- @preserve
|
|
1778
1778
|
* This is not expected since the server is not stopped unless it is running. */
|
|
1779
|
+
/* istanbul ignore next -- @preserve
|
|
1780
|
+
* This if statement only runs if concurrent calls to stop() are made, which is an edge case that is hard to
|
|
1781
|
+
* reliably reproduce in tests. */
|
|
1779
1782
|
/* istanbul ignore if -- @preserve
|
|
1780
1783
|
* This is just a type guard to ensure the value is valid. In practice, this condition should never be true. */
|
|
1781
1784
|
/* istanbul ignore next -- @preserve
|
|
@@ -1814,5 +1817,5 @@ function createInterceptorServer(options = {}) {
|
|
|
1814
1817
|
* Due to the rare nature of this edge case, we can't reliably reproduce it in tests. */
|
|
1815
1818
|
|
|
1816
1819
|
export { DEFAULT_ACCESS_CONTROL_HEADERS, DEFAULT_INTERCEPTOR_TOKENS_DIRECTORY, DEFAULT_PREFLIGHT_STATUS_CODE, NotRunningInterceptorServerError_default, RunningInterceptorServerError_default, createInterceptorServer, createInterceptorToken, listInterceptorTokens, logger, readInterceptorTokenFromFile, removeInterceptorToken };
|
|
1817
|
-
//# sourceMappingURL=chunk-
|
|
1818
|
-
//# sourceMappingURL=chunk-
|
|
1820
|
+
//# sourceMappingURL=chunk-WG7EXKWT.mjs.map
|
|
1821
|
+
//# sourceMappingURL=chunk-WG7EXKWT.mjs.map
|