Skip to content

Commit

Permalink
[Deps] update object-inspect, yargs
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 7, 2022
1 parent 1548f7c commit 81dcab7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
package-lock=false
allow-same-version=true
message=v%s
audit-level=high
11 changes: 5 additions & 6 deletions bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ const { filename } = finder(process.cwd()).next();
const getLockfile = require('./getLockfile');

const {
argv: {
output,
date,
package: pkg,
},
output,
date,
package: pkg,
} = require('yargs')
.help()
.option('date', {
Expand All @@ -44,7 +42,8 @@ const {
describe: 'output file path',
normalize: true,
demandOption: true,
});
})
.parse();

getLockfile(pkg, date === 'now' ? undefined : date, { logger: console.log.bind(console), npmNeeded: '^6.9.0-0' })
.then((lockfile) => writeFile(output, lockfile))
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"@npmcli/arborist": "^4.2.0",
"colors": "^1.4.0",
"find-package-json": "^1.2.0",
"object-inspect": "^1.11.1",
"object-inspect": "^1.12.0",
"util.promisify": "^1.1.1",
"yargs": "^14.2.3"
"yargs": "^17.3.1"
},
"engines": {
"node": ">= 16 || ^14.15 || ^12.13"
Expand Down

0 comments on commit 81dcab7

Please sign in to comment.