ng-annotate
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -63,3 +63,3 @@ "use strict"; | ||
if (is.someof(prop.name, ["provider", "value", "constant"])) { | ||
if (is.someof(prop.name, ["value", "constant"])) { | ||
return false; // affects matchAngularModule because of chaining | ||
@@ -66,0 +66,0 @@ } |
@@ -6,3 +6,3 @@ "use strict"; | ||
var ngAnnotate = require("./ng-annotate-main"); | ||
var version = "0.3.2"; | ||
var version = "0.3.3"; | ||
var optimist = require("optimist") | ||
@@ -9,0 +9,0 @@ .usage("ng-annotate v" + version + "\n\nUsage: ng-annotate OPTIONS file.js") |
@@ -61,4 +61,4 @@ "use strict"; | ||
// provider $get | ||
myMod.provider("foo", function() { | ||
// provider, provider $get | ||
myMod.provider("foo", function($scope) { | ||
this.$get = function($scope, $timeout) { | ||
@@ -65,0 +65,0 @@ bar; |
@@ -61,8 +61,8 @@ "use strict"; | ||
// provider $get | ||
myMod.provider("foo", function() { | ||
// provider, provider $get | ||
myMod.provider("foo", ["$scope", function($scope) { | ||
this.$get = ["$scope","$timeout", function($scope, $timeout) { | ||
bar; | ||
}]; | ||
}); | ||
}]); | ||
myMod.provider("foo", function() { | ||
@@ -69,0 +69,0 @@ this.$get = function() { |
@@ -0,1 +1,4 @@ | ||
## v0.3.3 2013-10-03 | ||
* bugfix .provider("foo", function($scope) ..) annotation. fixes #2 | ||
## v0.3.2 2013-09-30 | ||
@@ -2,0 +5,0 @@ * bugfix angular.module("MyMod").constant("foo", "bar") disrupting chaining |
@@ -63,3 +63,3 @@ "use strict"; | ||
if (is.someof(prop.name, ["provider", "value", "constant"])) { | ||
if (is.someof(prop.name, ["value", "constant"])) { | ||
return false; // affects matchAngularModule because of chaining | ||
@@ -66,0 +66,0 @@ } |
{ | ||
"name": "ng-annotate", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "add, remove and rebuild angularjs dependency injection annotations", | ||
@@ -5,0 +5,0 @@ "main": "build/es5/ng-annotate-main.js", |
@@ -34,4 +34,4 @@ # ng-annotate | ||
ng-annotate is written in ES6 constlet style and uses defs.js to transpile | ||
to ES5. Build instrunctions in [BUILD.md](BUILD.md). | ||
ng-annotate is written in ES6 constlet style and uses [defs.js](https://github.com/olov/defs) | ||
to transpile to ES5. Build instructions in [BUILD.md](BUILD.md). | ||
@@ -70,3 +70,3 @@ | ||
It's not limited to `.controller` of course. It understands `.config`, `.factory`, | ||
`.directive`, `.filter`, `.run`, `.controller` and `.service`. | ||
`.directive`, `.filter`, `.run`, `.controller`, `.provider` and `.service`. | ||
@@ -98,8 +98,5 @@ For short forms it does not need to see the declaration of `myMod` so you can run it | ||
ng-annotate can be used as a library. See `ng-annotate.js` for further info about | ||
options and return value. ng-annotate uses ES6 const and let, so you must currently run node | ||
in --harmony mode. I will publish a version of ng-annotate that is pre-transpiled using | ||
[defs](https://github.com/olov/defs) so that the --harmony requirement goes away, if that | ||
is of interest. | ||
options and return value. | ||
var ngAnnotate = require("ng-annotate"); | ||
var transformedSource = ngAnnotate(src, {add: true}).src; |
@@ -61,4 +61,4 @@ "use strict"; | ||
// provider $get | ||
myMod.provider("foo", function() { | ||
// provider, provider $get | ||
myMod.provider("foo", function($scope) { | ||
this.$get = function($scope, $timeout) { | ||
@@ -65,0 +65,0 @@ bar; |
@@ -61,8 +61,8 @@ "use strict"; | ||
// provider $get | ||
myMod.provider("foo", function() { | ||
// provider, provider $get | ||
myMod.provider("foo", ["$scope", function($scope) { | ||
this.$get = ["$scope","$timeout", function($scope, $timeout) { | ||
bar; | ||
}]; | ||
}); | ||
}]); | ||
myMod.provider("foo", function() { | ||
@@ -69,0 +69,0 @@ this.$get = function() { |
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
36687
100