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

recast

Package Overview
Dependencies
Maintainers
2
Versions
266
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

recast - npm Package Compare versions

Comparing version 0.23.1 to 0.23.2

6

lib/comments.js

@@ -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) {

16

package.json
{
"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",

@@ -67,3 +67,3 @@ # recast, _v_. ![CI](https://github.com/benjamn/recast/workflows/CI/badge.svg) [![Join the chat at https://gitter.im/benjamn/recast](https://badges.gitter.im/Join%20Chat.svg)](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

Sorry, the diff of this file is not supported yet

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