@zimic/interceptor 0.19.1-canary.1 → 0.19.1-canary.3
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-6PRFBMY7.mjs → chunk-7BR57OM2.mjs} +3 -3
- package/dist/chunk-7BR57OM2.mjs.map +1 -0
- package/dist/{chunk-3NJLJSD6.js → chunk-QB2A2272.js} +3 -3
- package/dist/chunk-QB2A2272.js.map +1 -0
- package/dist/cli.js +20 -20
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +4 -4
- package/dist/cli.mjs.map +1 -1
- package/dist/http.d.ts +262 -467
- package/dist/http.js +5 -5
- package/dist/http.js.map +1 -1
- package/dist/http.mjs +5 -5
- package/dist/http.mjs.map +1 -1
- package/dist/scripts/postinstall.js +1 -17
- package/dist/scripts/postinstall.js.map +1 -1
- package/dist/scripts/postinstall.mjs +2 -17
- package/dist/scripts/postinstall.mjs.map +1 -1
- package/dist/server.d.ts +14 -15
- package/dist/server.js +6 -6
- package/dist/server.mjs +1 -1
- package/package.json +8 -8
- package/src/cli/server/start.ts +1 -1
- package/src/cli/server/token/create.ts +1 -1
- package/src/http/interceptor/errors/NotRunningHttpInterceptorError.ts +3 -3
- package/src/http/interceptor/errors/RequestSavingSafeLimitExceededError.ts +2 -2
- package/src/http/interceptor/errors/RunningHttpInterceptorError.ts +3 -3
- package/src/http/interceptor/errors/UnknownHttpInterceptorPlatformError.ts +1 -1
- package/src/http/interceptor/factory.ts +1 -9
- package/src/http/interceptor/types/options.ts +32 -132
- package/src/http/interceptor/types/public.ts +153 -236
- package/src/http/interceptor/types/schema.ts +2 -3
- package/src/http/interceptorWorker/HttpInterceptorWorker.ts +1 -1
- package/src/http/interceptorWorker/errors/UnregisteredBrowserServiceWorkerError.ts +2 -2
- package/src/http/requestHandler/errors/DisabledRequestSavingError.ts +2 -2
- package/src/http/requestHandler/errors/TimesCheckError.ts +1 -1
- package/src/http/requestHandler/types/public.ts +60 -73
- package/src/http/requestHandler/types/restrictions.ts +6 -6
- package/src/server/errors/InvalidInterceptorTokenError.ts +1 -1
- package/src/server/errors/InvalidInterceptorTokenFileError.ts +1 -1
- package/src/server/errors/InvalidInterceptorTokenValueError.ts +1 -1
- package/src/server/errors/RunningInterceptorServerError.ts +1 -1
- package/src/server/factory.ts +3 -3
- package/src/server/types/options.ts +2 -3
- package/src/server/types/public.ts +8 -8
- package/dist/chunk-3NJLJSD6.js.map +0 -1
- package/dist/chunk-6PRFBMY7.mjs.map +0 -1
package/dist/http.js
CHANGED
|
@@ -100,7 +100,7 @@ If you need to save requests, make sure to regularly call \`interceptor.clear()\
|
|
|
100
100
|
|
|
101
101
|
If you do not need to save requests, consider setting \`requestSaving.enabled: false\` in your interceptor.
|
|
102
102
|
|
|
103
|
-
Learn more: https://
|
|
103
|
+
Learn more: https://zimic.dev/docs/interceptor/api/create-http-interceptor`
|
|
104
104
|
);
|
|
105
105
|
this.name = "RequestSavingSafeLimitExceededError";
|
|
106
106
|
}
|
|
@@ -145,7 +145,7 @@ var UnregisteredBrowserServiceWorkerError = class extends Error {
|
|
|
145
145
|
|
|
146
146
|
Did you forget to run \`zimic-interceptor browser init <publicDirectory>\`?
|
|
147
147
|
|
|
148
|
-
Learn more: https://
|
|
148
|
+
Learn more: https://zimic.dev/docs/interceptor/cli/browser#zimic-interceptor-browser-init`
|
|
149
149
|
);
|
|
150
150
|
this.name = "UnregisteredBrowserServiceWorkerError";
|
|
151
151
|
}
|
|
@@ -162,7 +162,7 @@ var DisabledRequestSavingError = class extends TypeError {
|
|
|
162
162
|
}
|
|
163
163
|
constructor() {
|
|
164
164
|
super(
|
|
165
|
-
"Intercepted requests are not being saved. Did you forget to use `requestSaving.enabled: true` in your interceptor?\n\nLearn more: https://
|
|
165
|
+
"Intercepted requests are not being saved. Did you forget to use `requestSaving.enabled: true` in your interceptor?\n\nLearn more: https://zimic.dev/docs/interceptor/api/create-http-interceptor"
|
|
166
166
|
);
|
|
167
167
|
this.name = "DisabledRequestSavingError";
|
|
168
168
|
}
|
|
@@ -427,7 +427,7 @@ function createMessageDiffs({ requestSaving, unmatchedRequestGroups }) {
|
|
|
427
427
|
}
|
|
428
428
|
__name(createMessageDiffs, "createMessageDiffs");
|
|
429
429
|
function createMessageFooter() {
|
|
430
|
-
return "Learn more: https://
|
|
430
|
+
return "Learn more: https://zimic.dev/docs/interceptor/api/http-request-handler#handlertimes";
|
|
431
431
|
}
|
|
432
432
|
__name(createMessageFooter, "createMessageFooter");
|
|
433
433
|
function createMessage(options) {
|
|
@@ -1339,7 +1339,7 @@ var HttpInterceptorWorker = class _HttpInterceptorWorker {
|
|
|
1339
1339
|
formattedSearchParams,
|
|
1340
1340
|
"\n Body:",
|
|
1341
1341
|
formattedBody,
|
|
1342
|
-
"\n\nLearn more: https://
|
|
1342
|
+
"\n\nLearn more: https://zimic.dev/docs/interceptor/guides/http/unhandled-requests"
|
|
1343
1343
|
);
|
|
1344
1344
|
}
|
|
1345
1345
|
};
|