Update checked-in dependencies

This commit is contained in:
github-actions[bot] 2025-04-02 12:43:14 +00:00
parent 4b72bef651
commit dbb232a3d8
1389 changed files with 209949 additions and 542 deletions

View file

@ -3,6 +3,7 @@ import { h as Interceptor, H as HttpRequestEventMap } from './Interceptor-436630
import { a as BatchInterceptor } from './BatchInterceptor-67bf41ba.js';
import { ClientRequestInterceptor } from './interceptors/ClientRequest/index.js';
import { XMLHttpRequestInterceptor } from './interceptors/XMLHttpRequest/index.js';
import { FetchInterceptor } from './interceptors/fetch/index.js';
import '@open-draft/deferred-promise';
import '@open-draft/logger';
import 'strict-event-emitter';
@ -24,7 +25,8 @@ interface SerializedResponse {
}
declare class RemoteHttpInterceptor extends BatchInterceptor<[
ClientRequestInterceptor,
XMLHttpRequestInterceptor
XMLHttpRequestInterceptor,
FetchInterceptor
]> {
constructor();
protected setup(): void;

View file

@ -3,11 +3,14 @@
var _chunkYBN5MFAPjs = require('./chunk-YBN5MFAP.js');
var _chunk4IGRW7SKjs = require('./chunk-4IGRW7SK.js');
var _chunk3HCE66HZjs = require('./chunk-3HCE66HZ.js');
var _chunkLCA4FKWYjs = require('./chunk-LCA4FKWY.js');
require('./chunk-LK6DILFK.js');
var _chunkCF5C3K5Ujs = require('./chunk-CF5C3K5U.js');
require('./chunk-PFGO5BSM.js');
require('./chunk-73NOP3T5.js');
@ -25,8 +28,9 @@ var RemoteHttpInterceptor = class extends _chunkYBN5MFAPjs.BatchInterceptor {
super({
name: "remote-interceptor",
interceptors: [
new (0, _chunk4IGRW7SKjs.ClientRequestInterceptor)(),
new (0, _chunkLCA4FKWYjs.XMLHttpRequestInterceptor)()
new (0, _chunk3HCE66HZjs.ClientRequestInterceptor)(),
new (0, _chunkLCA4FKWYjs.XMLHttpRequestInterceptor)(),
new (0, _chunkCF5C3K5Ujs.FetchInterceptor)()
]
});
}

File diff suppressed because one or more lines are too long

View file

@ -3,11 +3,14 @@ import {
} from "./chunk-PJA4E426.mjs";
import {
ClientRequestInterceptor
} from "./chunk-QFFDMWKW.mjs";
} from "./chunk-FWJSC2QD.mjs";
import {
XMLHttpRequestInterceptor
} from "./chunk-OMWE7UVM.mjs";
import "./chunk-6HYIRFX2.mjs";
import {
FetchInterceptor
} from "./chunk-ZSYLU3GR.mjs";
import "./chunk-TX5GBTFY.mjs";
import "./chunk-6YM4PLBI.mjs";
import {
@ -26,7 +29,8 @@ var RemoteHttpInterceptor = class extends BatchInterceptor {
name: "remote-interceptor",
interceptors: [
new ClientRequestInterceptor(),
new XMLHttpRequestInterceptor()
new XMLHttpRequestInterceptor(),
new FetchInterceptor()
]
});
}

File diff suppressed because one or more lines are too long

View file

@ -630,12 +630,16 @@ var MockAgent = class extends _http2.default.Agent {
this.onResponse = options.onResponse;
}
createConnection(options, callback) {
const createConnection = this.customAgent instanceof _http2.default.Agent && this.customAgent.createConnection || super.createConnection;
const createConnection = this.customAgent instanceof _http2.default.Agent ? this.customAgent.createConnection : super.createConnection;
const createConnectionOptions = this.customAgent instanceof _http2.default.Agent ? {
...options,
...this.customAgent.options
} : options;
const socket = new MockHttpSocket({
connectionOptions: options,
createConnection: createConnection.bind(
this.customAgent || this,
options,
createConnectionOptions,
callback
),
onRequest: this.onRequest.bind(this),
@ -652,12 +656,16 @@ var MockHttpsAgent = class extends _https2.default.Agent {
this.onResponse = options.onResponse;
}
createConnection(options, callback) {
const createConnection = this.customAgent instanceof _https2.default.Agent && this.customAgent.createConnection || super.createConnection;
const createConnection = this.customAgent instanceof _https2.default.Agent ? this.customAgent.createConnection : super.createConnection;
const createConnectionOptions = this.customAgent instanceof _https2.default.Agent ? {
...options,
...this.customAgent.options
} : options;
const socket = new MockHttpSocket({
connectionOptions: options,
createConnection: createConnection.bind(
this.customAgent || this,
options,
createConnectionOptions,
callback
),
onRequest: this.onRequest.bind(this),
@ -903,7 +911,10 @@ function normalizeClientRequestArgs(defaultProtocol, args) {
options.method = options.method || "GET";
if (typeof options.agent === "undefined") {
const agent = options.protocol === "https:" ? new (0, _https.Agent)({
rejectUnauthorized: options.rejectUnauthorized
// Any other value other than false is considered as true, so we don't add this property if undefined.
..."rejectUnauthorized" in options && {
rejectUnauthorized: options.rejectUnauthorized
}
}) : new (0, _http.Agent)();
options.agent = agent;
logger3.info("resolved fallback agent:", agent);
@ -1050,4 +1061,4 @@ ClientRequestInterceptor.symbol = Symbol("client-request-interceptor");
exports.ClientRequestInterceptor = ClientRequestInterceptor;
//# sourceMappingURL=chunk-4IGRW7SK.js.map
//# sourceMappingURL=chunk-3HCE66HZ.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -269,6 +269,7 @@ var _FetchInterceptor = class extends _chunkWZTE4PCOjs.Interceptor {
this.logger.info(
"no mocked response received, performing request as-is..."
);
const requestCloneForResponseEvent = request.clone();
return pureFetch(request).then(async (response) => {
this.logger.info("original fetch performed", response);
if (this.emitter.listenerCount("response") > 0) {
@ -277,7 +278,7 @@ var _FetchInterceptor = class extends _chunkWZTE4PCOjs.Interceptor {
await _chunk6L3PFBGTjs.emitAsync.call(void 0, this.emitter, "response", {
response: responseClone,
isMockedResponse: false,
request,
request: requestCloneForResponseEvent,
requestId
});
}
@ -307,4 +308,4 @@ FetchInterceptor.symbol = Symbol("fetch");
exports.FetchInterceptor = FetchInterceptor;
//# sourceMappingURL=chunk-LEA3MUU3.js.map
//# sourceMappingURL=chunk-CF5C3K5U.js.map

File diff suppressed because one or more lines are too long

View file

@ -630,12 +630,16 @@ var MockAgent = class extends http.Agent {
this.onResponse = options.onResponse;
}
createConnection(options, callback) {
const createConnection = this.customAgent instanceof http.Agent && this.customAgent.createConnection || super.createConnection;
const createConnection = this.customAgent instanceof http.Agent ? this.customAgent.createConnection : super.createConnection;
const createConnectionOptions = this.customAgent instanceof http.Agent ? {
...options,
...this.customAgent.options
} : options;
const socket = new MockHttpSocket({
connectionOptions: options,
createConnection: createConnection.bind(
this.customAgent || this,
options,
createConnectionOptions,
callback
),
onRequest: this.onRequest.bind(this),
@ -652,12 +656,16 @@ var MockHttpsAgent = class extends https.Agent {
this.onResponse = options.onResponse;
}
createConnection(options, callback) {
const createConnection = this.customAgent instanceof https.Agent && this.customAgent.createConnection || super.createConnection;
const createConnection = this.customAgent instanceof https.Agent ? this.customAgent.createConnection : super.createConnection;
const createConnectionOptions = this.customAgent instanceof https.Agent ? {
...options,
...this.customAgent.options
} : options;
const socket = new MockHttpSocket({
connectionOptions: options,
createConnection: createConnection.bind(
this.customAgent || this,
options,
createConnectionOptions,
callback
),
onRequest: this.onRequest.bind(this),
@ -903,7 +911,10 @@ function normalizeClientRequestArgs(defaultProtocol, args) {
options.method = options.method || "GET";
if (typeof options.agent === "undefined") {
const agent = options.protocol === "https:" ? new HttpsAgent({
rejectUnauthorized: options.rejectUnauthorized
// Any other value other than false is considered as true, so we don't add this property if undefined.
..."rejectUnauthorized" in options && {
rejectUnauthorized: options.rejectUnauthorized
}
}) : new HttpAgent();
options.agent = agent;
logger3.info("resolved fallback agent:", agent);
@ -1050,4 +1061,4 @@ ClientRequestInterceptor.symbol = Symbol("client-request-interceptor");
export {
ClientRequestInterceptor
};
//# sourceMappingURL=chunk-QFFDMWKW.mjs.map
//# sourceMappingURL=chunk-FWJSC2QD.mjs.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -269,6 +269,7 @@ var _FetchInterceptor = class extends Interceptor {
this.logger.info(
"no mocked response received, performing request as-is..."
);
const requestCloneForResponseEvent = request.clone();
return pureFetch(request).then(async (response) => {
this.logger.info("original fetch performed", response);
if (this.emitter.listenerCount("response") > 0) {
@ -277,7 +278,7 @@ var _FetchInterceptor = class extends Interceptor {
await emitAsync(this.emitter, "response", {
response: responseClone,
isMockedResponse: false,
request,
request: requestCloneForResponseEvent,
requestId
});
}
@ -307,4 +308,4 @@ FetchInterceptor.symbol = Symbol("fetch");
export {
FetchInterceptor
};
//# sourceMappingURL=chunk-CTGTMEFD.mjs.map
//# sourceMappingURL=chunk-ZSYLU3GR.mjs.map

File diff suppressed because one or more lines are too long

View file

@ -1,9 +1,9 @@
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunk4IGRW7SKjs = require('../../chunk-4IGRW7SK.js');
var _chunk3HCE66HZjs = require('../../chunk-3HCE66HZ.js');
require('../../chunk-6L3PFBGT.js');
require('../../chunk-WZTE4PCO.js');
exports.ClientRequestInterceptor = _chunk4IGRW7SKjs.ClientRequestInterceptor;
exports.ClientRequestInterceptor = _chunk3HCE66HZjs.ClientRequestInterceptor;
//# sourceMappingURL=index.js.map

View file

@ -1,6 +1,6 @@
import {
ClientRequestInterceptor
} from "../../chunk-QFFDMWKW.mjs";
} from "../../chunk-FWJSC2QD.mjs";
import "../../chunk-5KMS5CTP.mjs";
import "../../chunk-I7HQIBT7.mjs";
export {

View file

@ -1,11 +1,11 @@
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkLEA3MUU3js = require('../../chunk-LEA3MUU3.js');
var _chunkCF5C3K5Ujs = require('../../chunk-CF5C3K5U.js');
require('../../chunk-PFGO5BSM.js');
require('../../chunk-73NOP3T5.js');
require('../../chunk-6L3PFBGT.js');
require('../../chunk-WZTE4PCO.js');
exports.FetchInterceptor = _chunkLEA3MUU3js.FetchInterceptor;
exports.FetchInterceptor = _chunkCF5C3K5Ujs.FetchInterceptor;
//# sourceMappingURL=index.js.map

View file

@ -1,6 +1,6 @@
import {
FetchInterceptor
} from "../../chunk-CTGTMEFD.mjs";
} from "../../chunk-ZSYLU3GR.mjs";
import "../../chunk-TX5GBTFY.mjs";
import "../../chunk-6YM4PLBI.mjs";
import "../../chunk-5KMS5CTP.mjs";

View file

@ -1,13 +1,13 @@
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunk4IGRW7SKjs = require('../chunk-4IGRW7SK.js');
var _chunk3HCE66HZjs = require('../chunk-3HCE66HZ.js');
var _chunkLCA4FKWYjs = require('../chunk-LCA4FKWY.js');
require('../chunk-LK6DILFK.js');
var _chunkLEA3MUU3js = require('../chunk-LEA3MUU3.js');
var _chunkCF5C3K5Ujs = require('../chunk-CF5C3K5U.js');
require('../chunk-PFGO5BSM.js');
require('../chunk-73NOP3T5.js');
require('../chunk-6L3PFBGT.js');
@ -15,9 +15,9 @@ require('../chunk-WZTE4PCO.js');
// src/presets/node.ts
var node_default = [
new (0, _chunk4IGRW7SKjs.ClientRequestInterceptor)(),
new (0, _chunk3HCE66HZjs.ClientRequestInterceptor)(),
new (0, _chunkLCA4FKWYjs.XMLHttpRequestInterceptor)(),
new (0, _chunkLEA3MUU3js.FetchInterceptor)()
new (0, _chunkCF5C3K5Ujs.FetchInterceptor)()
];

View file

@ -1,13 +1,13 @@
import {
ClientRequestInterceptor
} from "../chunk-QFFDMWKW.mjs";
} from "../chunk-FWJSC2QD.mjs";
import {
XMLHttpRequestInterceptor
} from "../chunk-OMWE7UVM.mjs";
import "../chunk-6HYIRFX2.mjs";
import {
FetchInterceptor
} from "../chunk-CTGTMEFD.mjs";
} from "../chunk-ZSYLU3GR.mjs";
import "../chunk-TX5GBTFY.mjs";
import "../chunk-6YM4PLBI.mjs";
import "../chunk-5KMS5CTP.mjs";