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

jest-changed-files

Package Overview
Dependencies
Maintainers
2
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-changed-files - npm Package Compare versions

Comparing version 20.0.3 to 20.1.0-alpha.1

40

build/git.js

@@ -13,11 +13,11 @@ 'use strict';

const path = require('path'); /**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/const childProcess = require('child_process');function findChangedFiles(
var _path = require('path');var _path2 = _interopRequireDefault(_path);
var _child_process = require('child_process');var _child_process2 = _interopRequireDefault(_child_process);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
function findChangedFiles(
cwd,

@@ -30,3 +30,3 @@ options)

['ls-files', '--other', '--modified', '--exclude-standard'];
const child = childProcess.spawn('git', args, { cwd });
const child = _child_process2.default.spawn('git', args, { cwd });
let stdout = '';

@@ -46,3 +46,3 @@ let stderr = '';

split('\n').
map(changedPath => path.resolve(cwd, changedPath)));
map(changedPath => _path2.default.resolve(cwd, changedPath)));

@@ -55,11 +55,11 @@ }

});
}
function isGitRepository(cwd) {
return new Promise(resolve => {
try {
let stdout = '';
const options = ['rev-parse', '--show-toplevel'];
const child = childProcess.spawn('git', options, { cwd });
child.stdout.on('data', data => stdout += data);
} /**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/function isGitRepository(cwd) {return new Promise(resolve => {try {let stdout = '';const options = ['rev-parse', '--show-toplevel'];const child = _child_process2.default.spawn('git', options, { cwd });child.stdout.on('data', data => stdout += data);
child.on('error', () => resolve(null));

@@ -66,0 +66,0 @@ child.on('close', code => resolve(code === 0 ? stdout.trim() : null));

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

const path = require('path'); /**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/const childProcess = require('child_process');const env = Object.assign({}, process.env, { HGPLAIN: 1 });
var _path = require('path');var _path2 = _interopRequireDefault(_path);
var _child_process = require('child_process');var _child_process2 = _interopRequireDefault(_child_process);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
function findChangedFiles(cwd, options) {
const env = Object.assign({}, process.env, {
HGPLAIN: 1 }); /**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/function findChangedFiles(cwd, options) {
return new Promise((resolve, reject) => {

@@ -34,3 +34,3 @@ let args = ['status', '-amn'];

}
const child = childProcess.spawn('hg', args, { cwd, env });
const child = _child_process2.default.spawn('hg', args, { cwd, env });
let stdout = '';

@@ -50,3 +50,3 @@ let stderr = '';

split('\n').
map(changedPath => path.resolve(cwd, changedPath)));
map(changedPath => _path2.default.resolve(cwd, changedPath)));

@@ -65,3 +65,3 @@ }

let stdout = '';
const child = childProcess.spawn('hg', ['root'], { cwd, env });
const child = _child_process2.default.spawn('hg', ['root'], { cwd, env });
child.stdout.on('data', data => stdout += data);

@@ -68,0 +68,0 @@ child.on('error', () => resolve(null));

@@ -1,13 +0,20 @@

'use strict'; /**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/
'use strict';
module.exports = {
git: require('./git'),
hg: require('./hg') };
var _git = require('./git');var _git2 = _interopRequireDefault(_git);
var _hg = require('./hg');var _hg2 = _interopRequireDefault(_hg);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/module.exports = { git: _git2.default, hg: _hg2.default };
{
"name": "jest-changed-files",
"version": "20.0.3",
"version": "20.1.0-alpha.1",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

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