ng-annotate-patched
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -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"); |
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
408308
11062
+ Addedacorn@5.7.4(transitive)
+ Addedconvert-source-map@1.9.0(transitive)
- Removedacorn@5.0.3(transitive)
- Removedconvert-source-map@1.1.3(transitive)
Updatedacorn@^5.0.3
Updatedalter@^0.2.0
Updatedconvert-source-map@^1.1.2
Updatedoptimist@^0.6.1
Updatedsimple-fmt@^0.1.0
Updatedsimple-is@^0.2.0
Updatedsource-map@^0.5.3
Updatedstable@^0.1.5
Updatedstringmap@^0.2.2
Updatedstringset@^0.2.1
Updatedtryor@^0.1.2