Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng-annotate-patched

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-annotate-patched - npm Package Compare versions

Comparing version 1.14.0 to 1.14.1

4

CHANGES.md

@@ -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 {}`).

2

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc