Skip to content

Commit

Permalink
wip: all deps
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Oct 17, 2022
1 parent 58065bc commit 36c2c5e
Show file tree
Hide file tree
Showing 320 changed files with 30,258 additions and 2,478 deletions.
18 changes: 2 additions & 16 deletions DEPENDENCIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ graph LR;
bin-links-->read-cmd-shim;
bin-links-->write-file-atomic;
cacache-->fs-minipass;
cacache-->infer-owner;
cacache-->npmcli-fs["@npmcli/fs"];
cacache-->npmcli-move-file["@npmcli/move-file"];
cacache-->ssri;
Expand Down Expand Up @@ -212,16 +211,13 @@ graph LR;
npmcli-metavuln-calculator-->semver;
npmcli-package-json-->json-parse-even-better-errors;
npmcli-promise-spawn-->infer-owner;
npmcli-query-->npm-package-arg;
npmcli-query-->semver;
npmcli-run-script-->npmcli-node-gyp["@npmcli/node-gyp"];
npmcli-run-script-->npmcli-promise-spawn["@npmcli/promise-spawn"];
npmcli-run-script-->read-package-json-fast;
npmlog-->are-we-there-yet;
npmlog-->gauge;
pacote-->cacache;
pacote-->fs-minipass;
pacote-->infer-owner;
pacote-->npm-package-arg;
pacote-->npm-packlist;
pacote-->npm-pick-manifest;
Expand Down Expand Up @@ -341,10 +337,8 @@ graph LR;
babel-types-->babel-helper-validator-identifier["@babel/helper-validator-identifier"];
babel-types-->to-fast-properties;
bin-links-->cmd-shim;
bin-links-->mkdirp-infer-owner;
bin-links-->npm-normalize-package-bin;
bin-links-->read-cmd-shim;
bin-links-->rimraf;
bin-links-->write-file-atomic;
bindings-->file-uri-to-path;
bl-->buffer;
Expand Down Expand Up @@ -387,7 +381,6 @@ graph LR;
cmark-gfm-->bindings;
cmark-gfm-->node-addon-api;
cmark-gfm-->prebuild-install;
cmd-shim-->mkdirp-infer-owner;
color-convert-->color-name;
columnify-->strip-ansi;
columnify-->wcwidth;
Expand Down Expand Up @@ -845,7 +838,6 @@ graph LR;
npmcli-arborist-->treeverse;
npmcli-arborist-->walk-up-path;
npmcli-config-->ini;
npmcli-config-->mkdirp-infer-owner;
npmcli-config-->nopt;
npmcli-config-->npmcli-map-workspaces["@npmcli/map-workspaces"];
npmcli-config-->proc-log;
Expand Down Expand Up @@ -891,9 +883,7 @@ graph LR;
npmcli-move-file-->rimraf;
npmcli-package-json-->json-parse-even-better-errors;
npmcli-promise-spawn-->infer-owner;
npmcli-query-->npm-package-arg;
npmcli-query-->postcss-selector-parser;
npmcli-query-->semver;
npmcli-run-script-->node-gyp;
npmcli-run-script-->npmcli-node-gyp["@npmcli/node-gyp"];
npmcli-run-script-->npmcli-promise-spawn["@npmcli/promise-spawn"];
Expand All @@ -912,11 +902,8 @@ graph LR;
optionator-->word-wrap;
p-map-->aggregate-error;
pacote-->cacache;
pacote-->chownr;
pacote-->fs-minipass;
pacote-->infer-owner;
pacote-->minipass;
pacote-->mkdirp;
pacote-->npm-package-arg;
pacote-->npm-packlist;
pacote-->npm-pick-manifest;
Expand All @@ -929,7 +916,6 @@ graph LR;
pacote-->promise-retry;
pacote-->read-package-json-fast;
pacote-->read-package-json;
pacote-->rimraf;
pacote-->ssri;
pacote-->tar;
parse-conflict-json-->json-parse-even-better-errors;
Expand Down Expand Up @@ -1127,6 +1113,6 @@ packages higher up the chain.
- pacote, libnpmaccess, libnpmhook, libnpmorg, libnpmsearch, libnpmteam, npm-profile
- npm-registry-fetch, libnpmversion
- @npmcli/git, make-fetch-happen, @npmcli/config, init-package-json
- @npmcli/docs, @npmcli/installed-package-contents, @npmcli/map-workspaces, cacache, npm-pick-manifest, @npmcli/run-script, read-package-json, @npmcli/query, readdir-scoped-modules, promzard
- @npmcli/docs, @npmcli/installed-package-contents, @npmcli/map-workspaces, cacache, npm-pick-manifest, @npmcli/run-script, read-package-json, readdir-scoped-modules, promzard
- @npmcli/fs, npm-bundled, read-package-json-fast, unique-filename, @npmcli/promise-spawn, npm-install-checks, npm-package-arg, npm-packlist, normalize-package-data, @npmcli/package-json, bin-links, nopt, npmlog, parse-conflict-json, dezalgo, read
- semver, ignore-walk, @npmcli/eslint-config, @npmcli/template-oss, npm-normalize-package-bin, @npmcli/name-from-folder, json-parse-even-better-errors, @npmcli/move-file, fs-minipass, infer-owner, ssri, unique-slug, hosted-git-info, proc-log, validate-npm-package-name, @npmcli/node-gyp, minipass-fetch, cmd-shim, read-cmd-shim, write-file-atomic, abbrev, are-we-there-yet, gauge, wrappy, treeverse, minify-registry-metadata, @npmcli/disparity-colors, @npmcli/ci-detect, mute-stream, ini, npm-audit-report, npm-user-validate
- semver, ignore-walk, @npmcli/eslint-config, @npmcli/template-oss, npm-normalize-package-bin, @npmcli/name-from-folder, json-parse-even-better-errors, @npmcli/move-file, fs-minipass, ssri, unique-slug, infer-owner, hosted-git-info, proc-log, validate-npm-package-name, @npmcli/node-gyp, minipass-fetch, @npmcli/query, cmd-shim, read-cmd-shim, write-file-atomic, abbrev, are-we-there-yet, gauge, wrappy, treeverse, minify-registry-metadata, @npmcli/disparity-colors, @npmcli/ci-detect, mute-stream, ini, npm-audit-report, npm-user-validate
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@npmcli/fs": "^2.1.0",
"cmark-gfm": "^0.9.0",
"front-matter": "^4.0.2",
"ignore-walk": "^5.0.1",
"ignore-walk": "^6.0.0",
"jsdom": "^20.0.1",
"marked-man": "^0.7.0",
"mkdirp": "^1.0.4",
Expand Down
55 changes: 40 additions & 15 deletions node_modules/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
!/@npmcli/fs
!/@npmcli/git
!/@npmcli/installed-package-contents
!/@npmcli/installed-package-contents/node_modules/
/@npmcli/installed-package-contents/node_modules/*
!/@npmcli/installed-package-contents/node_modules/npm-bundled
!/@npmcli/map-workspaces
!/@npmcli/metavuln-calculator
!/@npmcli/move-file
Expand All @@ -37,6 +34,7 @@
/@tootallnate/*
!/@tootallnate/once
!/abbrev
!/abort-controller
!/agent-base
!/agentkeepalive
!/aggregate-error
Expand All @@ -45,16 +43,23 @@
!/aproba
!/archy
!/are-we-there-yet
!/are-we-there-yet/node_modules/
/are-we-there-yet/node_modules/*
!/are-we-there-yet/node_modules/buffer
!/are-we-there-yet/node_modules/readable-stream
!/asap
!/balanced-match
!/base64-js
!/bin-links
!/bin-links/node_modules/
/bin-links/node_modules/*
!/bin-links/node_modules/npm-normalize-package-bin
!/binary-extensions
!/brace-expansion
!/builtins
!/cacache
!/cacache/node_modules/
/cacache/node_modules/*
!/cacache/node_modules/@npmcli/
/cacache/node_modules/@npmcli/*
!/cacache/node_modules/@npmcli/fs
!/chalk
!/chownr
!/cidr-regex
Expand Down Expand Up @@ -85,6 +90,8 @@
!/encoding
!/env-paths
!/err-code
!/event-target-shim
!/events
!/fastest-levenshtein
!/fs-minipass
!/fs.realpath
Expand All @@ -101,6 +108,7 @@
!/https-proxy-agent
!/humanize-ms
!/iconv-lite
!/ieee754
!/ignore-walk
!/imurmurhash
!/indent-string
Expand Down Expand Up @@ -134,6 +142,9 @@
!/libnpmversion
!/lru-cache
!/make-fetch-happen
!/make-fetch-happen/node_modules/
/make-fetch-happen/node_modules/*
!/make-fetch-happen/node_modules/minipass-fetch
!/minimatch
!/minipass-collect
!/minipass-fetch
Expand All @@ -151,29 +162,45 @@
!/node-gyp
!/node-gyp/node_modules/
/node-gyp/node_modules/*
!/node-gyp/node_modules/@npmcli/
/node-gyp/node_modules/@npmcli/*
!/node-gyp/node_modules/@npmcli/move-file
!/node-gyp/node_modules/are-we-there-yet
!/node-gyp/node_modules/brace-expansion
!/node-gyp/node_modules/cacache
!/node-gyp/node_modules/cacache/node_modules/
/node-gyp/node_modules/cacache/node_modules/*
!/node-gyp/node_modules/cacache/node_modules/brace-expansion
!/node-gyp/node_modules/cacache/node_modules/glob
!/node-gyp/node_modules/cacache/node_modules/minimatch
!/node-gyp/node_modules/gauge
!/node-gyp/node_modules/glob
!/node-gyp/node_modules/make-fetch-happen
!/node-gyp/node_modules/minimatch
!/node-gyp/node_modules/nopt
!/node-gyp/node_modules/npmlog
!/node-gyp/node_modules/ssri
!/node-gyp/node_modules/unique-filename
!/node-gyp/node_modules/unique-slug
!/nopt
!/normalize-package-data
!/normalize-package-data/node_modules/
/normalize-package-data/node_modules/*
!/normalize-package-data/node_modules/hosted-git-info
!/npm-audit-report
!/npm-bundled
!/npm-install-checks
!/npm-normalize-package-bin
!/npm-package-arg
!/npm-package-arg/node_modules/
/npm-package-arg/node_modules/*
!/npm-package-arg/node_modules/hosted-git-info
!/npm-package-arg/node_modules/proc-log
!/npm-package-arg/node_modules/validate-npm-package-name
!/npm-packlist
!/npm-pick-manifest
!/npm-pick-manifest/node_modules/
/npm-pick-manifest/node_modules/*
!/npm-pick-manifest/node_modules/npm-normalize-package-bin
!/npm-profile
!/npm-registry-fetch
!/npm-registry-fetch/node_modules/
/npm-registry-fetch/node_modules/*
!/npm-registry-fetch/node_modules/minipass-fetch
!/npm-user-validate
!/npmlog
!/once
Expand All @@ -184,6 +211,7 @@
!/path-is-absolute
!/postcss-selector-parser
!/proc-log
!/process
!/promise-all-reject-late
!/promise-call-limit
!/promise-inflight
Expand All @@ -193,9 +221,6 @@
!/read-cmd-shim
!/read-package-json-fast
!/read-package-json
!/read-package-json/node_modules/
/read-package-json/node_modules/*
!/read-package-json/node_modules/npm-normalize-package-bin
!/read
!/readable-stream
!/readdir-scoped-modules
Expand Down
32 changes: 9 additions & 23 deletions node_modules/@npmcli/config/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,20 @@
const walkUp = require('walk-up-path')
const ini = require('ini')
const nopt = require('nopt')
const mkdirp = require('mkdirp-infer-owner')
const mapWorkspaces = require('@npmcli/map-workspaces')
const rpj = require('read-package-json-fast')
const log = require('proc-log')

/* istanbul ignore next */
const myUid = process.getuid && process.getuid()
/* istanbul ignore next */
const myGid = process.getgid && process.getgid()

const { resolve, dirname, join } = require('path')
const { homedir } = require('os')
const { promisify } = require('util')
const fs = require('fs')
const readFile = promisify(fs.readFile)
const writeFile = promisify(fs.writeFile)
const chmod = promisify(fs.chmod)
const chown = promisify(fs.chown)
const unlink = promisify(fs.unlink)
const stat = promisify(fs.stat)
const {
readFile,
writeFile,
chmod,
unlink,
stat,
mkdir,
} = require('fs/promises')

const hasOwnProperty = (obj, key) =>
Object.prototype.hasOwnProperty.call(obj, key)
Expand Down Expand Up @@ -731,16 +725,8 @@ class Config {
return
}
const dir = dirname(conf.source)
await mkdirp(dir)
await mkdir(dir, { recursive: true })
await writeFile(conf.source, iniData, 'utf8')
// don't leave a root-owned config file lying around
/* istanbul ignore if - this is best-effort and a pita to test */
if (myUid === 0) {
const st = await stat(dir).catch(() => null)
if (st && (st.uid !== myUid || st.gid !== myGid)) {
await chown(conf.source, st.uid, st.gid).catch(() => {})
}
}
const mode = where === 'user' ? 0o600 : 0o666
await chmod(conf.source, mode)
}
Expand Down
15 changes: 7 additions & 8 deletions node_modules/@npmcli/config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@npmcli/config",
"version": "5.0.0",
"version": "6.0.1",
"files": [
"bin/",
"lib/"
Expand Down Expand Up @@ -31,17 +31,16 @@
]
},
"devDependencies": {
"@npmcli/eslint-config": "^3.0.1",
"@npmcli/template-oss": "4.5.0",
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.5.1",
"tap": "^16.0.1"
},
"dependencies": {
"@npmcli/map-workspaces": "^2.0.2",
"@npmcli/map-workspaces": "^3.0.0",
"ini": "^3.0.0",
"mkdirp-infer-owner": "^2.0.0",
"nopt": "^6.0.0",
"proc-log": "^2.0.0",
"read-package-json-fast": "^2.0.3",
"proc-log": "^3.0.0",
"read-package-json-fast": "^3.0.0",
"semver": "^7.3.5",
"walk-up-path": "^1.0.0"
},
Expand All @@ -50,6 +49,6 @@
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.5.0"
"version": "4.5.1"
}
}
17 changes: 9 additions & 8 deletions node_modules/@npmcli/disparity-colors/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@npmcli/disparity-colors",
"version": "2.0.0",
"version": "3.0.0",
"main": "lib/index.js",
"files": [
"bin/",
"lib/"
],
"engines": {
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
},
"description": "Colorizes unified diff output",
"repository": {
Expand Down Expand Up @@ -43,27 +43,28 @@
"pretest": "npm run lint",
"test": "tap",
"snap": "tap",
"preversion": "npm test",
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags",
"postlint": "template-oss-check",
"template-oss-apply": "template-oss-apply --force",
"lintfix": "npm run lint -- --fix",
"posttest": "npm run lint"
},
"tap": {
"check-coverage": true
"check-coverage": true,
"nyc-arg": [
"--exclude",
"tap-snapshots/**"
]
},
"devDependencies": {
"@npmcli/eslint-config": "^3.0.1",
"@npmcli/template-oss": "3.2.2",
"@npmcli/template-oss": "4.5.1",
"tap": "^16.0.1"
},
"dependencies": {
"ansi-styles": "^4.3.0"
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "3.2.2"
"version": "4.5.1"
}
}
Loading

0 comments on commit 36c2c5e

Please sign in to comment.