jscodeshift
Advanced tools
Comparing version 0.10.0 to 0.11.0
@@ -7,2 +7,6 @@ # Changelog | ||
## [0.11.0] 2020-09-01 | ||
### Changed | ||
- Updated `recast` to latest | ||
## [0.10.0] 2020-06-01 | ||
@@ -9,0 +13,0 @@ ### Changed |
@@ -139,6 +139,13 @@ | ||
return statement.apply( | ||
const expression = statement.apply( | ||
null, | ||
[template].concat(Array.from(arguments).slice(1)) | ||
).expression; | ||
// Remove added parens | ||
if (expression.extra) { | ||
expression.extra.parenthesized = false; | ||
} | ||
return expression; | ||
} | ||
@@ -145,0 +152,0 @@ |
{ | ||
"name": "jscodeshift", | ||
"version": "0.10.0", | ||
"version": "0.11.0", | ||
"description": "A toolkit for JavaScript codemods", | ||
@@ -38,7 +38,7 @@ "repository": { | ||
"flow-parser": "0.*", | ||
"graceful-fs": "^4.1.11", | ||
"graceful-fs": "^4.2.4", | ||
"micromatch": "^3.1.10", | ||
"neo-async": "^2.5.0", | ||
"node-dir": "^0.1.17", | ||
"recast": "^0.18.1", | ||
"recast": "^0.20.3", | ||
"temp": "^0.8.1", | ||
@@ -45,0 +45,0 @@ "write-file-atomic": "^2.3.0" |
@@ -139,6 +139,13 @@ | ||
return statement.apply( | ||
const expression = statement.apply( | ||
null, | ||
[template].concat(Array.from(arguments).slice(1)) | ||
).expression; | ||
// Remove added parens | ||
if (expression.extra) { | ||
expression.extra.parenthesized = false; | ||
} | ||
return expression; | ||
} | ||
@@ -145,0 +152,0 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
170207
4899
6
+ Addedast-types@0.14.2(transitive)
+ Addedrecast@0.20.5(transitive)
+ Addedtslib@2.8.1(transitive)
- Removedast-types@0.13.3(transitive)
- Removedprivate@0.1.8(transitive)
- Removedrecast@0.18.10(transitive)
Updatedgraceful-fs@^4.2.4
Updatedrecast@^0.20.3