Socket
Socket
Sign inDemoInstall

ng-annotate-patched

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-annotate-patched - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

2

ng-annotate-patched/build/es5/ng-annotate.js

@@ -12,3 +12,3 @@ // ng-annotate.js

var ngAnnotate = require("./ng-annotate-main");
var version = "1.5.0";
var version = "1.6.0";
var optimist = require("optimist")

@@ -15,0 +15,0 @@ .usage("ng-annotate v" + version + "\n\nUsage: ng-annotate OPTIONS <file>\n\n" +

@@ -166,21 +166,2 @@ // run-tests.js

if (fs.existsSync("package.json")) {
console.log("testing package.json")
try {
var json = JSON.parse(slurp("package.json"));
var substr = JSON.stringify({
dependencies: json.dependencies,
devDependencies: json.devDependencies,
}, null, 4);
if (/\^/g.test(substr)) {
console.error("package.json error: shouldn't use the ^ operator");
console.error(substr);
process.exit(-1);
}
} catch (e) {
console.error("package.json error: invalid json");
process.exit(-1);
}
}
if (fs.existsSync("tests/angular.js")) {

@@ -187,0 +168,0 @@ console.log("testing performance");

@@ -0,1 +1,20 @@

## v1.6.0 2017-05-28
* Switch from tilde ~ dependencies to ^ caret dependencies.
## v1.5.0 2017-04-29
* Support `export var varName = function($scope) { "ngInject"; }`.
* Support `/* @ngInject */ export [default] var varName = function [functionName]() {...}`.
## v1.4.0 2017-04-28
* Support ngInject on `export [default] function functionName() {...}`.
## v1.3.0 2017-04-28
* Initial version of the fork.
* Renamed package and binary from `ng-annotate` to `ng-annotate-patched`.
* Updated the [acorn](https://github.com/ternjs/acorn) JavaScript parser.
* Enabled some acorn options that allow it to parse a wider range of
JavaScript.
* Added a `acornOptions` option to the API, to allow overriding or passing
extra options to acorn.
## v1.2.1 2016-01-10

@@ -2,0 +21,0 @@ * bugfix case where $inject arrays were incorrectly hoisted

{
"name": "ng-annotate-patched",
"version": "1.5.0",
"version": "1.6.0",
"description": "add, remove and rebuild angularjs dependency injection annotations",

@@ -11,19 +11,19 @@ "main": "build/es5/ng-annotate-main.js",

"dependencies": {
"acorn": "~5.0.3",
"alter": "~0.2.0",
"convert-source-map": "~1.1.2",
"optimist": "~0.6.1",
"simple-fmt": "~0.1.0",
"simple-is": "~0.2.0",
"source-map": "~0.5.3",
"stable": "~0.1.5",
"stringmap": "~0.2.2",
"stringset": "~0.2.1",
"tryor": "~0.1.2"
"acorn": "^5.0.3",
"alter": "^0.2.0",
"convert-source-map": "^1.1.2",
"optimist": "^0.6.1",
"simple-fmt": "^0.1.0",
"simple-is": "^0.2.0",
"source-map": "^0.5.3",
"stable": "^0.1.5",
"stringmap": "^0.2.2",
"stringset": "^0.2.1",
"tryor": "^0.1.2"
},
"devDependencies": {
"coffee-script": "~1.10.0",
"defs": "~1.1.1",
"diff": "~2.2.1",
"find-line-column": "~0.5.2"
"coffee-script": "^1.10.0",
"defs": "^1.1.1",
"diff": "^2.2.1",
"find-line-column": "^0.5.2"
},

@@ -30,0 +30,0 @@ "keywords": [

@@ -166,21 +166,2 @@ // run-tests.js

if (fs.existsSync("package.json")) {
console.log("testing package.json")
try {
const json = JSON.parse(slurp("package.json"));
const substr = JSON.stringify({
dependencies: json.dependencies,
devDependencies: json.devDependencies,
}, null, 4);
if (/\^/g.test(substr)) {
console.error("package.json error: shouldn't use the ^ operator");
console.error(substr);
process.exit(-1);
}
} catch (e) {
console.error("package.json error: invalid json");
process.exit(-1);
}
}
if (fs.existsSync("tests/angular.js")) {

@@ -187,0 +168,0 @@ console.log("testing performance");

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