File tree
4 files changed
+69
-7
lines changed- cli
- content/cli/v8
- commands
- using-npm
4 files changed
+69
-7
lines changed- .github/workflows/ci.yml+2-18
- docs/content/commands/npm-version.md+11
- docs/content/using-npm/config.md+27-3
- docs/content/using-npm/logging.md+30-3
- lib/base-command.js+32-16
- lib/cli.js+3-7
- lib/commands/bin.js+2-2
- lib/commands/doctor.js-4
- lib/commands/owner.js+1-1
- lib/commands/unpublish.js+45-45
- lib/commands/version.js+35
- lib/commands/view.js+3
- lib/npm.js+174-151
- lib/utils/config/definitions.js+26-2
- lib/utils/exit-handler.js+67-34
- lib/utils/log-file.js+43-31
- lib/utils/replace-info.js+22-24
- lib/utils/timers.js+31-14
- lib/utils/update-notifier.js+1-1
- lib/utils/usage.js-32
- lib/utils/with-chown-sync.js-13
- node_modules/@npmcli/fs/lib/common/owner-sync.js+92
- node_modules/@npmcli/fs/lib/copy-file.js+3-9
- node_modules/@npmcli/fs/lib/fs.js+9-3
- node_modules/@npmcli/fs/lib/index.js+2
- node_modules/@npmcli/fs/lib/mkdir/index.js+7-10
- node_modules/@npmcli/fs/lib/mkdtemp.js+3-8
- node_modules/@npmcli/fs/lib/with-owner-sync.js+21
- node_modules/@npmcli/fs/lib/with-owner.js+21
- node_modules/@npmcli/fs/lib/with-temp-dir.js+1-1
- node_modules/@npmcli/fs/lib/write-file.js+3-8
- node_modules/@npmcli/fs/package.json+19-10
- node_modules/cacache/package.json+19-14
- node_modules/lru-cache/index.js+219-43
- node_modules/lru-cache/package.json+2-1
- node_modules/npm-registry-fetch/lib/check-response.js+2-13
- node_modules/npm-registry-fetch/lib/clean-url.js+24
- node_modules/npm-registry-fetch/lib/index.js+4-2
- node_modules/npm-registry-fetch/lib/silentlog.js-14
- node_modules/npm-registry-fetch/package.json+19-14
- package-lock.json+43-66
- package.json+4-4
- scripts/config-doc-command.js+14-4
- tap-snapshots/test/lib/commands/config.js.test.cjs+4
- tap-snapshots/test/lib/commands/unpublish.js.test.cjs-14
- tap-snapshots/test/lib/commands/version.js.test.cjs+94
- tap-snapshots/test/lib/load-all-commands.js.test.cjs+1-133
- tap-snapshots/test/lib/utils/config/definitions.js.test.cjs+27-3
- tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs+27-3
- tap-snapshots/test/lib/utils/error-message.js.test.cjs+96
- tap-snapshots/test/lib/utils/exit-handler.js.test.cjs+32-22
- tap-snapshots/test/lib/utils/log-file.js.test.cjs+60-58
- tap-snapshots/test/lib/utils/npm-usage.js.test.cjs+67-199
- test/coverage-map.js+16-11
- test/fixtures/mock-npm.js+28-5
- test/fixtures/sandbox.js+2
- test/fixtures/tnock.js+6-4
- test/lib/cli.js+84-71
- test/lib/commands/access.js+8-8
- test/lib/commands/bin.js+37-53
- test/lib/commands/cache.js+1-1
- test/lib/commands/diff.js-1
- test/lib/commands/doctor.js-14
- test/lib/commands/init.js-1
- test/lib/commands/owner.js-1
- test/lib/commands/profile.js-1
- test/lib/commands/search.js-1
- test/lib/commands/star.js+2-3
- test/lib/commands/stars.js-1
- test/lib/commands/team.js-1
- test/lib/commands/unpublish.js+339-381
- test/lib/commands/update.js-1
- test/lib/commands/version.js+110-7
- test/lib/load-all.js-31
- test/lib/npm.js+164-128
- test/lib/utils/exit-handler.js+56-22
- test/lib/utils/log-file.js+7-10
- test/lib/utils/replace-info.js+39-1
- test/lib/utils/timers.js+28-4
- test/lib/utils/update-notifier.js+1-2
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
154 | 154 |
| |
155 | 155 |
| |
156 | 156 |
| |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
157 | 168 |
| |
158 | 169 |
| |
159 | 170 |
| |
|
Lines changed: 27 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1035 | 1035 |
| |
1036 | 1036 |
| |
1037 | 1037 |
| |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
1038 | 1049 |
| |
1039 | 1050 |
| |
1040 | 1051 |
| |
1041 | 1052 |
| |
1042 | 1053 |
| |
1043 | 1054 |
| |
1044 | 1055 |
| |
| 1056 | + | |
| 1057 | + | |
1045 | 1058 |
| |
1046 | 1059 |
| |
1047 | 1060 |
| |
| |||
1636 | 1649 |
| |
1637 | 1650 |
| |
1638 | 1651 |
| |
1639 |
| - | |
1640 |
| - | |
1641 |
| - | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
1642 | 1655 |
| |
1643 | 1656 |
| |
1644 | 1657 |
| |
| |||
1831 | 1844 |
| |
1832 | 1845 |
| |
1833 | 1846 |
| |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
1834 | 1858 |
| |
1835 | 1859 |
| |
1836 | 1860 |
| |
|
Lines changed: 30 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
19 | 30 |
| |
20 | 31 |
| |
21 | 32 |
| |
| |||
36 | 47 |
| |
37 | 48 |
| |
38 | 49 |
| |
39 |
| - | |
40 |
| - | |
41 | 50 |
| |
42 | 51 |
| |
43 | 52 |
| |
| |||
55 | 64 |
| |
56 | 65 |
| |
57 | 66 |
| |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
58 | 76 |
| |
59 | 77 |
| |
60 | 78 |
| |
| |||
63 | 81 |
| |
64 | 82 |
| |
65 | 83 |
| |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
66 | 93 |
| |
67 | 94 |
| |
68 | 95 |
|
0 commit comments