ng-annotate-patched
Advanced tools
Comparing version 1.14.0 to 1.14.1
@@ -0,1 +1,5 @@ | ||
## 1.14.1 2022-03-21 | ||
* Fixed `ng-annotate-patched` command-line parsing when using dependency | ||
`commander >= 7.0.0`. | ||
## 1.14.0 2022-01-31 | ||
@@ -2,0 +6,0 @@ * Added support for ES2019 Optional `catch` binding (`try {} catch {}`). |
{ | ||
"name": "ng-annotate-patched", | ||
"version": "1.14.0", | ||
"version": "1.14.1", | ||
"description": "add, remove and rebuild angularjs dependency injection annotations", | ||
@@ -5,0 +5,0 @@ "main": "src/ng-annotate-main.js", |
@@ -33,2 +33,3 @@ // ng-annotate.js | ||
.parse(process.argv); | ||
const opts = program.opts(); | ||
@@ -44,3 +45,3 @@ function exit(msg) { | ||
// special-case for --list | ||
if (program.list) { | ||
if (opts.list) { | ||
const list = ngAnnotate("", {list: true}).list; | ||
@@ -59,3 +60,3 @@ if (list.length >= 1) { | ||
if (!program.add && !program.remove) { | ||
if (!opts.add && !opts.remove) { | ||
program.outputHelp(); | ||
@@ -110,9 +111,9 @@ exit("error: missing option --add and/or --remove"); | ||
for (const opt of ["add", "remove", "o", "regexp", "rename", "single_quotes", "plugin", "enable", "stats"]) { | ||
if (opt in program) { | ||
config[opt] = program[opt]; | ||
if (opt in opts) { | ||
config[opt] = opts[opt]; | ||
} | ||
} | ||
if (program.sourcemap) { | ||
config.map = { inline: true, sourceRoot: program.sourceroot }; | ||
if (opts.sourcemap) { | ||
config.map = { inline: true, sourceRoot: opts.sourceroot }; | ||
if (filename !== "-") { | ||
@@ -119,0 +120,0 @@ config.map.inFile = filename; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110039
2155