Unverified Commit b676fce0 authored by Kiko Beats's avatar Kiko Beats Committed by GitHub

upgrade edge-runtime dependency (#54117)

Hello,

This PR upgrades `edge-runtime` and associated packages, mostly fixing issues.
parent bc76784b
......@@ -135,9 +135,9 @@
"@babel/traverse": "7.18.0",
"@babel/types": "7.18.0",
"@capsizecss/metrics": "1.1.0",
"@edge-runtime/cookies": "3.2.1",
"@edge-runtime/cookies": "3.3.0",
"@edge-runtime/ponyfill": "2.3.0",
"@edge-runtime/primitives": "3.0.1",
"@edge-runtime/primitives": "3.0.4",
"@hapi/accept": "5.0.2",
"@jest/transform": "29.5.0",
"@jest/types": "29.5.0",
......@@ -225,7 +225,7 @@
"debug": "4.1.1",
"devalue": "2.0.1",
"domain-browser": "4.19.0",
"edge-runtime": "2.4.4",
"edge-runtime": "2.4.5",
"events": "3.3.0",
"find-cache-dir": "3.3.1",
"find-up": "4.1.0",
......
......@@ -175,6 +175,7 @@ declare class ResponseCookies {
* {@link https://wicg.github.io/cookie-store/#CookieStore-getAll CookieStore#getAll} without the Promise.
*/
getAll(...args: [key: string] | [options: ResponseCookie] | []): ResponseCookie[];
has(name: string): boolean;
/**
* {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
*/
......@@ -182,8 +183,27 @@ declare class ResponseCookies {
/**
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
*/
delete(...args: [key: string] | [options: ResponseCookie]): this;
delete(...args: [key: string] | [options: Omit<ResponseCookie, 'value' | 'expires'>]): this;
toString(): string;
}
export { CookieListItem, RequestCookie, RequestCookies, ResponseCookie, ResponseCookies };
declare function stringifyCookie(c: ResponseCookie | RequestCookie): string;
/** Parse a `Cookie` header value */
declare function parseCookie(cookie: string): Map<string, string>;
/** Parse a `Set-Cookie` header value */
declare function parseSetCookie(setCookie: string): undefined | ResponseCookie;
/**
* @source https://github.com/nfriedly/set-cookie-parser/blob/master/lib/set-cookie.js
*
* Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
* that are within a single set-cookie field-value, such as in the Expires portion.
* This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
* Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
* React Native's fetch does this for *every* header, including set-cookie.
*
* Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
* Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
*/
declare function splitCookiesString(cookiesString: string): string[];
export { CookieListItem, RequestCookie, RequestCookies, ResponseCookie, ResponseCookies, parseCookie, parseSetCookie, splitCookiesString, stringifyCookie };
......@@ -21,12 +21,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
var src_exports = {};
__export(src_exports, {
RequestCookies: () => RequestCookies,
ResponseCookies: () => ResponseCookies
ResponseCookies: () => ResponseCookies,
parseCookie: () => parseCookie,
parseSetCookie: () => parseSetCookie,
splitCookiesString: () => splitCookiesString,
stringifyCookie: () => stringifyCookie
});
module.exports = __toCommonJS(src_exports);
// src/serialize.ts
function serialize(c) {
function stringifyCookie(c) {
var _a;
const attrs = [
"path" in c && c.path && `Path=${c.path}`,
......@@ -39,7 +43,7 @@ function serialize(c) {
].filter(Boolean);
return `${c.name}=${encodeURIComponent((_a = c.value) != null ? _a : "")}; ${attrs.join("; ")}`;
}
function parseCookieString(cookie) {
function parseCookie(cookie) {
const map = /* @__PURE__ */ new Map();
for (const pair of cookie.split(/; */)) {
if (!pair)
......@@ -57,11 +61,11 @@ function parseCookieString(cookie) {
}
return map;
}
function parseSetCookieString(setCookie) {
function parseSetCookie(setCookie) {
if (!setCookie) {
return void 0;
}
const [[name, value], ...attributes] = parseCookieString(setCookie);
const [[name, value], ...attributes] = parseCookie(setCookie);
const { domain, expires, httponly, maxage, path, samesite, secure } = Object.fromEntries(
attributes.map(([key, value2]) => [key.toLowerCase(), value2])
);
......@@ -92,6 +96,57 @@ function parseSameSite(string) {
string = string.toLowerCase();
return SAME_SITE.includes(string) ? string : void 0;
}
function splitCookiesString(cookiesString) {
if (!cookiesString)
return [];
var cookiesStrings = [];
var pos = 0;
var start;
var ch;
var lastComma;
var nextStart;
var cookiesSeparatorFound;
function skipWhitespace() {
while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
pos += 1;
}
return pos < cookiesString.length;
}
function notSpecialChar() {
ch = cookiesString.charAt(pos);
return ch !== "=" && ch !== ";" && ch !== ",";
}
while (pos < cookiesString.length) {
start = pos;
cookiesSeparatorFound = false;
while (skipWhitespace()) {
ch = cookiesString.charAt(pos);
if (ch === ",") {
lastComma = pos;
pos += 1;
skipWhitespace();
nextStart = pos;
while (pos < cookiesString.length && notSpecialChar()) {
pos += 1;
}
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
cookiesSeparatorFound = true;
pos = nextStart;
cookiesStrings.push(cookiesString.substring(start, lastComma));
start = pos;
} else {
pos = lastComma + 1;
}
} else {
pos += 1;
}
}
if (!cookiesSeparatorFound || pos >= cookiesString.length) {
cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
}
}
return cookiesStrings;
}
// src/request-cookies.ts
var RequestCookies = class {
......@@ -101,7 +156,7 @@ var RequestCookies = class {
this._headers = requestHeaders;
const header = requestHeaders.get("cookie");
if (header) {
const parsed = parseCookieString(header);
const parsed = parseCookie(header);
for (const [name, value] of parsed) {
this._parsed.set(name, { name, value });
}
......@@ -138,7 +193,7 @@ var RequestCookies = class {
map.set(name, { name, value });
this._headers.set(
"cookie",
Array.from(map).map(([_, value2]) => serialize(value2)).join("; ")
Array.from(map).map(([_, value2]) => stringifyCookie(value2)).join("; ")
);
return this;
}
......@@ -150,7 +205,7 @@ var RequestCookies = class {
const result = !Array.isArray(names) ? map.delete(names) : names.map((name) => map.delete(name));
this._headers.set(
"cookie",
Array.from(map).map(([_, value]) => serialize(value)).join("; ")
Array.from(map).map(([_, value]) => stringifyCookie(value)).join("; ")
);
return result;
}
......@@ -185,7 +240,7 @@ var ResponseCookies = class {
);
const cookieStrings = Array.isArray(setCookie) ? setCookie : splitCookiesString(setCookie);
for (const cookieString of cookieStrings) {
const parsed = parseSetCookieString(cookieString);
const parsed = parseSetCookie(cookieString);
if (parsed)
this._parsed.set(parsed.name, parsed);
}
......@@ -209,6 +264,9 @@ var ResponseCookies = class {
const key = typeof args[0] === "string" ? args[0] : (_a = args[0]) == null ? void 0 : _a.name;
return all.filter((c) => c.name === key);
}
has(name) {
return this._parsed.has(name);
}
/**
* {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
*/
......@@ -223,20 +281,20 @@ var ResponseCookies = class {
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
*/
delete(...args) {
const name = typeof args[0] === "string" ? args[0] : args[0].name;
return this.set({ name, value: "", expires: /* @__PURE__ */ new Date(0) });
const [name, path, domain] = typeof args[0] === "string" ? [args[0]] : [args[0].name, args[0].path, args[0].domain];
return this.set({ name, path, domain, value: "", expires: /* @__PURE__ */ new Date(0) });
}
[Symbol.for("edge-runtime.inspect.custom")]() {
return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
}
toString() {
return [...this._parsed.values()].map(serialize).join("; ");
return [...this._parsed.values()].map(stringifyCookie).join("; ");
}
};
function replace(bag, headers) {
headers.delete("set-cookie");
for (const [, value] of bag) {
const serialized = serialize(value);
const serialized = stringifyCookie(value);
headers.append("set-cookie", serialized);
}
}
......@@ -252,59 +310,12 @@ function normalizeCookie(cookie = { name: "", value: "" }) {
}
return cookie;
}
function splitCookiesString(cookiesString) {
if (!cookiesString)
return [];
var cookiesStrings = [];
var pos = 0;
var start;
var ch;
var lastComma;
var nextStart;
var cookiesSeparatorFound;
function skipWhitespace() {
while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
pos += 1;
}
return pos < cookiesString.length;
}
function notSpecialChar() {
ch = cookiesString.charAt(pos);
return ch !== "=" && ch !== ";" && ch !== ",";
}
while (pos < cookiesString.length) {
start = pos;
cookiesSeparatorFound = false;
while (skipWhitespace()) {
ch = cookiesString.charAt(pos);
if (ch === ",") {
lastComma = pos;
pos += 1;
skipWhitespace();
nextStart = pos;
while (pos < cookiesString.length && notSpecialChar()) {
pos += 1;
}
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
cookiesSeparatorFound = true;
pos = nextStart;
cookiesStrings.push(cookiesString.substring(start, lastComma));
start = pos;
} else {
pos = lastComma + 1;
}
} else {
pos += 1;
}
}
if (!cookiesSeparatorFound || pos >= cookiesString.length) {
cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
}
}
return cookiesStrings;
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
RequestCookies,
ResponseCookies
ResponseCookies,
parseCookie,
parseSetCookie,
splitCookiesString,
stringifyCookie
});
{"name":"@edge-runtime/cookies","version":"3.2.1","main":"./index.js","license":"MPL-2.0"}
{"name":"@edge-runtime/cookies","version":"3.3.0","main":"./index.js","license":"MPL-2.0"}
module.exports = "\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/primitives/abort-controller.js\nvar abort_controller_exports = {};\n__export(abort_controller_exports, {\n AbortController: () => AbortController,\n AbortSignal: () => AbortSignal,\n DOMException: () => DOMException\n});\nmodule.exports = __toCommonJS(abort_controller_exports);\nvar kSignal = Symbol(\"kSignal\");\nvar kAborted = Symbol(\"kAborted\");\nvar kReason = Symbol(\"kReason\");\nvar kName = Symbol(\"kName\");\nvar kOnabort = Symbol(\"kOnabort\");\nvar DOMException = class extends Error {\n constructor(message, name) {\n super(message);\n this[kName] = name;\n }\n get name() {\n return this[kName];\n }\n};\n__name(DOMException, \"DOMException\");\nfunction createAbortSignal() {\n const signal = new EventTarget();\n Object.setPrototypeOf(signal, AbortSignal.prototype);\n signal[kAborted] = false;\n signal[kReason] = void 0;\n signal[kOnabort] = void 0;\n return signal;\n}\n__name(createAbortSignal, \"createAbortSignal\");\nfunction abortSignalAbort(signal, reason) {\n if (typeof reason === \"undefined\") {\n reason = new DOMException(\"The operation was aborted.\", \"AbortError\");\n }\n if (signal.aborted) {\n return;\n }\n signal[kReason] = reason;\n signal[kAborted] = true;\n signal.dispatchEvent(new Event(\"abort\"));\n}\n__name(abortSignalAbort, \"abortSignalAbort\");\nvar AbortController = class {\n constructor() {\n this[kSignal] = createAbortSignal();\n }\n get signal() {\n return this[kSignal];\n }\n abort(reason) {\n abortSignalAbort(this.signal, reason);\n }\n};\n__name(AbortController, \"AbortController\");\nvar AbortSignal = class extends EventTarget {\n constructor() {\n throw new TypeError(\"Illegal constructor.\");\n }\n get aborted() {\n return this[kAborted];\n }\n get reason() {\n return this[kReason];\n }\n get onabort() {\n return this[kOnabort];\n }\n set onabort(value) {\n if (this[kOnabort]) {\n this.removeEventListener(\"abort\", this[kOnabort]);\n }\n if (value) {\n this[kOnabort] = value;\n this.addEventListener(\"abort\", this[kOnabort]);\n }\n }\n throwIfAborted() {\n if (this[kAborted]) {\n throw this[kReason];\n }\n }\n static abort(reason) {\n const signal = createAbortSignal();\n abortSignalAbort(signal, reason);\n return signal;\n }\n static timeout(milliseconds) {\n const signal = createAbortSignal();\n setTimeout(() => {\n abortSignalAbort(\n signal,\n new DOMException(\"The operation timed out.\", \"TimeoutError\")\n );\n }, milliseconds);\n return signal;\n }\n};\n__name(AbortSignal, \"AbortSignal\");\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n AbortController,\n AbortSignal,\n DOMException\n});\n"
\ No newline at end of file
module.exports = "\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/primitives/abort-controller.js\nvar abort_controller_exports = {};\n__export(abort_controller_exports, {\n AbortController: () => AbortController,\n AbortSignal: () => AbortSignal,\n DOMException: () => DOMException\n});\nmodule.exports = __toCommonJS(abort_controller_exports);\nvar kSignal = Symbol(\"kSignal\");\nvar kAborted = Symbol(\"kAborted\");\nvar kReason = Symbol(\"kReason\");\nvar kName = Symbol(\"kName\");\nvar kOnabort = Symbol(\"kOnabort\");\nvar _DOMException = class _DOMException extends Error {\n constructor(message, name) {\n super(message);\n this[kName] = name;\n }\n get name() {\n return this[kName];\n }\n};\n__name(_DOMException, \"DOMException\");\nvar DOMException = _DOMException;\nfunction createAbortSignal() {\n const signal = new EventTarget();\n Object.setPrototypeOf(signal, AbortSignal.prototype);\n signal[kAborted] = false;\n signal[kReason] = void 0;\n signal[kOnabort] = void 0;\n return signal;\n}\n__name(createAbortSignal, \"createAbortSignal\");\nfunction abortSignalAbort(signal, reason) {\n if (typeof reason === \"undefined\") {\n reason = new DOMException(\"The operation was aborted.\", \"AbortError\");\n }\n if (signal.aborted) {\n return;\n }\n signal[kReason] = reason;\n signal[kAborted] = true;\n signal.dispatchEvent(new Event(\"abort\"));\n}\n__name(abortSignalAbort, \"abortSignalAbort\");\nvar _AbortController = class _AbortController {\n constructor() {\n this[kSignal] = createAbortSignal();\n }\n get signal() {\n return this[kSignal];\n }\n abort(reason) {\n abortSignalAbort(this.signal, reason);\n }\n};\n__name(_AbortController, \"AbortController\");\nvar AbortController = _AbortController;\nvar _AbortSignal = class _AbortSignal extends EventTarget {\n constructor() {\n throw new TypeError(\"Illegal constructor.\");\n }\n get aborted() {\n return this[kAborted];\n }\n get reason() {\n return this[kReason];\n }\n get onabort() {\n return this[kOnabort];\n }\n set onabort(value) {\n if (this[kOnabort]) {\n this.removeEventListener(\"abort\", this[kOnabort]);\n }\n if (value) {\n this[kOnabort] = value;\n this.addEventListener(\"abort\", this[kOnabort]);\n }\n }\n throwIfAborted() {\n if (this[kAborted]) {\n throw this[kReason];\n }\n }\n static abort(reason) {\n const signal = createAbortSignal();\n abortSignalAbort(signal, reason);\n return signal;\n }\n static timeout(milliseconds) {\n const signal = createAbortSignal();\n setTimeout(() => {\n abortSignalAbort(\n signal,\n new DOMException(\"The operation timed out.\", \"TimeoutError\")\n );\n }, milliseconds);\n return signal;\n }\n};\n__name(_AbortSignal, \"AbortSignal\");\nvar AbortSignal = _AbortSignal;\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n AbortController,\n AbortSignal,\n DOMException\n});\n"
\ No newline at end of file
{"name":"@edge-runtime/primitives","version":"3.0.1","main":"./index.js","license":"MPL-2.0"}
{"name":"@edge-runtime/primitives","version":"3.0.4","main":"./index.js","license":"MPL-2.0"}
This source diff could not be displayed because it is too large. You can view the blob instead.
module.exports = "\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/primitives/text-encoding-streams.js\nvar text_encoding_streams_exports = {};\n__export(text_encoding_streams_exports, {\n TextDecoderStream: () => TextDecoderStream,\n TextEncoderStream: () => TextEncoderStream\n});\nmodule.exports = __toCommonJS(text_encoding_streams_exports);\n\n// ../../node_modules/.pnpm/@stardazed+streams-text-encoding@1.0.2/node_modules/@stardazed/streams-text-encoding/dist/sd-streams-text-encoding.esm.js\nvar decDecoder = Symbol(\"decDecoder\");\nvar decTransform = Symbol(\"decTransform\");\nvar TextDecodeTransformer = class {\n constructor(decoder) {\n this.decoder_ = decoder;\n }\n transform(chunk, controller) {\n if (!(chunk instanceof ArrayBuffer || ArrayBuffer.isView(chunk))) {\n throw new TypeError(\"Input data must be a BufferSource\");\n }\n const text = this.decoder_.decode(chunk, { stream: true });\n if (text.length !== 0) {\n controller.enqueue(text);\n }\n }\n flush(controller) {\n const text = this.decoder_.decode();\n if (text.length !== 0) {\n controller.enqueue(text);\n }\n }\n};\n__name(TextDecodeTransformer, \"TextDecodeTransformer\");\nvar TextDecoderStream = class {\n constructor(label, options) {\n this[decDecoder] = new TextDecoder(label, options);\n this[decTransform] = new TransformStream(new TextDecodeTransformer(this[decDecoder]));\n }\n get encoding() {\n return this[decDecoder].encoding;\n }\n get fatal() {\n return this[decDecoder].fatal;\n }\n get ignoreBOM() {\n return this[decDecoder].ignoreBOM;\n }\n get readable() {\n return this[decTransform].readable;\n }\n get writable() {\n return this[decTransform].writable;\n }\n};\n__name(TextDecoderStream, \"TextDecoderStream\");\nvar encEncoder = Symbol(\"encEncoder\");\nvar encTransform = Symbol(\"encTransform\");\nvar TextEncodeTransformer = class {\n constructor(encoder) {\n this.encoder_ = encoder;\n this.partial_ = void 0;\n }\n transform(chunk, controller) {\n let stringChunk = String(chunk);\n if (this.partial_ !== void 0) {\n stringChunk = this.partial_ + stringChunk;\n this.partial_ = void 0;\n }\n const lastCharIndex = stringChunk.length - 1;\n const lastCodeUnit = stringChunk.charCodeAt(lastCharIndex);\n if (lastCodeUnit >= 55296 && lastCodeUnit < 56320) {\n this.partial_ = String.fromCharCode(lastCodeUnit);\n stringChunk = stringChunk.substring(0, lastCharIndex);\n }\n const bytes = this.encoder_.encode(stringChunk);\n if (bytes.length !== 0) {\n controller.enqueue(bytes);\n }\n }\n flush(controller) {\n if (this.partial_) {\n controller.enqueue(this.encoder_.encode(this.partial_));\n this.partial_ = void 0;\n }\n }\n};\n__name(TextEncodeTransformer, \"TextEncodeTransformer\");\nvar TextEncoderStream = class {\n constructor() {\n this[encEncoder] = new TextEncoder();\n this[encTransform] = new TransformStream(new TextEncodeTransformer(this[encEncoder]));\n }\n get encoding() {\n return this[encEncoder].encoding;\n }\n get readable() {\n return this[encTransform].readable;\n }\n get writable() {\n return this[encTransform].writable;\n }\n};\n__name(TextEncoderStream, \"TextEncoderStream\");\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n TextDecoderStream,\n TextEncoderStream\n});\n"
\ No newline at end of file
module.exports = "\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/primitives/text-encoding-streams.js\nvar text_encoding_streams_exports = {};\n__export(text_encoding_streams_exports, {\n TextDecoderStream: () => TextDecoderStream,\n TextEncoderStream: () => TextEncoderStream\n});\nmodule.exports = __toCommonJS(text_encoding_streams_exports);\n\n// ../../node_modules/.pnpm/@stardazed+streams-text-encoding@1.0.2/node_modules/@stardazed/streams-text-encoding/dist/sd-streams-text-encoding.esm.js\nvar decDecoder = Symbol(\"decDecoder\");\nvar decTransform = Symbol(\"decTransform\");\nvar _TextDecodeTransformer = class _TextDecodeTransformer {\n constructor(decoder) {\n this.decoder_ = decoder;\n }\n transform(chunk, controller) {\n if (!(chunk instanceof ArrayBuffer || ArrayBuffer.isView(chunk))) {\n throw new TypeError(\"Input data must be a BufferSource\");\n }\n const text = this.decoder_.decode(chunk, { stream: true });\n if (text.length !== 0) {\n controller.enqueue(text);\n }\n }\n flush(controller) {\n const text = this.decoder_.decode();\n if (text.length !== 0) {\n controller.enqueue(text);\n }\n }\n};\n__name(_TextDecodeTransformer, \"TextDecodeTransformer\");\nvar TextDecodeTransformer = _TextDecodeTransformer;\nvar _TextDecoderStream = class _TextDecoderStream {\n constructor(label, options) {\n this[decDecoder] = new TextDecoder(label, options);\n this[decTransform] = new TransformStream(new TextDecodeTransformer(this[decDecoder]));\n }\n get encoding() {\n return this[decDecoder].encoding;\n }\n get fatal() {\n return this[decDecoder].fatal;\n }\n get ignoreBOM() {\n return this[decDecoder].ignoreBOM;\n }\n get readable() {\n return this[decTransform].readable;\n }\n get writable() {\n return this[decTransform].writable;\n }\n};\n__name(_TextDecoderStream, \"TextDecoderStream\");\nvar TextDecoderStream = _TextDecoderStream;\nvar encEncoder = Symbol(\"encEncoder\");\nvar encTransform = Symbol(\"encTransform\");\nvar _TextEncodeTransformer = class _TextEncodeTransformer {\n constructor(encoder) {\n this.encoder_ = encoder;\n this.partial_ = void 0;\n }\n transform(chunk, controller) {\n let stringChunk = String(chunk);\n if (this.partial_ !== void 0) {\n stringChunk = this.partial_ + stringChunk;\n this.partial_ = void 0;\n }\n const lastCharIndex = stringChunk.length - 1;\n const lastCodeUnit = stringChunk.charCodeAt(lastCharIndex);\n if (lastCodeUnit >= 55296 && lastCodeUnit < 56320) {\n this.partial_ = String.fromCharCode(lastCodeUnit);\n stringChunk = stringChunk.substring(0, lastCharIndex);\n }\n const bytes = this.encoder_.encode(stringChunk);\n if (bytes.length !== 0) {\n controller.enqueue(bytes);\n }\n }\n flush(controller) {\n if (this.partial_) {\n controller.enqueue(this.encoder_.encode(this.partial_));\n this.partial_ = void 0;\n }\n }\n};\n__name(_TextEncodeTransformer, \"TextEncodeTransformer\");\nvar TextEncodeTransformer = _TextEncodeTransformer;\nvar _TextEncoderStream = class _TextEncoderStream {\n constructor() {\n this[encEncoder] = new TextEncoder();\n this[encTransform] = new TransformStream(new TextEncodeTransformer(this[encEncoder]));\n }\n get encoding() {\n return this[encEncoder].encoding;\n }\n get readable() {\n return this[encTransform].readable;\n }\n get writable() {\n return this[encTransform].writable;\n }\n};\n__name(_TextEncoderStream, \"TextEncoderStream\");\nvar TextEncoderStream = _TextEncoderStream;\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n TextDecoderStream,\n TextEncoderStream\n});\n"
\ No newline at end of file
......@@ -42,8 +42,8 @@ importers:
specifier: 7.14.5
version: 7.14.5(@babel/core@7.18.0)
'@edge-runtime/jest-environment':
specifier: 2.2.1
version: 2.2.1
specifier: 2.2.5
version: 2.2.5
'@fullhuman/postcss-purgecss':
specifier: 1.3.0
version: 1.3.0
......@@ -797,14 +797,14 @@ importers:
specifier: 1.1.0
version: 1.1.0
'@edge-runtime/cookies':
specifier: 3.2.1
version: 3.2.1
specifier: 3.3.0
version: 3.3.0
'@edge-runtime/ponyfill':
specifier: 2.3.0
version: 2.3.0
'@edge-runtime/primitives':
specifier: 3.0.1
version: 3.0.1
specifier: 3.0.4
version: 3.0.4
'@hapi/accept':
specifier: 5.0.2
version: 5.0.2
......@@ -1067,8 +1067,8 @@ importers:
specifier: 4.19.0
version: 4.19.0
edge-runtime:
specifier: 2.4.4
version: 2.4.4
specifier: 2.4.5
version: 2.4.5
events:
specifier: 3.3.0
version: 3.3.0
......@@ -1230,7 +1230,7 @@ importers:
version: 0.13.4
sass-loader:
specifier: 12.4.0
version: 12.4.0(webpack@5.86.0)
version: 12.4.0(sass@1.54.0)(webpack@5.86.0)
schema-utils2:
specifier: npm:schema-utils@2.7.1
version: /schema-utils@2.7.1
......@@ -5077,8 +5077,8 @@ packages:
resolution: {integrity: sha512-smLocSfrt3s53H/XSVP3/1kP42oqvrkjUPtyaFd1F79ux24oE31BKt+q0c6lsa6hOYrFzsIwyc5GXAI5JmfOew==}
dev: true
/@edge-runtime/cookies@3.2.1:
resolution: {integrity: sha512-Grbe1sxqbTe5Qj8ttM0fEv5n9x+me4X+R7AoDstVRLxSlrC8ecZv86I8J/9swj3iiQxw1QqMTDXyRh+0d2xrnw==}
/@edge-runtime/cookies@3.3.0:
resolution: {integrity: sha512-3yTL34qahvZfrGdpYwKVvJMRYyBc510pQLSo4kMtkmlRH136S5cy+27vq+Z5h3eNFhANLxitTZ16Oz0XUayWhw==}
engines: {node: '>=14'}
dev: true
......@@ -5087,14 +5087,13 @@ packages:
engines: {node: '>=14'}
dev: true
/@edge-runtime/jest-environment@2.2.1:
resolution: {integrity: sha512-CW/yJfQtxkkIeiRR/XSQgbMBpC3ZXiunxdovTmDx4RNvBdNN0PUmjcnNuYzXJ0QfHstSZbtW2sRv7GgfG4KvAA==}
/@edge-runtime/jest-environment@2.2.5:
resolution: {integrity: sha512-I9JYvOrWhsso/C/OmSxaawEEw7mUpjNVIwNJncBODVhLoFkn6gkHGZVTPR0e4g4yH9yq4gwXnSdC4BS/iwTSqw==}
engines: {node: '>=14'}
dependencies:
'@edge-runtime/vm': 3.0.1
'@edge-runtime/vm': 3.0.4
'@jest/environment': 29.5.0
'@jest/fake-timers': 29.5.0
'@jest/types': 29.5.0
jest-mock: 29.5.0
jest-util: 29.5.0
dev: true
......@@ -5104,28 +5103,16 @@ packages:
engines: {node: '>=14'}
dev: true
/@edge-runtime/primitives@3.0.1:
resolution: {integrity: sha512-l5NNDcPkKW4N6qRmB8zzpCF6uRW1S808V/zm72z7b/aWwZUYbmEPPkzyhGAW0aQxLU1pGdZ8u2gNjamdaU6RXw==}
/@edge-runtime/primitives@3.0.4:
resolution: {integrity: sha512-ZisWDavCpjroNbXZ1FZ2qHqlNfTXjIcQx+7aRdC+n6DVsTShUW7S+urGj2Wags5CH0oICWRoksYX5GngW7SZzw==}
engines: {node: '>=14'}
dev: true
/@edge-runtime/primitives@3.0.3:
resolution: {integrity: sha512-YnfMWMRQABAH8IsnFMJWMW+SyB4ZeYBPnR7V0aqdnew7Pq60cbH5DyFjS/FhiLwvHQk9wBREmXD7PP0HooEQ1A==}
engines: {node: '>=14'}
dev: true
/@edge-runtime/vm@3.0.1:
resolution: {integrity: sha512-69twXLIcqVx0iNlc1vFqnXgka2CZi2c/QBAmMzXBk0M6mPG+ICCBh2dd+cv1K+HW2pfLuSW+EskkFXWGeCf1Vw==}
engines: {node: '>=14'}
dependencies:
'@edge-runtime/primitives': 3.0.1
dev: true
/@edge-runtime/vm@3.0.3:
resolution: {integrity: sha512-SPfI1JeIRNs/4EEE2Oc0X6gG3RqjD1TnKu2lwmwFXq0435xgZGKhc3UiKkYAdoMn2dNFD73nlabMKHBRoMRpxg==}
/@edge-runtime/vm@3.0.4:
resolution: {integrity: sha512-/QvVIn2+nO48dO3cl5tD3cjoF/xJ7WfTKBIs/oKgfmmWbEQ4EixKlOTJEpcBdOni0E8FCHIc7yxoJGq1qcLdCg==}
engines: {node: '>=14'}
dependencies:
'@edge-runtime/primitives': 3.0.3
'@edge-runtime/primitives': 3.0.4
dev: true
/@emotion/unitless@0.8.1:
......@@ -6704,8 +6691,8 @@ packages:
resolution: {integrity: sha512-XQr74QaLeMiqhStEhLn1im9EOMnkypp7MZOwQhGzqp2Weu5eQJbpPxWxixxlYRKWPOmJjsk6qYfYH9kq43yc2w==}
dev: true
/@next/react-refresh-utils@13.4.15(react-refresh@0.12.0)(webpack@5.86.0):
resolution: {integrity: sha512-CRPdown3t4eO5R2r0CkXSwil2hw3FjR7P7HfJYxIAjrDBlAl6lvTrCCdGSOx5X8qwjY2HWPvARaSSMc4LIcX3Q==}
/@next/react-refresh-utils@13.4.16(react-refresh@0.12.0)(webpack@5.86.0):
resolution: {integrity: sha512-kYXo3CMap1+vs6dsnynxu8iIh+o+iE0aSf4kCFH1WZw3u0+QaGJS4s6J8eRLMxo4Dpq/hYmuNB/oMCZmxVHi0Q==}
peerDependencies:
react-refresh: 0.12.0
webpack: ^4 || ^5
......@@ -7437,6 +7424,7 @@ packages:
/@sinonjs/fake-timers@10.2.0:
resolution: {integrity: sha512-OPwQlEdg40HAj5KNF8WW6q2KG4Z+cBCZb3m4ninfTZKaBmbIJodviQsDBoYMPHkOyJJMHnOJo5j2+LKDOhOACg==}
deprecated: Use version 10.1.0. Version 10.2.0 has potential breaking issues
dependencies:
'@sinonjs/commons': 3.0.0
dev: true
......@@ -12408,13 +12396,13 @@ packages:
safe-buffer: 5.2.1
dev: true
/edge-runtime@2.4.4:
resolution: {integrity: sha512-uq1YdIxkMDsBYLdSSp/w62PciCL46ic4m1Z/2G6N8RcAPI8p35O8u6hJQT83j28Dnt4U5iyvmwFMYouHMK51uA==}
/edge-runtime@2.4.5:
resolution: {integrity: sha512-SavsXBll1aPBbD1wu1bHVdk2hxbmRhWe0GfeShwjrdKmFu/TUBWo1712Yk68YVhAfsaBSAqtcAF1ei7qLDKzPA==}
engines: {node: '>=14'}
hasBin: true
dependencies:
'@edge-runtime/format': 2.1.0
'@edge-runtime/vm': 3.0.3
'@edge-runtime/vm': 3.0.4
async-listen: 3.0.0
mri: 1.2.0
picocolors: 1.0.0
......@@ -16513,7 +16501,7 @@ packages:
'@types/stack-utils': 2.0.1
chalk: 4.0.0
graceful-fs: 4.2.11
micromatch: 4.0.5
micromatch: 4.0.4
pretty-format: 29.5.0
slash: 3.0.0
stack-utils: 2.0.6
......@@ -23235,7 +23223,7 @@ packages:
/safer-buffer@2.1.2:
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
/sass-loader@12.4.0(webpack@5.86.0):
/sass-loader@12.4.0(sass@1.54.0)(webpack@5.86.0):
resolution: {integrity: sha512-7xN+8khDIzym1oL9XyS6zP6Ges+Bo2B2xbPrjdMHEYyV3AQYhd/wXeru++3ODHF0zMjYmVadblSKrPrjEkL8mg==}
engines: {node: '>= 12.13.0'}
peerDependencies:
......@@ -23253,6 +23241,7 @@ packages:
dependencies:
klona: 2.0.4
neo-async: 2.6.2
sass: 1.54.0
webpack: 5.86.0(@swc/core@1.3.55)
dev: true
......@@ -26413,7 +26402,7 @@ packages:
name: '@vercel/turbopack-ecmascript-runtime'
version: 0.0.0
dependencies:
'@next/react-refresh-utils': 13.4.15(react-refresh@0.12.0)(webpack@5.86.0)
'@next/react-refresh-utils': 13.4.16(react-refresh@0.12.0)(webpack@5.86.0)
'@types/node': 20.2.5
transitivePeerDependencies:
- react-refresh
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment