Offset 1, 2 lines modified | Offset 1, 2 lines modified | ||
1 | · | 1 | ·6900a3280de2fc100e017eb3939af137·351584·javascript·optional·node-rjsf_5.12.1+~5.0.1-2_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2023-12-18·07:52:01.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2023-12-18·07:52:01.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····7612·2023-12-18·07:52:01.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····7612·2023-12-18·07:52:01.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···34 | 3 | -rw-r--r--···0········0········0···343780·2023-12-18·07:52:01.000000·data.tar.xz |
Offset 1, 12 lines modified | Offset 1, 12 lines modified | ||
1 | Package:·node-rjsf | 1 | Package:·node-rjsf |
2 | Version:·5.12.1+~5.0.1-2 | 2 | Version:·5.12.1+~5.0.1-2 |
3 | Architecture:·all | 3 | Architecture:·all |
4 | Maintainer:·Debian·Javascript·Maintainers·<pkg-javascript-devel@lists.alioth.debian.org> | 4 | Maintainer:·Debian·Javascript·Maintainers·<pkg-javascript-devel@lists.alioth.debian.org> |
5 | Installed-Size:·1204 | 5 | Installed-Size:·12040 |
6 | Depends:·node-ajv·(>=·8),·node-lodash,·node-markdown-to-jsx,·node-nanoid,·node-prop-types | 6 | Depends:·node-ajv·(>=·8),·node-lodash,·node-markdown-to-jsx,·node-nanoid,·node-prop-types |
7 | 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) | 7 | 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) |
8 | Section:·javascript | 8 | Section:·javascript |
9 | Priority:·optional | 9 | Priority:·optional |
10 | Homepage:·https://github.com/rjsf-team/react-jsonschema-form | 10 | Homepage:·https://github.com/rjsf-team/react-jsonschema-form |
11 | Description:·ReactJS·component·capable·of·using·JSON·Schema·to·declaratively·build·forms | 11 | Description:·ReactJS·component·capable·of·using·JSON·Schema·to·declaratively·build·forms |
12 | ·node-rjsf·provides·ReactJS·components·capable·of·using·JSON·Schema·to | 12 | ·node-rjsf·provides·ReactJS·components·capable·of·using·JSON·Schema·to |
Offset 386, 15 lines modified | Offset 386, 15 lines modified | ||
386 | -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 | 386 | -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 |
387 | -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 | 387 | -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 |
388 | -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 | 388 | -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 |
389 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/lib/ | 389 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/lib/ |
390 | -rw-r--r--···0·root·········(0)·root·········(0)·····1490·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/lib/createAjvInstance.d.ts | 390 | -rw-r--r--···0·root·········(0)·root·········(0)·····1490·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/lib/createAjvInstance.d.ts |
391 | -rw-r--r--···0·root·········(0)·root·········(0)······644·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/lib/customizeValidator.d.ts | 391 | -rw-r--r--···0·root·········(0)·root·········(0)······644·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/lib/customizeValidator.d.ts |
392 | -rw-r--r--···0·root·········(0)·root·········(0)······299·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/lib/index.d.ts | 392 | -rw-r--r--···0·root·········(0)·root·········(0)······299·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/lib/index.d.ts |
393 | -rw-r--r--···0·root·········(0)·root·········(0)··1366 | 393 | -rw-r--r--···0·root·········(0)·root·········(0)··1366275·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/lib/index.js |
394 | -rw-r--r--···0·root·········(0)·root·········(0)······598·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/lib/types.d.ts | 394 | -rw-r--r--···0·root·········(0)·root·········(0)······598·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/lib/types.d.ts |
395 | -rw-r--r--···0·root·········(0)·root·········(0)·····3716·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/lib/validator.d.ts | 395 | -rw-r--r--···0·root·········(0)·root·········(0)·····3716·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/lib/validator.d.ts |
396 | -rw-r--r--···0·root·········(0)·root·········(0)·····2408·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/package.json | 396 | -rw-r--r--···0·root·········(0)·root·········(0)·····2408·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/package.json |
397 | -rw-r--r--···0·root·········(0)·root·········(0)·····1217·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/pkgjs-lock.json | 397 | -rw-r--r--···0·root·········(0)·root·········(0)·····1217·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/pkgjs-lock.json |
398 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/src/ | 398 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/src/ |
399 | -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 | 399 | -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 |
400 | -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 | 400 | -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 |
Offset 418, 15 lines modified | Offset 418, 15 lines modified | ||
418 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/ | 418 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/ |
419 | -rw-r--r--···0·root·········(0)·root·········(0)·····1344·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/compileSchemaValidators.d.ts | 419 | -rw-r--r--···0·root·········(0)·root·········(0)·····1344·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/compileSchemaValidators.d.ts |
420 | -rw-r--r--···0·root·········(0)·root·········(0)·····1113·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/compileSchemaValidatorsCode.d.ts | 420 | -rw-r--r--···0·root·········(0)·root·········(0)·····1113·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/compileSchemaValidatorsCode.d.ts |
421 | -rw-r--r--···0·root·········(0)·root·········(0)·····2024·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/createAjvInstance.d.ts | 421 | -rw-r--r--···0·root·········(0)·root·········(0)·····2024·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/createAjvInstance.d.ts |
422 | -rw-r--r--···0·root·········(0)·root·········(0)·····1176·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/createPrecompiledValidator.d.ts | 422 | -rw-r--r--···0·root·········(0)·root·········(0)·····1176·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/createPrecompiledValidator.d.ts |
423 | -rw-r--r--···0·root·········(0)·root·········(0)······921·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/customizeValidator.d.ts | 423 | -rw-r--r--···0·root·········(0)·root·········(0)······921·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/customizeValidator.d.ts |
424 | -rw-r--r--···0·root·········(0)·root·········(0)······340·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/index.d.ts | 424 | -rw-r--r--···0·root·········(0)·root·········(0)······340·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/index.d.ts |
425 | -rw-r--r--···0·root·········(0)·root·········(0)··147 | 425 | -rw-r--r--···0·root·········(0)·root·········(0)··1472852·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/index.js |
426 | -rw-r--r--···0·root·········(0)·root·········(0)·····5113·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/precompiledValidator.d.ts | 426 | -rw-r--r--···0·root·········(0)·root·········(0)·····5113·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/precompiledValidator.d.ts |
427 | -rw-r--r--···0·root·········(0)·root·········(0)·····2304·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/processRawValidationErrors.d.ts | 427 | -rw-r--r--···0·root·········(0)·root·········(0)·····2304·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/processRawValidationErrors.d.ts |
428 | -rw-r--r--···0·root·········(0)·root·········(0)·····1904·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/types.d.ts | 428 | -rw-r--r--···0·root·········(0)·root·········(0)·····1904·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/types.d.ts |
429 | -rw-r--r--···0·root·········(0)·root·········(0)·····3604·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/validator.d.ts | 429 | -rw-r--r--···0·root·········(0)·root·········(0)·····3604·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/lib/validator.d.ts |
430 | -rw-r--r--···0·root·········(0)·root·········(0)·····2812·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/package.json | 430 | -rw-r--r--···0·root·········(0)·root·········(0)·····2812·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/package.json |
431 | -rw-r--r--···0·root·········(0)·root·········(0)·····1343·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/pkgjs-lock.json | 431 | -rw-r--r--···0·root·········(0)·root·········(0)·····1343·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/pkgjs-lock.json |
432 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/src/ | 432 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/src/ |
Offset 33816, 204 lines modified | Offset 33816, 197 lines modified | ||
33816 | var·errors·=·{}; | 33816 | var·errors·=·{}; |
33817 | var·codegen·=·{}; | 33817 | var·codegen·=·{}; |
33818 | var·code$1·=·{}; | 33818 | var·code$1·=·{}; |
33819 | var·hasRequiredCode$1; | ||
33820 | function·requireCode$1()·{ | ||
33821 | ····if·(hasRequiredCode$1)·return·code$1; | ||
33822 | ····hasRequiredCode$1·=·1; | ||
33823 | 33819 | (function(exports)·{ | |
33824 | ···· | 33820 | ····Object.defineProperty(exports,·"__esModule",·{ |
33825 | ········ | 33821 | ········value:·true |
33826 | ···· | 33822 | ····}); |
33827 | ···· | 33823 | ····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; |
33828 | ···· | 33824 | ····class·_CodeOrName·{} |
33829 | ···· | 33825 | ····exports._CodeOrName·=·_CodeOrName; |
33830 | ···· | 33826 | ····exports.IDENTIFIER·=·/^[a-z$_][a-z$_0-9]*$/i; |
33831 | ···· | 33827 | ····class·Name·extends·_CodeOrName·{ |
33832 | ········ | 33828 | ········constructor(s)·{ |
33833 | ············ | 33829 | ············super(); |
33834 | ············ | 33830 | ············if·(!exports.IDENTIFIER.test(s)) |
33835 | ················ | 33831 | ················throw·new·Error("CodeGen:·name·must·be·a·valid·identifier"); |
33836 | ············ | 33832 | ············this.str·=·s; |
33833 | ········} | ||
33834 | ········toString()·{ | ||
33835 | ············return·this.str; | ||
33836 | ········} | ||
33837 | ········emptyStr()·{ | ||
33838 | ············return·false; | ||
33839 | ········} | ||
33840 | ········get·names()·{ | ||
33841 | ············return·{ | ||
33842 | ················[this.str]:·1 | ||
33837 | ············} | 33843 | ············}; |
33844 | ········} | ||
33845 | ····} | ||
33846 | ····exports.Name·=·Name; | ||
33847 | ····class·_Code·extends·_CodeOrName·{ | ||
33848 | ········constructor(code)·{ | ||
33849 | ············super(); | ||
33850 | ············this._items·=·typeof·code·===·"string"·?·[code]·:·code; | ||
33851 | ········} | ||
33838 | ········ | 33852 | ········toString()·{ |
33839 | ············ | 33853 | ············return·this.str; |
33840 | ········ | 33854 | ········} |
33841 | ········ | 33855 | ········emptyStr()·{ |
33856 | ············if·(this._items.length·>·1) | ||
33842 | ················return·false; | 33857 | ················return·false; |
33858 | ············const·item·=·this._items[0]; | ||
33859 | ············return·item·===·""·||·item·===·'""'; | ||
33843 | ············} | ||
33844 | ············get·names()·{ | ||
33845 | ················return·{ | ||
33846 | ····················[this.str]:·1 | ||
33847 | ················}; | ||
33848 | ············} | ||
33849 | ········} | 33860 | ········} |
33850 | ········exports.Name·=·Name; | ||
33851 | ········class·_Code·extends·_CodeOrName·{ | ||
33852 | ············constructor(code)·{ | ||
33853 | ················super(); | ||
33854 | ················this._items·=·typeof·code·===·"string"·?·[code]·:·code; | ||
33855 | ············} | ||
33856 | ············toString()·{ | ||
33857 | ················return·this.str; | ||
33858 | ············} | ||
33859 | ············emptyStr()·{ | ||
33860 | ················if·(this._items.length·>·1) | ||
33861 | ····················return·false; | ||
33862 | ················const·item·=·this._items[0]; | ||
33863 | ················return·item·===·""·||·item·===·'""'; | ||
33864 | ············} | ||
33865 | ········ | 33861 | ········get·str()·{ |
33866 | ············ | 33862 | ············var·_a; |
33867 | ············ | 33863 | ············return·((_a·=·this._str)·!==·null·&&·_a·!==·void·0·?·_a·:·(this._str·=·this._items.reduce((s,·c)·=>·`${s}${c}`,·""))); |
33868 | ············} | ||
33869 | ············get·names()·{ | ||
33870 | ················var·_a; | ||
33871 | ················return·((_a·=·this._names)·!==·null·&&·_a·!==·void·0·?·_a·:·(this._names·=·this._items.reduce((names,·c)·=>·{ | ||
33872 | ····················if·(c·instanceof·Name) | ||
33873 | ························names[c.str]·=·(names[c.str]·||·0)·+·1; | ||
33874 | ····················return·names; | ||
33875 | ················},·{}))); | ||
33876 | ············} | ||
33877 | ········} | 33864 | ········} |
33865 | ········get·names()·{ | ||
33866 | ············var·_a; | ||
33867 | ············return·((_a·=·this._names)·!==·null·&&·_a·!==·void·0·?·_a·:·(this._names·=·this._items.reduce((names,·c)·=>·{ | ||
33868 | ················if·(c·instanceof·Name) | ||
33869 | ····················names[c.str]·=·(names[c.str]·||·0)·+·1; | ||
33870 | ················return·names; | ||
33871 | ············},·{}))); | ||
33872 | ········} | ||
33873 | ····} | ||
33878 | ···· | 33874 | ····exports._Code·=·_Code; |
33879 | ···· | 33875 | ····exports.nil·=·new·_Code(""); |
33880 | ···· | 33876 | ····function·_(strs,·...args)·{ |
33881 | ········ | 33877 | ········const·code·=·[strs[0]]; |
33882 | ········ | 33878 | ········let·i·=·0; |
33883 | ········ | 33879 | ········while·(i·<·args.length)·{ |
33884 | ············ | 33880 | ············addCodeArg(code,·args[i]); |
33885 | ············ | 33881 | ············code.push(strs[++i]); |
33886 | ············} | ||
33887 | ············return·new·_Code(code); | ||
33888 | ········} | 33882 | ········} |
33883 | ········return·new·_Code(code); | ||
33884 | ····} | ||
33889 | ···· | 33885 | ····exports._·=·_; |
33890 | ···· | 33886 | ····const·plus·=·new·_Code("+"); |
33891 | ···· | 33887 | ····function·str(strs,·...args)·{ |
33892 | ········ | 33888 | ········const·expr·=·[safeStringify(strs[0])]; |
33893 | ········ | 33889 | ········let·i·=·0; |
33894 | ········ | 33890 | ········while·(i·<·args.length)·{ |
33895 | ············ | 33891 | ············expr.push(plus); |
33896 | ············ | 33892 | ············addCodeArg(expr,·args[i]); |
33897 | ············ | 33893 | ············expr.push(plus,·safeStringify(strs[++i])); |
33898 | ············} | ||
33899 | ············optimize(expr); | ||
33900 | ············return·new·_Code(expr); | ||
33901 | ········} | 33894 | ········} |
33895 | ········optimize(expr); | ||
33896 | ········return·new·_Code(expr); | ||
Max diff block lines reached; 10319/17563 bytes (58.75%) of diff not shown. |
Offset 33874, 204 lines modified | Offset 33874, 197 lines modified | ||
33874 | var·errors·=·{}; | 33874 | var·errors·=·{}; |
33875 | var·codegen·=·{}; | 33875 | var·codegen·=·{}; |
33876 | var·code$1·=·{}; | 33876 | var·code$1·=·{}; |
33877 | var·hasRequiredCode$1; | ||
33878 | function·requireCode$1()·{ | ||
33879 | ····if·(hasRequiredCode$1)·return·code$1; | ||
33880 | ····hasRequiredCode$1·=·1; | ||
33881 | 33877 | (function(exports)·{ | |
33882 | ···· | 33878 | ····Object.defineProperty(exports,·"__esModule",·{ |
33883 | ········ | 33879 | ········value:·true |
33884 | ···· | 33880 | ····}); |
33885 | ···· | 33881 | ····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; |
33886 | ···· | 33882 | ····class·_CodeOrName·{} |
33887 | ···· | 33883 | ····exports._CodeOrName·=·_CodeOrName; |
33888 | ···· | 33884 | ····exports.IDENTIFIER·=·/^[a-z$_][a-z$_0-9]*$/i; |
33889 | ···· | 33885 | ····class·Name·extends·_CodeOrName·{ |
33890 | ········ | 33886 | ········constructor(s)·{ |
33891 | ············ | 33887 | ············super(); |
33892 | ············ | 33888 | ············if·(!exports.IDENTIFIER.test(s)) |
33893 | ················ | 33889 | ················throw·new·Error("CodeGen:·name·must·be·a·valid·identifier"); |
33894 | ············ | 33890 | ············this.str·=·s; |
33891 | ········} | ||
33892 | ········toString()·{ | ||
33893 | ············return·this.str; | ||
33894 | ········} | ||
33895 | ········emptyStr()·{ | ||
33896 | ············return·false; | ||
33897 | ········} | ||
33898 | ········get·names()·{ | ||
33899 | ············return·{ | ||
33900 | ················[this.str]:·1 | ||
33895 | ············} | 33901 | ············}; |
33902 | ········} | ||
33903 | ····} | ||
33904 | ····exports.Name·=·Name; | ||
33905 | ····class·_Code·extends·_CodeOrName·{ | ||
33906 | ········constructor(code)·{ | ||
33907 | ············super(); | ||
33908 | ············this._items·=·typeof·code·===·"string"·?·[code]·:·code; | ||
33909 | ········} | ||
33896 | ········ | 33910 | ········toString()·{ |
33897 | ············ | 33911 | ············return·this.str; |
33898 | ········ | 33912 | ········} |
33899 | ········ | 33913 | ········emptyStr()·{ |
33914 | ············if·(this._items.length·>·1) | ||
33900 | ················return·false; | 33915 | ················return·false; |
33916 | ············const·item·=·this._items[0]; | ||
33917 | ············return·item·===·""·||·item·===·'""'; | ||
33901 | ············} | ||
33902 | ············get·names()·{ | ||
33903 | ················return·{ | ||
33904 | ····················[this.str]:·1 | ||
33905 | ················}; | ||
33906 | ············} | ||
33907 | ········} | 33918 | ········} |
33908 | ········exports.Name·=·Name; | ||
33909 | ········class·_Code·extends·_CodeOrName·{ | ||
33910 | ············constructor(code)·{ | ||
33911 | ················super(); | ||
33912 | ················this._items·=·typeof·code·===·"string"·?·[code]·:·code; | ||
33913 | ············} | ||
33914 | ············toString()·{ | ||
33915 | ················return·this.str; | ||
33916 | ············} | ||
33917 | ············emptyStr()·{ | ||
33918 | ················if·(this._items.length·>·1) | ||
33919 | ····················return·false; | ||
33920 | ················const·item·=·this._items[0]; | ||
33921 | ················return·item·===·""·||·item·===·'""'; | ||
33922 | ············} | ||
33923 | ········ | 33919 | ········get·str()·{ |
33924 | ············ | 33920 | ············var·_a; |
33925 | ············ | 33921 | ············return·((_a·=·this._str)·!==·null·&&·_a·!==·void·0·?·_a·:·(this._str·=·this._items.reduce((s,·c)·=>·`${s}${c}`,·""))); |
33926 | ············} | ||
33927 | ············get·names()·{ | ||
33928 | ················var·_a; | ||
33929 | ················return·((_a·=·this._names)·!==·null·&&·_a·!==·void·0·?·_a·:·(this._names·=·this._items.reduce((names,·c)·=>·{ | ||
33930 | ····················if·(c·instanceof·Name) | ||
33931 | ························names[c.str]·=·(names[c.str]·||·0)·+·1; | ||
33932 | ····················return·names; | ||
33933 | ················},·{}))); | ||
33934 | ············} | ||
33935 | ········} | 33922 | ········} |
33923 | ········get·names()·{ | ||
33924 | ············var·_a; | ||
33925 | ············return·((_a·=·this._names)·!==·null·&&·_a·!==·void·0·?·_a·:·(this._names·=·this._items.reduce((names,·c)·=>·{ | ||
33926 | ················if·(c·instanceof·Name) | ||
33927 | ····················names[c.str]·=·(names[c.str]·||·0)·+·1; | ||
33928 | ················return·names; | ||
33936 | ········exports._Code·=·_Code; | ||
33937 | ········exports.nil·=·new·_Code(""); | ||
33938 | ········function·_(strs,·...args)·{ | ||
33939 | ············const·code·=·[strs[0]]; | ||
33940 | ············let·i·=·0; | ||
33941 | ············while·(i·<·args.length)·{ | ||
33942 | ················addCodeArg(code,·args[i]); | ||
33943 | ················code.push(strs[++i]); | ||
33944 | ············} | 33929 | ············},·{}))); |
33945 | ············return·new·_Code(code); | ||
33946 | ········} | 33930 | ········} |
33931 | ····} | ||
33947 | ···· | 33932 | ····exports._Code·=·_Code; |
33948 | ···· | 33933 | ····exports.nil·=·new·_Code(""); |
33949 | ···· | 33934 | ····function·_(strs,·...args)·{ |
33950 | ········ | 33935 | ········const·code·=·[strs[0]]; |
33951 | ········ | 33936 | ········let·i·=·0; |
33952 | ········ | 33937 | ········while·(i·<·args.length)·{ |
33953 | ················expr.push(plus); | ||
33954 | ············ | 33938 | ············addCodeArg(code,·args[i]); |
33939 | ············code.push(strs[++i]); | ||
33955 | ················expr.push(plus,·safeStringify(strs[++i])); | ||
33956 | ············} | ||
33957 | ············optimize(expr); | ||
33958 | ············return·new·_Code(expr); | ||
33959 | ········} | 33940 | ········} |
33960 | ········e | 33941 | ········return·new·_Code(code); |
33942 | ····} | ||
33943 | ····exports._·=·_; | ||
33944 | ····const·plus·=·new·_Code("+"); | ||
Max diff block lines reached; 32385/38851 bytes (83.36%) of diff not shown. |