From 81dcab75d5af1995d5f25b9a5a086f99507b1aca Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 6 Jan 2022 22:21:29 -0800 Subject: [PATCH] [Deps] update `object-inspect`, `yargs` --- .npmrc | 1 - bin.js | 11 +++++------ package.json | 4 ++-- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.npmrc b/.npmrc index 64cb221..eacea13 100644 --- a/.npmrc +++ b/.npmrc @@ -1,4 +1,3 @@ package-lock=false allow-same-version=true message=v%s -audit-level=high diff --git a/bin.js b/bin.js index da31879..446e0f9 100755 --- a/bin.js +++ b/bin.js @@ -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', { @@ -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)) diff --git a/package.json b/package.json index a824bbe..3b9430b 100644 --- a/package.json +++ b/package.json @@ -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"