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

babel-codemod

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-codemod - npm Package Compare versions

Comparing version 1.9.6 to 1.9.7

2

package.json
{
"name": "babel-codemod",
"version": "1.9.6",
"version": "1.9.7",
"description": "babel-codemod rewrites JavaScript using babel plugins.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -15,2 +15,5 @@ "use strict";

let prettier = loadPrettier();
function resolvePrettierConfig(filepath) {
return Object.assign({}, (prettier.resolveConfig.sync(filepath) || undefined), { filepath });
}
return {

@@ -20,3 +23,3 @@ parserOverride: RecastPlugin_1.parse,

return {
code: prettier.format(RecastPlugin_1.generate(ast, options, code, _generate).code, prettier.resolveConfig.sync(options.filename) || undefined)
code: prettier.format(RecastPlugin_1.generate(ast, options, code, _generate).code, resolvePrettierConfig(options.filename))
};

@@ -23,0 +26,0 @@ }

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