@mswjs/interceptors
Advanced tools
Comparing version 0.35.0 to 0.35.1
"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
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
1301595
17253