ng-annotate
Advanced tools
Comparing version 0.12.0 to 0.12.1
@@ -655,3 +655,3 @@ // ng-annotate-main.js | ||
// suspect must be inside of a block or at the top-level (i.e. inside of node.$parent.body[]) | ||
if (!onode.$parent || is.noneof(onode.$parent.type, ["Program", "BlockStatement"])) { | ||
if (!node || !onode.$parent || is.noneof(onode.$parent.type, ["Program", "BlockStatement"])) { | ||
return; | ||
@@ -658,0 +658,0 @@ } |
@@ -13,3 +13,3 @@ // ng-annotate.js | ||
var ngAnnotate = require("./ng-annotate-main"); | ||
var version = "0.12.0"; | ||
var version = "0.12.1"; | ||
var convertSourceMap = require("convert-source-map"); | ||
@@ -16,0 +16,0 @@ var optimist = require("optimist") |
@@ -687,1 +687,5 @@ "use strict"; | ||
})(); | ||
// empty var declarator | ||
var MyCtrl12; | ||
angular.module("MyMod").controller('MyCtrl', MyCtrl12); |
@@ -719,1 +719,5 @@ "use strict"; | ||
})(); | ||
// empty var declarator | ||
var MyCtrl12; | ||
angular.module("MyMod").controller('MyCtrl', MyCtrl12); |
@@ -719,1 +719,5 @@ "use strict"; | ||
})(); | ||
// empty var declarator | ||
var MyCtrl12; | ||
angular.module("MyMod").controller('MyCtrl', MyCtrl12); |
@@ -0,1 +1,4 @@ | ||
## v0.12.1 2014-11-13 | ||
* bugfix crash when reference-following to an empty variable declarator | ||
## v0.12.0 2014-11-10 | ||
@@ -2,0 +5,0 @@ * improved TypeScript compatibility due to improved matching through IIFE's |
@@ -655,3 +655,3 @@ // ng-annotate-main.js | ||
// suspect must be inside of a block or at the top-level (i.e. inside of node.$parent.body[]) | ||
if (!onode.$parent || is.noneof(onode.$parent.type, ["Program", "BlockStatement"])) { | ||
if (!node || !onode.$parent || is.noneof(onode.$parent.type, ["Program", "BlockStatement"])) { | ||
return; | ||
@@ -658,0 +658,0 @@ } |
{ | ||
"name": "ng-annotate", | ||
"version": "0.12.0", | ||
"version": "0.12.1", | ||
"description": "add, remove and rebuild angularjs dependency injection annotations", | ||
@@ -5,0 +5,0 @@ "main": "build/es5/ng-annotate-main.js", |
@@ -687,1 +687,5 @@ "use strict"; | ||
})(); | ||
// empty var declarator | ||
var MyCtrl12; | ||
angular.module("MyMod").controller('MyCtrl', MyCtrl12); |
@@ -719,1 +719,5 @@ "use strict"; | ||
})(); | ||
// empty var declarator | ||
var MyCtrl12; | ||
angular.module("MyMod").controller('MyCtrl', MyCtrl12); |
@@ -719,1 +719,5 @@ "use strict"; | ||
})(); | ||
// empty var declarator | ||
var MyCtrl12; | ||
angular.module("MyMod").controller('MyCtrl', MyCtrl12); |
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
355041
9660