mirror of
https://github.com/logos-messaging/lab.waku.org.git
synced 2026-05-21 18:29:31 +00:00
25 lines
19 KiB
JavaScript
25 lines
19 KiB
JavaScript
|
|
"use strict";
|
|||
|
|
/*
|
|||
|
|
* ATTENTION: An "eval-source-map" devtool has been used.
|
|||
|
|
* This devtool is neither made for production nor for readable output files.
|
|||
|
|
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
|
|||
|
|
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|||
|
|
* or disable the default devtool with "devtool: false".
|
|||
|
|
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|||
|
|
*/
|
|||
|
|
exports.id = "vendor-chunks/devlop";
|
|||
|
|
exports.ids = ["vendor-chunks/devlop"];
|
|||
|
|
exports.modules = {
|
|||
|
|
|
|||
|
|
/***/ "(ssr)/./node_modules/devlop/lib/development.js":
|
|||
|
|
/*!************************************************!*\
|
|||
|
|
!*** ./node_modules/devlop/lib/development.js ***!
|
|||
|
|
\************************************************/
|
|||
|
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|||
|
|
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ deprecate: () => (/* binding */ deprecate),\n/* harmony export */ equal: () => (/* binding */ equal),\n/* harmony export */ ok: () => (/* binding */ ok),\n/* harmony export */ unreachable: () => (/* binding */ unreachable)\n/* harmony export */ });\n/* harmony import */ var dequal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dequal */ \"(ssr)/./node_modules/dequal/dist/index.mjs\");\n\n/**\n * @type {Set<string>}\n */ const codesWarned = new Set();\nclass AssertionError extends Error {\n /**\n * Create an assertion error.\n *\n * @param {string} message\n * Message explaining error.\n * @param {unknown} actual\n * Value.\n * @param {unknown} expected\n * Baseline.\n * @param {string} operator\n * Name of equality operation.\n * @param {boolean} generated\n * Whether `message` is a custom message or not\n * @returns\n * Instance.\n */ // eslint-disable-next-line max-params\n constructor(message, actual, expected, operator, generated){\n super(message);\n this.name = /** @type {const} */ \"Assertion\";\n this.code = /** @type {const} */ \"ERR_ASSERTION\";\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n /**\n * @type {unknown}\n */ this.actual = actual;\n /**\n * @type {unknown}\n */ this.expected = expected;\n /**\n * @type {boolean}\n */ this.generated = generated;\n /**\n * @type {string}\n */ this.operator = operator;\n }\n}\nclass DeprecationError extends Error {\n /**\n * Create a deprecation message.\n *\n * @param {string} message\n * Message explaining deprecation.\n * @param {string | undefined} code\n * Deprecation identifier; deprecation messages will be generated only once per code.\n * @returns\n * Instance.\n */ constructor(message, code){\n super(message);\n this.name = /** @type {const} */ \"DeprecationWarning\";\n /**\n * @type {string | undefined}\n */ this.code = code;\n }\n}\n/**\n * Wrap a function or class to show a deprecation message when first called.\n *\n * > 👉 **Important**: only shows a message when the `development` condition is\n * > used, does nothing in production.\n *\n * When the resulting wrapped `fn` is called, emits a warning once to\n * `console.error` (`stderr`).\n * If a code is given, one warning message will be emitted in total per code.\n *\n * @template {Function} T\n * Function or class kind.\n * @param {T} fn\n * Function or class.\n * @param {string} message\n * Message explaining deprecation.\n * @param {string | null | undefined} [code]\n * Deprecation identifier (optional); deprecation messages will be generated\n * only once per code.\n * @returns {T}\n * Wrapped `fn`.\n */ function deprecate(fn, message, code) {\n let warned = false;\n // The wrapper will keep the same prototype as fn to maintain prototype chain\n Object.setPrototypeOf(deprecated, fn);\n // @ts-expect-error: it’s perfect, typescript…\n return deprecated;\n /**\n * @this {unknown}\n * @param {...Array<unknown>} args\n * @returns {unknown}\n */ function deprecated(...args) {\n if (!warned) {\n warned = true;\n if (typeof code === \"string\" && codesWarned.has(code)) {\n // Empty.\n } else {\n console.error(new DeprecationError(message, code || undefined));\n if (typeof code === \"string\") codesWarned.add(code);\n }\n }\n return new.target ? Reflect.construct(fn, args, new.target) : Reflect.apply(fn, this, args);\n }\n}\n/**\n * Assert deep strict equivalence.\n *\n * > 👉 **Important**: only asserts when the `development` condition is used,\n * > does nothing in production.\n *\n * @template {unknown} T\n * Expected kind.\n * @param {unknown
|
|||
|
|
|
|||
|
|
/***/ })
|
|||
|
|
|
|||
|
|
};
|
|||
|
|
;
|