Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4ea6ef8

Browse files
vsavkinFrozenPandaz
authored andcommittedSep 11, 2020
fix(core): update the version of yargs to fix npm audit
1 parent ab943ae commit 4ea6ef8

File tree

9 files changed

+45
-37
lines changed

9 files changed

+45
-37
lines changed
 

Diff for: ‎package.json

+5-8
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"@types/react-redux": "7.1.5",
9494
"@types/react-router-dom": "5.1.3",
9595
"@types/webpack": "^4.4.24",
96-
"@types/yargs": "^11.0.0",
96+
"@types/yargs": "^15.0.5",
9797
"@typescript-eslint/eslint-plugin": "^2.19.2",
9898
"@typescript-eslint/experimental-utils": "^2.19.2",
9999
"@typescript-eslint/parser": "^2.19.2",
@@ -102,7 +102,7 @@
102102
"@zeit/next-sass": "1.0.1",
103103
"@zeit/next-stylus": "1.0.1",
104104
"ajv": "6.10.2",
105-
"angular": "1.7.9",
105+
"angular": "1.8.0",
106106
"app-root-path": "^2.0.1",
107107
"autoprefixer": "9.7.4",
108108
"axios": "^0.19.0",
@@ -235,9 +235,9 @@
235235
"webpack-sources": "1.4.3",
236236
"webpack-subresource-integrity": "1.1.0-rc.6",
237237
"worker-plugin": "3.2.0",
238-
"yargs": "^11.0.0",
239-
"yargs-parser": "10.0.0",
240-
"zone.js": "^0.10.0"
238+
"yargs": "15.4.1",
239+
"zone.js": "^0.10.0",
240+
"@nrwl/nx-cloud": "10.1.0-beta.2"
241241
},
242242
"author": "Victor Savkin",
243243
"license": "MIT",
@@ -250,8 +250,5 @@
250250
"hooks": {
251251
"pre-push": "yarn checkcommit && yarn documentation && pretty-quick --check"
252252
}
253-
},
254-
"dependencies": {
255-
"@nrwl/nx-cloud": "^9.3.2"
256253
}
257254
}

Diff for: ‎packages/cli/lib/parse-run-one-options.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function parseRunOneOptions(
2929
let configuration;
3030

3131
if (parsedArgs._[0] === 'run') {
32-
[project, target, configuration] = parsedArgs._[1].split(':');
32+
[project, target, configuration] = (parsedArgs._[1] as any).split(':');
3333
parsedArgs._ = parsedArgs._.slice(2);
3434
} else {
3535
target = parsedArgs._[0];

Diff for: ‎packages/cli/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
"homepage": "https://nx.dev",
2929
"dependencies": {
3030
"tmp": "0.0.33",
31-
"yargs-parser": "10.0.0",
32-
"yargs": "^11.0.0",
31+
"yargs": "15.4.1",
3332
"@nrwl/tao": "*",
3433
"chalk": "2.4.2"
3534
}

Diff for: ‎packages/create-nx-plugin/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
"dependencies": {
3030
"@nrwl/workspace": "*",
3131
"tmp": "0.0.33",
32-
"yargs-parser": "10.0.0",
33-
"yargs": "^11.0.0",
32+
"yargs": "15.4.1",
3433
"inquirer": "^6.3.1"
3534
}
3635
}

Diff for: ‎packages/create-nx-workspace/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
"dependencies": {
3030
"@nrwl/workspace": "*",
3131
"tmp": "0.0.33",
32-
"yargs-parser": "10.0.0",
33-
"yargs": "^11.0.0",
32+
"yargs": "15.4.1",
3433
"inquirer": "^6.3.1"
3534
}
3635
}

Diff for: ‎packages/nx-plugin/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
"@angular-devkit/schematics": "~9.1.0",
3737
"fs-extra": "7.0.1",
3838
"tmp": "0.0.33",
39-
"yargs-parser": "10.0.0",
40-
"yargs": "^11.0.0",
39+
"yargs": "15.4.1",
4140
"inquirer": "^6.3.1"
4241
}
4342
}

Diff for: ‎packages/workspace/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@
6262
"semver": "5.4.1",
6363
"strip-json-comments": "2.0.1",
6464
"tmp": "0.0.33",
65-
"yargs-parser": "10.0.0",
66-
"yargs": "^11.0.0",
65+
"yargs": "15.4.1",
6766
"chalk": "2.4.2",
6867
"@nrwl/cli": "*",
6968
"axios": "0.19.2"

Diff for: ‎packages/workspace/src/command-line/utils.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ export function splitArgsIntoNxArgsAndOverrides(
9898
if (!nxArgs.projects) {
9999
nxArgs.projects = [];
100100
} else {
101-
nxArgs.projects = args.projects.split(',').map((p: string) => p.trim());
101+
nxArgs.projects = (args.projects as string)
102+
.split(',')
103+
.map((p: string) => p.trim());
102104
}
103105
}
104106

Diff for: ‎yarn.lock

+31-17
Original file line numberDiff line numberDiff line change
@@ -2361,14 +2361,16 @@
23612361
webpack-merge "4.2.1"
23622362
webpack-node-externals "1.7.2"
23632363

2364-
"@nrwl/nx-cloud@^9.3.2":
2365-
version "9.3.2"
2366-
resolved "https://registry.yarnpkg.com/@nrwl/nx-cloud/-/nx-cloud-9.3.2.tgz#ed21480a8db8099346d507afeb203eef7e691eaf"
2367-
integrity sha512-ERt1ZFNFwf98FSgan8FSWt8D5KEQY98XKvXko+3qU+JVE6Ok1TDNEh6zLFcB5HJA0DFNpfeslfykaWtKsKsaxA==
2364+
"@nrwl/nx-cloud@10.1.0-beta.2":
2365+
version "10.1.0-beta.2"
2366+
resolved "https://registry.yarnpkg.com/@nrwl/nx-cloud/-/nx-cloud-10.1.0-beta.2.tgz#221bcec27c2a0461fb365b62fc279bf6ef345cf1"
2367+
integrity sha512-b9jN/9cFIvUIBRDhihmvxkCEaVxHlsYsoZ1zHdU8m7LZed0W4i1mFKO5eMvcD5YVp6mkEvZ8iYAZ9vAQsouffA==
23682368
dependencies:
23692369
axios "^0.19.0"
23702370
node-machine-id "^1.1.12"
2371+
rxjs "6.5.5"
23712372
tar "5.0.5"
2373+
uuid "^3.3.3"
23722374

23732375
"@nrwl/tao@9.4.4":
23742376
version "9.4.4"
@@ -3691,19 +3693,14 @@
36913693
resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-15.0.0.tgz#cb3f9f741869e20cce330ffbeb9271590483882d"
36923694
integrity sha512-FA/BWv8t8ZWJ+gEOnLLd8ygxH/2UFbAvgEonyfN6yWGLKc7zVjbpl2Y4CTjid9h2RfgPP6SEt6uHwEOply00yw==
36933695

3694-
"@types/yargs@^11.0.0":
3695-
version "11.1.5"
3696-
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-11.1.5.tgz#8d71dfe4848ac5d714b75eca3df9cac75a4f8dac"
3697-
integrity sha512-1jmXgoIyzxQSm33lYgEXvegtkhloHbed2I0QGlTN66U2F9/ExqJWSCSmaWC0IB/g1tW+IYSp+tDhcZBYB1ZGog==
3698-
36993696
"@types/yargs@^13.0.0":
37003697
version "13.0.9"
37013698
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-13.0.9.tgz#44028e974343c7afcf3960f1a2b1099c39a7b5e1"
37023699
integrity sha512-xrvhZ4DZewMDhoH1utLtOAwYQy60eYFoXeje30TzM3VOvQlBwQaEpKFq5m34k1wOw2AKIi2pwtiAjdmhvlBUzg==
37033700
dependencies:
37043701
"@types/yargs-parser" "*"
37053702

3706-
"@types/yargs@^15.0.0":
3703+
"@types/yargs@^15.0.0", "@types/yargs@^15.0.5":
37073704
version "15.0.5"
37083705
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-15.0.5.tgz#947e9a6561483bdee9adffc983e91a6902af8b79"
37093706
integrity sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==
@@ -4393,10 +4390,10 @@ amphtml-validator@1.0.30:
43934390
commander "2.15.1"
43944391
promise "8.0.1"
43954392

4396-
angular@1.7.9:
4397-
version "1.7.9"
4398-
resolved "https://registry.yarnpkg.com/angular/-/angular-1.7.9.tgz#e52616e8701c17724c3c238cfe4f9446fd570bc4"
4399-
integrity sha512-5se7ZpcOtu0MBFlzGv5dsM1quQDoDeUTwZrWjGtTNA7O88cD8TEk5IEKCTDa3uECV9XnvKREVUr7du1ACiWGFQ==
4393+
angular@1.8.0:
4394+
version "1.8.0"
4395+
resolved "https://registry.yarnpkg.com/angular/-/angular-1.8.0.tgz#b1ec179887869215cab6dfd0df2e42caa65b1b51"
4396+
integrity sha512-VdaMx+Qk0Skla7B5gw77a8hzlcOakwF8mjlW13DpIWIDlfqwAbSSLfd8N/qZnzEmQF4jC4iofInd3gE7vL8ZZg==
44004397

44014398
ansi-align@^2.0.0:
44024399
version "2.0.0"
@@ -18714,7 +18711,7 @@ rxjs@6.5.4:
1871418711
dependencies:
1871518712
tslib "^1.9.0"
1871618713

18717-
rxjs@^6.1.0, rxjs@^6.3.3, rxjs@^6.4.0, rxjs@^6.5.0, rxjs@^6.5.3, rxjs@^6.5.4:
18714+
rxjs@6.5.5, rxjs@^6.1.0, rxjs@^6.3.3, rxjs@^6.4.0, rxjs@^6.5.0, rxjs@^6.5.3, rxjs@^6.5.4:
1871818715
version "6.5.5"
1871918716
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.5.tgz#c5c884e3094c8cfee31bf27eb87e54ccfc87f9ec"
1872018717
integrity sha512-WfQI+1gohdf0Dai/Bbmk5L5ItH5tYqm3ki2c5GdWhKjalzjg93N3avFjVStyZZz+A2Em+ZxKH5bNghw9UeylGQ==
@@ -21218,7 +21215,7 @@ uuid@8.1.0:
2121821215
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.1.0.tgz#6f1536eb43249f473abc6bd58ff983da1ca30d8d"
2121921216
integrity sha512-CI18flHDznR0lq54xBycOVmphdCYnQLKn8abKn7PXUiKUGdEd+/l9LWNJmugXel4hXq7S+RMNl34ecyC9TntWg==
2122021217

21221-
uuid@^3.0.0, uuid@^3.0.1, uuid@^3.1.0, uuid@^3.3.2, uuid@^3.4.0:
21218+
uuid@^3.0.0, uuid@^3.0.1, uuid@^3.1.0, uuid@^3.3.2, uuid@^3.3.3, uuid@^3.4.0:
2122221219
version "3.4.0"
2122321220
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
2122421221
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
@@ -22047,7 +22044,7 @@ yargs-parser@11.0.0:
2204722044
camelcase "^5.0.0"
2204822045
decamelize "^1.2.0"
2204922046

22050-
yargs-parser@18.x, yargs-parser@^18.1.0, yargs-parser@^18.1.1, yargs-parser@^18.1.3:
22047+
yargs-parser@18.x, yargs-parser@^18.1.0, yargs-parser@^18.1.1, yargs-parser@^18.1.2, yargs-parser@^18.1.3:
2205122048
version "18.1.3"
2205222049
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0"
2205322050
integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==
@@ -22121,6 +22118,23 @@ yargs@15.3.0:
2212122118
y18n "^4.0.0"
2212222119
yargs-parser "^18.1.0"
2212322120

22121+
yargs@15.4.1:
22122+
version "15.4.1"
22123+
resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8"
22124+
integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==
22125+
dependencies:
22126+
cliui "^6.0.0"
22127+
decamelize "^1.2.0"
22128+
find-up "^4.1.0"
22129+
get-caller-file "^2.0.1"
22130+
require-directory "^2.1.1"
22131+
require-main-filename "^2.0.0"
22132+
set-blocking "^2.0.0"
22133+
string-width "^4.2.0"
22134+
which-module "^2.0.0"
22135+
y18n "^4.0.0"
22136+
yargs-parser "^18.1.2"
22137+
2212422138
yargs@^11.0.0:
2212522139
version "11.1.1"
2212622140
resolved "https://registry.yarnpkg.com/yargs/-/yargs-11.1.1.tgz#5052efe3446a4df5ed669c995886cc0f13702766"

0 commit comments

Comments
 (0)
Please sign in to comment.