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

jscodeshift

Package Overview
Dependencies
Maintainers
3
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jscodeshift - npm Package Compare versions

Comparing version 0.6.3 to 0.6.4

6

CHANGELOG.md

@@ -7,2 +7,8 @@ # Changelog

## [0.6.4] 2019-04-30
### Changed
- Allow writing tests in TypeScript ([PR #308](https://github.com/facebook/jscodeshift/pull/308))
- Better handling of `.gitingore` files: Ignore comments and support `\r\n` line breaks ([PR #306](https://github.com/facebook/jscodeshift/pull/306))
## [0.6.3] 2019-01-18

@@ -9,0 +15,0 @@ ### Fixed

4

dist/ignoreFiles.js

@@ -15,3 +15,3 @@ 'use strict';

function addIgnorePattern(val) {
if (val && typeof val === 'string') {
if (val && typeof val === 'string' && val[0] !== '#') {
let pattern = val;

@@ -55,3 +55,3 @@ if (pattern.indexOf('/') === -1) {

const content = fs.readFileSync(config, 'utf8');
lines = lines.concat(content.split('\n'));
lines = lines.concat(content.split(/\r?\n/));
}

@@ -58,0 +58,0 @@ });

@@ -72,3 +72,3 @@ /**

// Assumes transform is one level up from __tests__ directory
const module = require(path.join(dirName, '..', transformName + '.js'));
const module = require(path.join(dirName, '..', transformName));
runInlineTest(module, options, {

@@ -75,0 +75,0 @@ path: inputPath,

{
"name": "jscodeshift",
"version": "0.6.3",
"version": "0.6.4",
"description": "A toolkit for JavaScript codemods",

@@ -5,0 +5,0 @@ "repository": {

# jscodeshift [![Build Status](https://travis-ci.org/facebook/jscodeshift.svg?branch=master)](https://travis-ci.org/facebook/jscodeshift)
jscodeshift is a toolkit for running codemods over multiple JavaScript or
Typescript files.
TypeScript files.
It provides:

@@ -88,3 +88,3 @@

As of v0.6.1, this module can also be written in Typescript.
As of v0.6.1, this module can also be written in TypeScript.

@@ -91,0 +91,0 @@ ### Arguments

@@ -15,3 +15,3 @@ 'use strict';

function addIgnorePattern(val) {
if (val && typeof val === 'string') {
if (val && typeof val === 'string' && val[0] !== '#') {
let pattern = val;

@@ -55,3 +55,3 @@ if (pattern.indexOf('/') === -1) {

const content = fs.readFileSync(config, 'utf8');
lines = lines.concat(content.split('\n'));
lines = lines.concat(content.split(/\r?\n/));
}

@@ -58,0 +58,0 @@ });

@@ -72,3 +72,3 @@ /**

// Assumes transform is one level up from __tests__ directory
const module = require(path.join(dirName, '..', transformName + '.js'));
const module = require(path.join(dirName, '..', transformName));
runInlineTest(module, options, {

@@ -75,0 +75,0 @@ path: inputPath,

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