nock 15.0.0-beta.14 → 15.0.0-beta.16
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/lib/common.js +3 -0
- package/dist/lib/intercept.js +4 -4
- package/package.json +2 -2
package/dist/lib/common.js
CHANGED
|
@@ -348,6 +348,9 @@ const dataEqual = (expected , actual ) => {
|
|
|
348
348
|
function deepEqual(expected , actual ) {
|
|
349
349
|
debug('deepEqual comparing', typeof expected, expected, typeof actual, actual)
|
|
350
350
|
if (expected instanceof RegExp) {
|
|
351
|
+
if (expected.global || expected.sticky) {
|
|
352
|
+
expected.lastIndex = 0
|
|
353
|
+
}
|
|
351
354
|
return expected.test(actual)
|
|
352
355
|
}
|
|
353
356
|
|
package/dist/lib/intercept.js
CHANGED
|
@@ -186,10 +186,10 @@ function removeInterceptor(
|
|
|
186
186
|
) {
|
|
187
187
|
allInterceptors[baseUrl].interceptors.splice(i, 1)
|
|
188
188
|
interceptor.scope.remove(key, interceptor)
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
189
|
+
interceptor.scope.interceptors.splice(
|
|
190
|
+
interceptor.scope.interceptors.indexOf(interceptor),
|
|
191
|
+
1,
|
|
192
|
+
)
|
|
193
193
|
break
|
|
194
194
|
}
|
|
195
195
|
}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"testing",
|
|
8
8
|
"isolation"
|
|
9
9
|
],
|
|
10
|
-
"version": "15.0.0-beta.
|
|
10
|
+
"version": "15.0.0-beta.16",
|
|
11
11
|
"author": "Pedro Teixeira <pedro.teixeira@gmail.com>",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@mswjs/interceptors": "^0.
|
|
32
|
+
"@mswjs/interceptors": "^0.44.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@eslint/js": "^9.27.0",
|