@mswjs/interceptors
Advanced tools
Comparing version 0.8.1 to 0.9.0
@@ -192,2 +192,3 @@ "use strict"; | ||
}; | ||
observer.emit('request', isoRequest); | ||
debug('awaiting mocked response...'); | ||
@@ -194,0 +195,0 @@ return [4 /*yield*/, until_1.until(function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { |
@@ -45,3 +45,3 @@ "use strict"; | ||
* at the moment they are provided to `ClientRequest. | ||
* @see https://github.com/mswjs/node-request-interceptor/issues/86 | ||
* @see https://github.com/mswjs/interceptors/issues/86 | ||
*/ | ||
@@ -79,3 +79,3 @@ return args[1] ? cloneObject_1.cloneObject(args[1]) : {}; | ||
// and derive request options from it. | ||
else if ('origin' in args[0]) { | ||
else if (args[0] instanceof URL) { | ||
url = args[0]; | ||
@@ -82,0 +82,0 @@ debug('given a URL:', url); |
@@ -19,3 +19,3 @@ "use strict"; | ||
* `ProgressEvent` is not supported in React Native. | ||
* @see https://github.com/mswjs/node-request-interceptor/issues/40 | ||
* @see https://github.com/mswjs/interceptors/issues/40 | ||
*/ | ||
@@ -22,0 +22,0 @@ var ProgressEventClass = SUPPORTS_PROGRESS_EVENT |
@@ -213,2 +213,3 @@ "use strict"; | ||
}; | ||
observer.emit('request', isoRequest); | ||
debug('awaiting mocked response...'); | ||
@@ -262,3 +263,3 @@ Promise.resolve(until_1.until(function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { | ||
* Explicitly mark the request as done so its response never hangs. | ||
* @see https://github.com/mswjs/node-request-interceptor/issues/13 | ||
* @see https://github.com/mswjs/interceptors/issues/13 | ||
*/ | ||
@@ -265,0 +266,0 @@ _this.setReadyState(_this.DONE); |
{ | ||
"name": "@mswjs/interceptors", | ||
"description": "Low-level HTTP/HTTPS/XHR/fetch request interception library.", | ||
"version": "0.8.1", | ||
"version": "0.9.0", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "typings": "lib/index.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
155308
2184