Skip to content

Commit 5cbef35

Browse files
committed
fix: cve vulnerabilities remediations
1 parent 775786f commit 5cbef35

File tree

4 files changed

+2846
-3751
lines changed

4 files changed

+2846
-3751
lines changed

package.json

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,27 @@
3131
"terraform:cleanup": "rimraf ./tests/terraform/{.terraform,.terraform.lock.hcl,tfplan} ./tests/terraform/*.{tfstate,tfplan,backup}"
3232
},
3333
"dependencies": {
34-
"@cloudgraph/sdk": "0.20.0",
34+
"@cloudgraph/sdk": "^0.22.1",
3535
"@fast-csv/parse": "^4.3.6",
36-
"@graphql-tools/load-files": "6.3.2",
37-
"@graphql-tools/merge": "8.0.1",
36+
"@graphql-tools/load-files": "^6.5.3",
37+
"@graphql-tools/merge": "^8.2.1",
3838
"aws-sdk": "^2.1084.0",
3939
"chalk": "4.1.2",
4040
"cuid": "2.1.8",
4141
"dotenv": "10.0.0",
42-
"graphql": "^15.7.2",
42+
"graphql": "^16.2.0",
4343
"lodash": "4.17.21",
4444
"typescript": "4.3.5"
4545
},
4646
"devDependencies": {
4747
"@autocloud/eslint-config": "^0.1.0",
48-
"@graphql-codegen/cli": "^2.4.0",
49-
"@graphql-codegen/typescript": "1.23.0",
48+
"@graphql-codegen/cli": "^2.5.0",
49+
"@graphql-codegen/typescript": "^2.4.3",
5050
"@semantic-release/changelog": "^6.0.1",
5151
"@semantic-release/git": "^10.0.1",
5252
"@semantic-release/github": "^8.0.1",
5353
"@semantic-release/npm": "^9.0.1",
54-
"@types/jest": "^26.0.24",
54+
"@types/jest": "^27.0.0",
5555
"@types/lodash": "^4.14.170",
5656
"@types/node": "^15.12.4",
5757
"@types/pino": "^6.3.8",
@@ -62,18 +62,23 @@
6262
"eslint-config-prettier": "^6.11.0",
6363
"eslint-plugin-import": "^2.22.1",
6464
"eslint-plugin-prettier": "^3.4.0",
65-
"husky": "^7.0.0",
65+
"husky": "^8.0.2",
6666
"jest": "^27.0.6",
6767
"lint-staged": "^11.1.1",
6868
"prettier": "^2.3.2",
6969
"semantic-release": "^19.0.2",
70-
"shx": "^0.3.3",
71-
"ts-jest": "^27.0.4"
70+
"shx": "^0.3.4",
71+
"ts-jest": "^27.1.5"
7272
},
7373
"lint-staged": {
7474
"*.{ts,graphql,json}": [
7575
"yarn lint:fix",
7676
"git add --force"
7777
]
78+
},
79+
"resolutions": {
80+
"**/braces": "^2.3.1",
81+
"**/glob-parent": "^5.1.2",
82+
"**/uri-js": "^3.0.1"
7883
}
7984
}

src/services/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { loadFilesSync } from '@graphql-tools/load-files'
88
import { mergeTypeDefs } from '@graphql-tools/merge'
99
import AWS, { Config } from 'aws-sdk'
1010
import chalk from 'chalk'
11-
import { print } from 'graphql'
11+
import { DocumentNode } from 'graphql'
1212
import STS from 'aws-sdk/clients/sts'
1313
import { isEmpty, merge } from 'lodash'
1414
import path from 'path'
@@ -438,12 +438,12 @@ export default class Provider extends CloudGraph.Client {
438438
* getSchema is used to get the schema for provider
439439
* @returns A string of graphql sub schemas
440440
*/
441-
getSchema(): string {
441+
getSchema(): DocumentNode {
442442
const typesArray = loadFilesSync(path.join(__dirname), {
443443
recursive: true,
444444
extensions: ['graphql'],
445445
})
446-
return print(mergeTypeDefs(typesArray))
446+
return mergeTypeDefs(typesArray)
447447
}
448448

449449
/**

src/types/generated.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export type Maybe<T> = T | null;
2+
export type InputMaybe<T> = Maybe<T>;
23
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
34
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
45
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
@@ -125,8 +126,6 @@ export type AwsStringMap = {
125126
value?: Maybe<Scalars['String']>;
126127
};
127128

128-
129-
130129
export type AwsAccessLogSettings = {
131130
destinationArn?: Maybe<Scalars['String']>;
132131
format?: Maybe<Scalars['String']>;

0 commit comments

Comments
 (0)