Skip to content

Commit 4899096

Browse files
committed
fix: deps update
1 parent 466c01b commit 4899096

File tree

7 files changed

+365
-240
lines changed

7 files changed

+365
-240
lines changed

index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { VERSION, checkForUpdate } from './lib';
2222
(async () => {
2323
await checkForUpdate();
2424

25-
yargs
25+
const argv: any = await yargs
2626
.usage('IMQ Command Line Interface' +
2727
`\nVersion: ${VERSION}` +
2828
'\n\nUsage: $0 <command>')
@@ -34,11 +34,10 @@ import { VERSION, checkForUpdate } from './lib';
3434
.argv
3535
;
3636

37-
// noinspection TypeScriptUnresolvedFunction
38-
const commands = (<any>yargs).getCommandInstance().getCommands();
37+
const commands = (yargs as any).getCommandInstance().getCommands();
3938

4039
if (commands.length && !(
41-
yargs.argv._[0] && ~commands.indexOf(yargs.argv._[0])
40+
argv._[0] && ~commands.indexOf(argv._[0])
4241
)) {
4342
yargs.showHelp();
4443
process.exit(1);

package-lock.json

Lines changed: 337 additions & 212 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@
3939
"author": "imqueue.com <[email protected]> (https://imqueue.com)",
4040
"license": "ISC",
4141
"dependencies": {
42-
"@imqueue/core": "^1.11.3",
43-
"@imqueue/rpc": "^1.13.3",
42+
"@imqueue/core": "^1.11.4",
43+
"@imqueue/rpc": "^1.13.4",
4444
"@imqueue/travis": "^1.1.0",
4545
"@octokit/rest": "16.42.2",
4646
"chalk": "^4.1.1",
4747
"command-exists": "^1.2.9",
48-
"dotenv": "^8.2.0",
49-
"inquirer": "^8.0.0",
48+
"dotenv": "^10.0.0",
49+
"inquirer": "^8.1.0",
5050
"inquirer-autocomplete-prompt": "^1.3.0",
5151
"node-rsa": "^1.1.1",
5252
"request": "^2.88.2",
@@ -56,31 +56,31 @@
5656
},
5757
"preferGlobal": true,
5858
"devDependencies": {
59-
"@types/chai": "^4.2.17",
59+
"@types/chai": "^4.2.18",
6060
"@types/inquirer": "^7.3.1",
6161
"@types/mocha": "^8.2.2",
6262
"@types/mock-require": "^2.0.0",
63-
"@types/node": "^15.0.1",
63+
"@types/node": "^15.6.1",
6464
"@types/node-rsa": "^1.1.0",
6565
"@types/request": "^2.48.5",
66-
"@types/semver": "^7.3.5",
67-
"@types/sinon": "^10.0.0",
68-
"@types/yargs": "^16.0.1",
66+
"@types/semver": "^7.3.6",
67+
"@types/sinon": "^10.0.1",
68+
"@types/yargs": "^17.0.0",
6969
"chai": "^4.3.4",
7070
"codeclimate-test-reporter": "^0.5.1",
7171
"coveralls": "^3.1.0",
7272
"minimist": "^1.2.5",
73-
"mocha": "^8.3.2",
73+
"mocha": "^8.4.0",
7474
"mocha-lcov-reporter": "^1.3.0",
7575
"mock-require": "^3.0.3",
7676
"nyc": "^15.1.0",
77-
"open": "^8.0.7",
77+
"open": "^8.2.0",
7878
"reflect-metadata": "^0.1.13",
79-
"sinon": "^10.0.0",
79+
"sinon": "^11.1.1",
8080
"source-map-support": "^0.5.19",
81-
"ts-node": "^9.1.1",
81+
"ts-node": "^10.0.0",
8282
"typedoc": "^0.20.36",
83-
"typescript": "^4.2.4"
83+
"typescript": "^4.3.2"
8484
},
8585
"main": "index.js",
8686
"bin": {

src/completions/off.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export const { command, describe, builder, handler } = {
4848
command: 'off',
4949
describe: 'Disables completions for this program in your shell',
5050

51-
builder(yargs: Argv) {
52-
PROGRAM = yargs.argv.$0;
51+
async builder(yargs: Argv) {
52+
PROGRAM = (await yargs.argv).$0;
5353
RX_REPLACE = new RegExp(`###-begin-${PROGRAM}-completions-###`
5454
+ '[\\s\\S]*?' + `###-end-${PROGRAM}-completions-###`);
5555
},

src/completions/on.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ export const { command, describe, builder, handler } = {
9191
command: 'on',
9292
describe: 'Enables completions for this program in your shell',
9393

94-
builder(yargs: Argv) {
95-
PROGRAM = yargs.argv.$0;
94+
async builder(yargs: Argv) {
95+
PROGRAM = (await yargs.argv).$0;
9696
RX_EXISTS = new RegExp(`###-begin-${PROGRAM}-completions-###`);
9797
},
9898

src/config/get.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ export const { command, describe, builder, handler } = {
2727
describe: 'Prints value for given option from config. If option is ' +
2828
'not provided, will list all config options',
2929

30-
builder(yargs: Argv) {
31-
PROGRAM = yargs.argv.$0;
30+
async builder(yargs: Argv) {
31+
PROGRAM = (await yargs.argv).$0;
32+
3233
return yargs
3334
.option('j', {
3435
alias: 'json',

src/service/update-version.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function isFolderContainsService(
6969
*
7070
* @param {string[]} paths - array of paths to folders with services
7171
* @param {Arguments} args - cli args
72-
* @returns {void}
72+
* @returns {void}
7373
*/
7474
function walkThroughFolders(paths: string[], args: Arguments) {
7575
for (const path of paths) {
@@ -196,7 +196,7 @@ function execGitFlow(
196196

197197
/**
198198
* Walks through folders and check if each folder contains service
199-
*
199+
*
200200
* @param {string} path - path to root folder with services
201201
* @returns {string[]} - array of folders with services
202202
*/
@@ -229,8 +229,8 @@ export const { command, describe, builder, handler } = {
229229
describe: 'Updates services under given path with new version tag ' +
230230
'and automatically pushes changes to repository, triggering builds.',
231231

232-
builder(yargs: Argv) {
233-
PROGRAM = yargs.argv.$0;
232+
async builder(yargs: Argv) {
233+
PROGRAM = (await yargs.argv).$0;
234234
return yargs
235235
.option('b', {
236236
alias: 'branch',

0 commit comments

Comments
 (0)