@zimic/interceptor 1.0.2-canary.0 → 1.0.2-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/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/http.js +3 -3
- package/dist/http.js.map +1 -1
- package/dist/http.mjs +3 -3
- package/dist/http.mjs.map +1 -1
- package/package.json +4 -4
- package/src/http/requestHandler/HttpRequestHandlerClient.ts +4 -4
package/dist/http.mjs
CHANGED
|
@@ -703,9 +703,6 @@ var HttpRequestHandlerClient = class {
|
|
|
703
703
|
}
|
|
704
704
|
async matchesRequest(request) {
|
|
705
705
|
const hasDeclaredResponse = this.createResponseDeclaration !== void 0;
|
|
706
|
-
if (!hasDeclaredResponse) {
|
|
707
|
-
return false;
|
|
708
|
-
}
|
|
709
706
|
const restrictionsMatch = await this.matchesRequestRestrictions(request);
|
|
710
707
|
if (restrictionsMatch.value) {
|
|
711
708
|
this.numberOfMatchedRequests++;
|
|
@@ -715,6 +712,9 @@ var HttpRequestHandlerClient = class {
|
|
|
715
712
|
this.unmatchedRequestGroups.push({ request, diff: restrictionsMatch.diff });
|
|
716
713
|
}
|
|
717
714
|
}
|
|
715
|
+
if (!hasDeclaredResponse) {
|
|
716
|
+
return false;
|
|
717
|
+
}
|
|
718
718
|
const isWithinLimits = this.numberOfMatchedRequests <= this.limits.numberOfRequests.max;
|
|
719
719
|
return restrictionsMatch.value && isWithinLimits;
|
|
720
720
|
}
|