Skip to content

Commit 8b508a3

Browse files
authoredNov 1, 2023
feat(security): upgrade dependencies for security CVE's (#1003)
* feat(security): upgrade dependencies for security CVE's * feat(security): upgrade dependencies for security CVE's * feat(security): upgrade dependencies for security CVE's * feat(security): upgrade dependencies for security CVE's
1 parent f051335 commit 8b508a3

File tree

7 files changed

+10002
-7018
lines changed

7 files changed

+10002
-7018
lines changed
 

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ logs
3636
npm-debug.log*
3737
yarn-debug.log*
3838
yarn-error.log*
39+
.yarn
40+
.yarnrc.yml
3941

4042
# Runtime data
4143
pids

‎package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"devDependencies": {
2626
"@commitlint/cli": "^17.0.3",
2727
"@commitlint/config-conventional": "^17.0.3",
28-
"@faker-js/faker": "^8.0.2",
28+
"@faker-js/faker": "^8.2.0",
2929
"@release-it-plugins/workspaces": "^3.2.0",
3030
"@release-it/conventional-changelog": "^5.0.0",
3131
"@types/node": "^18.14.6",
@@ -34,7 +34,7 @@
3434
"@typescript-eslint/parser": "^5.33.0",
3535
"dotenv-cli": "^6.0.0",
3636
"esbuild-plugin-alias": "^0.2.1",
37-
"eslint": "^8.22.0",
37+
"eslint": "^8.52.0",
3838
"eslint-config-prettier": "^8.5.0",
3939
"eslint-config-turbo": "^0.0.4",
4040
"eslint-plugin-prettier": "^4.2.1",
@@ -49,6 +49,6 @@
4949
"turbo": "^1.10.16",
5050
"typescript": "^4.7.4",
5151
"vitest": "^0.6.3",
52-
"zx": "^7.0.8"
52+
"zx": "^7.2.3"
5353
}
5454
}

‎packages/core/package.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,39 @@
1515
},
1616
"devDependencies": {
1717
"@types/chalk": "^2.2.0",
18-
"@types/debug": "^4.1.7",
19-
"@types/fs-extra": "^9.0.13",
18+
"@types/debug": "^4.1.10",
19+
"@types/fs-extra": "^11.0.3",
2020
"@types/inquirer": "^9.0.6",
21-
"@types/lodash.get": "^4.4.7",
22-
"@types/lodash.isempty": "^4.4.7",
23-
"@types/lodash.omit": "^4.5.7",
24-
"@types/lodash.uniq": "^4.5.7",
25-
"@types/lodash.uniqby": "^4.7.7",
21+
"@types/lodash.get": "^4.4.8",
22+
"@types/lodash.isempty": "^4.4.8",
23+
"@types/lodash.omit": "^4.5.8",
24+
"@types/lodash.uniq": "^4.5.8",
25+
"@types/lodash.uniqby": "^4.7.8",
2626
"@types/lodash.uniqwith": "^4.5.8",
27-
"@types/micromatch": "^4.0.2",
28-
"@types/validator": "^13.7.5"
27+
"@types/micromatch": "^4.0.4",
28+
"@types/validator": "^13.11.5"
2929
},
3030
"dependencies": {
3131
"@apidevtools/swagger-parser": "^10.1.0",
32-
"acorn": "^8.8.0",
33-
"ajv": "^8.11.0",
32+
"@ibm-cloud/openapi-ruleset": "^1.14.2",
33+
"acorn": "^8.11.2",
34+
"ajv": "^8.12.0",
3435
"chalk": "^4.1.2",
3536
"compare-versions": "^6.1.0",
3637
"debug": "^4.3.4",
3738
"esbuild": "^0.19.5",
3839
"esutils": "2.0.3",
39-
"fs-extra": "^10.1.0",
40+
"fs-extra": "^11.1.1",
4041
"globby": "11.1.0",
41-
"ibm-openapi-validator": "^0.97.3",
4242
"lodash.get": "^4.4.2",
4343
"lodash.isempty": "^4.4.0",
4444
"lodash.omit": "^4.5.0",
4545
"lodash.uniq": "^4.5.0",
4646
"lodash.uniqby": "^4.7.0",
4747
"lodash.uniqwith": "^4.5.0",
4848
"micromatch": "^4.0.5",
49-
"openapi3-ts": "^3.0.0",
49+
"openapi3-ts": "^3.2.0",
5050
"swagger2openapi": "^7.0.8",
51-
"validator": "^13.7.0"
51+
"validator": "^13.11.0"
5252
}
5353
}

‎packages/core/src/utils/validator.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
import openApiValidator from 'ibm-openapi-validator';
21
import { OpenAPIObject } from 'openapi3-ts';
32
import {
43
ibmOpenapiValidatorErrors,
54
ibmOpenapiValidatorWarnings,
65
} from './logger';
76

7+
const ibmOpenapiRuleset = require('@ibm-cloud/openapi-ruleset');
8+
const { Spectral } = require('@stoplight/spectral-core');
9+
810
/**
911
* Validate the spec with ibm-openapi-validator (with a custom pretty logger).
1012
* More information: https://github.com/IBM/openapi-validator/#configuration
1113
* @param specs openAPI spec
1214
*/
1315
export const ibmOpenapiValidator = async (specs: OpenAPIObject) => {
14-
const { errors, warnings } = await openApiValidator(specs);
16+
const spectral = new Spectral();
17+
spectral.setRuleset(ibmOpenapiRuleset);
18+
const { errors, warnings } = await spectral.run(specs);
1519

1620
if (warnings.length) {
1721
ibmOpenapiValidatorWarnings(warnings);

‎packages/msw/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"dependencies": {
1616
"@orval/core": "6.19.1",
1717
"cuid": "^2.1.8",
18-
"openapi3-ts": "^3.0.0",
1918
"lodash.get": "^4.4.2",
20-
"lodash.omit": "^4.5.0"
19+
"lodash.omit": "^4.5.0",
20+
"openapi3-ts": "^3.0.0"
2121
}
2222
}

‎packages/orval/package.json

+8-10
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"files": [
77
"dist"
88
],
9-
"bin": {
10-
"orval": "dist/bin/orval.js"
11-
},
9+
"bin": "dist/bin/orval.js",
1210
"type": "commonjs",
1311
"main": "dist/index.js",
1412
"keywords": [
@@ -51,8 +49,8 @@
5149
"devDependencies": {
5250
"@types/chalk": "^2.2.0",
5351
"@types/inquirer": "^9.0.6",
54-
"@types/js-yaml": "^4.0.5",
55-
"@types/lodash.uniq": "^4.5.7"
52+
"@types/js-yaml": "^4.0.8",
53+
"@types/lodash.uniq": "^4.5.8"
5654
},
5755
"dependencies": {
5856
"@apidevtools/swagger-parser": "^10.1.0",
@@ -63,17 +61,17 @@
6361
"@orval/query": "6.19.1",
6462
"@orval/swr": "6.19.1",
6563
"@orval/zod": "6.19.1",
66-
"ajv": "^8.11.0",
67-
"cac": "^6.7.12",
64+
"ajv": "^8.12.0",
65+
"cac": "^6.7.14",
6866
"chalk": "^4.1.2",
6967
"chokidar": "^3.5.3",
70-
"enquirer": "^2.3.6",
68+
"enquirer": "^2.4.1",
7169
"execa": "^5.1.1",
7270
"find-up": "5.0.0",
7371
"fs-extra": "^10.1.0",
7472
"lodash.uniq": "^4.5.0",
75-
"openapi3-ts": "^3.0.0",
76-
"string-argv": "^0.3.1",
73+
"openapi3-ts": "^3.2.0",
74+
"string-argv": "^0.3.2",
7775
"tsconfck": "^2.0.1"
7876
}
7977
}

‎yarn.lock

+9,966-6,986
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.