| Offset 1, 2 lines modified | Offset 1, 2 lines modified | ||
| 1 | ·98 | 1 | ·9bf857e3dc407b71dabc1c05f4382163·43212·javascript·optional·node-execa_8.0.1+dfsg1+~cs12.0.0-1_all.deb |
| Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
| 1 | -rw-r--r--···0········0········0········4·2023-11-04·14:55:59.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2023-11-04·14:55:59.000000·debian-binary |
| 2 | -rw-r--r--···0········0········0·····1844·2023-11-04·14:55:59.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····1844·2023-11-04·14:55:59.000000·control.tar.xz |
| 3 | -rw-r--r--···0········0········0····41 | 3 | -rw-r--r--···0········0········0····41176·2023-11-04·14:55:59.000000·data.tar.xz |
| Offset 1, 12 lines modified | Offset 1, 12 lines modified | ||
| 1 | Package:·node-execa | 1 | Package:·node-execa |
| 2 | Version:·8.0.1+dfsg1+~cs12.0.0-1 | 2 | Version:·8.0.1+dfsg1+~cs12.0.0-1 |
| 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:·19 | 5 | Installed-Size:·190 |
| 6 | Depends:·node-get-stream·(>=·8.0.0~),·node-is-stream·(>=·3),·node-merge-stream,·node-mimic-fn·(>=·4),·node-npm-run-path·(>=·5.1.0+~4.0.0~),·node-shebang-command,·node-signal-exit·(>=·4~),·node-strip-eof·(>=·3.0.0-4~),·node-which | 6 | Depends:·node-get-stream·(>=·8.0.0~),·node-is-stream·(>=·3),·node-merge-stream,·node-mimic-fn·(>=·4),·node-npm-run-path·(>=·5.1.0+~4.0.0~),·node-shebang-command,·node-signal-exit·(>=·4~),·node-strip-eof·(>=·3.0.0-4~),·node-which |
| 7 | Breaks:·jest·(<<·27.5.1~ds+~cs69.51.22-3~) | 7 | Breaks:·jest·(<<·27.5.1~ds+~cs69.51.22-3~) |
| 8 | Provides:·node-human-signals·(=·6.0.0),·node-onetime·(=·6.0.0) | 8 | Provides:·node-human-signals·(=·6.0.0),·node-onetime·(=·6.0.0) |
| 9 | Section:·javascript | 9 | Section:·javascript |
| 10 | Priority:·optional | 10 | Priority:·optional |
| 11 | Homepage:·https://github.com/sindresorhus/execa | 11 | Homepage:·https://github.com/sindresorhus/execa |
| 12 | Description:·better·`child_process` | 12 | Description:·better·`child_process` |
| Offset 11, 41 lines modified | Offset 11, 41 lines modified | ||
| 11 | -rw-r--r--···0·root·········(0)·root·········(0)·····1774·2023-11-04·14:55:59.000000·./usr/share/doc/node-human-signals/CONTRIBUTING.md | 11 | -rw-r--r--···0·root·········(0)·root·········(0)·····1774·2023-11-04·14:55:59.000000·./usr/share/doc/node-human-signals/CONTRIBUTING.md |
| 12 | -rw-r--r--···0·root·········(0)·root·········(0)·····2445·2023-11-04·14:55:59.000000·./usr/share/doc/node-human-signals/README.md.gz | 12 | -rw-r--r--···0·root·········(0)·root·········(0)·····2445·2023-11-04·14:55:59.000000·./usr/share/doc/node-human-signals/README.md.gz |
| 13 | -rw-r--r--···0·root·········(0)·root·········(0)······481·2023-11-04·14:55:59.000000·./usr/share/doc/node-human-signals/changelog.gz | 13 | -rw-r--r--···0·root·········(0)·root·········(0)······481·2023-11-04·14:55:59.000000·./usr/share/doc/node-human-signals/changelog.gz |
| 14 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/doc/node-onetime/ | 14 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/doc/node-onetime/ |
| 15 | -rw-r--r--···0·root·········(0)·root·········(0)·····1824·2023-11-04·14:55:59.000000·./usr/share/doc/node-onetime/readme.md | 15 | -rw-r--r--···0·root·········(0)·root·········(0)·····1824·2023-11-04·14:55:59.000000·./usr/share/doc/node-onetime/readme.md |
| 16 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/nodejs/ | 16 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/nodejs/ |
| 17 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/ | 17 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/ |
| 18 | -rw-r--r--···0·root·········(0)·root·········(0)····5 | 18 | -rw-r--r--···0·root·········(0)·root·········(0)····54517·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/execa.cjs |
| 19 | -rw-r--r--···0·root·········(0)·root·········(0)······473·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/index.cjs | 19 | -rw-r--r--···0·root·········(0)·root·········(0)······473·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/index.cjs |
| 20 | -rw-r--r--···0·root·········(0)·root·········(0)····28834·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/index.d.ts | 20 | -rw-r--r--···0·root·········(0)·root·········(0)····28834·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/index.d.ts |
| 21 | -rw-r--r--···0·root·········(0)·root·········(0)·····8424·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/index.js | 21 | -rw-r--r--···0·root·········(0)·root·········(0)·····8424·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/index.js |
| 22 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/lib/ | 22 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/lib/ |
| 23 | -rw-r--r--···0·root·········(0)·root·········(0)·····2998·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/lib/command.js | 23 | -rw-r--r--···0·root·········(0)·root·········(0)·····2998·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/lib/command.js |
| 24 | -rw-r--r--···0·root·········(0)·root·········(0)·····2204·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/lib/error.js | 24 | -rw-r--r--···0·root·········(0)·root·········(0)·····2204·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/lib/error.js |
| 25 | -rw-r--r--···0·root·········(0)·root·········(0)·····2985·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/lib/kill.js | 25 | -rw-r--r--···0·root·········(0)·root·········(0)·····2985·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/lib/kill.js |
| 26 | -rw-r--r--···0·root·········(0)·root·········(0)·····1194·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/lib/pipe.js | 26 | -rw-r--r--···0·root·········(0)·root·········(0)·····1194·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/lib/pipe.js |
| 27 | -rw-r--r--···0·root·········(0)·root·········(0)·····1109·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/lib/promise.js | 27 | -rw-r--r--···0·root·········(0)·root·········(0)·····1109·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/lib/promise.js |
| 28 | -rw-r--r--···0·root·········(0)·root·········(0)·····1157·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/lib/stdio.js | 28 | -rw-r--r--···0·root·········(0)·root·········(0)·····1157·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/lib/stdio.js |
| 29 | -rw-r--r--···0·root·········(0)·root·········(0)·····3501·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/lib/stream.js | 29 | -rw-r--r--···0·root·········(0)·root·········(0)·····3501·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/lib/stream.js |
| 30 | -rw-r--r--···0·root·········(0)·root·········(0)······575·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/lib/verbose.js | 30 | -rw-r--r--···0·root·········(0)·root·········(0)······575·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/lib/verbose.js |
| 31 | -rw-r--r--···0·root·········(0)·root·········(0)·····1603·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/package.json | 31 | -rw-r--r--···0·root·········(0)·root·········(0)·····1603·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/package.json |
| 32 | -rw-r--r--···0·root·········(0)·root·········(0)·····16 | 32 | -rw-r--r--···0·root·········(0)·root·········(0)·····1686·2023-11-04·14:55:59.000000·./usr/share/nodejs/execa/pkgjs-lock.json |
| 33 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/ | 33 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/ |
| 34 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/build/ | 34 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/build/ |
| 35 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/build/src/ | 35 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/build/src/ |
| 36 | -rw-r--r--···0·root·········(0)·root·········(0)·····5408·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/build/src/core.js | 36 | -rw-r--r--···0·root·········(0)·root·········(0)·····5408·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/build/src/core.js |
| 37 | -rw-r--r--···0·root·········(0)·root·········(0)·····8574·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/build/src/main.cjs | 37 | -rw-r--r--···0·root·········(0)·root·········(0)·····8574·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/build/src/main.cjs |
| 38 | -rw-r--r--···0·root·········(0)·root·········(0)·····1806·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/build/src/main.d.ts | 38 | -rw-r--r--···0·root·········(0)·root·········(0)·····1806·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/build/src/main.d.ts |
| 39 | -rw-r--r--···0·root·········(0)·root·········(0)·····1791·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/build/src/main.js | 39 | -rw-r--r--···0·root·········(0)·root·········(0)·····1791·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/build/src/main.js |
| 40 | -rw-r--r--···0·root·········(0)·root·········(0)······449·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/build/src/realtime.js | 40 | -rw-r--r--···0·root·········(0)·root·········(0)······449·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/build/src/realtime.js |
| 41 | -rw-r--r--···0·root·········(0)·root·········(0)·····1050·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/build/src/signals.js | 41 | -rw-r--r--···0·root·········(0)·root·········(0)·····1050·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/build/src/signals.js |
| 42 | -rw-r--r--···0·root·········(0)·root·········(0)·····1390·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/package.json | 42 | -rw-r--r--···0·root·········(0)·root·········(0)·····1390·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/package.json |
| 43 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 43 | -rw-r--r--···0·root·········(0)·root·········(0)······303·2023-11-04·14:55:59.000000·./usr/share/nodejs/human-signals/pkgjs-lock.json |
| 44 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/nodejs/onetime/ | 44 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/nodejs/onetime/ |
| 45 | -rw-r--r--···0·root·········(0)·root·········(0)·····1200·2023-11-04·14:55:59.000000·./usr/share/nodejs/onetime/index.cjs | 45 | -rw-r--r--···0·root·········(0)·root·········(0)·····1200·2023-11-04·14:55:59.000000·./usr/share/nodejs/onetime/index.cjs |
| 46 | -rw-r--r--···0·root·········(0)·root·········(0)·····1156·2023-11-04·14:55:59.000000·./usr/share/nodejs/onetime/index.d.ts | 46 | -rw-r--r--···0·root·········(0)·root·········(0)·····1156·2023-11-04·14:55:59.000000·./usr/share/nodejs/onetime/index.d.ts |
| 47 | -rw-r--r--···0·root·········(0)·root·········(0)·····1022·2023-11-04·14:55:59.000000·./usr/share/nodejs/onetime/index.js | 47 | -rw-r--r--···0·root·········(0)·root·········(0)·····1022·2023-11-04·14:55:59.000000·./usr/share/nodejs/onetime/index.js |
| 48 | -rw-r--r--···0·root·········(0)·root·········(0)······848·2023-11-04·14:55:59.000000·./usr/share/nodejs/onetime/package.json | 48 | -rw-r--r--···0·root·········(0)·root·········(0)······848·2023-11-04·14:55:59.000000·./usr/share/nodejs/onetime/package.json |
| 49 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 49 | -rw-r--r--···0·root·········(0)·root·········(0)······411·2023-11-04·14:55:59.000000·./usr/share/nodejs/onetime/pkgjs-lock.json |
| 50 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/doc/node-human-signals/copyright·->·../node-execa/copyright | 50 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/doc/node-human-signals/copyright·->·../node-execa/copyright |
| 51 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/doc/node-onetime/copyright·->·../node-execa/copyright | 51 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2023-11-04·14:55:59.000000·./usr/share/doc/node-onetime/copyright·->·../node-execa/copyright |
| Offset 1, 24 lines modified | Offset 1, 26 lines modified | ||
| 1 | const·node_buffer·=·require('buffer'); | 1 | const·node_buffer·=·require('buffer'); |
| 2 | const·path·=·require('path'); | 2 | const·path·=·require('path'); |
| 3 | const·childProcess·=·require('child_process'); | 3 | const·childProcess·=·require('child_process'); |
| 4 | const·process$2·=·require('process'); | 4 | const·process$2·=·require('process'); |
| 5 | const·url·=·require('url'); | 5 | const·url·=·require('url'); |
| 6 | const·mimicFunction·=·require('mimic-fn'); | ||
| 6 | const·os·=·require('os'); | 7 | const·os·=·require('os'); |
| 7 | const·node_fs·=·require('fs'); | 8 | const·node_fs·=·require('fs'); |
| 8 | const·promises·=·require('timers/promises'); | 9 | const·promises·=·require('timers/promises'); |
| 9 | const·require$$0·=·require('stream'); | 10 | const·require$$0·=·require('stream'); |
| 10 | const·node_util·=·require('util'); | 11 | const·node_util·=·require('util'); |
| 11 | function·_interopDefault·(e)·{·return·e·&&·e.__esModule·?·e·:·{·default:·e·};·} | 12 | function·_interopDefault·(e)·{·return·e·&&·e.__esModule·?·e·:·{·default:·e·};·} |
| 12 | const·path__default·=·/*#__PURE__*/_interopDefault(path); | 13 | const·path__default·=·/*#__PURE__*/_interopDefault(path); |
| 13 | const·childProcess__default·=·/*#__PURE__*/_interopDefault(childProcess); | 14 | const·childProcess__default·=·/*#__PURE__*/_interopDefault(childProcess); |
| 14 | const·process__default·=·/*#__PURE__*/_interopDefault(process$2); | 15 | const·process__default·=·/*#__PURE__*/_interopDefault(process$2); |
| 15 | const·url__default·=·/*#__PURE__*/_interopDefault(url); | 16 | const·url__default·=·/*#__PURE__*/_interopDefault(url); |
| 17 | const·mimicFunction__default·=·/*#__PURE__*/_interopDefault(mimicFunction); | ||
| 16 | const·os__default·=·/*#__PURE__*/_interopDefault(os); | 18 | const·os__default·=·/*#__PURE__*/_interopDefault(os); |
| 17 | const·require$$0__default·=·/*#__PURE__*/_interopDefault(require$$0); | 19 | const·require$$0__default·=·/*#__PURE__*/_interopDefault(require$$0); |
| 18 | function·stripFinalNewline(input)·{ | 20 | function·stripFinalNewline(input)·{ |
| 19 | » const·LF·=·typeof·input·===·'string'·?·'\n'·:·'\n'.charCodeAt(); | 21 | » const·LF·=·typeof·input·===·'string'·?·'\n'·:·'\n'.charCodeAt(); |
| 20 | » const·CR·=·typeof·input·===·'string'·?·'\r'·:·'\r'.charCodeAt(); | 22 | » const·CR·=·typeof·input·===·'string'·?·'\r'·:·'\r'.charCodeAt(); |
| Offset 76, 86 lines modified | Offset 78, 14 lines modified | ||
| 76 | » const·path·=·pathKey({env}); | 78 | » const·path·=·pathKey({env}); |
| 77 | » options.path·=·env[path]; | 79 | » options.path·=·env[path]; |
| 78 | » env[path]·=·npmRunPath(options); | 80 | » env[path]·=·npmRunPath(options); |
| 79 | » return·env; | 81 | » return·env; |
| 80 | } | 82 | } |
| 81 | const·copyProperty·=·(to,·from,·property,·ignoreNonConfigurable)·=>·{ | ||
| 82 | » //·`Function#length`·should·reflect·the·parameters·of·`to`·not·`from`·since·we·keep·its·body. | ||
| 83 | » //·`Function#prototype`·is·non-writable·and·non-configurable·so·can·never·be·modified. | ||
| 84 | » if·(property·===·'length'·||·property·===·'prototype')·{ | ||
| 85 | » » return; | ||
| 86 | » } | ||
| 87 | » //·`Function#arguments`·and·`Function#caller`·should·not·be·copied.·They·were·reported·to·be·present·in·`Reflect.ownKeys`·for·some·devices·in·React·Native·(#41),·so·we·explicitly·ignore·them·here. | ||
| 88 | » if·(property·===·'arguments'·||·property·===·'caller')·{ | ||
| 89 | » » return; | ||
| 90 | » } | ||
| 91 | » const·toDescriptor·=·Object.getOwnPropertyDescriptor(to,·property); | ||
| 92 | » const·fromDescriptor·=·Object.getOwnPropertyDescriptor(from,·property); | ||
| 93 | » if·(!canCopyProperty(toDescriptor,·fromDescriptor)·&&·ignoreNonConfigurable)·{ | ||
| 94 | » » return; | ||
| 95 | » } | ||
| 96 | » Object.defineProperty(to,·property,·fromDescriptor); | ||
| 97 | }; | ||
| 98 | //·`Object.defineProperty()`·throws·if·the·property·exists,·is·not·configurable·and·either: | ||
| 99 | //·-·one·its·descriptors·is·changed | ||
| 100 | //·-·it·is·non-writable·and·its·value·is·changed | ||
| 101 | const·canCopyProperty·=·function·(toDescriptor,·fromDescriptor)·{ | ||
| 102 | » return·toDescriptor·===·undefined·||·toDescriptor.configurable·||·( | ||
| 103 | » » toDescriptor.writable·===·fromDescriptor.writable·&& | ||
| 104 | » » toDescriptor.enumerable·===·fromDescriptor.enumerable·&& | ||
| 105 | » » toDescriptor.configurable·===·fromDescriptor.configurable·&& | ||
| 106 | » » (toDescriptor.writable·||·toDescriptor.value·===·fromDescriptor.value) | ||
| 107 | » ); | ||
| 108 | }; | ||
| 109 | const·changePrototype·=·(to,·from)·=>·{ | ||
| 110 | » const·fromPrototype·=·Object.getPrototypeOf(from); | ||
| 111 | » if·(fromPrototype·===·Object.getPrototypeOf(to))·{ | ||
| 112 | » » return; | ||
| 113 | » } | ||
| 114 | » Object.setPrototypeOf(to,·fromPrototype); | ||
| 115 | }; | ||
| 116 | const·wrappedToString·=·(withName,·fromBody)·=>·`/*·Wrapped·${withName}*/\n${fromBody}`; | ||
| 117 | const·toStringDescriptor·=·Object.getOwnPropertyDescriptor(Function.prototype,·'toString'); | ||
| 118 | const·toStringName·=·Object.getOwnPropertyDescriptor(Function.prototype.toString,·'name'); | ||
| 119 | //·We·call·`from.toString()`·early·(not·lazily)·to·ensure·`from`·can·be·garbage·collected. | ||
| 120 | //·We·use·`bind()`·instead·of·a·closure·for·the·same·reason. | ||
| 121 | //·Calling·`from.toString()`·early·also·allows·caching·it·in·case·`to.toString()`·is·called·several·times. | ||
| 122 | const·changeToString·=·(to,·from,·name)·=>·{ | ||
| 123 | » const·withName·=·name·===·''·?·''·:·`with·${name.trim()}()·`; | ||
| 124 | » const·newToString·=·wrappedToString.bind(null,·withName,·from.toString()); | ||
| 125 | » //·Ensure·`to.toString.toString`·is·non-enumerable·and·has·the·same·`same` | ||
| 126 | » Object.defineProperty(newToString,·'name',·toStringName); | ||
| 127 | » Object.defineProperty(to,·'toString',·{...toStringDescriptor,·value:·newToString}); | ||
| 128 | }; | ||
| 129 | function·mimicFunction(to,·from,·{ignoreNonConfigurable·=·false}·=·{})·{ | ||
| 130 | » const·{name}·=·to; | ||
| 131 | » for·(const·property·of·Reflect.ownKeys(from))·{ | ||
| 132 | » » copyProperty(to,·from,·property,·ignoreNonConfigurable); | ||
| 133 | » } | ||
| 134 | » changePrototype(to,·from); | ||
| 135 | » changeToString(to,·from,·name); | ||
| 136 | » return·to; | ||
| 137 | } | ||
| 138 | const·calledFunctions·=·new·WeakMap(); | 83 | const·calledFunctions·=·new·WeakMap(); |
| 139 | const·onetime·=·(function_,·options·=·{})·=>·{ | 84 | const·onetime·=·(function_,·options·=·{})·=>·{ |
| 140 | » if·(typeof·function_·!==·'function')·{ | 85 | » if·(typeof·function_·!==·'function')·{ |
| 141 | » » throw·new·TypeError('Expected·a·function'); | 86 | » » throw·new·TypeError('Expected·a·function'); |
| 142 | » } | 87 | » } |
| Offset 172, 15 lines modified | Offset 102, 15 lines modified | ||
| 172 | » » }·else·if·(options.throw·===·true)·{ | 102 | » » }·else·if·(options.throw·===·true)·{ |
| 173 | » » » throw·new·Error(`Function·\`${functionName}\`·can·only·be·called·once`); | 103 | » » » throw·new·Error(`Function·\`${functionName}\`·can·only·be·called·once`); |
| 174 | » » } | 104 | » » } |
| 175 | » » return·returnValue; | 105 | » » return·returnValue; |
| 176 | » }; | 106 | » }; |
| 177 | » mimicFunction(onetime,·function_); | 107 | » mimicFunction__default.default(onetime,·function_); |
| 178 | » calledFunctions.set(onetime,·callCount); | 108 | » calledFunctions.set(onetime,·callCount); |
| 179 | » return·onetime; | 109 | » return·onetime; |
| 180 | }; | 110 | }; |
| Max diff block lines reached; 41/4843 bytes (0.85%) of diff not shown. | |||
| Offset 44, 18 lines modified | Offset 44, 26 lines modified | ||
| 44 | ············"name":·"execa", | 44 | ············"name":·"execa", |
| 45 | ············"version":·"8.0.1" | 45 | ············"version":·"8.0.1" |
| 46 | ········}, | 46 | ········}, |
| 47 | ········"/usr/share/nodejs/@types/node":·{ | 47 | ········"/usr/share/nodejs/@types/node":·{ |
| 48 | ············"name":·"@types/node", | 48 | ············"name":·"@types/node", |
| 49 | ············"version":·"20.19.12" | 49 | ············"version":·"20.19.12" |
| 50 | ········}, | 50 | ········}, |
| 51 | ········" | 51 | ········"/usr/share/nodejs/ava":·{ |
| 52 | ············"name":·"ava", | 52 | ············"name":·"ava", |
| 53 | ············"version":·"5.3.1" | 53 | ············"version":·"5.3.1" |
| 54 | ········}, | 54 | ········}, |
| 55 | ········"/usr/share/nodejs/p-event":·{ | ||
| 56 | ············"name":·"p-event", | ||
| 57 | ············"version":·"6.0.0" | ||
| 58 | ········}, | ||
| 59 | ········"/usr/share/nodejs/path-key":·{ | ||
| 60 | ············"name":·"path-key", | ||
| 61 | ············"version":·"4.0.0" | ||
| 62 | ········}, | ||
| 55 | ········"node_modules/get-stream":·{ | 63 | ········"node_modules/get-stream":·{ |
| 56 | ············"name":·"get-stream", | 64 | ············"name":·"get-stream", |
| 57 | ············"version":·"8.0.1" | 65 | ············"version":·"8.0.1" |
| 58 | ········}, | 66 | ········}, |
| 59 | ········"node_modules/human-signals":·{ | 67 | ········"node_modules/human-signals":·{ |
| 60 | ············"name":·"human-signals", | 68 | ············"name":·"human-signals", |
| 61 | ············"version":·"6.0.0" | 69 | ············"version":·"6.0.0" |
| Offset 72, 22 lines modified | Offset 80, 14 lines modified | ||
| 72 | ············"name":·"npm-run-path", | 80 | ············"name":·"npm-run-path", |
| 73 | ············"version":·"5.1.0" | 81 | ············"version":·"5.1.0" |
| 74 | ········}, | 82 | ········}, |
| 75 | ········"node_modules/onetime":·{ | 83 | ········"node_modules/onetime":·{ |
| 76 | ············"name":·"onetime", | 84 | ············"name":·"onetime", |
| 77 | ············"version":·"6.0.0" | 85 | ············"version":·"6.0.0" |
| 78 | ········}, | 86 | ········}, |
| 79 | ········"node_modules/p-event":·{ | ||
| 80 | ············"name":·"p-event", | ||
| 81 | ············"version":·"6.0.0" | ||
| 82 | ········}, | ||
| 83 | ········"node_modules/path-key":·{ | ||
| 84 | ············"name":·"path-key", | ||
| 85 | ············"version":·"4.0.0" | ||
| 86 | ········}, | ||
| 87 | ········"node_modules/signal-exit":·{ | 87 | ········"node_modules/signal-exit":·{ |
| 88 | ············"name":·"signal-exit", | 88 | ············"name":·"signal-exit", |
| 89 | ············"version":·"4.1.0" | 89 | ············"version":·"4.1.0" |
| 90 | ········}, | 90 | ········}, |
| 91 | ········"node_modules/strip-final-newline":·{ | 91 | ········"node_modules/strip-final-newline":·{ |
| 92 | ············"name":·"strip-final-newline", | 92 | ············"name":·"strip-final-newline", |
| 93 | ············"version":·"3.0.0" | 93 | ············"version":·"3.0.0" |
| Offset 7, 15 lines modified | Offset 7, 15 lines modified | ||
| 7 | ····"lockfileVersion":·2, | 7 | ····"lockfileVersion":·2, |
| 8 | ····"name":·"human-signals", | 8 | ····"name":·"human-signals", |
| 9 | ····"packages":·{ | 9 | ····"packages":·{ |
| 10 | ········"":·{ | 10 | ········"":·{ |
| 11 | ············"name":·"human-signals", | 11 | ············"name":·"human-signals", |
| 12 | ············"version":·"6.0.0" | 12 | ············"version":·"6.0.0" |
| 13 | ········}, | 13 | ········}, |
| 14 | ········" | 14 | ········"/usr/share/nodejs/ajv":·{ |
| 15 | ············"name":·"ajv", | 15 | ············"name":·"ajv", |
| 16 | ············"version":·"8.12.0" | 16 | ············"version":·"8.12.0" |
| 17 | ········} | 17 | ········} |
| 18 | ····}, | 18 | ····}, |
| 19 | ····"pkgjs_version":·"0.16.0", | 19 | ····"pkgjs_version":·"0.16.0", |
| 20 | ····"version":·"6.0.0" | 20 | ····"version":·"6.0.0" |
| 21 | } | 21 | } |
| Offset 10, 19 lines modified | Offset 10, 19 lines modified | ||
| 10 | ····"lockfileVersion":·2, | 10 | ····"lockfileVersion":·2, |
| 11 | ····"name":·"onetime", | 11 | ····"name":·"onetime", |
| 12 | ····"packages":·{ | 12 | ····"packages":·{ |
| 13 | ········"":·{ | 13 | ········"":·{ |
| 14 | ············"name":·"onetime", | 14 | ············"name":·"onetime", |
| 15 | ············"version":·"6.0.0" | 15 | ············"version":·"6.0.0" |
| 16 | ········}, | 16 | ········}, |
| 17 | ········" | 17 | ········"/usr/share/nodejs/ava":·{ |
| 18 | ············"name":·"ava", | 18 | ············"name":·"ava", |
| 19 | ············"version":·"5.3.1" | 19 | ············"version":·"5.3.1" |
| 20 | ········}, | 20 | ········}, |
| 21 | ········" | 21 | ········"/usr/share/nodejs/mimic-fn":·{ |
| 22 | ············"name":·"mimic-fn", | 22 | ············"name":·"mimic-fn", |
| 23 | ············"version":·"4.0.0" | 23 | ············"version":·"4.0.0" |
| 24 | ········} | 24 | ········} |
| 25 | ····}, | 25 | ····}, |
| 26 | ····"pkgjs_version":·"0.16.0", | 26 | ····"pkgjs_version":·"0.16.0", |
| 27 | ····"version":·"6.0.0" | 27 | ····"version":·"6.0.0" |
| 28 | } | 28 | } |