--- /srv/reproducible-results/rbuild-debian/r-b-build.7MkoG5v1/b1/node-rjsf_5.12.1+~5.0.1-2_i386.changes +++ /srv/reproducible-results/rbuild-debian/r-b-build.7MkoG5v1/b2/node-rjsf_5.12.1+~5.0.1-2_i386.changes ├── Files │ @@ -1,2 +1,2 @@ │ │ - 71bdda1ced3868667c53307d89a02d0b 351252 javascript optional node-rjsf_5.12.1+~5.0.1-2_all.deb │ + 5df52611c82e56f66e6f335c79fb3d0b 350164 javascript optional node-rjsf_5.12.1+~5.0.1-2_all.deb ├── node-rjsf_5.12.1+~5.0.1-2_all.deb │ ├── file list │ │ @@ -1,3 +1,3 @@ │ │ -rw-r--r-- 0 0 0 4 2023-12-18 07:52:01.000000 debian-binary │ │ -rw-r--r-- 0 0 0 7608 2023-12-18 07:52:01.000000 control.tar.xz │ │ --rw-r--r-- 0 0 0 343452 2023-12-18 07:52:01.000000 data.tar.xz │ │ +-rw-r--r-- 0 0 0 342364 2023-12-18 07:52:01.000000 data.tar.xz │ ├── control.tar.xz │ │ ├── control.tar │ │ │ ├── ./control │ │ │ │ @@ -1,12 +1,12 @@ │ │ │ │ Package: node-rjsf │ │ │ │ Version: 5.12.1+~5.0.1-2 │ │ │ │ Architecture: all │ │ │ │ Maintainer: Debian Javascript Maintainers │ │ │ │ -Installed-Size: 12044 │ │ │ │ +Installed-Size: 12045 │ │ │ │ Depends: node-ajv (>= 8), node-lodash, node-markdown-to-jsx, node-nanoid, node-prop-types │ │ │ │ Provides: node-jsonpointer (= 5.0.0), node-rjsf-core (= 5.12.1), node-rjsf-utils (= 5.12.1), node-rjsf-validator-ajv6 (= 5.12.1), node-rjsf-validator-ajv8 (= 5.12.1) │ │ │ │ Section: javascript │ │ │ │ Priority: optional │ │ │ │ Homepage: https://github.com/rjsf-team/react-jsonschema-form │ │ │ │ Description: ReactJS component capable of using JSON Schema to declaratively build forms │ │ │ │ node-rjsf provides ReactJS components capable of using JSON Schema to │ │ │ ├── ./md5sums │ │ │ │ ├── ./md5sums │ │ │ │ │┄ Files differ │ ├── data.tar.xz │ │ ├── data.tar │ │ │ ├── file list │ │ │ │ @@ -375,15 +375,15 @@ │ │ │ │ -rw-r--r-- 0 root (0) root (0) 54805 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/utils/src/types.ts │ │ │ │ -rw-r--r-- 0 root (0) root (0) 930 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/utils/src/unwrapErrorHandler.ts │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1063 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/utils/src/utcToLocal.ts │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1468 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/utils/src/validationDataMerge.ts │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1968 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/utils/src/withIdRefPrefix.ts │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/ │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/dist/ │ │ │ │ --rw-r--r-- 0 root (0) root (0) 1366591 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/dist/index.js │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 1366916 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/dist/index.js │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/dist/lib/ │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1490 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/dist/lib/createAjvInstance.d.ts │ │ │ │ -rw-r--r-- 0 root (0) root (0) 644 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/dist/lib/customizeValidator.d.ts │ │ │ │ -rw-r--r-- 0 root (0) root (0) 299 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/dist/lib/index.d.ts │ │ │ │ -rw-r--r-- 0 root (0) root (0) 598 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/dist/lib/types.d.ts │ │ │ │ -rw-r--r-- 0 root (0) root (0) 3716 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/dist/lib/validator.d.ts │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/lib/ │ │ │ │ @@ -399,15 +399,15 @@ │ │ │ │ -rw-r--r-- 0 root (0) root (0) 2476 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/src/createAjvInstance.ts │ │ │ │ -rw-r--r-- 0 root (0) root (0) 748 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/src/customizeValidator.ts │ │ │ │ -rw-r--r-- 0 root (0) root (0) 208 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/src/index.ts │ │ │ │ -rw-r--r-- 0 root (0) root (0) 581 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/src/types.ts │ │ │ │ -rw-r--r-- 0 root (0) root (0) 6909 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/src/validator.ts │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv8/ │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv8/dist/ │ │ │ │ --rw-r--r-- 0 root (0) root (0) 1473168 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv8/dist/index.js │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 1473998 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv8/dist/index.js │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv8/dist/lib/ │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1344 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv8/dist/lib/compileSchemaValidators.d.ts │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1113 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv8/dist/lib/compileSchemaValidatorsCode.d.ts │ │ │ │ -rw-r--r-- 0 root (0) root (0) 2024 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv8/dist/lib/createAjvInstance.d.ts │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1176 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv8/dist/lib/createPrecompiledValidator.d.ts │ │ │ │ -rw-r--r-- 0 root (0) root (0) 921 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv8/dist/lib/customizeValidator.d.ts │ │ │ │ -rw-r--r-- 0 root (0) root (0) 340 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv8/dist/lib/index.d.ts │ │ │ ├── ./usr/share/nodejs/@rjsf/validator-ajv6/dist/index.js │ │ │ │ ├── js-beautify {} │ │ │ │ │ @@ -33859,197 +33859,204 @@ │ │ │ │ │ │ │ │ │ │ var errors = {}; │ │ │ │ │ │ │ │ │ │ var codegen = {}; │ │ │ │ │ │ │ │ │ │ var code$1 = {}; │ │ │ │ │ │ │ │ │ │ -(function(exports) { │ │ │ │ │ - Object.defineProperty(exports, "__esModule", { │ │ │ │ │ - value: true │ │ │ │ │ - }); │ │ │ │ │ - exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0; │ │ │ │ │ - class _CodeOrName {} │ │ │ │ │ - exports._CodeOrName = _CodeOrName; │ │ │ │ │ - exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i; │ │ │ │ │ - class Name extends _CodeOrName { │ │ │ │ │ - constructor(s) { │ │ │ │ │ - super(); │ │ │ │ │ - if (!exports.IDENTIFIER.test(s)) │ │ │ │ │ - throw new Error("CodeGen: name must be a valid identifier"); │ │ │ │ │ - this.str = s; │ │ │ │ │ - } │ │ │ │ │ - toString() { │ │ │ │ │ - return this.str; │ │ │ │ │ - } │ │ │ │ │ - emptyStr() { │ │ │ │ │ - return false; │ │ │ │ │ - } │ │ │ │ │ - get names() { │ │ │ │ │ - return { │ │ │ │ │ - [this.str]: 1 │ │ │ │ │ - }; │ │ │ │ │ - } │ │ │ │ │ - } │ │ │ │ │ - exports.Name = Name; │ │ │ │ │ - class _Code extends _CodeOrName { │ │ │ │ │ - constructor(code) { │ │ │ │ │ - super(); │ │ │ │ │ - this._items = typeof code === "string" ? [code] : code; │ │ │ │ │ - } │ │ │ │ │ - toString() { │ │ │ │ │ - return this.str; │ │ │ │ │ - } │ │ │ │ │ - emptyStr() { │ │ │ │ │ - if (this._items.length > 1) │ │ │ │ │ - return false; │ │ │ │ │ - const item = this._items[0]; │ │ │ │ │ - return item === "" || item === '""'; │ │ │ │ │ - } │ │ │ │ │ - get str() { │ │ │ │ │ - var _a; │ │ │ │ │ - return ((_a = this._str) !== null && _a !== void 0 ? _a : (this._str = this._items.reduce((s, c) => `${s}${c}`, ""))); │ │ │ │ │ - } │ │ │ │ │ - get names() { │ │ │ │ │ - var _a; │ │ │ │ │ - return ((_a = this._names) !== null && _a !== void 0 ? _a : (this._names = this._items.reduce((names, c) => { │ │ │ │ │ - if (c instanceof Name) │ │ │ │ │ - names[c.str] = (names[c.str] || 0) + 1; │ │ │ │ │ - return names; │ │ │ │ │ - }, {}))); │ │ │ │ │ - } │ │ │ │ │ - } │ │ │ │ │ - exports._Code = _Code; │ │ │ │ │ - exports.nil = new _Code(""); │ │ │ │ │ - │ │ │ │ │ - function _(strs, ...args) { │ │ │ │ │ - const code = [strs[0]]; │ │ │ │ │ - let i = 0; │ │ │ │ │ - while (i < args.length) { │ │ │ │ │ - addCodeArg(code, args[i]); │ │ │ │ │ - code.push(strs[++i]); │ │ │ │ │ - } │ │ │ │ │ - return new _Code(code); │ │ │ │ │ - } │ │ │ │ │ - exports._ = _; │ │ │ │ │ - const plus = new _Code("+"); │ │ │ │ │ +var hasRequiredCode$1; │ │ │ │ │ │ │ │ │ │ - function str(strs, ...args) { │ │ │ │ │ - const expr = [safeStringify(strs[0])]; │ │ │ │ │ - let i = 0; │ │ │ │ │ - while (i < args.length) { │ │ │ │ │ - expr.push(plus); │ │ │ │ │ - addCodeArg(expr, args[i]); │ │ │ │ │ - expr.push(plus, safeStringify(strs[++i])); │ │ │ │ │ +function requireCode$1() { │ │ │ │ │ + if (hasRequiredCode$1) return code$1; │ │ │ │ │ + hasRequiredCode$1 = 1; │ │ │ │ │ + (function(exports) { │ │ │ │ │ + Object.defineProperty(exports, "__esModule", { │ │ │ │ │ + value: true │ │ │ │ │ + }); │ │ │ │ │ + exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0; │ │ │ │ │ + class _CodeOrName {} │ │ │ │ │ + exports._CodeOrName = _CodeOrName; │ │ │ │ │ + exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i; │ │ │ │ │ + class Name extends _CodeOrName { │ │ │ │ │ + constructor(s) { │ │ │ │ │ + super(); │ │ │ │ │ + if (!exports.IDENTIFIER.test(s)) │ │ │ │ │ + throw new Error("CodeGen: name must be a valid identifier"); │ │ │ │ │ + this.str = s; │ │ │ │ │ + } │ │ │ │ │ + toString() { │ │ │ │ │ + return this.str; │ │ │ │ │ + } │ │ │ │ │ + emptyStr() { │ │ │ │ │ + return false; │ │ │ │ │ + } │ │ │ │ │ + get names() { │ │ │ │ │ + return { │ │ │ │ │ + [this.str]: 1 │ │ │ │ │ + }; │ │ │ │ │ + } │ │ │ │ │ } │ │ │ │ │ - optimize(expr); │ │ │ │ │ - return new _Code(expr); │ │ │ │ │ - } │ │ │ │ │ - exports.str = str; │ │ │ │ │ - │ │ │ │ │ - function addCodeArg(code, arg) { │ │ │ │ │ - if (arg instanceof _Code) │ │ │ │ │ - code.push(...arg._items); │ │ │ │ │ - else if (arg instanceof Name) │ │ │ │ │ - code.push(arg); │ │ │ │ │ - else │ │ │ │ │ - code.push(interpolate(arg)); │ │ │ │ │ - } │ │ │ │ │ - exports.addCodeArg = addCodeArg; │ │ │ │ │ - │ │ │ │ │ - function optimize(expr) { │ │ │ │ │ - let i = 1; │ │ │ │ │ - while (i < expr.length - 1) { │ │ │ │ │ - if (expr[i] === plus) { │ │ │ │ │ - const res = mergeExprItems(expr[i - 1], expr[i + 1]); │ │ │ │ │ - if (res !== undefined) { │ │ │ │ │ - expr.splice(i - 1, 3, res); │ │ │ │ │ - continue; │ │ │ │ │ + exports.Name = Name; │ │ │ │ │ + class _Code extends _CodeOrName { │ │ │ │ │ + constructor(code) { │ │ │ │ │ + super(); │ │ │ │ │ + this._items = typeof code === "string" ? [code] : code; │ │ │ │ │ + } │ │ │ │ │ + toString() { │ │ │ │ │ + return this.str; │ │ │ │ │ + } │ │ │ │ │ + emptyStr() { │ │ │ │ │ + if (this._items.length > 1) │ │ │ │ │ + return false; │ │ │ │ │ + const item = this._items[0]; │ │ │ │ │ + return item === "" || item === '""'; │ │ │ │ │ + } │ │ │ │ │ + get str() { │ │ │ │ │ + var _a; │ │ │ │ │ + return ((_a = this._str) !== null && _a !== void 0 ? _a : (this._str = this._items.reduce((s, c) => `${s}${c}`, ""))); │ │ │ │ │ + } │ │ │ │ │ + get names() { │ │ │ │ │ + var _a; │ │ │ │ │ + return ((_a = this._names) !== null && _a !== void 0 ? _a : (this._names = this._items.reduce((names, c) => { │ │ │ │ │ + if (c instanceof Name) │ │ │ │ │ + names[c.str] = (names[c.str] || 0) + 1; │ │ │ │ │ + return names; │ │ │ │ │ + }, {}))); │ │ │ │ │ + } │ │ │ │ │ + } │ │ │ │ │ + exports._Code = _Code; │ │ │ │ │ + exports.nil = new _Code(""); │ │ │ │ │ + │ │ │ │ │ + function _(strs, ...args) { │ │ │ │ │ + const code = [strs[0]]; │ │ │ │ │ + let i = 0; │ │ │ │ │ + while (i < args.length) { │ │ │ │ │ + addCodeArg(code, args[i]); │ │ │ │ │ + code.push(strs[++i]); │ │ │ │ │ + } │ │ │ │ │ + return new _Code(code); │ │ │ │ │ + } │ │ │ │ │ + exports._ = _; │ │ │ │ │ + const plus = new _Code("+"); │ │ │ │ │ + │ │ │ │ │ + function str(strs, ...args) { │ │ │ │ │ + const expr = [safeStringify(strs[0])]; │ │ │ │ │ + let i = 0; │ │ │ │ │ + while (i < args.length) { │ │ │ │ │ + expr.push(plus); │ │ │ │ │ + addCodeArg(expr, args[i]); │ │ │ │ │ + expr.push(plus, safeStringify(strs[++i])); │ │ │ │ │ + } │ │ │ │ │ + optimize(expr); │ │ │ │ │ + return new _Code(expr); │ │ │ │ │ + } │ │ │ │ │ + exports.str = str; │ │ │ │ │ + │ │ │ │ │ + function addCodeArg(code, arg) { │ │ │ │ │ + if (arg instanceof _Code) │ │ │ │ │ + code.push(...arg._items); │ │ │ │ │ + else if (arg instanceof Name) │ │ │ │ │ + code.push(arg); │ │ │ │ │ + else │ │ │ │ │ + code.push(interpolate(arg)); │ │ │ │ │ + } │ │ │ │ │ + exports.addCodeArg = addCodeArg; │ │ │ │ │ + │ │ │ │ │ + function optimize(expr) { │ │ │ │ │ + let i = 1; │ │ │ │ │ + while (i < expr.length - 1) { │ │ │ │ │ + if (expr[i] === plus) { │ │ │ │ │ + const res = mergeExprItems(expr[i - 1], expr[i + 1]); │ │ │ │ │ + if (res !== undefined) { │ │ │ │ │ + expr.splice(i - 1, 3, res); │ │ │ │ │ + continue; │ │ │ │ │ + } │ │ │ │ │ + expr[i++] = "+"; │ │ │ │ │ } │ │ │ │ │ - expr[i++] = "+"; │ │ │ │ │ + i++; │ │ │ │ │ } │ │ │ │ │ - i++; │ │ │ │ │ } │ │ │ │ │ - } │ │ │ │ │ │ │ │ │ │ - function mergeExprItems(a, b) { │ │ │ │ │ - if (b === '""') │ │ │ │ │ - return a; │ │ │ │ │ - if (a === '""') │ │ │ │ │ - return b; │ │ │ │ │ - if (typeof a == "string") { │ │ │ │ │ - if (b instanceof Name || a[a.length - 1] !== '"') │ │ │ │ │ + function mergeExprItems(a, b) { │ │ │ │ │ + if (b === '""') │ │ │ │ │ + return a; │ │ │ │ │ + if (a === '""') │ │ │ │ │ + return b; │ │ │ │ │ + if (typeof a == "string") { │ │ │ │ │ + if (b instanceof Name || a[a.length - 1] !== '"') │ │ │ │ │ + return; │ │ │ │ │ + if (typeof b != "string") │ │ │ │ │ + return `${a.slice(0, -1)}${b}"`; │ │ │ │ │ + if (b[0] === '"') │ │ │ │ │ + return a.slice(0, -1) + b.slice(1); │ │ │ │ │ return; │ │ │ │ │ - if (typeof b != "string") │ │ │ │ │ - return `${a.slice(0, -1)}${b}"`; │ │ │ │ │ - if (b[0] === '"') │ │ │ │ │ - return a.slice(0, -1) + b.slice(1); │ │ │ │ │ + } │ │ │ │ │ + if (typeof b == "string" && b[0] === '"' && !(a instanceof Name)) │ │ │ │ │ + return `"${a}${b.slice(1)}`; │ │ │ │ │ return; │ │ │ │ │ } │ │ │ │ │ - if (typeof b == "string" && b[0] === '"' && !(a instanceof Name)) │ │ │ │ │ - return `"${a}${b.slice(1)}`; │ │ │ │ │ - return; │ │ │ │ │ - } │ │ │ │ │ │ │ │ │ │ - function strConcat(c1, c2) { │ │ │ │ │ - return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str `${c1}${c2}`; │ │ │ │ │ - } │ │ │ │ │ - exports.strConcat = strConcat; │ │ │ │ │ - // TODO do not allow arrays here │ │ │ │ │ - function interpolate(x) { │ │ │ │ │ - return typeof x == "number" || typeof x == "boolean" || x === null ? │ │ │ │ │ - x : │ │ │ │ │ - safeStringify(Array.isArray(x) ? x.join(",") : x); │ │ │ │ │ - } │ │ │ │ │ + function strConcat(c1, c2) { │ │ │ │ │ + return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str `${c1}${c2}`; │ │ │ │ │ + } │ │ │ │ │ + exports.strConcat = strConcat; │ │ │ │ │ + // TODO do not allow arrays here │ │ │ │ │ + function interpolate(x) { │ │ │ │ │ + return typeof x == "number" || typeof x == "boolean" || x === null ? │ │ │ │ │ + x : │ │ │ │ │ + safeStringify(Array.isArray(x) ? x.join(",") : x); │ │ │ │ │ + } │ │ │ │ │ │ │ │ │ │ - function stringify(x) { │ │ │ │ │ - return new _Code(safeStringify(x)); │ │ │ │ │ - } │ │ │ │ │ - exports.stringify = stringify; │ │ │ │ │ + function stringify(x) { │ │ │ │ │ + return new _Code(safeStringify(x)); │ │ │ │ │ + } │ │ │ │ │ + exports.stringify = stringify; │ │ │ │ │ │ │ │ │ │ - function safeStringify(x) { │ │ │ │ │ - return JSON.stringify(x) │ │ │ │ │ - .replace(/\u2028/g, "\\u2028") │ │ │ │ │ - .replace(/\u2029/g, "\\u2029"); │ │ │ │ │ - } │ │ │ │ │ - exports.safeStringify = safeStringify; │ │ │ │ │ + function safeStringify(x) { │ │ │ │ │ + return JSON.stringify(x) │ │ │ │ │ + .replace(/\u2028/g, "\\u2028") │ │ │ │ │ + .replace(/\u2029/g, "\\u2029"); │ │ │ │ │ + } │ │ │ │ │ + exports.safeStringify = safeStringify; │ │ │ │ │ │ │ │ │ │ - function getProperty(key) { │ │ │ │ │ - return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _ `[${key}]`; │ │ │ │ │ - } │ │ │ │ │ - exports.getProperty = getProperty; │ │ │ │ │ - //Does best effort to format the name properly │ │ │ │ │ - function getEsmExportName(key) { │ │ │ │ │ - if (typeof key == "string" && exports.IDENTIFIER.test(key)) { │ │ │ │ │ - return new _Code(`${key}`); │ │ │ │ │ + function getProperty(key) { │ │ │ │ │ + return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _ `[${key}]`; │ │ │ │ │ } │ │ │ │ │ - throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`); │ │ │ │ │ - } │ │ │ │ │ - exports.getEsmExportName = getEsmExportName; │ │ │ │ │ + exports.getProperty = getProperty; │ │ │ │ │ + //Does best effort to format the name properly │ │ │ │ │ + function getEsmExportName(key) { │ │ │ │ │ + if (typeof key == "string" && exports.IDENTIFIER.test(key)) { │ │ │ │ │ + return new _Code(`${key}`); │ │ │ │ │ + } │ │ │ │ │ + throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`); │ │ │ │ │ + } │ │ │ │ │ + exports.getEsmExportName = getEsmExportName; │ │ │ │ │ │ │ │ │ │ - function regexpCode(rx) { │ │ │ │ │ - return new _Code(rx.toString()); │ │ │ │ │ - } │ │ │ │ │ - exports.regexpCode = regexpCode; │ │ │ │ │ + function regexpCode(rx) { │ │ │ │ │ + return new _Code(rx.toString()); │ │ │ │ │ + } │ │ │ │ │ + exports.regexpCode = regexpCode; │ │ │ │ │ │ │ │ │ │ -}(code$1)); │ │ │ │ │ + }(code$1)); │ │ │ │ │ + return code$1; │ │ │ │ │ +} │ │ │ │ │ │ │ │ │ │ var scope = {}; │ │ │ │ │ │ │ │ │ │ var hasRequiredScope; │ │ │ │ │ │ │ │ │ │ function requireScope() { │ │ │ │ │ if (hasRequiredScope) return scope; │ │ │ │ │ hasRequiredScope = 1; │ │ │ │ │ (function(exports) { │ │ │ │ │ Object.defineProperty(exports, "__esModule", { │ │ │ │ │ value: true │ │ │ │ │ }); │ │ │ │ │ exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0; │ │ │ │ │ - const code_1 = code$1; │ │ │ │ │ + const code_1 = requireCode$1(); │ │ │ │ │ class ValueError extends Error { │ │ │ │ │ constructor(name) { │ │ │ │ │ super(`CodeGen: "code" for ${name} not defined`); │ │ │ │ │ this.value = name.value; │ │ │ │ │ } │ │ │ │ │ } │ │ │ │ │ var UsedValueState; │ │ │ │ │ @@ -34209,17 +34216,17 @@ │ │ │ │ │ if (hasRequiredCodegen) return codegen; │ │ │ │ │ hasRequiredCodegen = 1; │ │ │ │ │ (function(exports) { │ │ │ │ │ Object.defineProperty(exports, "__esModule", { │ │ │ │ │ value: true │ │ │ │ │ }); │ │ │ │ │ exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0; │ │ │ │ │ - const code_1 = code$1; │ │ │ │ │ + const code_1 = requireCode$1(); │ │ │ │ │ const scope_1 = requireScope(); │ │ │ │ │ - var code_2 = code$1; │ │ │ │ │ + var code_2 = requireCode$1(); │ │ │ │ │ Object.defineProperty(exports, "_", { │ │ │ │ │ enumerable: true, │ │ │ │ │ get: function() { │ │ │ │ │ return code_2._; │ │ │ │ │ } │ │ │ │ │ }); │ │ │ │ │ Object.defineProperty(exports, "str", { │ │ │ │ │ @@ -35009,15 +35016,15 @@ │ │ │ │ │ │ │ │ │ │ (function(exports) { │ │ │ │ │ Object.defineProperty(exports, "__esModule", { │ │ │ │ │ value: true │ │ │ │ │ }); │ │ │ │ │ exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0; │ │ │ │ │ const codegen_1 = requireCodegen(); │ │ │ │ │ - const code_1 = code$1; │ │ │ │ │ + const code_1 = requireCode$1(); │ │ │ │ │ // TODO refactor to use Set │ │ │ │ │ function toHash(arr) { │ │ │ │ │ const hash = {}; │ │ │ │ │ for (const item of arr) │ │ │ │ │ hash[item] = true; │ │ │ │ │ return hash; │ │ │ │ │ } │ │ │ ├── ./usr/share/nodejs/@rjsf/validator-ajv8/dist/index.js │ │ │ │ ├── js-beautify {} │ │ │ │ │ @@ -33917,197 +33917,204 @@ │ │ │ │ │ │ │ │ │ │ var errors = {}; │ │ │ │ │ │ │ │ │ │ var codegen = {}; │ │ │ │ │ │ │ │ │ │ var code$1 = {}; │ │ │ │ │ │ │ │ │ │ -(function(exports) { │ │ │ │ │ - Object.defineProperty(exports, "__esModule", { │ │ │ │ │ - value: true │ │ │ │ │ - }); │ │ │ │ │ - exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0; │ │ │ │ │ - class _CodeOrName {} │ │ │ │ │ - exports._CodeOrName = _CodeOrName; │ │ │ │ │ - exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i; │ │ │ │ │ - class Name extends _CodeOrName { │ │ │ │ │ - constructor(s) { │ │ │ │ │ - super(); │ │ │ │ │ - if (!exports.IDENTIFIER.test(s)) │ │ │ │ │ - throw new Error("CodeGen: name must be a valid identifier"); │ │ │ │ │ - this.str = s; │ │ │ │ │ - } │ │ │ │ │ - toString() { │ │ │ │ │ - return this.str; │ │ │ │ │ - } │ │ │ │ │ - emptyStr() { │ │ │ │ │ - return false; │ │ │ │ │ - } │ │ │ │ │ - get names() { │ │ │ │ │ - return { │ │ │ │ │ - [this.str]: 1 │ │ │ │ │ - }; │ │ │ │ │ - } │ │ │ │ │ - } │ │ │ │ │ - exports.Name = Name; │ │ │ │ │ - class _Code extends _CodeOrName { │ │ │ │ │ - constructor(code) { │ │ │ │ │ - super(); │ │ │ │ │ - this._items = typeof code === "string" ? [code] : code; │ │ │ │ │ - } │ │ │ │ │ - toString() { │ │ │ │ │ - return this.str; │ │ │ │ │ - } │ │ │ │ │ - emptyStr() { │ │ │ │ │ - if (this._items.length > 1) │ │ │ │ │ - return false; │ │ │ │ │ - const item = this._items[0]; │ │ │ │ │ - return item === "" || item === '""'; │ │ │ │ │ - } │ │ │ │ │ - get str() { │ │ │ │ │ - var _a; │ │ │ │ │ - return ((_a = this._str) !== null && _a !== void 0 ? _a : (this._str = this._items.reduce((s, c) => `${s}${c}`, ""))); │ │ │ │ │ - } │ │ │ │ │ - get names() { │ │ │ │ │ - var _a; │ │ │ │ │ - return ((_a = this._names) !== null && _a !== void 0 ? _a : (this._names = this._items.reduce((names, c) => { │ │ │ │ │ - if (c instanceof Name) │ │ │ │ │ - names[c.str] = (names[c.str] || 0) + 1; │ │ │ │ │ - return names; │ │ │ │ │ - }, {}))); │ │ │ │ │ - } │ │ │ │ │ - } │ │ │ │ │ - exports._Code = _Code; │ │ │ │ │ - exports.nil = new _Code(""); │ │ │ │ │ - │ │ │ │ │ - function _(strs, ...args) { │ │ │ │ │ - const code = [strs[0]]; │ │ │ │ │ - let i = 0; │ │ │ │ │ - while (i < args.length) { │ │ │ │ │ - addCodeArg(code, args[i]); │ │ │ │ │ - code.push(strs[++i]); │ │ │ │ │ - } │ │ │ │ │ - return new _Code(code); │ │ │ │ │ - } │ │ │ │ │ - exports._ = _; │ │ │ │ │ - const plus = new _Code("+"); │ │ │ │ │ +var hasRequiredCode$1; │ │ │ │ │ │ │ │ │ │ - function str(strs, ...args) { │ │ │ │ │ - const expr = [safeStringify(strs[0])]; │ │ │ │ │ - let i = 0; │ │ │ │ │ - while (i < args.length) { │ │ │ │ │ - expr.push(plus); │ │ │ │ │ - addCodeArg(expr, args[i]); │ │ │ │ │ - expr.push(plus, safeStringify(strs[++i])); │ │ │ │ │ +function requireCode$1() { │ │ │ │ │ + if (hasRequiredCode$1) return code$1; │ │ │ │ │ + hasRequiredCode$1 = 1; │ │ │ │ │ + (function(exports) { │ │ │ │ │ + Object.defineProperty(exports, "__esModule", { │ │ │ │ │ + value: true │ │ │ │ │ + }); │ │ │ │ │ + exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0; │ │ │ │ │ + class _CodeOrName {} │ │ │ │ │ + exports._CodeOrName = _CodeOrName; │ │ │ │ │ + exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i; │ │ │ │ │ + class Name extends _CodeOrName { │ │ │ │ │ + constructor(s) { │ │ │ │ │ + super(); │ │ │ │ │ + if (!exports.IDENTIFIER.test(s)) │ │ │ │ │ + throw new Error("CodeGen: name must be a valid identifier"); │ │ │ │ │ + this.str = s; │ │ │ │ │ + } │ │ │ │ │ + toString() { │ │ │ │ │ + return this.str; │ │ │ │ │ + } │ │ │ │ │ + emptyStr() { │ │ │ │ │ + return false; │ │ │ │ │ + } │ │ │ │ │ + get names() { │ │ │ │ │ + return { │ │ │ │ │ + [this.str]: 1 │ │ │ │ │ + }; │ │ │ │ │ + } │ │ │ │ │ } │ │ │ │ │ - optimize(expr); │ │ │ │ │ - return new _Code(expr); │ │ │ │ │ - } │ │ │ │ │ - exports.str = str; │ │ │ │ │ - │ │ │ │ │ - function addCodeArg(code, arg) { │ │ │ │ │ - if (arg instanceof _Code) │ │ │ │ │ - code.push(...arg._items); │ │ │ │ │ - else if (arg instanceof Name) │ │ │ │ │ - code.push(arg); │ │ │ │ │ - else │ │ │ │ │ - code.push(interpolate(arg)); │ │ │ │ │ - } │ │ │ │ │ - exports.addCodeArg = addCodeArg; │ │ │ │ │ - │ │ │ │ │ - function optimize(expr) { │ │ │ │ │ - let i = 1; │ │ │ │ │ - while (i < expr.length - 1) { │ │ │ │ │ - if (expr[i] === plus) { │ │ │ │ │ - const res = mergeExprItems(expr[i - 1], expr[i + 1]); │ │ │ │ │ - if (res !== undefined) { │ │ │ │ │ - expr.splice(i - 1, 3, res); │ │ │ │ │ - continue; │ │ │ │ │ + exports.Name = Name; │ │ │ │ │ + class _Code extends _CodeOrName { │ │ │ │ │ + constructor(code) { │ │ │ │ │ + super(); │ │ │ │ │ + this._items = typeof code === "string" ? [code] : code; │ │ │ │ │ + } │ │ │ │ │ + toString() { │ │ │ │ │ + return this.str; │ │ │ │ │ + } │ │ │ │ │ + emptyStr() { │ │ │ │ │ + if (this._items.length > 1) │ │ │ │ │ + return false; │ │ │ │ │ + const item = this._items[0]; │ │ │ │ │ + return item === "" || item === '""'; │ │ │ │ │ + } │ │ │ │ │ + get str() { │ │ │ │ │ + var _a; │ │ │ │ │ + return ((_a = this._str) !== null && _a !== void 0 ? _a : (this._str = this._items.reduce((s, c) => `${s}${c}`, ""))); │ │ │ │ │ + } │ │ │ │ │ + get names() { │ │ │ │ │ + var _a; │ │ │ │ │ + return ((_a = this._names) !== null && _a !== void 0 ? _a : (this._names = this._items.reduce((names, c) => { │ │ │ │ │ + if (c instanceof Name) │ │ │ │ │ + names[c.str] = (names[c.str] || 0) + 1; │ │ │ │ │ + return names; │ │ │ │ │ + }, {}))); │ │ │ │ │ + } │ │ │ │ │ + } │ │ │ │ │ + exports._Code = _Code; │ │ │ │ │ + exports.nil = new _Code(""); │ │ │ │ │ + │ │ │ │ │ + function _(strs, ...args) { │ │ │ │ │ + const code = [strs[0]]; │ │ │ │ │ + let i = 0; │ │ │ │ │ + while (i < args.length) { │ │ │ │ │ + addCodeArg(code, args[i]); │ │ │ │ │ + code.push(strs[++i]); │ │ │ │ │ + } │ │ │ │ │ + return new _Code(code); │ │ │ │ │ + } │ │ │ │ │ + exports._ = _; │ │ │ │ │ + const plus = new _Code("+"); │ │ │ │ │ + │ │ │ │ │ + function str(strs, ...args) { │ │ │ │ │ + const expr = [safeStringify(strs[0])]; │ │ │ │ │ + let i = 0; │ │ │ │ │ + while (i < args.length) { │ │ │ │ │ + expr.push(plus); │ │ │ │ │ + addCodeArg(expr, args[i]); │ │ │ │ │ + expr.push(plus, safeStringify(strs[++i])); │ │ │ │ │ + } │ │ │ │ │ + optimize(expr); │ │ │ │ │ + return new _Code(expr); │ │ │ │ │ + } │ │ │ │ │ + exports.str = str; │ │ │ │ │ + │ │ │ │ │ + function addCodeArg(code, arg) { │ │ │ │ │ + if (arg instanceof _Code) │ │ │ │ │ + code.push(...arg._items); │ │ │ │ │ + else if (arg instanceof Name) │ │ │ │ │ + code.push(arg); │ │ │ │ │ + else │ │ │ │ │ + code.push(interpolate(arg)); │ │ │ │ │ + } │ │ │ │ │ + exports.addCodeArg = addCodeArg; │ │ │ │ │ + │ │ │ │ │ + function optimize(expr) { │ │ │ │ │ + let i = 1; │ │ │ │ │ + while (i < expr.length - 1) { │ │ │ │ │ + if (expr[i] === plus) { │ │ │ │ │ + const res = mergeExprItems(expr[i - 1], expr[i + 1]); │ │ │ │ │ + if (res !== undefined) { │ │ │ │ │ + expr.splice(i - 1, 3, res); │ │ │ │ │ + continue; │ │ │ │ │ + } │ │ │ │ │ + expr[i++] = "+"; │ │ │ │ │ } │ │ │ │ │ - expr[i++] = "+"; │ │ │ │ │ + i++; │ │ │ │ │ } │ │ │ │ │ - i++; │ │ │ │ │ } │ │ │ │ │ - } │ │ │ │ │ │ │ │ │ │ - function mergeExprItems(a, b) { │ │ │ │ │ - if (b === '""') │ │ │ │ │ - return a; │ │ │ │ │ - if (a === '""') │ │ │ │ │ - return b; │ │ │ │ │ - if (typeof a == "string") { │ │ │ │ │ - if (b instanceof Name || a[a.length - 1] !== '"') │ │ │ │ │ + function mergeExprItems(a, b) { │ │ │ │ │ + if (b === '""') │ │ │ │ │ + return a; │ │ │ │ │ + if (a === '""') │ │ │ │ │ + return b; │ │ │ │ │ + if (typeof a == "string") { │ │ │ │ │ + if (b instanceof Name || a[a.length - 1] !== '"') │ │ │ │ │ + return; │ │ │ │ │ + if (typeof b != "string") │ │ │ │ │ + return `${a.slice(0, -1)}${b}"`; │ │ │ │ │ + if (b[0] === '"') │ │ │ │ │ + return a.slice(0, -1) + b.slice(1); │ │ │ │ │ return; │ │ │ │ │ - if (typeof b != "string") │ │ │ │ │ - return `${a.slice(0, -1)}${b}"`; │ │ │ │ │ - if (b[0] === '"') │ │ │ │ │ - return a.slice(0, -1) + b.slice(1); │ │ │ │ │ + } │ │ │ │ │ + if (typeof b == "string" && b[0] === '"' && !(a instanceof Name)) │ │ │ │ │ + return `"${a}${b.slice(1)}`; │ │ │ │ │ return; │ │ │ │ │ } │ │ │ │ │ - if (typeof b == "string" && b[0] === '"' && !(a instanceof Name)) │ │ │ │ │ - return `"${a}${b.slice(1)}`; │ │ │ │ │ - return; │ │ │ │ │ - } │ │ │ │ │ │ │ │ │ │ - function strConcat(c1, c2) { │ │ │ │ │ - return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str `${c1}${c2}`; │ │ │ │ │ - } │ │ │ │ │ - exports.strConcat = strConcat; │ │ │ │ │ - // TODO do not allow arrays here │ │ │ │ │ - function interpolate(x) { │ │ │ │ │ - return typeof x == "number" || typeof x == "boolean" || x === null ? │ │ │ │ │ - x : │ │ │ │ │ - safeStringify(Array.isArray(x) ? x.join(",") : x); │ │ │ │ │ - } │ │ │ │ │ + function strConcat(c1, c2) { │ │ │ │ │ + return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str `${c1}${c2}`; │ │ │ │ │ + } │ │ │ │ │ + exports.strConcat = strConcat; │ │ │ │ │ + // TODO do not allow arrays here │ │ │ │ │ + function interpolate(x) { │ │ │ │ │ + return typeof x == "number" || typeof x == "boolean" || x === null ? │ │ │ │ │ + x : │ │ │ │ │ + safeStringify(Array.isArray(x) ? x.join(",") : x); │ │ │ │ │ + } │ │ │ │ │ │ │ │ │ │ - function stringify(x) { │ │ │ │ │ - return new _Code(safeStringify(x)); │ │ │ │ │ - } │ │ │ │ │ - exports.stringify = stringify; │ │ │ │ │ + function stringify(x) { │ │ │ │ │ + return new _Code(safeStringify(x)); │ │ │ │ │ + } │ │ │ │ │ + exports.stringify = stringify; │ │ │ │ │ │ │ │ │ │ - function safeStringify(x) { │ │ │ │ │ - return JSON.stringify(x) │ │ │ │ │ - .replace(/\u2028/g, "\\u2028") │ │ │ │ │ - .replace(/\u2029/g, "\\u2029"); │ │ │ │ │ - } │ │ │ │ │ - exports.safeStringify = safeStringify; │ │ │ │ │ + function safeStringify(x) { │ │ │ │ │ + return JSON.stringify(x) │ │ │ │ │ + .replace(/\u2028/g, "\\u2028") │ │ │ │ │ + .replace(/\u2029/g, "\\u2029"); │ │ │ │ │ + } │ │ │ │ │ + exports.safeStringify = safeStringify; │ │ │ │ │ │ │ │ │ │ - function getProperty(key) { │ │ │ │ │ - return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _ `[${key}]`; │ │ │ │ │ - } │ │ │ │ │ - exports.getProperty = getProperty; │ │ │ │ │ - //Does best effort to format the name properly │ │ │ │ │ - function getEsmExportName(key) { │ │ │ │ │ - if (typeof key == "string" && exports.IDENTIFIER.test(key)) { │ │ │ │ │ - return new _Code(`${key}`); │ │ │ │ │ + function getProperty(key) { │ │ │ │ │ + return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _ `[${key}]`; │ │ │ │ │ } │ │ │ │ │ - throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`); │ │ │ │ │ - } │ │ │ │ │ - exports.getEsmExportName = getEsmExportName; │ │ │ │ │ + exports.getProperty = getProperty; │ │ │ │ │ + //Does best effort to format the name properly │ │ │ │ │ + function getEsmExportName(key) { │ │ │ │ │ + if (typeof key == "string" && exports.IDENTIFIER.test(key)) { │ │ │ │ │ + return new _Code(`${key}`); │ │ │ │ │ + } │ │ │ │ │ + throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`); │ │ │ │ │ + } │ │ │ │ │ + exports.getEsmExportName = getEsmExportName; │ │ │ │ │ │ │ │ │ │ - function regexpCode(rx) { │ │ │ │ │ - return new _Code(rx.toString()); │ │ │ │ │ - } │ │ │ │ │ - exports.regexpCode = regexpCode; │ │ │ │ │ + function regexpCode(rx) { │ │ │ │ │ + return new _Code(rx.toString()); │ │ │ │ │ + } │ │ │ │ │ + exports.regexpCode = regexpCode; │ │ │ │ │ │ │ │ │ │ -}(code$1)); │ │ │ │ │ + }(code$1)); │ │ │ │ │ + return code$1; │ │ │ │ │ +} │ │ │ │ │ │ │ │ │ │ var scope = {}; │ │ │ │ │ │ │ │ │ │ var hasRequiredScope; │ │ │ │ │ │ │ │ │ │ function requireScope() { │ │ │ │ │ if (hasRequiredScope) return scope; │ │ │ │ │ hasRequiredScope = 1; │ │ │ │ │ (function(exports) { │ │ │ │ │ Object.defineProperty(exports, "__esModule", { │ │ │ │ │ value: true │ │ │ │ │ }); │ │ │ │ │ exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0; │ │ │ │ │ - const code_1 = code$1; │ │ │ │ │ + const code_1 = requireCode$1(); │ │ │ │ │ class ValueError extends Error { │ │ │ │ │ constructor(name) { │ │ │ │ │ super(`CodeGen: "code" for ${name} not defined`); │ │ │ │ │ this.value = name.value; │ │ │ │ │ } │ │ │ │ │ } │ │ │ │ │ var UsedValueState; │ │ │ │ │ @@ -34267,17 +34274,17 @@ │ │ │ │ │ if (hasRequiredCodegen) return codegen; │ │ │ │ │ hasRequiredCodegen = 1; │ │ │ │ │ (function(exports) { │ │ │ │ │ Object.defineProperty(exports, "__esModule", { │ │ │ │ │ value: true │ │ │ │ │ }); │ │ │ │ │ exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0; │ │ │ │ │ - const code_1 = code$1; │ │ │ │ │ + const code_1 = requireCode$1(); │ │ │ │ │ const scope_1 = requireScope(); │ │ │ │ │ - var code_2 = code$1; │ │ │ │ │ + var code_2 = requireCode$1(); │ │ │ │ │ Object.defineProperty(exports, "_", { │ │ │ │ │ enumerable: true, │ │ │ │ │ get: function() { │ │ │ │ │ return code_2._; │ │ │ │ │ } │ │ │ │ │ }); │ │ │ │ │ Object.defineProperty(exports, "str", { │ │ │ │ │ @@ -35067,15 +35074,15 @@ │ │ │ │ │ │ │ │ │ │ (function(exports) { │ │ │ │ │ Object.defineProperty(exports, "__esModule", { │ │ │ │ │ value: true │ │ │ │ │ }); │ │ │ │ │ exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0; │ │ │ │ │ const codegen_1 = requireCodegen(); │ │ │ │ │ - const code_1 = code$1; │ │ │ │ │ + const code_1 = requireCode$1(); │ │ │ │ │ // TODO refactor to use Set │ │ │ │ │ function toHash(arr) { │ │ │ │ │ const hash = {}; │ │ │ │ │ for (const item of arr) │ │ │ │ │ hash[item] = true; │ │ │ │ │ return hash; │ │ │ │ │ } │ │ │ │ │ @@ -35310,218 +35317,225 @@ │ │ │ │ │ jsonPart: new codegen_1.Name("jsonPart"), │ │ │ │ │ }; │ │ │ │ │ names.default = names$1; │ │ │ │ │ │ │ │ │ │ return names; │ │ │ │ │ } │ │ │ │ │ │ │ │ │ │ -(function(exports) { │ │ │ │ │ - Object.defineProperty(exports, "__esModule", { │ │ │ │ │ - value: true │ │ │ │ │ - }); │ │ │ │ │ - exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0; │ │ │ │ │ - const codegen_1 = requireCodegen(); │ │ │ │ │ - const util_1 = util; │ │ │ │ │ - const names_1 = requireNames(); │ │ │ │ │ - exports.keywordError = { │ │ │ │ │ - message: ({ │ │ │ │ │ - keyword │ │ │ │ │ - }) => (0, codegen_1.str) `must pass "${keyword}" keyword validation`, │ │ │ │ │ - }; │ │ │ │ │ - exports.keyword$DataError = { │ │ │ │ │ - message: ({ │ │ │ │ │ - keyword, │ │ │ │ │ - schemaType │ │ │ │ │ - }) => schemaType ? │ │ │ │ │ - (0, codegen_1.str) `"${keyword}" keyword must be ${schemaType} ($data)` : │ │ │ │ │ - (0, codegen_1.str) `"${keyword}" keyword is invalid ($data)`, │ │ │ │ │ - }; │ │ │ │ │ +var hasRequiredErrors; │ │ │ │ │ │ │ │ │ │ - function reportError(cxt, error = exports.keywordError, errorPaths, overrideAllErrors) { │ │ │ │ │ - const { │ │ │ │ │ - it │ │ │ │ │ - } = cxt; │ │ │ │ │ - const { │ │ │ │ │ - gen, │ │ │ │ │ - compositeRule, │ │ │ │ │ - allErrors │ │ │ │ │ - } = it; │ │ │ │ │ - const errObj = errorObjectCode(cxt, error, errorPaths); │ │ │ │ │ - if (overrideAllErrors !== null && overrideAllErrors !== void 0 ? overrideAllErrors : (compositeRule || allErrors)) { │ │ │ │ │ - addError(gen, errObj); │ │ │ │ │ - } else { │ │ │ │ │ - returnErrors(it, (0, codegen_1._) `[${errObj}]`); │ │ │ │ │ - } │ │ │ │ │ - } │ │ │ │ │ - exports.reportError = reportError; │ │ │ │ │ +function requireErrors() { │ │ │ │ │ + if (hasRequiredErrors) return errors; │ │ │ │ │ + hasRequiredErrors = 1; │ │ │ │ │ + (function(exports) { │ │ │ │ │ + Object.defineProperty(exports, "__esModule", { │ │ │ │ │ + value: true │ │ │ │ │ + }); │ │ │ │ │ + exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0; │ │ │ │ │ + const codegen_1 = requireCodegen(); │ │ │ │ │ + const util_1 = util; │ │ │ │ │ + const names_1 = requireNames(); │ │ │ │ │ + exports.keywordError = { │ │ │ │ │ + message: ({ │ │ │ │ │ + keyword │ │ │ │ │ + }) => (0, codegen_1.str) `must pass "${keyword}" keyword validation`, │ │ │ │ │ + }; │ │ │ │ │ + exports.keyword$DataError = { │ │ │ │ │ + message: ({ │ │ │ │ │ + keyword, │ │ │ │ │ + schemaType │ │ │ │ │ + }) => schemaType ? │ │ │ │ │ + (0, codegen_1.str) `"${keyword}" keyword must be ${schemaType} ($data)` : │ │ │ │ │ + (0, codegen_1.str) `"${keyword}" keyword is invalid ($data)`, │ │ │ │ │ + }; │ │ │ │ │ │ │ │ │ │ - function reportExtraError(cxt, error = exports.keywordError, errorPaths) { │ │ │ │ │ - const { │ │ │ │ │ - it │ │ │ │ │ - } = cxt; │ │ │ │ │ - const { │ │ │ │ │ - gen, │ │ │ │ │ - compositeRule, │ │ │ │ │ - allErrors │ │ │ │ │ - } = it; │ │ │ │ │ - const errObj = errorObjectCode(cxt, error, errorPaths); │ │ │ │ │ - addError(gen, errObj); │ │ │ │ │ - if (!(compositeRule || allErrors)) { │ │ │ │ │ - returnErrors(it, names_1.default.vErrors); │ │ │ │ │ + function reportError(cxt, error = exports.keywordError, errorPaths, overrideAllErrors) { │ │ │ │ │ + const { │ │ │ │ │ + it │ │ │ │ │ + } = cxt; │ │ │ │ │ + const { │ │ │ │ │ + gen, │ │ │ │ │ + compositeRule, │ │ │ │ │ + allErrors │ │ │ │ │ + } = it; │ │ │ │ │ + const errObj = errorObjectCode(cxt, error, errorPaths); │ │ │ │ │ + if (overrideAllErrors !== null && overrideAllErrors !== void 0 ? overrideAllErrors : (compositeRule || allErrors)) { │ │ │ │ │ + addError(gen, errObj); │ │ │ │ │ + } else { │ │ │ │ │ + returnErrors(it, (0, codegen_1._) `[${errObj}]`); │ │ │ │ │ + } │ │ │ │ │ } │ │ │ │ │ - } │ │ │ │ │ - exports.reportExtraError = reportExtraError; │ │ │ │ │ + exports.reportError = reportError; │ │ │ │ │ │ │ │ │ │ - function resetErrorsCount(gen, errsCount) { │ │ │ │ │ - gen.assign(names_1.default.errors, errsCount); │ │ │ │ │ - gen.if((0, codegen_1._) `${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._) `${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null))); │ │ │ │ │ - } │ │ │ │ │ - exports.resetErrorsCount = resetErrorsCount; │ │ │ │ │ - │ │ │ │ │ - function extendErrors({ │ │ │ │ │ - gen, │ │ │ │ │ - keyword, │ │ │ │ │ - schemaValue, │ │ │ │ │ - data, │ │ │ │ │ - errsCount, │ │ │ │ │ - it, │ │ │ │ │ - }) { │ │ │ │ │ - /* istanbul ignore if */ │ │ │ │ │ - if (errsCount === undefined) │ │ │ │ │ - throw new Error("ajv implementation error"); │ │ │ │ │ - const err = gen.name("err"); │ │ │ │ │ - gen.forRange("i", errsCount, names_1.default.errors, (i) => { │ │ │ │ │ - gen.const(err, (0, codegen_1._) `${names_1.default.vErrors}[${i}]`); │ │ │ │ │ - gen.if((0, codegen_1._) `${err}.instancePath === undefined`, () => gen.assign((0, codegen_1._) `${err}.instancePath`, (0, codegen_1.strConcat)(names_1.default.instancePath, it.errorPath))); │ │ │ │ │ - gen.assign((0, codegen_1._) `${err}.schemaPath`, (0, codegen_1.str) `${it.errSchemaPath}/${keyword}`); │ │ │ │ │ - if (it.opts.verbose) { │ │ │ │ │ - gen.assign((0, codegen_1._) `${err}.schema`, schemaValue); │ │ │ │ │ - gen.assign((0, codegen_1._) `${err}.data`, data); │ │ │ │ │ + function reportExtraError(cxt, error = exports.keywordError, errorPaths) { │ │ │ │ │ + const { │ │ │ │ │ + it │ │ │ │ │ + } = cxt; │ │ │ │ │ + const { │ │ │ │ │ + gen, │ │ │ │ │ + compositeRule, │ │ │ │ │ + allErrors │ │ │ │ │ + } = it; │ │ │ │ │ + const errObj = errorObjectCode(cxt, error, errorPaths); │ │ │ │ │ + addError(gen, errObj); │ │ │ │ │ + if (!(compositeRule || allErrors)) { │ │ │ │ │ + returnErrors(it, names_1.default.vErrors); │ │ │ │ │ } │ │ │ │ │ - }); │ │ │ │ │ - } │ │ │ │ │ - exports.extendErrors = extendErrors; │ │ │ │ │ + } │ │ │ │ │ + exports.reportExtraError = reportExtraError; │ │ │ │ │ │ │ │ │ │ - function addError(gen, errObj) { │ │ │ │ │ - const err = gen.const("err", errObj); │ │ │ │ │ - gen.if((0, codegen_1._) `${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._) `[${err}]`), (0, codegen_1._) `${names_1.default.vErrors}.push(${err})`); │ │ │ │ │ - gen.code((0, codegen_1._) `${names_1.default.errors}++`); │ │ │ │ │ - } │ │ │ │ │ + function resetErrorsCount(gen, errsCount) { │ │ │ │ │ + gen.assign(names_1.default.errors, errsCount); │ │ │ │ │ + gen.if((0, codegen_1._) `${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._) `${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null))); │ │ │ │ │ + } │ │ │ │ │ + exports.resetErrorsCount = resetErrorsCount; │ │ │ │ │ │ │ │ │ │ - function returnErrors(it, errs) { │ │ │ │ │ - const { │ │ │ │ │ + function extendErrors({ │ │ │ │ │ gen, │ │ │ │ │ - validateName, │ │ │ │ │ - schemaEnv │ │ │ │ │ - } = it; │ │ │ │ │ - if (schemaEnv.$async) { │ │ │ │ │ - gen.throw((0, codegen_1._) `new ${it.ValidationError}(${errs})`); │ │ │ │ │ - } else { │ │ │ │ │ - gen.assign((0, codegen_1._) `${validateName}.errors`, errs); │ │ │ │ │ - gen.return(false); │ │ │ │ │ + keyword, │ │ │ │ │ + schemaValue, │ │ │ │ │ + data, │ │ │ │ │ + errsCount, │ │ │ │ │ + it, │ │ │ │ │ + }) { │ │ │ │ │ + /* istanbul ignore if */ │ │ │ │ │ + if (errsCount === undefined) │ │ │ │ │ + throw new Error("ajv implementation error"); │ │ │ │ │ + const err = gen.name("err"); │ │ │ │ │ + gen.forRange("i", errsCount, names_1.default.errors, (i) => { │ │ │ │ │ + gen.const(err, (0, codegen_1._) `${names_1.default.vErrors}[${i}]`); │ │ │ │ │ + gen.if((0, codegen_1._) `${err}.instancePath === undefined`, () => gen.assign((0, codegen_1._) `${err}.instancePath`, (0, codegen_1.strConcat)(names_1.default.instancePath, it.errorPath))); │ │ │ │ │ + gen.assign((0, codegen_1._) `${err}.schemaPath`, (0, codegen_1.str) `${it.errSchemaPath}/${keyword}`); │ │ │ │ │ + if (it.opts.verbose) { │ │ │ │ │ + gen.assign((0, codegen_1._) `${err}.schema`, schemaValue); │ │ │ │ │ + gen.assign((0, codegen_1._) `${err}.data`, data); │ │ │ │ │ + } │ │ │ │ │ + }); │ │ │ │ │ } │ │ │ │ │ - } │ │ │ │ │ - const E = { │ │ │ │ │ - keyword: new codegen_1.Name("keyword"), │ │ │ │ │ - schemaPath: new codegen_1.Name("schemaPath"), │ │ │ │ │ - params: new codegen_1.Name("params"), │ │ │ │ │ - propertyName: new codegen_1.Name("propertyName"), │ │ │ │ │ - message: new codegen_1.Name("message"), │ │ │ │ │ - schema: new codegen_1.Name("schema"), │ │ │ │ │ - parentSchema: new codegen_1.Name("parentSchema"), │ │ │ │ │ - }; │ │ │ │ │ + exports.extendErrors = extendErrors; │ │ │ │ │ │ │ │ │ │ - function errorObjectCode(cxt, error, errorPaths) { │ │ │ │ │ - const { │ │ │ │ │ - createErrors │ │ │ │ │ - } = cxt.it; │ │ │ │ │ - if (createErrors === false) │ │ │ │ │ - return (0, codegen_1._) `{}`; │ │ │ │ │ - return errorObject(cxt, error, errorPaths); │ │ │ │ │ - } │ │ │ │ │ + function addError(gen, errObj) { │ │ │ │ │ + const err = gen.const("err", errObj); │ │ │ │ │ + gen.if((0, codegen_1._) `${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._) `[${err}]`), (0, codegen_1._) `${names_1.default.vErrors}.push(${err})`); │ │ │ │ │ + gen.code((0, codegen_1._) `${names_1.default.errors}++`); │ │ │ │ │ + } │ │ │ │ │ │ │ │ │ │ - function errorObject(cxt, error, errorPaths = {}) { │ │ │ │ │ - const { │ │ │ │ │ - gen, │ │ │ │ │ - it │ │ │ │ │ - } = cxt; │ │ │ │ │ - const keyValues = [ │ │ │ │ │ - errorInstancePath(it, errorPaths), │ │ │ │ │ - errorSchemaPath(cxt, errorPaths), │ │ │ │ │ - ]; │ │ │ │ │ - extraErrorProps(cxt, error, keyValues); │ │ │ │ │ - return gen.object(...keyValues); │ │ │ │ │ - } │ │ │ │ │ + function returnErrors(it, errs) { │ │ │ │ │ + const { │ │ │ │ │ + gen, │ │ │ │ │ + validateName, │ │ │ │ │ + schemaEnv │ │ │ │ │ + } = it; │ │ │ │ │ + if (schemaEnv.$async) { │ │ │ │ │ + gen.throw((0, codegen_1._) `new ${it.ValidationError}(${errs})`); │ │ │ │ │ + } else { │ │ │ │ │ + gen.assign((0, codegen_1._) `${validateName}.errors`, errs); │ │ │ │ │ + gen.return(false); │ │ │ │ │ + } │ │ │ │ │ + } │ │ │ │ │ + const E = { │ │ │ │ │ + keyword: new codegen_1.Name("keyword"), │ │ │ │ │ + schemaPath: new codegen_1.Name("schemaPath"), │ │ │ │ │ + params: new codegen_1.Name("params"), │ │ │ │ │ + propertyName: new codegen_1.Name("propertyName"), │ │ │ │ │ + message: new codegen_1.Name("message"), │ │ │ │ │ + schema: new codegen_1.Name("schema"), │ │ │ │ │ + parentSchema: new codegen_1.Name("parentSchema"), │ │ │ │ │ + }; │ │ │ │ │ │ │ │ │ │ - function errorInstancePath({ │ │ │ │ │ - errorPath │ │ │ │ │ - }, { │ │ │ │ │ - instancePath │ │ │ │ │ - }) { │ │ │ │ │ - const instPath = instancePath ? │ │ │ │ │ - (0, codegen_1.str) `${errorPath}${(0, util_1.getErrorPath)(instancePath, util_1.Type.Str)}` : │ │ │ │ │ - errorPath; │ │ │ │ │ - return [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, instPath)]; │ │ │ │ │ - } │ │ │ │ │ + function errorObjectCode(cxt, error, errorPaths) { │ │ │ │ │ + const { │ │ │ │ │ + createErrors │ │ │ │ │ + } = cxt.it; │ │ │ │ │ + if (createErrors === false) │ │ │ │ │ + return (0, codegen_1._) `{}`; │ │ │ │ │ + return errorObject(cxt, error, errorPaths); │ │ │ │ │ + } │ │ │ │ │ │ │ │ │ │ - function errorSchemaPath({ │ │ │ │ │ - keyword, │ │ │ │ │ - it: { │ │ │ │ │ - errSchemaPath │ │ │ │ │ + function errorObject(cxt, error, errorPaths = {}) { │ │ │ │ │ + const { │ │ │ │ │ + gen, │ │ │ │ │ + it │ │ │ │ │ + } = cxt; │ │ │ │ │ + const keyValues = [ │ │ │ │ │ + errorInstancePath(it, errorPaths), │ │ │ │ │ + errorSchemaPath(cxt, errorPaths), │ │ │ │ │ + ]; │ │ │ │ │ + extraErrorProps(cxt, error, keyValues); │ │ │ │ │ + return gen.object(...keyValues); │ │ │ │ │ } │ │ │ │ │ - }, { │ │ │ │ │ - schemaPath, │ │ │ │ │ - parentSchema │ │ │ │ │ - }) { │ │ │ │ │ - let schPath = parentSchema ? errSchemaPath : (0, codegen_1.str) `${errSchemaPath}/${keyword}`; │ │ │ │ │ - if (schemaPath) { │ │ │ │ │ - schPath = (0, codegen_1.str) `${schPath}${(0, util_1.getErrorPath)(schemaPath, util_1.Type.Str)}`; │ │ │ │ │ + │ │ │ │ │ + function errorInstancePath({ │ │ │ │ │ + errorPath │ │ │ │ │ + }, { │ │ │ │ │ + instancePath │ │ │ │ │ + }) { │ │ │ │ │ + const instPath = instancePath ? │ │ │ │ │ + (0, codegen_1.str) `${errorPath}${(0, util_1.getErrorPath)(instancePath, util_1.Type.Str)}` : │ │ │ │ │ + errorPath; │ │ │ │ │ + return [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, instPath)]; │ │ │ │ │ } │ │ │ │ │ - return [E.schemaPath, schPath]; │ │ │ │ │ - } │ │ │ │ │ │ │ │ │ │ - function extraErrorProps(cxt, { │ │ │ │ │ - params, │ │ │ │ │ - message │ │ │ │ │ - }, keyValues) { │ │ │ │ │ - const { │ │ │ │ │ + function errorSchemaPath({ │ │ │ │ │ keyword, │ │ │ │ │ - data, │ │ │ │ │ - schemaValue, │ │ │ │ │ - it │ │ │ │ │ - } = cxt; │ │ │ │ │ - const { │ │ │ │ │ - opts, │ │ │ │ │ - propertyName, │ │ │ │ │ - topSchemaRef, │ │ │ │ │ - schemaPath │ │ │ │ │ - } = it; │ │ │ │ │ - keyValues.push([E.keyword, keyword], [E.params, typeof params == "function" ? params(cxt) : params || (0, codegen_1._) `{}`]); │ │ │ │ │ - if (opts.messages) { │ │ │ │ │ - keyValues.push([E.message, typeof message == "function" ? message(cxt) : message]); │ │ │ │ │ + it: { │ │ │ │ │ + errSchemaPath │ │ │ │ │ + } │ │ │ │ │ + }, { │ │ │ │ │ + schemaPath, │ │ │ │ │ + parentSchema │ │ │ │ │ + }) { │ │ │ │ │ + let schPath = parentSchema ? errSchemaPath : (0, codegen_1.str) `${errSchemaPath}/${keyword}`; │ │ │ │ │ + if (schemaPath) { │ │ │ │ │ + schPath = (0, codegen_1.str) `${schPath}${(0, util_1.getErrorPath)(schemaPath, util_1.Type.Str)}`; │ │ │ │ │ + } │ │ │ │ │ + return [E.schemaPath, schPath]; │ │ │ │ │ } │ │ │ │ │ - if (opts.verbose) { │ │ │ │ │ - keyValues.push([E.schema, schemaValue], [E.parentSchema, (0, codegen_1._) `${topSchemaRef}${schemaPath}`], [names_1.default.data, data]); │ │ │ │ │ + │ │ │ │ │ + function extraErrorProps(cxt, { │ │ │ │ │ + params, │ │ │ │ │ + message │ │ │ │ │ + }, keyValues) { │ │ │ │ │ + const { │ │ │ │ │ + keyword, │ │ │ │ │ + data, │ │ │ │ │ + schemaValue, │ │ │ │ │ + it │ │ │ │ │ + } = cxt; │ │ │ │ │ + const { │ │ │ │ │ + opts, │ │ │ │ │ + propertyName, │ │ │ │ │ + topSchemaRef, │ │ │ │ │ + schemaPath │ │ │ │ │ + } = it; │ │ │ │ │ + keyValues.push([E.keyword, keyword], [E.params, typeof params == "function" ? params(cxt) : params || (0, codegen_1._) `{}`]); │ │ │ │ │ + if (opts.messages) { │ │ │ │ │ + keyValues.push([E.message, typeof message == "function" ? message(cxt) : message]); │ │ │ │ │ + } │ │ │ │ │ + if (opts.verbose) { │ │ │ │ │ + keyValues.push([E.schema, schemaValue], [E.parentSchema, (0, codegen_1._) `${topSchemaRef}${schemaPath}`], [names_1.default.data, data]); │ │ │ │ │ + } │ │ │ │ │ + if (propertyName) │ │ │ │ │ + keyValues.push([E.propertyName, propertyName]); │ │ │ │ │ } │ │ │ │ │ - if (propertyName) │ │ │ │ │ - keyValues.push([E.propertyName, propertyName]); │ │ │ │ │ - } │ │ │ │ │ │ │ │ │ │ -}(errors)); │ │ │ │ │ + }(errors)); │ │ │ │ │ + return errors; │ │ │ │ │ +} │ │ │ │ │ │ │ │ │ │ var hasRequiredBoolSchema; │ │ │ │ │ │ │ │ │ │ function requireBoolSchema() { │ │ │ │ │ if (hasRequiredBoolSchema) return boolSchema; │ │ │ │ │ hasRequiredBoolSchema = 1; │ │ │ │ │ Object.defineProperty(boolSchema, "__esModule", { │ │ │ │ │ value: true │ │ │ │ │ }); │ │ │ │ │ boolSchema.boolOrEmptySchema = boolSchema.topBoolOrEmptySchema = void 0; │ │ │ │ │ - const errors_1 = errors; │ │ │ │ │ + const errors_1 = requireErrors(); │ │ │ │ │ const codegen_1 = requireCodegen(); │ │ │ │ │ const names_1 = requireNames(); │ │ │ │ │ const boolError = { │ │ │ │ │ message: "boolean schema is false", │ │ │ │ │ }; │ │ │ │ │ │ │ │ │ │ function topBoolOrEmptySchema(it) { │ │ │ │ │ @@ -35629,48 +35643,56 @@ │ │ │ │ │ keywords: {}, │ │ │ │ │ }; │ │ │ │ │ } │ │ │ │ │ rules.getRules = getRules; │ │ │ │ │ │ │ │ │ │ var applicability = {}; │ │ │ │ │ │ │ │ │ │ -Object.defineProperty(applicability, "__esModule", { │ │ │ │ │ - value: true │ │ │ │ │ -}); │ │ │ │ │ -applicability.shouldUseRule = applicability.shouldUseGroup = applicability.schemaHasRulesForType = void 0; │ │ │ │ │ +var hasRequiredApplicability; │ │ │ │ │ │ │ │ │ │ -function schemaHasRulesForType({ │ │ │ │ │ - schema, │ │ │ │ │ - self │ │ │ │ │ -}, type) { │ │ │ │ │ - const group = self.RULES.types[type]; │ │ │ │ │ - return group && group !== true && shouldUseGroup(schema, group); │ │ │ │ │ -} │ │ │ │ │ -applicability.schemaHasRulesForType = schemaHasRulesForType; │ │ │ │ │ +function requireApplicability() { │ │ │ │ │ + if (hasRequiredApplicability) return applicability; │ │ │ │ │ + hasRequiredApplicability = 1; │ │ │ │ │ + Object.defineProperty(applicability, "__esModule", { │ │ │ │ │ + value: true │ │ │ │ │ + }); │ │ │ │ │ + applicability.shouldUseRule = applicability.shouldUseGroup = applicability.schemaHasRulesForType = void 0; │ │ │ │ │ │ │ │ │ │ -function shouldUseGroup(schema, group) { │ │ │ │ │ - return group.rules.some((rule) => shouldUseRule(schema, rule)); │ │ │ │ │ -} │ │ │ │ │ -applicability.shouldUseGroup = shouldUseGroup; │ │ │ │ │ + function schemaHasRulesForType({ │ │ │ │ │ + schema, │ │ │ │ │ + self │ │ │ │ │ + }, type) { │ │ │ │ │ + const group = self.RULES.types[type]; │ │ │ │ │ + return group && group !== true && shouldUseGroup(schema, group); │ │ │ │ │ + } │ │ │ │ │ + applicability.schemaHasRulesForType = schemaHasRulesForType; │ │ │ │ │ + │ │ │ │ │ + function shouldUseGroup(schema, group) { │ │ │ │ │ + return group.rules.some((rule) => shouldUseRule(schema, rule)); │ │ │ │ │ + } │ │ │ │ │ + applicability.shouldUseGroup = shouldUseGroup; │ │ │ │ │ + │ │ │ │ │ + function shouldUseRule(schema, rule) { │ │ │ │ │ + var _a; │ │ │ │ │ + return (schema[rule.keyword] !== undefined || │ │ │ │ │ + ((_a = rule.definition.implements) === null || _a === void 0 ? void 0 : _a.some((kwd) => schema[kwd] !== undefined))); │ │ │ │ │ + } │ │ │ │ │ + applicability.shouldUseRule = shouldUseRule; │ │ │ │ │ │ │ │ │ │ -function shouldUseRule(schema, rule) { │ │ │ │ │ - var _a; │ │ │ │ │ - return (schema[rule.keyword] !== undefined || │ │ │ │ │ - ((_a = rule.definition.implements) === null || _a === void 0 ? void 0 : _a.some((kwd) => schema[kwd] !== undefined))); │ │ │ │ │ + return applicability; │ │ │ │ │ } │ │ │ │ │ -applicability.shouldUseRule = shouldUseRule; │ │ │ │ │ │ │ │ │ │ (function(exports) { │ │ │ │ │ Object.defineProperty(exports, "__esModule", { │ │ │ │ │ value: true │ │ │ │ │ }); │ │ │ │ │ exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0; │ │ │ │ │ const rules_1 = rules; │ │ │ │ │ - const applicability_1 = applicability; │ │ │ │ │ - const errors_1 = errors; │ │ │ │ │ + const applicability_1 = requireApplicability(); │ │ │ │ │ + const errors_1 = requireErrors(); │ │ │ │ │ const codegen_1 = requireCodegen(); │ │ │ │ │ const util_1 = util; │ │ │ │ │ var DataType; │ │ │ │ │ (function(DataType) { │ │ │ │ │ DataType[DataType["Correct"] = 0] = "Correct"; │ │ │ │ │ DataType[DataType["Wrong"] = 1] = "Wrong"; │ │ │ │ │ })(DataType = exports.DataType || (exports.DataType = {})); │ │ │ │ │ @@ -36158,15 +36180,15 @@ │ │ │ │ │ Object.defineProperty(keyword, "__esModule", { │ │ │ │ │ value: true │ │ │ │ │ }); │ │ │ │ │ keyword.validateKeywordUsage = keyword.validSchemaType = keyword.funcKeywordCode = keyword.macroKeywordCode = void 0; │ │ │ │ │ const codegen_1 = requireCodegen(); │ │ │ │ │ const names_1 = requireNames(); │ │ │ │ │ const code_1 = requireCode(); │ │ │ │ │ - const errors_1 = errors; │ │ │ │ │ + const errors_1 = requireErrors(); │ │ │ │ │ │ │ │ │ │ function macroKeywordCode(cxt, def) { │ │ │ │ │ const { │ │ │ │ │ gen, │ │ │ │ │ keyword, │ │ │ │ │ schema, │ │ │ │ │ parentSchema, │ │ │ │ │ @@ -36772,24 +36794,24 @@ │ │ │ │ │ hasRequiredValidate = 1; │ │ │ │ │ Object.defineProperty(validate, "__esModule", { │ │ │ │ │ value: true │ │ │ │ │ }); │ │ │ │ │ validate.getData = validate.KeywordCxt = validate.validateFunctionCode = void 0; │ │ │ │ │ const boolSchema_1 = requireBoolSchema(); │ │ │ │ │ const dataType_1 = dataType; │ │ │ │ │ - const applicability_1 = applicability; │ │ │ │ │ + const applicability_1 = requireApplicability(); │ │ │ │ │ const dataType_2 = dataType; │ │ │ │ │ const defaults_1 = requireDefaults(); │ │ │ │ │ const keyword_1 = requireKeyword(); │ │ │ │ │ const subschema_1 = requireSubschema(); │ │ │ │ │ const codegen_1 = requireCodegen(); │ │ │ │ │ const names_1 = requireNames(); │ │ │ │ │ const resolve_1 = resolve$1; │ │ │ │ │ const util_1 = util; │ │ │ │ │ - const errors_1 = errors; │ │ │ │ │ + const errors_1 = requireErrors(); │ │ │ │ │ // schema compilation - generates validation function, subschemaCode (below) is used for subschemas │ │ │ │ │ function validateFunctionCode(it) { │ │ │ │ │ if (isSchemaObj(it)) { │ │ │ │ │ checkKeywords(it); │ │ │ │ │ if (schemaCxtHasRules(it)) { │ │ │ │ │ topSchemaObjCode(it); │ │ │ │ │ return; │ │ ├── xz --list │ │ │ @@ -1,13 +1,13 @@ │ │ │ Streams: 1 │ │ │ Blocks: 1 │ │ │ - Compressed size: 335.4 KiB (343452 B) │ │ │ + Compressed size: 334.3 KiB (342364 B) │ │ │ Uncompressed size: 11.8 MiB (12410880 B) │ │ │ Ratio: 0.028 │ │ │ Check: CRC64 │ │ │ Stream Padding: 0 B │ │ │ Streams: │ │ │ Stream Blocks CompOffset UncompOffset CompSize UncompSize Ratio Check Padding │ │ │ - 1 1 0 0 343452 12410880 0.028 CRC64 0 │ │ │ + 1 1 0 0 342364 12410880 0.028 CRC64 0 │ │ │ Blocks: │ │ │ Stream Block CompOffset UncompOffset TotalSize UncompSize Ratio Check │ │ │ - 1 1 12 0 343412 12410880 0.028 CRC64 │ │ │ + 1 1 12 0 342324 12410880 0.028 CRC64