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.35.0 to 0.35.1

lib/browser/chunk-G5SOR3ND.mjs

4

lib/browser/interceptors/fetch/index.js
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkGIVU63INjs = require('../../chunk-GIVU63IN.js');
var _chunkT5Q47QLJjs = require('../../chunk-T5Q47QLJ.js');
require('../../chunk-FYSUKT3F.js');

@@ -9,3 +9,3 @@ require('../../chunk-2CAGU4FT.js');

exports.FetchInterceptor = _chunkGIVU63INjs.FetchInterceptor;
exports.FetchInterceptor = _chunkT5Q47QLJjs.FetchInterceptor;
//# sourceMappingURL=index.js.map

@@ -7,3 +7,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkGIVU63INjs = require('../chunk-GIVU63IN.js');
var _chunkT5Q47QLJjs = require('../chunk-T5Q47QLJ.js');
require('../chunk-FYSUKT3F.js');

@@ -15,3 +15,3 @@ require('../chunk-2CAGU4FT.js');

var browser_default = [
new (0, _chunkGIVU63INjs.FetchInterceptor)(),
new (0, _chunkT5Q47QLJjs.FetchInterceptor)(),
new (0, _chunkYU6EJD6Ujs.XMLHttpRequestInterceptor)()

@@ -18,0 +18,0 @@ ];

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkWFQAQCYYjs = require('../../chunk-WFQAQCYY.js');
var _chunkBCUXF7NZjs = require('../../chunk-BCUXF7NZ.js');
require('../../chunk-IDEEMJ3F.js');

@@ -9,3 +9,3 @@ require('../../chunk-VCUEA4PL.js');

exports.FetchInterceptor = _chunkWFQAQCYYjs.FetchInterceptor;
exports.FetchInterceptor = _chunkBCUXF7NZjs.FetchInterceptor;
//# sourceMappingURL=index.js.map

@@ -10,3 +10,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkWFQAQCYYjs = require('../chunk-WFQAQCYY.js');
var _chunkBCUXF7NZjs = require('../chunk-BCUXF7NZ.js');
require('../chunk-IDEEMJ3F.js');

@@ -20,3 +20,3 @@ require('../chunk-VCUEA4PL.js');

new (0, _chunkFFSJ6QLAjs.XMLHttpRequestInterceptor)(),
new (0, _chunkWFQAQCYYjs.FetchInterceptor)()
new (0, _chunkBCUXF7NZjs.FetchInterceptor)()
];

@@ -23,0 +23,0 @@

{
"name": "@mswjs/interceptors",
"description": "Low-level HTTP/HTTPS/XHR/fetch request interception library.",
"version": "0.35.0",
"version": "0.35.1",
"main": "./lib/node/index.js",

@@ -6,0 +6,0 @@ "module": "./lib/node/index.mjs",

@@ -28,3 +28,4 @@ import { createNetworkError } from './createNetworkError'

try {
locationUrl = new URL(response.headers.get('location')!)
// If the location is a relative URL, use the request URL as the base URL.
locationUrl = new URL(response.headers.get('location')!, request.url)
} catch (error) {

@@ -31,0 +32,0 @@ return Promise.reject(createNetworkError(error))

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

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