From cb14e3c0b3accb584969c30a30cb4239d9e2cf51 Mon Sep 17 00:00:00 2001 From: Bogdan Chadkin Date: Sun, 14 Feb 2021 17:35:05 +0300 Subject: [PATCH] Upgrade commander --- lib/svgo/coa.js | 3 +-- package-lock.json | 6 +++--- package.json | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/svgo/coa.js b/lib/svgo/coa.js index ea6c3393d..766b9ba3d 100644 --- a/lib/svgo/coa.js +++ b/lib/svgo/coa.js @@ -40,8 +40,7 @@ module.exports = function makeProgram(program) { .action(action); } -function action(args, program) { - var opts = program.opts(); +function action(args, opts) { var input = opts.input || args; var output = opts.output; var config = {} diff --git a/package-lock.json b/package-lock.json index 039f1d28c..fe993d23a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -614,9 +614,9 @@ "dev": true }, "commander": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-6.1.0.tgz", - "integrity": "sha512-wl7PNrYWd2y5mp1OK/LhTlv8Ff4kQJQRXXAvF+uU/TPNiVJUxZLRYGj/B0y/lPGAVcSbJqH2Za/cvHmrPMC8mA==" + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.0.0.tgz", + "integrity": "sha512-ovx/7NkTrnPuIV8sqk/GjUIIM1+iUQeqA3ye2VNpq9sVoiZsooObWlQy+OPWGI17GDaEoybuAGJm6U8yC077BA==" }, "commondir": { "version": "1.0.1", diff --git a/package.json b/package.json index 64475a048..82e446518 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ }, "dependencies": { "chalk": "^4.1.0", - "commander": "^6.1.0", + "commander": "^7.0.0", "css-select": "^2.0.0", "css-select-base-adapter": "^0.1.1", "css-tree": "1.0.0-alpha.37",