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.5.1 to 1.6.0

2

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

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

/// <reference types="node" />
import * as realFs from 'fs';
export default function run(argv: Array<string>, stdin: NodeJS.ReadableStream, stdout: NodeJS.WritableStream, stderr: NodeJS.WritableStream, fs?: typeof realFs): Promise<number>;
export default function run(argv: Array<string>, stdin: NodeJS.ReadStream, stdout: NodeJS.WriteStream, stderr: NodeJS.WriteStream, fs?: typeof realFs): Promise<number>;

@@ -105,2 +105,4 @@ "use strict";

runner = new TransformRunner_1.default(sourcesIterator, plugins);
let dim = stdout.isTTY ? '\x1b[2m' : '';
let reset = stdout.isTTY ? '\x1b[0m' : '';
for (let result of runner.run()) {

@@ -112,3 +114,6 @@ if (result.output) {

else {
if (result.output !== result.source.content) {
if (result.output === result.source.content) {
stdout.write(`${dim}${result.source.path}${reset}\n`);
}
else {
stats.modified++;

@@ -115,0 +120,0 @@ stdout.write(`${result.source.path}\n`);

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