jscodeshift
Advanced tools
Comparing version 0.6.3 to 0.6.4
@@ -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 |
@@ -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, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
1342903