astro/packages/webapi/mod.js.map

1 line
662 KiB
Text
Raw Normal View History

{"version":3,"file":"mod.js","sources":["src/lib/utils.ts","src/lib/DOMException.ts","../../node_modules/event-target-shim/index.mjs","../../node_modules/abort-controller/dist/abort-controller.mjs","src/lib/AnimationFrame.ts","src/lib/Base64.ts","src/lib/Node.ts","src/lib/CharacterData.ts","../../node_modules/web-streams-polyfill/dist/ponyfill.es6.mjs","../../node_modules/fetch-blob/streams.cjs","../../node_modules/fetch-blob/index.js","../../node_modules/fetch-blob/file.js","src/lib/CustomEvent.ts","src/lib/TreeWalker.ts","src/lib/IdleCallback.ts","../../node_modules/data-uri-to-buffer/dist/index.js","../../node_modules/formdata-polyfill/esm.min.js","node_modules/node-fetch/src/errors/base.js","node_modules/node-fetch/src/errors/fetch-error.js","node_modules/node-fetch/src/utils/is.js","node_modules/node-fetch/src/body.js","node_modules/node-fetch/src/headers.js","node_modules/node-fetch/src/utils/is-redirect.js","node_modules/node-fetch/src/response.js","node_modules/node-fetch/src/utils/get-search.js","node_modules/node-fetch/src/utils/referrer.js","node_modules/node-fetch/src/request.js","node_modules/node-fetch/src/errors/abort-error.js","node_modules/node-fetch/src/index.js","src/lib/fetch.ts","../../node_modules/urlpattern-polyfill/dist/index.js","src/lib/Timeout.ts","../../node_modules/@ungap/structured-clone/esm/types.js","../../node_modules/@ungap/structured-clone/esm/deserialize.js","../../node_modules/@ungap/structured-clone/esm/serialize.js","src/lib/structuredClone.ts","src/lib/ImageData.ts","src/lib/CanvasRenderingContext2D.ts","src/lib/StyleSheet.ts","src/lib/CustomElementRegistry.ts","src/lib/Element.ts","src/lib/Document.ts","src/lib/HTMLCanvasElement.ts","src/lib/HTMLImageElement.ts","src/lib/Image.ts","src/lib/Observer.ts","src/lib/MediaQueryList.ts","src/lib/OffscreenCanvas.ts","src/lib/Storage.ts","src/lib/Window.ts","src/lib/Alert.ts","src/lib/Object.ts","src/lib/Promise.ts","src/lib/RelativeIndexingMethod.ts","src/lib/String.ts","src/exclusions.ts","src/inheritence.ts","src/polyfill.ts","node_modules/node-fetch/src/utils/multipart-parser.js"],"sourcesContent":[null,null,"/**\n * Assert a condition.\n * @param condition The condition that it should satisfy.\n * @param message The error message.\n * @param args The arguments for replacing placeholders in the message.\n */\nfunction assertType(condition, message, ...args) {\n if (!condition) {\n throw new TypeError(format(message, args));\n }\n}\n/**\n * Convert a text and arguments to one string.\n * @param message The formating text\n * @param args The arguments.\n */\nfunction format(message, args) {\n let i = 0;\n return message.replace(/%[os]/gu, () => anyToString(args[i++]));\n}\n/**\n * Convert a value to a string representation.\n * @param x The value to get the string representation.\n */\nfunction anyToString(x) {\n if (typeof x !== \"object\" || x === null) {\n return String(x);\n }\n return Object.prototype.toString.call(x);\n}\n\nlet currentErrorHandler;\n/**\n * Set the error handler.\n * @param value The error handler to set.\n */\nfunction setErrorHandler(value) {\n assertType(typeof value === \"function\" || value === undefined, \"The error handler must be a function or undefined, but got %o.\", value);\n currentErrorHandler = value;\n}\n/**\n * Print a error message.\n * @param maybeError The error object.\n */\nfunction reportError(maybeError) {\n try {\n const error = maybeError instanceof Error\n ? maybeError\n : new Error(anyToString(maybeError));\n // Call the user-defined error handler if exists.\n if (currentErrorHandler) {\n currentErrorHandler(error);\n return;\n }\n // Dispatch an `error` event if this is on a browser.\n if (typeof dispatchEvent === \"function\" &&\n typeof ErrorEvent === \"function\") {\n dispatchEvent(new ErrorEvent(\"error\", { error, message: error.message }));\n }\n // Emit an `uncaughtException` event if this is on Node.js.\n //i