ng-annotate
Advanced tools
Comparing version 0.3.3 to 0.4.0
@@ -57,3 +57,3 @@ "use strict"; | ||
var matchAngularModule = (obj.$chained || isShortDef(obj, re) || isLongDef(obj)) && | ||
is.someof(prop.name, ["provider", "value", "constant", "config", "factory", "directive", "filter", "run", "controller", "service", "decorator"]); | ||
is.someof(prop.name, ["provider", "value", "constant", "config", "factory", "directive", "filter", "run", "controller", "service", "decorator", "animation"]); | ||
if (!matchAngularModule) { | ||
@@ -60,0 +60,0 @@ return false; |
@@ -6,3 +6,3 @@ "use strict"; | ||
var ngAnnotate = require("./ng-annotate-main"); | ||
var version = "0.3.3"; | ||
var version = "0.4.0"; | ||
var optimist = require("optimist") | ||
@@ -9,0 +9,0 @@ .usage("ng-annotate v" + version + "\n\nUsage: ng-annotate OPTIONS file.js") |
@@ -22,2 +22,4 @@ "use strict"; | ||
}); | ||
myMod.animation("foo", function($scope, $timeout) { | ||
}); | ||
@@ -35,2 +37,4 @@ // no dependencies => no need to wrap the function in an array | ||
}); | ||
myMod.animation("foo", function() { | ||
}); | ||
@@ -106,2 +110,4 @@ // run, config don't take names | ||
d; | ||
}).animation("foo", function($f, $g) { | ||
e; | ||
}); | ||
@@ -124,2 +130,4 @@ | ||
d; | ||
}).animation("foo", function($f, $g) { | ||
e; | ||
}); | ||
@@ -135,2 +143,5 @@ | ||
}); | ||
$provide.animation("baz", function($scope, $timeout) { | ||
c; | ||
}); | ||
}); |
@@ -22,2 +22,4 @@ "use strict"; | ||
}]); | ||
myMod.animation("foo", ["$scope","$timeout", function($scope, $timeout) { | ||
}]); | ||
@@ -35,2 +37,4 @@ // no dependencies => no need to wrap the function in an array | ||
}); | ||
myMod.animation("foo", function() { | ||
}); | ||
@@ -106,2 +110,4 @@ // run, config don't take names | ||
d; | ||
}]).animation("foo", ["$f","$g", function($f, $g) { | ||
e; | ||
}]); | ||
@@ -124,2 +130,4 @@ | ||
d; | ||
}]).animation("foo", ["$f","$g", function($f, $g) { | ||
e; | ||
}]); | ||
@@ -135,2 +143,5 @@ | ||
}]); | ||
$provide.animation("baz", ["$scope","$timeout", function($scope, $timeout) { | ||
c; | ||
}]); | ||
}]); |
@@ -0,1 +1,4 @@ | ||
## v0.4.0 2013-10-31 | ||
* match angular.module("MyMod").animation(".class", function ..) | ||
## v0.3.3 2013-10-03 | ||
@@ -2,0 +5,0 @@ * bugfix .provider("foo", function($scope) ..) annotation. fixes #2 |
@@ -57,3 +57,3 @@ "use strict"; | ||
const matchAngularModule = (obj.$chained || isShortDef(obj, re) || isLongDef(obj)) && | ||
is.someof(prop.name, ["provider", "value", "constant", "config", "factory", "directive", "filter", "run", "controller", "service", "decorator"]); | ||
is.someof(prop.name, ["provider", "value", "constant", "config", "factory", "directive", "filter", "run", "controller", "service", "decorator", "animation"]); | ||
if (!matchAngularModule) { | ||
@@ -60,0 +60,0 @@ return false; |
{ | ||
"name": "ng-annotate", | ||
"version": "0.3.3", | ||
"version": "0.4.0", | ||
"description": "add, remove and rebuild angularjs dependency injection annotations", | ||
@@ -12,3 +12,3 @@ "main": "build/es5/ng-annotate-main.js", | ||
"ast-traverse": "~0.1.0", | ||
"alter": "~0.1.1", | ||
"alter": "~0.2.0", | ||
"simple-fmt": "~0.1.0", | ||
@@ -15,0 +15,0 @@ "simple-is": "~0.2.0", |
@@ -69,3 +69,3 @@ # ng-annotate | ||
It's not limited to `.controller` of course. It understands `.config`, `.factory`, | ||
`.directive`, `.filter`, `.run`, `.controller`, `.provider` and `.service`. | ||
`.directive`, `.filter`, `.run`, `.controller`, `.provider`, `.service` and `.animation`. | ||
@@ -72,0 +72,0 @@ For short forms it does not need to see the declaration of `myMod` so you can run it |
@@ -22,2 +22,4 @@ "use strict"; | ||
}); | ||
myMod.animation("foo", function($scope, $timeout) { | ||
}); | ||
@@ -35,2 +37,4 @@ // no dependencies => no need to wrap the function in an array | ||
}); | ||
myMod.animation("foo", function() { | ||
}); | ||
@@ -106,2 +110,4 @@ // run, config don't take names | ||
d; | ||
}).animation("foo", function($f, $g) { | ||
e; | ||
}); | ||
@@ -124,2 +130,4 @@ | ||
d; | ||
}).animation("foo", function($f, $g) { | ||
e; | ||
}); | ||
@@ -135,2 +143,5 @@ | ||
}); | ||
$provide.animation("baz", function($scope, $timeout) { | ||
c; | ||
}); | ||
}); |
@@ -22,2 +22,4 @@ "use strict"; | ||
}]); | ||
myMod.animation("foo", ["$scope","$timeout", function($scope, $timeout) { | ||
}]); | ||
@@ -35,2 +37,4 @@ // no dependencies => no need to wrap the function in an array | ||
}); | ||
myMod.animation("foo", function() { | ||
}); | ||
@@ -106,2 +110,4 @@ // run, config don't take names | ||
d; | ||
}]).animation("foo", ["$f","$g", function($f, $g) { | ||
e; | ||
}]); | ||
@@ -124,2 +130,4 @@ | ||
d; | ||
}]).animation("foo", ["$f","$g", function($f, $g) { | ||
e; | ||
}]); | ||
@@ -135,2 +143,5 @@ | ||
}]); | ||
$provide.animation("baz", ["$scope","$timeout", function($scope, $timeout) { | ||
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
38087
1005
+ Addedalter@0.2.0(transitive)
+ Addedstable@0.1.8(transitive)
- Removedalter@0.1.1(transitive)
Updatedalter@~0.2.0