Offset 1, 2 lines modified | Offset 1, 2 lines modified | ||
1 | · | 1 | ·5df52611c82e56f66e6f335c79fb3d0b·350164·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·····7608·2023-12-18·07:52:01.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····7608·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···342364·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 399, 15 lines modified | Offset 399, 15 lines modified | ||
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 |
401 | -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 | 401 | -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 |
402 | -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 | 402 | -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 |
403 | -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 | 403 | -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 |
404 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/ | 404 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/ |
405 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/dist/ | 405 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/dist/ |
406 | -rw-r--r--···0·root·········(0)·root·········(0)··1473 | 406 | -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 |
407 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/dist/lib/ | 407 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-12-18·07:52:01.000000·./usr/share/nodejs/@rjsf/validator-ajv8/dist/lib/ |
408 | -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 | 408 | -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 |
409 | -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 | 409 | -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 |
410 | -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 | 410 | -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 |
411 | -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 | 411 | -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 |
412 | -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 | 412 | -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 |
413 | -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 | 413 | -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 |
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 33917, 197 lines modified | Offset 33917, 204 lines modified | ||
33917 | var·errors·=·{}; | 33917 | var·errors·=·{}; |
33918 | var·codegen·=·{}; | 33918 | var·codegen·=·{}; |
33919 | var·code$1·=·{}; | 33919 | var·code$1·=·{}; |
33920 | var·hasRequiredCode$1; | ||
33920 | (function(exports)·{ | ||
33921 | ····Object.defineProperty(exports,·"__esModule",·{ | ||
33922 | ········value:·true | ||
33923 | ····}); | ||
33924 | ····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; | ||
33925 | ····class·_CodeOrName·{} | ||
33926 | ····exports._CodeOrName·=·_CodeOrName; | ||
33927 | ····exports.IDENTIFIER·=·/^[a-z$_][a-z$_0-9]*$/i; | ||
33928 | ····class·Name·extends·_CodeOrName·{ | ||
33929 | ········constructor(s)·{ | ||
33930 | ············super(); | ||
33931 | ············if·(!exports.IDENTIFIER.test(s)) | ||
33932 | ················throw·new·Error("CodeGen:·name·must·be·a·valid·identifier"); | ||
33933 | ············this.str·=·s; | ||
33934 | ········} | ||
33935 | ········toString()·{ | ||
33936 | ············return·this.str; | ||
33937 | ········} | ||
33938 | ········emptyStr()·{ | ||
33939 | ············return·false; | ||
33940 | ········} | ||
33941 | ········get·names()·{ | ||
33942 | ············return·{ | ||
33943 | ················[this.str]:·1 | ||
33944 | ············}; | ||
33945 | ········} | ||
33946 | ····} | ||
33947 | ····exports.Name·=·Name; | ||
33948 | ····class·_Code·extends·_CodeOrName·{ | ||
33949 | ········constructor(code)·{ | ||
33950 | ············super(); | ||
33951 | ············this._items·=·typeof·code·===·"string"·?·[code]·:·code; | ||
33952 | ········} | ||
33953 | ········toString()·{ | ||
33954 | ············return·this.str; | ||
33955 | ········} | ||
33956 | ········emptyStr()·{ | ||
33957 | ············if·(this._items.length·>·1) | ||
33958 | ················return·false; | ||
33959 | ············const·item·=·this._items[0]; | ||
33960 | ············return·item·===·""·||·item·===·'""'; | ||
33961 | ········} | ||
33962 | ········get·str()·{ | ||
33963 | ············var·_a; | ||
33964 | ············return·((_a·=·this._str)·!==·null·&&·_a·!==·void·0·?·_a·:·(this._str·=·this._items.reduce((s,·c)·=>·`${s}${c}`,·""))); | ||
33965 | ········} | ||
33966 | ········get·names()·{ | ||
33967 | ············var·_a; | ||
33968 | ············return·((_a·=·this._names)·!==·null·&&·_a·!==·void·0·?·_a·:·(this._names·=·this._items.reduce((names,·c)·=>·{ | ||
33969 | ················if·(c·instanceof·Name) | ||
33970 | ····················names[c.str]·=·(names[c.str]·||·0)·+·1; | ||
33971 | ················return·names; | ||
33972 | ············},·{}))); | ||
33973 | ········} | ||
33974 | ····} | ||
33975 | ····exports._Code·=·_Code; | ||
33976 | ····exports.nil·=·new·_Code(""); | ||
33977 | ····function·_(strs,·...args)·{ | ||
33978 | ········const·code·=·[strs[0]]; | ||
33979 | ········let·i·=·0; | ||
33980 | ········while·(i·<·args.length)·{ | ||
33981 | ············addCodeArg(code,·args[i]); | ||
33982 | ············code.push(strs[++i]); | ||
33983 | ········} | ||
33984 | ········return·new·_Code(code); | ||
33985 | ····} | ||
33986 | ····exports._·=·_; | ||
33987 | ····const·plus·=·new·_Code("+"); | ||
33988 | ····function·str(strs,·...args)·{ | ||
33989 | ········const·expr·=·[safeStringify(strs[0])]; | ||
33990 | ········let·i·=·0; | ||
33991 | ········while·(i·<·args.length)·{ | ||
33992 | ············expr.push(plus); | ||
33993 | ············addCodeArg(expr,·args[i]); | ||
33994 | 33921 | function·requireCode$1()·{ | |
33922 | ····if·(hasRequiredCode$1)·return·code$1; | ||
33923 | ····hasRequiredCode$1·=·1; | ||
33924 | ····(function(exports)·{ | ||
33925 | ········Object.defineProperty(exports,·"__esModule",·{ | ||
33926 | ············value:·true | ||
33927 | ········}); | ||
33928 | ········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; | ||
33929 | ········class·_CodeOrName·{} | ||
33930 | ········exports._CodeOrName·=·_CodeOrName; | ||
33931 | ········exports.IDENTIFIER·=·/^[a-z$_][a-z$_0-9]*$/i; | ||
33932 | ········class·Name·extends·_CodeOrName·{ | ||
33933 | ············constructor(s)·{ | ||
33934 | ················super(); | ||
33935 | ················if·(!exports.IDENTIFIER.test(s)) | ||
33936 | ····················throw·new·Error("CodeGen:·name·must·be·a·valid·identifier"); | ||
33937 | ················this.str·=·s; | ||
33938 | ············} | ||
33939 | ············toString()·{ | ||
33940 | ················return·this.str; | ||
33941 | ············} | ||
33942 | ············emptyStr()·{ | ||
33943 | ················return·false; | ||
33944 | ············} | ||
33945 | ············get·names()·{ | ||
33946 | ················return·{ | ||
33947 | ····················[this.str]:·1 | ||
33948 | ················}; | ||
33949 | ············} | ||
33995 | ········} | 33950 | ········} |
33996 | ········optimize(expr); | ||
33997 | ········return·new·_Code(expr); | ||
33998 | ····} | ||
33999 | ····exports. | 33951 | ········exports.Name·=·Name; |
33952 | ········class·_Code·extends·_CodeOrName·{ | ||
33953 | ············constructor(code)·{ | ||
33954 | ················super(); | ||
33955 | ················this._items·=·typeof·code·===·"string"·?·[code]·:·code; | ||
33956 | ············} | ||
33957 | ············toString()·{ | ||
33958 | ················return·this.str; | ||
33959 | ············} | ||
33960 | ············emptyStr()·{ | ||
Max diff block lines reached; 26736/34009 bytes (78.61%) of diff not shown. |
Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
1 | ··Streams:···········1 | 1 | ··Streams:···········1 |
2 | ··Blocks:············1 | 2 | ··Blocks:············1 |
3 | ··Compressed·size:···33 | 3 | ··Compressed·size:···334.3·KiB·(342364·B) |
4 | ··Uncompressed·size:·11.8·MiB·(12410880·B) | 4 | ··Uncompressed·size:·11.8·MiB·(12410880·B) |
5 | ··Ratio:·············0.028 | 5 | ··Ratio:·············0.028 |
6 | ··Check:·············CRC64 | 6 | ··Check:·············CRC64 |
7 | ··Stream·Padding:····0·B | 7 | ··Stream·Padding:····0·B |
8 | ··Streams: | 8 | ··Streams: |
9 | ····Stream····Blocks······CompOffset····UncompOffset········CompSize······UncompSize··Ratio··Check······Padding | 9 | ····Stream····Blocks······CompOffset····UncompOffset········CompSize······UncompSize··Ratio··Check······Padding |
10 | ·········1·········1···············0···············0··········34 | 10 | ·········1·········1···············0···············0··········342364········12410880··0.028··CRC64············0 |
11 | ··Blocks: | 11 | ··Blocks: |
12 | ····Stream·····Block······CompOffset····UncompOffset·······TotalSize······UncompSize··Ratio··Check | 12 | ····Stream·····Block······CompOffset····UncompOffset·······TotalSize······UncompSize··Ratio··Check |
13 | ·········1·········1··············12···············0··········34 | 13 | ·········1·········1··············12···············0··········342324········12410880··0.028··CRC64 |