ng-annotate
Advanced tools
Comparing version 0.9.0 to 0.9.1
@@ -211,3 +211,3 @@ // ng-annotate-main.js | ||
args.length === 1 && args[0] : | ||
args.length === 2 && ((args[0].type === "Literal" && is.string(args[0].value)) || args[0].type === "Identifier") && args[1]); | ||
args.length === 2 && args[0].type === "Literal" && is.string(args[0].value) && args[1]); | ||
} | ||
@@ -214,0 +214,0 @@ |
@@ -10,3 +10,3 @@ // ng-annotate.js | ||
var ngAnnotate = require("./ng-annotate-main"); | ||
var version = "0.9.0"; | ||
var version = "0.9.1"; | ||
var optimist = require("optimist") | ||
@@ -13,0 +13,0 @@ .usage("ng-annotate v" + version + "\n\nUsage: ng-annotate OPTIONS file.js") |
@@ -25,6 +25,2 @@ "use strict"; | ||
// variable instead of string as first argument | ||
myMod.controller(ctrlName, function($scope, $timeout) {}); | ||
angular.module("MyMod").controller(ctrlName, function($scope, $timeout) {}); | ||
// object property | ||
@@ -31,0 +27,0 @@ var myObj = {}; |
@@ -25,6 +25,2 @@ "use strict"; | ||
// variable instead of string as first argument | ||
myMod.controller(ctrlName, ['$scope', '$timeout', function($scope, $timeout) {}]); | ||
angular.module("MyMod").controller(ctrlName, ['$scope', '$timeout', function($scope, $timeout) {}]); | ||
// object property | ||
@@ -31,0 +27,0 @@ var myObj = {}; |
@@ -25,6 +25,2 @@ "use strict"; | ||
// variable instead of string as first argument | ||
myMod.controller(ctrlName, ["$scope", "$timeout", function($scope, $timeout) {}]); | ||
angular.module("MyMod").controller(ctrlName, ["$scope", "$timeout", function($scope, $timeout) {}]); | ||
// object property | ||
@@ -31,0 +27,0 @@ var myObj = {}; |
@@ -0,1 +1,5 @@ | ||
## v0.9.1 2014-05-14 | ||
* bugfix false positive regression | ||
revert 0.9.0 match .controller(name, ..) in addition to .controller("name".. | ||
## v0.9.0 2014-05-13 | ||
@@ -2,0 +6,0 @@ * explicit annotations using /* @ngInject */ |
@@ -211,3 +211,3 @@ // ng-annotate-main.js | ||
args.length === 1 && args[0] : | ||
args.length === 2 && ((args[0].type === "Literal" && is.string(args[0].value)) || args[0].type === "Identifier") && args[1]); | ||
args.length === 2 && args[0].type === "Literal" && is.string(args[0].value) && args[1]); | ||
} | ||
@@ -214,0 +214,0 @@ |
{ | ||
"name": "ng-annotate", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "add, remove and rebuild angularjs dependency injection annotations", | ||
@@ -5,0 +5,0 @@ "main": "build/es5/ng-annotate-main.js", |
@@ -81,5 +81,2 @@ # ng-annotate | ||
`angular.module("MyMod").controller(name, ..)` where name is a variable rather than a | ||
string literal is also supported. | ||
ng-annotate understands `this.$get = function($scope) ..` and | ||
@@ -86,0 +83,0 @@ `{.., $get: function($scope) ..}` inside a `provider`. `self` and `that` can be used as |
@@ -25,6 +25,2 @@ "use strict"; | ||
// variable instead of string as first argument | ||
myMod.controller(ctrlName, function($scope, $timeout) {}); | ||
angular.module("MyMod").controller(ctrlName, function($scope, $timeout) {}); | ||
// object property | ||
@@ -31,0 +27,0 @@ var myObj = {}; |
@@ -25,6 +25,2 @@ "use strict"; | ||
// variable instead of string as first argument | ||
myMod.controller(ctrlName, ['$scope', '$timeout', function($scope, $timeout) {}]); | ||
angular.module("MyMod").controller(ctrlName, ['$scope', '$timeout', function($scope, $timeout) {}]); | ||
// object property | ||
@@ -31,0 +27,0 @@ var myObj = {}; |
@@ -25,6 +25,2 @@ "use strict"; | ||
// variable instead of string as first argument | ||
myMod.controller(ctrlName, ["$scope", "$timeout", function($scope, $timeout) {}]); | ||
angular.module("MyMod").controller(ctrlName, ["$scope", "$timeout", function($scope, $timeout) {}]); | ||
// object property | ||
@@ -31,0 +27,0 @@ var myObj = {}; |
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
171007
53
4742
168