Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng-annotate

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-annotate - npm Package Compare versions

Comparing version 0.3.3 to 0.4.0

2

build/es5/ng-annotate-main.js

@@ -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;
}]);
}]);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc