Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Feb 29, 2020
1 parent 8270551 commit e2099ed
Show file tree
Hide file tree
Showing 15 changed files with 2,632 additions and 1,731 deletions.
26 changes: 13 additions & 13 deletions package.json
@@ -1,19 +1,19 @@
{
"private": true,
"devDependencies": {
"@babel/core": "^7.6.4",
"@babel/preset-env": "^7.6.3",
"babel-jest": "^24.9.0",
"codecov": "^3.6.1",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint-config-xo": "^0.27.1",
"eslint-plugin-prettier": "^3.1.1",
"husky": "^3.0.9",
"jest": "^24.9.0",
"lerna": "^3.17.0",
"lint-staged": "^10.0.3",
"prettier": "^1.18.2"
"@babel/core": "^7.8.6",
"@babel/preset-env": "^7.8.6",
"babel-jest": "^25.1.0",
"codecov": "^3.6.5",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-config-xo": "^0.29.1",
"eslint-plugin-prettier": "^3.1.2",
"husky": "^4.2.3",
"jest": "^25.1.0",
"lerna": "^3.20.2",
"lint-staged": "^10.0.8",
"prettier": "^1.19.1"
},
"workspaces": [
"packages/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/checkbox/package.json
Expand Up @@ -15,7 +15,7 @@
"license": "MIT",
"dependencies": {
"@inquirer/core": "^0.0.8-alpha.0",
"chalk": "^2.4.1",
"chalk": "^3.0.0",
"figures": "^3.0.0"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/confirm/package.json
Expand Up @@ -19,7 +19,7 @@
"dependencies": {
"@inquirer/core": "^0.0.8-alpha.0",
"@inquirer/input": "^0.0.8-alpha.0",
"chalk": "^2.4.1"
"chalk": "^3.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Expand Up @@ -14,14 +14,14 @@
"license": "MIT",
"dependencies": {
"ansi-escapes": "^4.2.1",
"chalk": "^2.4.2",
"chalk": "^3.0.0",
"cli-spinners": "^2.2.0",
"cli-width": "^2.2.0",
"lodash": "^4.17.12",
"mute-stream": "^0.0.8",
"run-async": "^2.3.0",
"string-width": "^4.1.0",
"strip-ansi": "^5.2.0"
"strip-ansi": "^6.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/package.json
Expand Up @@ -14,7 +14,7 @@
"license": "MIT",
"dependencies": {
"@inquirer/core": "^0.0.8-alpha.0",
"chalk": "^2.4.1",
"chalk": "^3.0.0",
"external-editor": "^3.0.3"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/expand/package.json
Expand Up @@ -15,7 +15,7 @@
"license": "MIT",
"dependencies": {
"@inquirer/core": "^0.0.8-alpha.0",
"chalk": "^2.4.1",
"chalk": "^3.0.0",
"figures": "^3.0.0"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/input/package.json
Expand Up @@ -14,7 +14,7 @@
"license": "MIT",
"dependencies": {
"@inquirer/core": "^0.0.8-alpha.0",
"chalk": "^2.4.1"
"chalk": "^3.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 1 addition & 0 deletions packages/inquirer/lib/objects/choice.js
Expand Up @@ -13,6 +13,7 @@ module.exports = class Choice {
constructor(val, answers) {
// Don't process Choice and Separator object
if (val instanceof Choice || val.type === 'separator') {
// eslint-disable-next-line no-constructor-return
return val;
}

Expand Down
2 changes: 0 additions & 2 deletions packages/inquirer/lib/prompts/confirm.js
Expand Up @@ -31,8 +31,6 @@ class ConfirmPrompt extends Base {
}

this.opt.default = rawDefault ? 'Y/n' : 'y/N';

return this;
}

/**
Expand Down
14 changes: 7 additions & 7 deletions packages/inquirer/package.json
Expand Up @@ -21,12 +21,12 @@
},
"devDependencies": {
"chai": "^4.2.0",
"chalk-pipe": "^2.0.0",
"chalk-pipe": "^3.0.0",
"cmdify": "^0.0.4",
"mocha": "^6.2.1",
"mocha": "^7.1.0",
"mockery": "^2.1.0",
"nyc": "^14.1.1",
"sinon": "^7.5.0"
"nyc": "^15.0.0",
"sinon": "^9.0.0"
},
"scripts": {
"test": "nyc mocha test/**/* -r ./test/before",
Expand All @@ -38,17 +38,17 @@
"license": "MIT",
"dependencies": {
"ansi-escapes": "^4.2.1",
"chalk": "^2.4.2",
"chalk": "^3.0.0",
"cli-cursor": "^3.1.0",
"cli-width": "^2.0.0",
"external-editor": "^3.0.3",
"figures": "^3.0.0",
"lodash": "^4.17.15",
"mute-stream": "0.0.8",
"run-async": "^2.2.0",
"run-async": "^2.4.0",
"rxjs": "^6.5.3",
"string-width": "^4.1.0",
"strip-ansi": "^5.1.0",
"strip-ansi": "^6.0.0",
"through": "^2.3.6"
}
}
10 changes: 8 additions & 2 deletions packages/inquirer/test/specs/objects/choices.js
Expand Up @@ -37,12 +37,18 @@ describe('Choices collection', function() {
});

it('should allow plucking choice content', function() {
var choices = new Choices([{ name: 'n', key: 'foo' }, { name: 'a', key: 'lab' }]);
var choices = new Choices([
{ name: 'n', key: 'foo' },
{ name: 'a', key: 'lab' }
]);
expect(choices.pluck('key')).to.eql(['foo', 'lab']);
});

it('should allow filtering value with where', function() {
var choices = new Choices([{ name: 'n', key: 'foo' }, { name: 'a', key: 'lab' }]);
var choices = new Choices([
{ name: 'n', key: 'foo' },
{ name: 'a', key: 'lab' }
]);
expect(choices.where({ key: 'lab' })).to.eql([
{
name: 'a',
Expand Down
5 changes: 4 additions & 1 deletion packages/inquirer/test/specs/prompts/expand.js
Expand Up @@ -21,7 +21,10 @@ describe('`expand` prompt', function() {

it('should throw if `key` is duplicate', function() {
expect(() => {
this.fixture.choices = [{ key: 'a', name: 'foo' }, { key: 'a', name: 'foo' }];
this.fixture.choices = [
{ key: 'a', name: 'foo' },
{ key: 'a', name: 'foo' }
];
return new Expand(this.fixture, this.rl);
}).to.throw(/Duplicate key error/);
});
Expand Down
2 changes: 1 addition & 1 deletion packages/password/package.json
Expand Up @@ -19,7 +19,7 @@
"repository": "SBoudrias/Inquirer.js",
"dependencies": {
"@inquirer/input": "^0.0.8-alpha.0",
"chalk": "^2.4.1"
"chalk": "^3.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/select/package.json
Expand Up @@ -14,7 +14,7 @@
"license": "MIT",
"dependencies": {
"@inquirer/core": "^0.0.8-alpha.0",
"chalk": "^2.4.1",
"chalk": "^3.0.0",
"figures": "^3.0.0"
},
"publishConfig": {
Expand Down

0 comments on commit e2099ed

Please sign in to comment.