Unverified Commit 8958867d authored by Kiko Beats's avatar Kiko Beats Committed by GitHub
parent e2a5b095
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
"@babel/plugin-proposal-object-rest-spread": "7.14.7", "@babel/plugin-proposal-object-rest-spread": "7.14.7",
"@babel/preset-flow": "7.14.5", "@babel/preset-flow": "7.14.5",
"@babel/preset-react": "7.14.5", "@babel/preset-react": "7.14.5",
"@edge-runtime/jest-environment": "1.1.0-beta.27", "@edge-runtime/jest-environment": "1.1.0-beta.31",
"@fullhuman/postcss-purgecss": "1.3.0", "@fullhuman/postcss-purgecss": "1.3.0",
"@mdx-js/loader": "0.18.0", "@mdx-js/loader": "0.18.0",
"@next/bundle-analyzer": "workspace:*", "@next/bundle-analyzer": "workspace:*",
......
declare const AbortControllerConstructor: typeof AbortController declare const AbortControllerConstructor: AbortController
declare const AbortSignalConstructor: typeof AbortSignal
export { AbortControllerConstructor as AbortController, AbortSignalConstructor as AbortSignal }; declare var AbortSignal: {
prototype: typeof AbortSignal
new (): typeof AbortSignal
/** Returns an AbortSignal instance which will be aborted in milliseconds milliseconds. Its abort reason will be set to a "TimeoutError" DOMException. */
timeout(milliseconds: number): AbortSignal
/** Returns an AbortSignal instance whose abort reason is set to reason if not undefined; otherwise to an "AbortError" DOMException. */
abort(reason?: string): AbortSignal
}
export { AbortControllerConstructor as AbortController, AbortSignal };
"use strict";
var __create = Object.create; var __create = Object.create;
var __defProp = Object.defineProperty; var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
...@@ -23,7 +24,10 @@ var __copyProps = (to, from, except, desc) => { ...@@ -23,7 +24,10 @@ var __copyProps = (to, from, except, desc) => {
} }
return to; return to;
}; };
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod)); var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// <define:process> // <define:process>
...@@ -251,7 +255,12 @@ var require_Blob = __commonJS({ ...@@ -251,7 +255,12 @@ var require_Blob = __commonJS({
outByte3 = 64; outByte3 = 64;
} }
} }
output.push(byteToCharMap[outByte1], byteToCharMap[outByte2], byteToCharMap[outByte3], byteToCharMap[outByte4]); output.push(
byteToCharMap[outByte1],
byteToCharMap[outByte2],
byteToCharMap[outByte3],
byteToCharMap[outByte4]
);
} }
return output.join(""); return output.join("");
} }
...@@ -466,11 +475,13 @@ var require_Blob = __commonJS({ ...@@ -466,11 +475,13 @@ var require_Blob = __commonJS({
exports2.FileReader = global2.FileReader; exports2.FileReader = global2.FileReader;
} catch (e) { } catch (e) {
try { try {
exports2.File = new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name.replace(/\\//g, ":");this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date();this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')(); exports2.File = new Function(
'class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name.replace(/\\//g, ":");this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date();this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File'
)();
} catch (e2) { } catch (e2) {
exports2.File = function(b, d, c) { exports2.File = function(b, d, c) {
var blob2 = new Blob(b, c); var blob2 = new Blob(b, c);
var t = c && c.lastModified !== void 0 ? new Date(c.lastModified) : new Date(); var t = c && void 0 !== c.lastModified ? new Date(c.lastModified) : new Date();
blob2.name = d.replace(/\//g, ":"); blob2.name = d.replace(/\//g, ":");
blob2.lastModifiedDate = t; blob2.lastModifiedDate = t;
blob2.lastModified = +t; blob2.lastModified = +t;
...@@ -586,7 +597,9 @@ var require_Blob = __commonJS({ ...@@ -586,7 +597,9 @@ var require_Blob = __commonJS({
blob.stream = stream; blob.stream = stream;
} }
}); });
})(typeof self !== "undefined" && self || typeof window !== "undefined" && window || typeof global !== "undefined" && global || exports); })(
typeof self !== "undefined" && self || typeof window !== "undefined" && window || typeof global !== "undefined" && global || exports
);
} }
}); });
......
"use strict";
var __defProp = Object.defineProperty; var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames; var __getOwnPropNames = Object.getOwnPropertyNames;
...@@ -34,10 +35,14 @@ function createCaches() { ...@@ -34,10 +35,14 @@ function createCaches() {
return input; return input;
const request = input instanceof import_fetch.Request ? input : new import_fetch.Request(input); const request = input instanceof import_fetch.Request ? input : new import_fetch.Request(input);
if (request.method !== "GET") { if (request.method !== "GET") {
throw new TypeError(`Failed to execute '${invokeName}' on 'Cache': Request method '${request.method}' is unsupported`); throw new TypeError(
`Failed to execute '${invokeName}' on 'Cache': Request method '${request.method}' is unsupported`
);
} }
if (!request.url.startsWith("http")) { if (!request.url.startsWith("http")) {
throw new TypeError(`Failed to execute '${invokeName}' on 'Cache': Request scheme '${request.url.split(":")[0]}' is unsupported`); throw new TypeError(
`Failed to execute '${invokeName}' on 'Cache': Request scheme '${request.url.split(":")[0]}' is unsupported`
);
} }
Object.defineProperty(request, "__normalized__", { Object.defineProperty(request, "__normalized__", {
enumerable: false, enumerable: false,
...@@ -55,9 +60,13 @@ function createCaches() { ...@@ -55,9 +60,13 @@ function createCaches() {
}); });
} }
async add(request) { async add(request) {
const response = await (0, import_fetch.fetch)(normalizeRequest(request, { invokeName: "add" })); const response = await (0, import_fetch.fetch)(
normalizeRequest(request, { invokeName: "add" })
);
if (!response.ok) { if (!response.ok) {
throw new TypeError("Failed to execute 'add' on 'Cache': Request failed"); throw new TypeError(
"Failed to execute 'add' on 'Cache': Request failed"
);
} }
return this.put(request, response); return this.put(request, response);
} }
...@@ -75,11 +84,15 @@ function createCaches() { ...@@ -75,11 +84,15 @@ function createCaches() {
} }
async put(request, response) { async put(request, response) {
if (response.status === 206) { if (response.status === 206) {
throw new TypeError("Failed to execute 'put' on 'Cache': Partial response (status code 206) is unsupported"); throw new TypeError(
"Failed to execute 'put' on 'Cache': Partial response (status code 206) is unsupported"
);
} }
const vary = response.headers.get("vary"); const vary = response.headers.get("vary");
if (vary !== null && vary.includes("*")) { if (vary !== null && vary.includes("*")) {
throw new TypeError("Failed to execute 'put' on 'Cache': Vary header contains *"); throw new TypeError(
"Failed to execute 'put' on 'Cache': Vary header contains *"
);
} }
request = normalizeRequest(request, { invokeName: "put" }); request = normalizeRequest(request, { invokeName: "put" });
try { try {
...@@ -92,7 +105,9 @@ function createCaches() { ...@@ -92,7 +105,9 @@ function createCaches() {
}); });
} catch (error) { } catch (error) {
if (error.message === "disturbed") { if (error.message === "disturbed") {
throw new TypeError("Failed to execute 'put' on 'Cache': Response body is already used"); throw new TypeError(
"Failed to execute 'put' on 'Cache': Response body is already used"
);
} }
throw error; throw error;
} }
......
"use strict";
var __create = Object.create; var __create = Object.create;
var __defProp = Object.defineProperty; var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
...@@ -23,7 +24,10 @@ var __copyProps = (to, from, except, desc) => { ...@@ -23,7 +24,10 @@ var __copyProps = (to, from, except, desc) => {
} }
return to; return to;
}; };
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod)); var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// <define:process> // <define:process>
...@@ -35,6 +39,7 @@ var init_define_process = __esm({ ...@@ -35,6 +39,7 @@ var init_define_process = __esm({
// ../format/dist/index.js // ../format/dist/index.js
var require_dist = __commonJS({ var require_dist = __commonJS({
"../format/dist/index.js"(exports, module2) { "../format/dist/index.js"(exports, module2) {
"use strict";
init_define_process(); init_define_process();
var __defProp2 = Object.defineProperty; var __defProp2 = Object.defineProperty;
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
...@@ -81,7 +86,10 @@ var require_dist = __commonJS({ ...@@ -81,7 +86,10 @@ var require_dist = __commonJS({
var StringPrototypeIncludes = String.prototype.includes; var StringPrototypeIncludes = String.prototype.includes;
var SymbolIterator = Symbol.iterator; var SymbolIterator = Symbol.iterator;
var SymbolPrototypeToString = Symbol.prototype.toString; var SymbolPrototypeToString = Symbol.prototype.toString;
var TypedArrayPrototypeGetLength = GetOwnGetter(TypedArray.prototype, "length"); var TypedArrayPrototypeGetLength = GetOwnGetter(
TypedArray.prototype,
"length"
);
var typedArrayStrings = /* @__PURE__ */ new Set([ var typedArrayStrings = /* @__PURE__ */ new Set([
"[object BigInt64Array]", "[object BigInt64Array]",
"[object BigUint64Array]", "[object BigUint64Array]",
...@@ -191,7 +199,7 @@ var require_dist = __commonJS({ ...@@ -191,7 +199,7 @@ var require_dist = __commonJS({
return str; return str;
} }
__name(format2, "format"); __name(format2, "format");
function formatValue(ctx, value, recurseTimes, typedArray) { function formatValue(ctx, value, recurseTimes) {
if (hasCustomSymbol(value, customInspectSymbol)) { if (hasCustomSymbol(value, customInspectSymbol)) {
return format2(value[customInspectSymbol]()); return format2(value[customInspectSymbol]());
} }
...@@ -264,7 +272,6 @@ var require_dist = __commonJS({ ...@@ -264,7 +272,6 @@ var require_dist = __commonJS({
noIterator = true; noIterator = true;
} }
} }
let isValueFunction = false;
if (noIterator) { if (noIterator) {
keys = getKeys(value, ctx.showHidden); keys = getKeys(value, ctx.showHidden);
braces = ["{", "}"]; braces = ["{", "}"];
...@@ -273,7 +280,6 @@ var require_dist = __commonJS({ ...@@ -273,7 +280,6 @@ var require_dist = __commonJS({
return `{}`; return `{}`;
} }
} else if (kind(value, "function")) { } else if (kind(value, "function")) {
isValueFunction = true;
base = `[Function${value.name ? ": " + value.name : ""}]`; base = `[Function${value.name ? ": " + value.name : ""}]`;
if (keys.length === 0) { if (keys.length === 0) {
return base; return base;
...@@ -313,7 +319,16 @@ var require_dist = __commonJS({ ...@@ -313,7 +319,16 @@ var require_dist = __commonJS({
const visibleKeys = new Set(keys); const visibleKeys = new Set(keys);
const output = formatter(ctx, value, recurseTimes, visibleKeys, keys); const output = formatter(ctx, value, recurseTimes, visibleKeys, keys);
for (let i = 0; i < keys.length; i++) { for (let i = 0; i < keys.length; i++) {
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, keys[i], false)); output.push(
formatProperty(
ctx,
value,
recurseTimes,
visibleKeys,
keys[i],
false
)
);
} }
if (ctx.circular !== void 0) { if (ctx.circular !== void 0) {
const index = ctx.circular.get(value); const index = ctx.circular.get(value);
...@@ -323,7 +338,7 @@ var require_dist = __commonJS({ ...@@ -323,7 +338,7 @@ var require_dist = __commonJS({
} }
} }
ctx.seen.pop(); ctx.seen.pop();
return reduceToSingleString(output, base, braces, isValueFunction); return reduceToSingleString(output, base, braces);
} }
__name(formatRaw, "formatRaw"); __name(formatRaw, "formatRaw");
function inspect(value, opts2) { function inspect(value, opts2) {
...@@ -359,11 +374,20 @@ var require_dist = __commonJS({ ...@@ -359,11 +374,20 @@ var require_dist = __commonJS({
return `${name}: ${str}`; return `${name}: ${str}`;
} }
__name(formatProperty, "formatProperty"); __name(formatProperty, "formatProperty");
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { function formatArray(ctx, value, recurseTimes, visibleKeys) {
const output = []; const output = [];
for (let index = 0; index < value.length; ++index) { for (let index = 0; index < value.length; ++index) {
if (Object.prototype.hasOwnProperty.call(value, String(index))) { if (Object.prototype.hasOwnProperty.call(value, String(index))) {
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(index), true)); output.push(
formatProperty(
ctx,
value,
recurseTimes,
visibleKeys,
String(index),
true
)
);
} else { } else {
output.push(""); output.push("");
} }
...@@ -384,7 +408,7 @@ var require_dist = __commonJS({ ...@@ -384,7 +408,7 @@ var require_dist = __commonJS({
"byteOffset", "byteOffset",
"buffer" "buffer"
]) { ]) {
const str = formatValue(ctx, value[key], recurseTimes, true); const str = formatValue(ctx, value[key], recurseTimes);
ArrayPrototypePush.call(output, `[${String(key)}]: ${str}`); ArrayPrototypePush.call(output, `[${String(key)}]: ${str}`);
} }
} }
...@@ -402,7 +426,13 @@ var require_dist = __commonJS({ ...@@ -402,7 +426,13 @@ var require_dist = __commonJS({
function formatMap(ctx, value, recurseTimes) { function formatMap(ctx, value, recurseTimes) {
const output = []; const output = [];
for (const { 0: k, 1: v } of value) { for (const { 0: k, 1: v } of value) {
output.push(`${formatValue(ctx, k, recurseTimes)} => ${formatValue(ctx, v, recurseTimes)}`); output.push(
`${formatValue(ctx, k, recurseTimes)} => ${formatValue(
ctx,
v,
recurseTimes
)}`
);
} }
return output; return output;
} }
...@@ -410,11 +440,7 @@ var require_dist = __commonJS({ ...@@ -410,11 +440,7 @@ var require_dist = __commonJS({
return format2; return format2;
} }
__name(createFormat2, "createFormat"); __name(createFormat2, "createFormat");
function formatBigInt(bigint) { var formatBigInt = /* @__PURE__ */ __name((bigint) => `${bigint}n`, "formatBigInt");
const str = String(bigint);
return `${str}n`;
}
__name(formatBigInt, "formatBigInt");
function formatPrimitive(value) { function formatPrimitive(value) {
if (value === null) if (value === null)
return "null"; return "null";
...@@ -472,7 +498,7 @@ var require_dist = __commonJS({ ...@@ -472,7 +498,7 @@ var require_dist = __commonJS({
return base === "" || !StringPrototypeIncludes.call(base, "\n"); return base === "" || !StringPrototypeIncludes.call(base, "\n");
} }
__name(isBelowBreakLength, "isBelowBreakLength"); __name(isBelowBreakLength, "isBelowBreakLength");
function reduceToSingleString(output, base, braces, isValueFunction) { function reduceToSingleString(output, base, braces) {
const start = output.length + braces[0].length + base.length + 10; const start = output.length + braces[0].length + base.length + 10;
if (!isBelowBreakLength(output, start, base)) { if (!isBelowBreakLength(output, start, base)) {
return (base ? base + " " : "") + braces[0] + "\n " + output.join(",\n ") + "\n" + braces[1]; return (base ? base + " " : "") + braces[0] + "\n " + output.join(",\n ") + "\n" + braces[1];
...@@ -482,7 +508,9 @@ var require_dist = __commonJS({ ...@@ -482,7 +508,9 @@ var require_dist = __commonJS({
__name(reduceToSingleString, "reduceToSingleString"); __name(reduceToSingleString, "reduceToSingleString");
function safeStringify(input) { function safeStringify(input) {
if (Array.isArray(input)) { if (Array.isArray(input)) {
input = input.map((element) => JSON.parse(JSON.stringify(element, makeCircularReplacer()))); input = input.map(
(element) => JSON.parse(JSON.stringify(element, makeCircularReplacer()))
);
} }
return JSON.stringify(input, makeCircularReplacer()); return JSON.stringify(input, makeCircularReplacer());
} }
......
"use strict";
var __create = Object.create; var __create = Object.create;
var __defProp = Object.defineProperty; var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
...@@ -23,7 +24,10 @@ var __copyProps = (to, from, except, desc) => { ...@@ -23,7 +24,10 @@ var __copyProps = (to, from, except, desc) => {
} }
return to; return to;
}; };
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod)); var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// <define:process> // <define:process>
...@@ -145,7 +149,10 @@ var require_encoding = __commonJS({ ...@@ -145,7 +149,10 @@ var require_encoding = __commonJS({
s += String.fromCharCode(cp); s += String.fromCharCode(cp);
} else { } else {
cp -= 65536; cp -= 65536;
s += String.fromCharCode((cp >> 10) + 55296, (cp & 1023) + 56320); s += String.fromCharCode(
(cp >> 10) + 55296,
(cp & 1023) + 56320
);
} }
} }
return s; return s;
...@@ -821,7 +828,11 @@ var require_encoding = __commonJS({ ...@@ -821,7 +828,11 @@ var require_encoding = __commonJS({
if (typeof input === "object" && input instanceof ArrayBuffer) { if (typeof input === "object" && input instanceof ArrayBuffer) {
bytes = new Uint8Array(input); bytes = new Uint8Array(input);
} else if (typeof input === "object" && "buffer" in input && input.buffer instanceof ArrayBuffer) { } else if (typeof input === "object" && "buffer" in input && input.buffer instanceof ArrayBuffer) {
bytes = new Uint8Array(input.buffer, input.byteOffset, input.byteLength); bytes = new Uint8Array(
input.buffer,
input.byteOffset,
input.byteLength
);
} else { } else {
bytes = new Uint8Array(0); bytes = new Uint8Array(0);
} }
...@@ -1109,7 +1120,9 @@ var require_encoding = __commonJS({ ...@@ -1109,7 +1120,9 @@ var require_encoding = __commonJS({
if (gb18030_third !== 0) { if (gb18030_third !== 0) {
code_point = null; code_point = null;
if (inRange(bite, 48, 57)) { if (inRange(bite, 48, 57)) {
code_point = indexGB18030RangesCodePointFor((((gb18030_first - 129) * 10 + gb18030_second - 48) * 126 + gb18030_third - 129) * 10 + bite - 48); code_point = indexGB18030RangesCodePointFor(
(((gb18030_first - 129) * 10 + gb18030_second - 48) * 126 + gb18030_third - 129) * 10 + bite - 48
);
} }
var buffer = [gb18030_second, gb18030_third, bite]; var buffer = [gb18030_second, gb18030_third, bite];
gb18030_first = 0; gb18030_first = 0;
...@@ -1296,7 +1309,10 @@ var require_encoding = __commonJS({ ...@@ -1296,7 +1309,10 @@ var require_encoding = __commonJS({
eucjp_lead = 0; eucjp_lead = 0;
var code_point = null; var code_point = null;
if (inRange(lead, 161, 254) && inRange(bite, 161, 254)) { if (inRange(lead, 161, 254) && inRange(bite, 161, 254)) {
code_point = indexCodePointFor((lead - 161) * 94 + (bite - 161), index(!eucjp_jis0212_flag ? "jis0208" : "jis0212")); code_point = indexCodePointFor(
(lead - 161) * 94 + (bite - 161),
index(!eucjp_jis0212_flag ? "jis0208" : "jis0212")
);
} }
eucjp_jis0212_flag = false; eucjp_jis0212_flag = false;
if (!inRange(bite, 161, 254)) if (!inRange(bite, 161, 254))
...@@ -1724,8 +1740,14 @@ var require_encoding = __commonJS({ ...@@ -1724,8 +1740,14 @@ var require_encoding = __commonJS({
return finished; return finished;
if (inRange(code_point, 0, 65535)) if (inRange(code_point, 0, 65535))
return convertCodeUnitToBytes(code_point, utf16_be); return convertCodeUnitToBytes(code_point, utf16_be);
var lead = convertCodeUnitToBytes((code_point - 65536 >> 10) + 55296, utf16_be); var lead = convertCodeUnitToBytes(
var trail = convertCodeUnitToBytes((code_point - 65536 & 1023) + 56320, utf16_be); (code_point - 65536 >> 10) + 55296,
utf16_be
);
var trail = convertCodeUnitToBytes(
(code_point - 65536 & 1023) + 56320,
utf16_be
);
return lead.concat(trail); return lead.concat(trail);
}; };
} }
......
"use strict";
var __defProp = Object.defineProperty; var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames; var __getOwnPropNames = Object.getOwnPropertyNames;
......
{"name":"@edge-runtime/primitives","version":"1.1.0-beta.27","main":"./index.js","license":"MPLv2"} {"name":"@edge-runtime/primitives","version":"1.1.0-beta.31","main":"./index.js","license":"MPLv2"}
"use strict";
var __defProp = Object.defineProperty; var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames; var __getOwnPropNames = Object.getOwnPropertyNames;
......
type URLPatternInput = URLPatternInit | string type URLPatternInput = URLPatternInit | string;
declare class URLPattern { declare class URLPattern {
constructor(init?: URLPatternInput, baseURL?: string) constructor(init?: URLPatternInput, baseURL?: string);
test(input?: URLPatternInput, baseURL?: string): boolean
exec(input?: URLPatternInput, baseURL?: string): URLPatternResult | null test(input?: URLPatternInput, baseURL?: string): boolean;
readonly protocol: string
readonly username: string exec(input?: URLPatternInput, baseURL?: string): URLPatternResult | null;
readonly password: string
readonly hostname: string readonly protocol: string;
readonly port: string readonly username: string;
readonly pathname: string readonly password: string;
readonly search: string readonly hostname: string;
readonly hash: string readonly port: string;
readonly pathname: string;
readonly search: string;
readonly hash: string;
} }
interface URLPatternInit { interface URLPatternInit {
baseURL?: string baseURL?: string;
username?: string username?: string;
password?: string password?: string;
protocol?: string protocol?: string;
hostname?: string hostname?: string;
port?: string port?: string;
pathname?: string pathname?: string;
search?: string search?: string;
hash?: string hash?: string;
} }
interface URLPatternResult { interface URLPatternResult {
inputs: [URLPatternInput] inputs: [URLPatternInput];
protocol: URLPatternComponentResult protocol: URLPatternComponentResult;
username: URLPatternComponentResult username: URLPatternComponentResult;
password: URLPatternComponentResult password: URLPatternComponentResult;
hostname: URLPatternComponentResult hostname: URLPatternComponentResult;
port: URLPatternComponentResult port: URLPatternComponentResult;
pathname: URLPatternComponentResult pathname: URLPatternComponentResult;
search: URLPatternComponentResult search: URLPatternComponentResult;
hash: URLPatternComponentResult hash: URLPatternComponentResult;
} }
interface URLPatternComponentResult { interface URLPatternComponentResult {
input: string input: string;
groups: { groups: {
[key: string]: string | undefined [key: string]: string | undefined;
} };
} }
declare const URLPatternConstructor: typeof URLPattern declare const URLPatternConstructor: typeof URLPattern
......
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
"@babel/runtime": "7.15.4", "@babel/runtime": "7.15.4",
"@babel/traverse": "7.18.0", "@babel/traverse": "7.18.0",
"@babel/types": "7.18.0", "@babel/types": "7.18.0",
"@edge-runtime/primitives": "1.1.0-beta.27", "@edge-runtime/primitives": "1.1.0-beta.31",
"@hapi/accept": "5.0.2", "@hapi/accept": "5.0.2",
"@napi-rs/cli": "2.7.0", "@napi-rs/cli": "2.7.0",
"@napi-rs/triples": "1.1.0", "@napi-rs/triples": "1.1.0",
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
"debug": "4.1.1", "debug": "4.1.1",
"devalue": "2.0.1", "devalue": "2.0.1",
"domain-browser": "4.19.0", "domain-browser": "4.19.0",
"edge-runtime": "1.1.0-beta.27", "edge-runtime": "1.1.0-beta.31",
"events": "3.3.0", "events": "3.3.0",
"find-cache-dir": "3.3.1", "find-cache-dir": "3.3.1",
"find-up": "4.1.0", "find-up": "4.1.0",
......
...@@ -19,7 +19,7 @@ importers: ...@@ -19,7 +19,7 @@ importers:
'@babel/plugin-proposal-object-rest-spread': 7.14.7 '@babel/plugin-proposal-object-rest-spread': 7.14.7
'@babel/preset-flow': 7.14.5 '@babel/preset-flow': 7.14.5
'@babel/preset-react': 7.14.5 '@babel/preset-react': 7.14.5
'@edge-runtime/jest-environment': 1.1.0-beta.27 '@edge-runtime/jest-environment': 1.1.0-beta.31
'@fullhuman/postcss-purgecss': 1.3.0 '@fullhuman/postcss-purgecss': 1.3.0
'@mdx-js/loader': 0.18.0 '@mdx-js/loader': 0.18.0
'@next/bundle-analyzer': workspace:* '@next/bundle-analyzer': workspace:*
...@@ -173,7 +173,7 @@ importers: ...@@ -173,7 +173,7 @@ importers:
'@babel/plugin-proposal-object-rest-spread': 7.14.7_@babel+core@7.18.0 '@babel/plugin-proposal-object-rest-spread': 7.14.7_@babel+core@7.18.0
'@babel/preset-flow': 7.14.5_@babel+core@7.18.0 '@babel/preset-flow': 7.14.5_@babel+core@7.18.0
'@babel/preset-react': 7.14.5_@babel+core@7.18.0 '@babel/preset-react': 7.14.5_@babel+core@7.18.0
'@edge-runtime/jest-environment': 1.1.0-beta.27 '@edge-runtime/jest-environment': 1.1.0-beta.31
'@fullhuman/postcss-purgecss': 1.3.0 '@fullhuman/postcss-purgecss': 1.3.0
'@mdx-js/loader': 0.18.0_uuaxwgga6hqycsez5ok7v2wg4i '@mdx-js/loader': 0.18.0_uuaxwgga6hqycsez5ok7v2wg4i
'@next/bundle-analyzer': link:packages/next-bundle-analyzer '@next/bundle-analyzer': link:packages/next-bundle-analyzer
...@@ -416,7 +416,7 @@ importers: ...@@ -416,7 +416,7 @@ importers:
'@babel/runtime': 7.15.4 '@babel/runtime': 7.15.4
'@babel/traverse': 7.18.0 '@babel/traverse': 7.18.0
'@babel/types': 7.18.0 '@babel/types': 7.18.0
'@edge-runtime/primitives': 1.1.0-beta.27 '@edge-runtime/primitives': 1.1.0-beta.31
'@hapi/accept': 5.0.2 '@hapi/accept': 5.0.2
'@napi-rs/cli': 2.7.0 '@napi-rs/cli': 2.7.0
'@napi-rs/triples': 1.1.0 '@napi-rs/triples': 1.1.0
...@@ -497,7 +497,7 @@ importers: ...@@ -497,7 +497,7 @@ importers:
debug: 4.1.1 debug: 4.1.1
devalue: 2.0.1 devalue: 2.0.1
domain-browser: 4.19.0 domain-browser: 4.19.0
edge-runtime: 1.1.0-beta.27 edge-runtime: 1.1.0-beta.31
events: 3.3.0 events: 3.3.0
find-cache-dir: 3.3.1 find-cache-dir: 3.3.1
find-up: 4.1.0 find-up: 4.1.0
...@@ -609,7 +609,7 @@ importers: ...@@ -609,7 +609,7 @@ importers:
'@babel/runtime': 7.15.4 '@babel/runtime': 7.15.4
'@babel/traverse': 7.18.0 '@babel/traverse': 7.18.0
'@babel/types': 7.18.0 '@babel/types': 7.18.0
'@edge-runtime/primitives': 1.1.0-beta.27 '@edge-runtime/primitives': 1.1.0-beta.31
'@hapi/accept': 5.0.2 '@hapi/accept': 5.0.2
'@napi-rs/cli': 2.7.0 '@napi-rs/cli': 2.7.0
'@napi-rs/triples': 1.1.0 '@napi-rs/triples': 1.1.0
...@@ -687,7 +687,7 @@ importers: ...@@ -687,7 +687,7 @@ importers:
debug: 4.1.1 debug: 4.1.1
devalue: 2.0.1 devalue: 2.0.1
domain-browser: 4.19.0 domain-browser: 4.19.0
edge-runtime: 1.1.0-beta.27 edge-runtime: 1.1.0-beta.31
events: 3.3.0 events: 3.3.0
find-cache-dir: 3.3.1 find-cache-dir: 3.3.1
find-up: 4.1.0 find-up: 4.1.0
...@@ -3216,14 +3216,14 @@ packages: ...@@ -3216,14 +3216,14 @@ packages:
protobufjs: 6.11.2 protobufjs: 6.11.2
dev: true dev: true
/@edge-runtime/format/1.1.0-beta.27: /@edge-runtime/format/1.1.0-beta.31:
resolution: {integrity: sha512-67ig1yISH1M7OHxS/PxgXbrQ99X8c47GFqP6qrDx+uWw1gBnknNHIykL3OgeIt4yk1OPKKHtrLe/Gnrw9Lc9tQ==} resolution: {integrity: sha512-tUZy+LMls1TivqVb7dbC0C0IMNjwP55co6vSkTgXCl9xFos3v43bCwAzivMaJ3NR8ZuihvK1gEj8CmvoqvOt0g==}
dev: true dev: true
/@edge-runtime/jest-environment/1.1.0-beta.27: /@edge-runtime/jest-environment/1.1.0-beta.31:
resolution: {integrity: sha512-zCKFLqhvQ3OWV2H1cvl6CD7pnRKR+hUtGaJU4fYVjHAOoIpv5R9W+qw+9rXu5CpZJ7F4k/+1vLicAxaXKVKJOg==} resolution: {integrity: sha512-a65LVlCMkwkMxg8RjhEY5o3OZFHzMnLZcGqL234h3HO7Ri1Vriorj330BcPSh2GUt4zFqTS/3+XmWE6ueJwAZg==}
dependencies: dependencies:
'@edge-runtime/vm': 1.1.0-beta.27 '@edge-runtime/vm': 1.1.0-beta.31
'@jest/environment': 28.1.3 '@jest/environment': 28.1.3
'@jest/fake-timers': 28.1.3 '@jest/fake-timers': 28.1.3
'@jest/types': 28.1.3 '@jest/types': 28.1.3
...@@ -3231,14 +3231,14 @@ packages: ...@@ -3231,14 +3231,14 @@ packages:
jest-util: 28.1.3 jest-util: 28.1.3
dev: true dev: true
/@edge-runtime/primitives/1.1.0-beta.27: /@edge-runtime/primitives/1.1.0-beta.31:
resolution: {integrity: sha512-9RLySRgIfNhPXzqprwk5jojUec4WmVRphXIGgXmqZs/22UPF50mKcmrstPVVutGiX0mt4YkHuUarLj0VtLjX1Q==} resolution: {integrity: sha512-OO1x32aJoxgME1k77RVxVNsazs5NY/SNwYEN8ptlZ6DKUXn0eesXftDsmlypX/OU0ZeJc61/xNVUuoeyDGJDVA==}
dev: true dev: true
/@edge-runtime/vm/1.1.0-beta.27: /@edge-runtime/vm/1.1.0-beta.31:
resolution: {integrity: sha512-1ua5EI3GXKDDdjF6+1CUi37rmpxXMSWItCCl5sIMLBaIaf2klgnVYzIFVXORvXp0fKh1N3jEcS+Ykkutg/uzaw==} resolution: {integrity: sha512-D3JW32u7LSTt0KbphGWx2F41jId7BY8H0Awr25PTRFWroqohfWo1C2huOh7/Yyn4qeyJOVEuxWeTzvbSkTyyTg==}
dependencies: dependencies:
'@edge-runtime/primitives': 1.1.0-beta.27 '@edge-runtime/primitives': 1.1.0-beta.31
dev: true dev: true
/@emotion/is-prop-valid/0.8.8: /@emotion/is-prop-valid/0.8.8:
...@@ -9741,12 +9741,12 @@ packages: ...@@ -9741,12 +9741,12 @@ packages:
safe-buffer: 5.2.0 safe-buffer: 5.2.0
dev: true dev: true
/edge-runtime/1.1.0-beta.27: /edge-runtime/1.1.0-beta.31:
resolution: {integrity: sha512-6Epw2VvkgQKNCZf1LpFdzrEpsSgnVAkLI3zGW5V7VduB8eNz5We/bpcNnFJTjGPUshhW+C5WxY7QNyioucMpDQ==} resolution: {integrity: sha512-Uoq0Mt7u/MInAlyj81dPrbmn5HQacYqIGMqjTO7GQQBGS7K0ZgErucKYTNhKnRfnVacH3Msze+2D863rSCvERA==}
hasBin: true hasBin: true
dependencies: dependencies:
'@edge-runtime/format': 1.1.0-beta.27 '@edge-runtime/format': 1.1.0-beta.31
'@edge-runtime/vm': 1.1.0-beta.27 '@edge-runtime/vm': 1.1.0-beta.31
exit-hook: 2.2.1 exit-hook: 2.2.1
http-status: 1.5.2 http-status: 1.5.2
mri: 1.2.0 mri: 1.2.0
......
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