chore(deps): update all non-major dependencies
This commit is contained in:
Vendored
+26
-10
@@ -6647,7 +6647,8 @@ var require_client = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
||||
this.once("connect", cb);
|
||||
}
|
||||
[kDispatch](opts, handler) {
|
||||
const request = new Request(opts.origin || this[kUrl].origin, opts, handler);
|
||||
const origin = opts.origin || this[kUrl].origin;
|
||||
const request = new Request(origin, opts, handler);
|
||||
this[kQueue].push(request);
|
||||
if (this[kResuming]) {} else if (util.bodyLength(request.body) == null && util.isIterable(request.body)) {
|
||||
this[kResuming] = 1;
|
||||
@@ -8945,7 +8946,10 @@ var require_mock_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
||||
matchedMockDispatches = matchedMockDispatches.filter(({ body }) => typeof body !== "undefined" ? matchValue(body, key.body) : true);
|
||||
if (matchedMockDispatches.length === 0) throw new MockNotMatchedError(`Mock dispatch not matched for body '${key.body}' on path '${resolvedPath}'`);
|
||||
matchedMockDispatches = matchedMockDispatches.filter((mockDispatch) => matchHeaders(mockDispatch, key.headers));
|
||||
if (matchedMockDispatches.length === 0) throw new MockNotMatchedError(`Mock dispatch not matched for headers '${typeof key.headers === "object" ? JSON.stringify(key.headers) : key.headers}' on path '${resolvedPath}'`);
|
||||
if (matchedMockDispatches.length === 0) {
|
||||
const headers = typeof key.headers === "object" ? JSON.stringify(key.headers) : key.headers;
|
||||
throw new MockNotMatchedError(`Mock dispatch not matched for headers '${headers}' on path '${resolvedPath}'`);
|
||||
}
|
||||
return matchedMockDispatches[0];
|
||||
}
|
||||
function addMockDispatch(mockDispatches, key, data) {
|
||||
@@ -10264,7 +10268,8 @@ var require_response = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
||||
static json(data, init = {}) {
|
||||
webidl.argumentLengthCheck(arguments, 1, "Response.json");
|
||||
if (init !== null) init = webidl.converters.ResponseInit(init);
|
||||
const body = extractBody(textEncoder.encode(serializeJavascriptValueToJSONString(data)));
|
||||
const bytes = textEncoder.encode(serializeJavascriptValueToJSONString(data));
|
||||
const body = extractBody(bytes);
|
||||
const responseObject = fromInnerResponse(makeResponse({}), "response");
|
||||
initializeResponse(responseObject, init, {
|
||||
body: body[0],
|
||||
@@ -11233,7 +11238,8 @@ var require_fetch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
||||
taskDestination = request.client.globalObject;
|
||||
crossOriginIsolatedCapability = request.client.crossOriginIsolatedCapability;
|
||||
}
|
||||
const timingInfo = createOpaqueTimingInfo({ startTime: coarsenedSharedCurrentTime(crossOriginIsolatedCapability) });
|
||||
const currentTime = coarsenedSharedCurrentTime(crossOriginIsolatedCapability);
|
||||
const timingInfo = createOpaqueTimingInfo({ startTime: currentTime });
|
||||
const fetchParams = {
|
||||
controller: new Fetch(dispatcher),
|
||||
request,
|
||||
@@ -11341,7 +11347,8 @@ var require_fetch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
||||
response.headersList.set("content-type", type, true);
|
||||
} else {
|
||||
response.rangeRequested = true;
|
||||
const rangeValue = simpleRangeHeaderValue(request.headersList.get("range", true), true);
|
||||
const rangeHeader = request.headersList.get("range", true);
|
||||
const rangeValue = simpleRangeHeaderValue(rangeHeader, true);
|
||||
if (rangeValue === "failure") return Promise.resolve(makeNetworkError("failed to fetch the data URL"));
|
||||
let { rangeStartValue: rangeStart, rangeEndValue: rangeEnd } = rangeValue;
|
||||
if (rangeStart === null) {
|
||||
@@ -11364,7 +11371,8 @@ var require_fetch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
||||
return Promise.resolve(response);
|
||||
}
|
||||
case "data:": {
|
||||
const dataURLStruct = dataURLProcessor(requestCurrentURL(request));
|
||||
const currentURL = requestCurrentURL(request);
|
||||
const dataURLStruct = dataURLProcessor(currentURL);
|
||||
if (dataURLStruct === "failure") return Promise.resolve(makeNetworkError("failed to fetch the data URL"));
|
||||
const mimeType = serializeAMimeType(dataURLStruct.mimeType);
|
||||
return Promise.resolve(makeResponse({
|
||||
@@ -12723,8 +12731,10 @@ var require_cache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
||||
});
|
||||
const clonedResponse = cloneResponse(innerResponse);
|
||||
const bodyReadPromise = createDeferredPromise();
|
||||
if (innerResponse.body != null) readAllBytes(innerResponse.body.stream.getReader()).then(bodyReadPromise.resolve, bodyReadPromise.reject);
|
||||
else bodyReadPromise.resolve(void 0);
|
||||
if (innerResponse.body != null) {
|
||||
const reader = innerResponse.body.stream.getReader();
|
||||
readAllBytes(reader).then(bodyReadPromise.resolve, bodyReadPromise.reject);
|
||||
} else bodyReadPromise.resolve(void 0);
|
||||
/** @type {CacheBatchOperation[]} */
|
||||
const operations = [];
|
||||
/** @type {CacheBatchOperation} */
|
||||
@@ -13016,7 +13026,10 @@ var require_cachestorage = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
||||
request = webidl.converters.RequestInfo(request);
|
||||
options = webidl.converters.MultiCacheQueryOptions(options);
|
||||
if (options.cacheName != null) {
|
||||
if (this.#caches.has(options.cacheName)) return await new Cache(kConstruct, this.#caches.get(options.cacheName)).match(request, options);
|
||||
if (this.#caches.has(options.cacheName)) {
|
||||
const cacheList = this.#caches.get(options.cacheName);
|
||||
return await new Cache(kConstruct, cacheList).match(request, options);
|
||||
}
|
||||
} else for (const cacheList of this.#caches.values()) {
|
||||
const response = await new Cache(kConstruct, cacheList).match(request, options);
|
||||
if (response !== void 0) return response;
|
||||
@@ -13044,7 +13057,10 @@ var require_cachestorage = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
||||
const prefix = "CacheStorage.open";
|
||||
webidl.argumentLengthCheck(arguments, 1, prefix);
|
||||
cacheName = webidl.converters.DOMString(cacheName, prefix, "cacheName");
|
||||
if (this.#caches.has(cacheName)) return new Cache(kConstruct, this.#caches.get(cacheName));
|
||||
if (this.#caches.has(cacheName)) {
|
||||
const cache = this.#caches.get(cacheName);
|
||||
return new Cache(kConstruct, cache);
|
||||
}
|
||||
const cache = [];
|
||||
this.#caches.set(cacheName, cache);
|
||||
return new Cache(kConstruct, cache);
|
||||
|
||||
Reference in New Issue
Block a user