Offset 1, 2 lines modified | Offset 1, 2 lines modified | ||
1 | · | 1 | ·95783849922efa101312894349528545·350204·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·····7604·2023-12-18·07:52:01.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····7604·2023-12-18·07:52:01.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···342 | 3 | -rw-r--r--···0········0········0···342408·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:·12045 |
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 375, 15 lines modified | Offset 375, 15 lines modified | ||
375 | -rw-r--r--···0·root·········(0)·root·········(0)····54805·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/utils/src/types.ts | 375 | -rw-r--r--···0·root·········(0)·root·········(0)····54805·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/utils/src/types.ts |
376 | -rw-r--r--···0·root·········(0)·root·········(0)······930·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/utils/src/unwrapErrorHandler.ts | 376 | -rw-r--r--···0·root·········(0)·root·········(0)······930·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/utils/src/unwrapErrorHandler.ts |
377 | -rw-r--r--···0·root·········(0)·root·········(0)·····1063·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/utils/src/utcToLocal.ts | 377 | -rw-r--r--···0·root·········(0)·root·········(0)·····1063·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/utils/src/utcToLocal.ts |
378 | -rw-r--r--···0·root·········(0)·root·········(0)·····1468·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/utils/src/validationDataMerge.ts | 378 | -rw-r--r--···0·root·········(0)·root·········(0)·····1468·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/utils/src/validationDataMerge.ts |
379 | -rw-r--r--···0·root·········(0)·root·········(0)·····1968·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/utils/src/withIdRefPrefix.ts | 379 | -rw-r--r--···0·root·········(0)·root·········(0)·····1968·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/utils/src/withIdRefPrefix.ts |
380 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/ | 380 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/ |
381 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/dist/ | 381 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/dist/ |
382 | -rw-r--r--···0·root·········(0)·root·········(0)··1366 | 382 | -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 |
383 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/dist/lib/ | 383 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv6/dist/lib/ |
384 | -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 | 384 | -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 |
385 | -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 | 385 | -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 |
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/ |
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)··1473 | 425 | -rw-r--r--···0·root·········(0)·root·········(0)··1473857·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 33859, 197 lines modified | Offset 33859, 204 lines modified | ||
33859 | var·errors·=·{}; | 33859 | var·errors·=·{}; |
33860 | var·codegen·=·{}; | 33860 | var·codegen·=·{}; |
33861 | var·code$1·=·{}; | 33861 | var·code$1·=·{}; |
33862 | var·hasRequiredCode$1; | ||
33862 | (function(exports)·{ | ||
33863 | ····Object.defineProperty(exports,·"__esModule",·{ | ||
33864 | ········value:·true | ||
33865 | ····}); | ||
33866 | ····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; | ||
33867 | ····class·_CodeOrName·{} | ||
33868 | ····exports._CodeOrName·=·_CodeOrName; | ||
33869 | ····exports.IDENTIFIER·=·/^[a-z$_][a-z$_0-9]*$/i; | ||
33870 | ····class·Name·extends·_CodeOrName·{ | ||
33871 | ········constructor(s)·{ | ||
33872 | ············super(); | ||
33873 | ············if·(!exports.IDENTIFIER.test(s)) | ||
33874 | ················throw·new·Error("CodeGen:·name·must·be·a·valid·identifier"); | ||
33875 | ············this.str·=·s; | ||
33876 | ········} | ||
33877 | ········toString()·{ | ||
33878 | ············return·this.str; | ||
33879 | ········} | ||
33880 | ········emptyStr()·{ | ||
33881 | ············return·false; | ||
33882 | ········} | ||
33883 | ········get·names()·{ | ||
33884 | ············return·{ | ||
33885 | ················[this.str]:·1 | ||
33886 | ············}; | ||
33887 | ········} | ||
33888 | ····} | ||
33889 | ····exports.Name·=·Name; | ||
33890 | ····class·_Code·extends·_CodeOrName·{ | ||
33891 | ········constructor(code)·{ | ||
33892 | ············super(); | ||
33893 | ············this._items·=·typeof·code·===·"string"·?·[code]·:·code; | ||
33894 | ········} | ||
33895 | ········toString()·{ | ||
33896 | ············return·this.str; | ||
33897 | ········} | ||
33898 | ········emptyStr()·{ | ||
33899 | ············if·(this._items.length·>·1) | ||
33900 | ················return·false; | ||
33901 | ············const·item·=·this._items[0]; | ||
33902 | ············return·item·===·""·||·item·===·'""'; | ||
33903 | ········} | ||
33904 | ········get·str()·{ | ||
33905 | ············var·_a; | ||
33906 | ············return·((_a·=·this._str)·!==·null·&&·_a·!==·void·0·?·_a·:·(this._str·=·this._items.reduce((s,·c)·=>·`${s}${c}`,·""))); | ||
33907 | ········} | ||
33908 | ········get·names()·{ | ||
33909 | ············var·_a; | ||
33910 | ············return·((_a·=·this._names)·!==·null·&&·_a·!==·void·0·?·_a·:·(this._names·=·this._items.reduce((names,·c)·=>·{ | ||
33911 | ················if·(c·instanceof·Name) | ||
33912 | ····················names[c.str]·=·(names[c.str]·||·0)·+·1; | ||
33913 | ················return·names; | ||
33914 | ············},·{}))); | ||
33915 | ········} | ||
33916 | ····} | ||
33917 | ····exports._Code·=·_Code; | ||
33918 | ····exports.nil·=·new·_Code(""); | ||
33919 | ····function·_(strs,·...args)·{ | ||
33920 | ········const·code·=·[strs[0]]; | ||
33921 | ········let·i·=·0; | ||
33922 | ········while·(i·<·args.length)·{ | ||
33923 | ············addCodeArg(code,·args[i]); | ||
33924 | ············code.push(strs[++i]); | ||
33925 | ········} | ||
33926 | ········return·new·_Code(code); | ||
33927 | ····} | ||
33928 | ····exports._·=·_; | ||
33929 | ····const·plus·=·new·_Code("+"); | ||
33930 | ····function·str(strs,·...args)·{ | ||
33931 | ········const·expr·=·[safeStringify(strs[0])]; | ||
33932 | ········let·i·=·0; | ||
33933 | ········while·(i·<·args.length)·{ | ||
33934 | ············expr.push(plus); | ||
33935 | ············addCodeArg(expr,·args[i]); | ||
33936 | 33863 | function·requireCode$1()·{ | |
33864 | ····if·(hasRequiredCode$1)·return·code$1; | ||
33865 | ····hasRequiredCode$1·=·1; | ||
33866 | ····(function(exports)·{ | ||
33867 | ········Object.defineProperty(exports,·"__esModule",·{ | ||
33868 | ············value:·true | ||
33869 | ········}); | ||
33870 | ········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; | ||
33871 | ········class·_CodeOrName·{} | ||
33872 | ········exports._CodeOrName·=·_CodeOrName; | ||
33873 | ········exports.IDENTIFIER·=·/^[a-z$_][a-z$_0-9]*$/i; | ||
33874 | ········class·Name·extends·_CodeOrName·{ | ||
33875 | ············constructor(s)·{ | ||
33876 | ················super(); | ||
33877 | ················if·(!exports.IDENTIFIER.test(s)) | ||
33878 | ····················throw·new·Error("CodeGen:·name·must·be·a·valid·identifier"); | ||
33879 | ················this.str·=·s; | ||
33880 | ············} | ||
33881 | ············toString()·{ | ||
33882 | ················return·this.str; | ||
33883 | ············} | ||
33884 | ············emptyStr()·{ | ||
33885 | ················return·false; | ||
33886 | ············} | ||
33887 | ············get·names()·{ | ||
33888 | ················return·{ | ||
33889 | ····················[this.str]:·1 | ||
33890 | ················}; | ||
33891 | ············} | ||
33937 | ········} | 33892 | ········} |
33938 | ········optimize(expr); | ||
33939 | ········return·new·_Code(expr); | ||
33940 | ····} | ||
33941 | ····exports. | 33893 | ········exports.Name·=·Name; |
33894 | ········class·_Code·extends·_CodeOrName·{ | ||
33895 | ············constructor(code)·{ | ||
33896 | ················super(); | ||
33897 | ················this._items·=·typeof·code·===·"string"·?·[code]·:·code; | ||
33898 | ············} | ||
33899 | ············toString()·{ | ||
33900 | ················return·this.str; | ||
33901 | ············} | ||
33902 | ············emptyStr()·{ | ||
Max diff block lines reached; 6814/14087 bytes (48.37%) of diff not shown. |
Offset 33911, 197 lines modified | Offset 33911, 204 lines modified | ||
33911 | var·errors·=·{}; | 33911 | var·errors·=·{}; |
33912 | var·codegen·=·{}; | 33912 | var·codegen·=·{}; |
33913 | var·code$1·=·{}; | 33913 | var·code$1·=·{}; |
33914 | var·hasRequiredCode$1; | ||
33914 | (function(exports)·{ | ||
33915 | ····Object.defineProperty(exports,·"__esModule",·{ | ||
33916 | ········value:·true | ||
33917 | ····}); | ||
33918 | ····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; | ||
33919 | ····class·_CodeOrName·{} | ||
33920 | ····exports._CodeOrName·=·_CodeOrName; | ||
33921 | ····exports.IDENTIFIER·=·/^[a-z$_][a-z$_0-9]*$/i; | ||
33922 | ····class·Name·extends·_CodeOrName·{ | ||
33923 | ········constructor(s)·{ | ||
33924 | ············super(); | ||
33925 | ············if·(!exports.IDENTIFIER.test(s)) | ||
33926 | ················throw·new·Error("CodeGen:·name·must·be·a·valid·identifier"); | ||
33927 | ············this.str·=·s; | ||
33928 | ········} | ||
33929 | ········toString()·{ | ||
33930 | ············return·this.str; | ||
33931 | ········} | ||
33932 | ········emptyStr()·{ | ||
33933 | ············return·false; | ||
33934 | ········} | ||
33935 | ········get·names()·{ | ||
33936 | ············return·{ | ||
33937 | ················[this.str]:·1 | ||
33938 | ············}; | ||
33939 | ········} | ||
33940 | ····} | ||
33941 | ····exports.Name·=·Name; | ||
33942 | ····class·_Code·extends·_CodeOrName·{ | ||
33943 | ········constructor(code)·{ | ||
33944 | ············super(); | ||
33945 | ············this._items·=·typeof·code·===·"string"·?·[code]·:·code; | ||
33946 | ········} | ||
33947 | ········toString()·{ | ||
33948 | ············return·this.str; | ||
33949 | ········} | ||
33950 | ········emptyStr()·{ | ||
33951 | ············if·(this._items.length·>·1) | ||
33952 | ················return·false; | ||
33953 | ············const·item·=·this._items[0]; | ||
33954 | ············return·item·===·""·||·item·===·'""'; | ||
33955 | ········} | ||
33956 | ········get·str()·{ | ||
33957 | ············var·_a; | ||
33958 | ············return·((_a·=·this._str)·!==·null·&&·_a·!==·void·0·?·_a·:·(this._str·=·this._items.reduce((s,·c)·=>·`${s}${c}`,·""))); | ||
33959 | ········} | ||
33960 | ········get·names()·{ | ||
33961 | ············var·_a; | ||
33962 | ············return·((_a·=·this._names)·!==·null·&&·_a·!==·void·0·?·_a·:·(this._names·=·this._items.reduce((names,·c)·=>·{ | ||
33963 | ················if·(c·instanceof·Name) | ||
33964 | ····················names[c.str]·=·(names[c.str]·||·0)·+·1; | ||
33965 | ················return·names; | ||
33966 | ············},·{}))); | ||
33967 | ········} | ||
33968 | ····} | ||
33969 | ····exports._Code·=·_Code; | ||
33970 | ····exports.nil·=·new·_Code(""); | ||
33971 | ····function·_(strs,·...args)·{ | ||
33972 | ········const·code·=·[strs[0]]; | ||
33973 | ········let·i·=·0; | ||
33974 | ········while·(i·<·args.length)·{ | ||
33975 | ············addCodeArg(code,·args[i]); | ||
33976 | ············code.push(strs[++i]); | ||
33977 | ········} | ||
33978 | ········return·new·_Code(code); | ||
33979 | ····} | ||
33980 | ····exports._·=·_; | ||
33981 | ····const·plus·=·new·_Code("+"); | ||
33982 | ····function·str(strs,·...args)·{ | ||
33983 | ········const·expr·=·[safeStringify(strs[0])]; | ||
33984 | ········let·i·=·0; | ||
33985 | ········while·(i·<·args.length)·{ | ||
33986 | ············expr.push(plus); | ||
33987 | ············addCodeArg(expr,·args[i]); | ||
33988 | 33915 | function·requireCode$1()·{ | |
33916 | ····if·(hasRequiredCode$1)·return·code$1; | ||
33917 | ····hasRequiredCode$1·=·1; | ||
33918 | ····(function(exports)·{ | ||
33919 | ········Object.defineProperty(exports,·"__esModule",·{ | ||
33920 | ············value:·true | ||
33921 | ········}); | ||
33922 | ········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; | ||
33923 | ········class·_CodeOrName·{} | ||
33924 | ········exports._CodeOrName·=·_CodeOrName; | ||
33925 | ········exports.IDENTIFIER·=·/^[a-z$_][a-z$_0-9]*$/i; | ||
33926 | ········class·Name·extends·_CodeOrName·{ | ||
33927 | ············constructor(s)·{ | ||
33928 | ················super(); | ||
33929 | ················if·(!exports.IDENTIFIER.test(s)) | ||
33930 | ····················throw·new·Error("CodeGen:·name·must·be·a·valid·identifier"); | ||
33931 | ················this.str·=·s; | ||
33932 | ············} | ||
33933 | ············toString()·{ | ||
33934 | ················return·this.str; | ||
33935 | ············} | ||
33936 | ············emptyStr()·{ | ||
33937 | ················return·false; | ||
33938 | ············} | ||
33939 | ············get·names()·{ | ||
33940 | ················return·{ | ||
33941 | ····················[this.str]:·1 | ||
33942 | ················}; | ||
33943 | ············} | ||
33989 | ········} | 33944 | ········} |
33990 | ········optimize(expr); | ||
33991 | ········return·new·_Code(expr); | ||
33992 | ····} | ||
33993 | ····exports. | 33945 | ········exports.Name·=·Name; |
33946 | ········class·_Code·extends·_CodeOrName·{ | ||
33947 | ············constructor(code)·{ | ||
33948 | ················super(); | ||
33949 | ················this._items·=·typeof·code·===·"string"·?·[code]·:·code; | ||
33950 | ············} | ||
33951 | ············toString()·{ | ||
33952 | ················return·this.str; | ||
33953 | ············} | ||
33954 | ············emptyStr()·{ | ||
Max diff block lines reached; 6814/14087 bytes (48.37%) of diff not shown. |