Offset 1, 2 lines modified | Offset 1, 2 lines modified | ||
1 | · | 1 | ·3476f9b71caed2fa6ac32099b6dd5c1b·350088·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·····760 | 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···34 | 3 | -rw-r--r--···0········0········0···342292·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 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 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)··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)·····2296·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)·····2296·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)·····1888·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)·····1888·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 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; 24157/31430 bytes (76.86%) 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; | ||
33915 | function·requireCode$1()·{ | ||
33916 | ····if·(hasRequiredCode$1)·return·code$1; | ||
33917 | ····hasRequiredCode$1·=·1; | ||
33914 | (function(exports)·{ | 33918 | ····(function(exports)·{ |
33915 | ····Object.defineProperty(exports,·"__esModule",·{ | 33919 | ········Object.defineProperty(exports,·"__esModule",·{ |
33916 | ········value:·true | 33920 | ············value:·true |
33917 | ····}); | 33921 | ········}); |
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; | 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; |
33919 | ····class·_CodeOrName·{} | 33923 | ········class·_CodeOrName·{} |
33920 | ····exports._CodeOrName·=·_CodeOrName; | 33924 | ········exports._CodeOrName·=·_CodeOrName; |
33921 | ····exports.IDENTIFIER·=·/^[a-z$_][a-z$_0-9]*$/i; | 33925 | ········exports.IDENTIFIER·=·/^[a-z$_][a-z$_0-9]*$/i; |
33922 | ····class·Name·extends·_CodeOrName·{ | 33926 | ········class·Name·extends·_CodeOrName·{ |
33923 | ········constructor(s)·{ | 33927 | ············constructor(s)·{ |
33924 | ············super(); | 33928 | ················super(); |
33925 | ············if·(!exports.IDENTIFIER.test(s)) | 33929 | ················if·(!exports.IDENTIFIER.test(s)) |
33926 | ················throw·new·Error("CodeGen:·name·must·be·a·valid·identifier"); | 33930 | ····················throw·new·Error("CodeGen:·name·must·be·a·valid·identifier"); |
33927 | ············this.str·=·s; | 33931 | ················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 | ············} | 33932 | ············} |
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()·{ | 33933 | ············toString()·{ |
33948 | ············return·this.str; | 33934 | ················return·this.str; |
33949 | ········} | 33935 | ············} |
33950 | ········emptyStr()·{ | 33936 | ············emptyStr()·{ |
33951 | ············if·(this._items.length·>·1) | ||
33952 | ················return·false; | 33937 | ················return·false; |
33953 | ············const·item·=·this._items[0]; | ||
33954 | ············ | 33938 | ············} |
33939 | ············get·names()·{ | ||
33940 | ················return·{ | ||
33941 | ····················[this.str]:·1 | ||
33942 | ················}; | ||
33943 | ············} | ||
33955 | ········} | 33944 | ········} |
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()·{ | ||
33955 | ················if·(this._items.length·>·1) | ||
33956 | ····················return·false; | ||
33957 | ················const·item·=·this._items[0]; | ||
33958 | ················return·item·===·""·||·item·===·'""'; | ||
33959 | ············} | ||
33956 | ········get·str()·{ | 33960 | ············get·str()·{ |
33957 | ············var·_a; | 33961 | ················var·_a; |
33958 | ············return·((_a·=·this._str)·!==·null·&&·_a·!==·void·0·?·_a·:·(this._str·=·this._items.reduce((s,·c)·=>·`${s}${c}`,·""))); | 33962 | ················return·((_a·=·this._str)·!==·null·&&·_a·!==·void·0·?·_a·:·(this._str·=·this._items.reduce((s,·c)·=>·`${s}${c}`,·""))); |
33963 | ············} | ||
33964 | ············get·names()·{ | ||
33965 | ················var·_a; | ||
33966 | ················return·((_a·=·this._names)·!==·null·&&·_a·!==·void·0·?·_a·:·(this._names·=·this._items.reduce((names,·c)·=>·{ | ||
33967 | ····················if·(c·instanceof·Name) | ||
33968 | ························names[c.str]·=·(names[c.str]·||·0)·+·1; | ||
33969 | ····················return·names; | ||
33970 | ················},·{}))); | ||
33971 | ············} | ||
33959 | ········} | 33972 | ········} |
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 | ········ | 33973 | ········exports._Code·=·_Code; |
33974 | ········exports.nil·=·new·_Code(""); | ||
33975 | ········function·_(strs,·...args)·{ | ||
33976 | ············const·code·=·[strs[0]]; | ||
33977 | ············let·i·=·0; | ||
33978 | ············while·(i·<·args.length)·{ | ||
33979 | ················addCodeArg(code,·args[i]); | ||
33980 | ················code.push(strs[++i]); | ||
33966 | ············} | 33981 | ············} |
33982 | ············return·new·_Code(code); | ||
33967 | ········} | 33983 | ········} |
33968 | ····} | ||
33969 | ····exports._ | 33984 | ········exports._·=·_; |
33970 | ···· | 33985 | ········const·plus·=·new·_Code("+"); |
33971 | ····function· | 33986 | ········function·str(strs,·...args)·{ |
33972 | ········const· | 33987 | ············const·expr·=·[safeStringify(strs[0])]; |
33973 | ········let·i·=·0; | 33988 | ············let·i·=·0; |
33974 | ········while·(i·<·args.length)·{ | 33989 | ············while·(i·<·args.length)·{ |
33990 | ················expr.push(plus); | ||
33975 | ············addCodeArg( | 33991 | ················addCodeArg(expr,·args[i]); |
33976 | ············ | 33992 | ················expr.push(plus,·safeStringify(strs[++i])); |
33993 | ············} | ||
33994 | ············optimize(expr); | ||
33995 | ············return·new·_Code(expr); | ||
33977 | ········} | 33996 | ········} |
33997 | ········exports.str·=·str; | ||
33978 | ········return·new·_Code(code); | ||
33979 | ····} | ||
33980 | ····exports._·=·_; | ||
33981 | ····const·plus·=·new·_Code("+"); | ||
33982 | ····function·str(strs,·...args)·{ | ||
33983 | ········const·expr·=·[safeStringify(strs[0])]; | ||
Max diff block lines reached; 32394/38860 bytes (83.36%) of diff not shown. |