@zimic/interceptor 0.17.1-canary.0 → 0.17.1-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 +44 -11
- package/dist/http.js.map +1 -1
- package/dist/http.mjs +44 -11
- package/dist/http.mjs.map +1 -1
- package/package.json +2 -2
- package/src/http/requestHandler/HttpRequestHandlerClient.ts +1 -4
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"api",
|
|
15
15
|
"static"
|
|
16
16
|
],
|
|
17
|
-
"version": "0.17.1-canary.
|
|
17
|
+
"version": "0.17.1-canary.1",
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
20
|
"url": "https://github.com/zimicjs/zimic.git",
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
"typescript": "^5.8.3",
|
|
101
101
|
"vitest": "^3.1.1",
|
|
102
102
|
"@zimic/eslint-config-node": "0.0.0",
|
|
103
|
-
"@zimic/tsconfig": "0.0.0",
|
|
104
103
|
"@zimic/lint-staged-config": "0.0.0",
|
|
104
|
+
"@zimic/tsconfig": "0.0.0",
|
|
105
105
|
"@zimic/utils": "0.0.0"
|
|
106
106
|
},
|
|
107
107
|
"peerDependencies": {
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
HttpRequestSearchParamsSchema,
|
|
10
10
|
HttpRequestHeadersSchema,
|
|
11
11
|
} from '@zimic/http';
|
|
12
|
-
import blobContains from '@zimic/utils/data/blobContains';
|
|
13
12
|
import blobEquals from '@zimic/utils/data/blobEquals';
|
|
14
13
|
import jsonContains from '@zimic/utils/data/jsonContains';
|
|
15
14
|
import jsonEquals from '@zimic/utils/data/jsonEquals';
|
|
@@ -338,9 +337,7 @@ class HttpRequestHandlerClient<
|
|
|
338
337
|
};
|
|
339
338
|
}
|
|
340
339
|
|
|
341
|
-
const matchesRestriction =
|
|
342
|
-
? await blobEquals(body, restrictionBody)
|
|
343
|
-
: await blobContains(body, restrictionBody);
|
|
340
|
+
const matchesRestriction = await blobEquals(body, restrictionBody);
|
|
344
341
|
|
|
345
342
|
return matchesRestriction
|
|
346
343
|
? { value: true }
|