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