@@ -15,3 +15,3 @@ name: CI | ||
| matrix: | ||
| node_version: ['10.x', '12.x', '14.x', '15.x', '16.x'] | ||
| node_version: ['12.x', '14.x', '16.x', '18.x', '19.x', '20.x'] | ||
| os: [ubuntu-latest] | ||
@@ -18,0 +18,0 @@ |
+6
-0
@@ -198,2 +198,8 @@ "use strict"; | ||
| } | ||
| if (indexOfFirstLeadingComment) { | ||
| var enclosingNode = tiesToBreak[indexOfFirstLeadingComment - 1].enclosingNode; | ||
| if ((enclosingNode === null || enclosingNode === void 0 ? void 0 : enclosingNode.type) === "CallExpression") { | ||
| --indexOfFirstLeadingComment; | ||
| } | ||
| } | ||
| tiesToBreak.forEach(function (comment, i) { | ||
@@ -200,0 +206,0 @@ if (i < indexOfFirstLeadingComment) { |
+8
-8
| { | ||
| "author": "Ben Newman <bn@cs.stanford.edu>", | ||
| "name": "recast", | ||
| "version": "0.23.1", | ||
| "version": "0.23.2", | ||
| "description": "JavaScript syntax tree transformer, nondestructive pretty-printer, and automatic source map generator", | ||
@@ -56,12 +56,12 @@ "keywords": [ | ||
| "@types/esprima": "4.0.3", | ||
| "@types/glob": "7.2.0", | ||
| "@types/mocha": "8.2.0", | ||
| "@types/glob": "8.0.0", | ||
| "@types/mocha": "10.0.1", | ||
| "@types/node": "18.11.15", | ||
| "@typescript-eslint/parser": "^4.9.1", | ||
| "eslint": "^7.1.0", | ||
| "@typescript-eslint/parser": "^5.47.1", | ||
| "eslint": "^8.40.0", | ||
| "esprima-fb": "15001.1001.0-dev-harmony-fb", | ||
| "flow-parser": "0.195.0", | ||
| "glob": "7.2.0", | ||
| "lint-staged": "^12.4.1", | ||
| "mocha": "^9.2.2", | ||
| "glob": "8.0.3", | ||
| "lint-staged": "^13.2.2", | ||
| "mocha": "^10.2.0", | ||
| "prettier": "^2.6.2", | ||
@@ -68,0 +68,0 @@ "reify": "0.20.12", |
+2
-2
@@ -67,3 +67,3 @@ # recast, _v_.  [](https://gitter.im/benjamn/recast?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
| See [ast-types](https://github.com/benjamn/ast-types) (especially the [def/core.ts](https://github.com/benjamn/ast-types/blob/master/def/core.ts)) module for a thorough overview of the `ast` API. | ||
| See [ast-types](https://github.com/benjamn/ast-types) (especially the [def/core.ts](https://github.com/benjamn/ast-types/blob/master/src/def/core.ts)) module for a thorough overview of the `ast` API. | ||
@@ -174,3 +174,3 @@ ```js | ||
| After calling `recast.parse`, if you're going to transform the AST, make sure that the `.original` property is preserved. With Babel, for instance, if you call `transformFromAST`, you must pass `cloneInputAst: false` in its options. ([More detail](https://github.com/babel/babel/issues/12882). | ||
| After calling `recast.parse`, if you're going to transform the AST, make sure that the `.original` property is preserved. With Babel, for instance, if you call `transformFromAST`, you must pass `cloneInputAst: false` in its options. ([More detail](https://github.com/babel/babel/issues/12882)). | ||
@@ -177,0 +177,0 @@ ## Source maps |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
243882
0.13%5799
0.1%