Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mswjs/interceptors

Package Overview
Dependencies
Maintainers
1
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mswjs/interceptors - npm Package Compare versions

Comparing version 0.8.1 to 0.9.0

1

lib/interceptors/ClientRequest/createClientRequestOverride.js

@@ -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) {

4

lib/interceptors/ClientRequest/utils/normalizeHttpRequestParams.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc