Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
tough-griff committed Apr 9, 2020
1 parent 4cc49a9 commit acbdd7e
Show file tree
Hide file tree
Showing 5 changed files with 3,742 additions and 3,747 deletions.
6 changes: 3 additions & 3 deletions .noderc.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
const chalk = require('chalk');
const _ = require('lodash'); // eslint-disable-line import/no-extraneous-dependencies

const defaultValCb = i => i + 1;
const defaultKeyCb = c => String.fromCharCode(96 + (c + 1));
const defaultValCb = (i) => i + 1;
const defaultKeyCb = (c) => String.fromCharCode(96 + (c + 1));

const init = function initializeContext(ctx) {
Object.defineProperty(ctx, '_', {
value: _.runInContext(ctx),
});
};

module.exports = repl => {
module.exports = (repl) => {
repl.setPrompt(`${process.version} ${chalk.green('❯')} `);

init(repl.context);
Expand Down
2 changes: 1 addition & 1 deletion .noderc.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const assert = require('assert').strict;
const { REPLServer } = require('repl');

module.exports = repl => {
module.exports = (repl) => {
try {
assert.ok(repl instanceof REPLServer);
console.log('PASS');
Expand Down
8 changes: 4 additions & 4 deletions index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const rrepl = ({ argv = [], env = {} } = {}) => {
stderrMonitor: jest.fn(),
};

return new Promise(resolve => {
return new Promise((resolve) => {
const child = spawn('node', [path.resolve('index.js'), ...argv], {
cwd: path.resolve('.'),
env: { ...process.env, ...env }, // eslint-disable-line node/no-unsupported-features/es-syntax
Expand All @@ -49,16 +49,16 @@ const rrepl = ({ argv = [], env = {} } = {}) => {

resolve(result);
});
child.once('error', err => {
child.once('error', (err) => {
result.errs.push(err);
resolve(result);
});
child.stdout.on('data', data => {
child.stdout.on('data', (data) => {
const string = data.toString();
result.stdout = result.stdout.concat(string);
result.stdoutMonitor(string);
});
child.stderr.on('data', data => {
child.stderr.on('data', (data) => {
const string = data.toString();
result.stderr = result.stderr.concat(string);
result.stderrMonitor(string);
Expand Down
Loading

0 comments on commit acbdd7e

Please sign in to comment.