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

ng-annotate

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-annotate - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

CHANGES.md

4

build/es5/ng-annotate-main.js

@@ -57,3 +57,3 @@ "use strict";

var matchAngularModule = (obj.$chained || isShortDef(obj, re) || isLongDef(obj)) &&
is.someof(prop.name, ["provider", "config", "factory", "directive", "filter", "run", "controller", "service"]);
is.someof(prop.name, ["provider", "value", "config", "factory", "directive", "filter", "run", "controller", "service"]);
if (!matchAngularModule) {

@@ -64,3 +64,3 @@ return false;

if (prop.name === "provider") {
if (is.someof(prop.name, ["provider", "value"])) {
return false; // affects matchAngularModule because of chaining

@@ -67,0 +67,0 @@ }

@@ -6,3 +6,3 @@ "use strict";

var ngAnnotate = require("./ng-annotate-main");
var version = "0.3.0";
var version = "0.3.1";
var optimist = require("optimist")

@@ -9,0 +9,0 @@ .usage("ng-annotate v" + version + "\n\nUsage: ng-annotate OPTIONS file.js")

@@ -113,3 +113,4 @@ "use strict";

}};
}).factory("foo", function() {
}).value("foo", "bar")
.factory("foo", function() {
b;

@@ -116,0 +117,0 @@ }).config(function($c) {

@@ -113,3 +113,4 @@ "use strict";

}]};
}).factory("foo", function() {
}).value("foo", "bar")
.factory("foo", function() {
b;

@@ -116,0 +117,0 @@ }).config(["$c", function($c) {

@@ -57,3 +57,3 @@ "use strict";

const matchAngularModule = (obj.$chained || isShortDef(obj, re) || isLongDef(obj)) &&
is.someof(prop.name, ["provider", "config", "factory", "directive", "filter", "run", "controller", "service"]);
is.someof(prop.name, ["provider", "value", "config", "factory", "directive", "filter", "run", "controller", "service"]);
if (!matchAngularModule) {

@@ -64,3 +64,3 @@ return false;

if (prop.name === "provider") {
if (is.someof(prop.name, ["provider", "value"])) {
return false; // affects matchAngularModule because of chaining

@@ -67,0 +67,0 @@ }

{
"name": "ng-annotate",
"version": "0.3.0",
"version": "0.3.1",
"description": "add, remove and rebuild angularjs dependency injection annotations",

@@ -5,0 +5,0 @@ "main": "build/es5/ng-annotate-main.js",

@@ -38,2 +38,10 @@ # ng-annotate

## License
`MIT`, see [LICENSE](LICENSE) file.
## Changes
See [CHANGES.md](CHANGES.md).
## Why?

@@ -40,0 +48,0 @@ * Keep your code base clutter free from annotations but add them in your build step

@@ -113,3 +113,4 @@ "use strict";

}};
}).factory("foo", function() {
}).value("foo", "bar")
.factory("foo", function() {
b;

@@ -116,0 +117,0 @@ }).config(function($c) {

@@ -113,3 +113,4 @@ "use strict";

}]};
}).factory("foo", function() {
}).value("foo", "bar")
.factory("foo", function() {
b;

@@ -116,0 +117,0 @@ }).config(["$c", function($c) {

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