ng-annotate
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -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) { |
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
35229
23
921
100