Skip to content

Commit 9c6de8b

Browse files
authored
chore: update dependencies for 0.37.0 (#1098)
* chore: update dependencies * chore: remove "@types/inquirer" dependency * deps: update "graphql" to 16.3.0
1 parent 0be131d commit 9c6de8b

File tree

5 files changed

+1144
-779
lines changed

5 files changed

+1144
-779
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v12.18.0
1+
v12.22.0

package.json

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,11 @@
6767
"@mswjs/interceptors": "^0.12.7",
6868
"@open-draft/until": "^1.0.3",
6969
"@types/cookie": "^0.4.1",
70-
"@types/inquirer": "^8.1.3",
71-
"@types/js-levenshtein": "^1.1.0",
70+
"@types/js-levenshtein": "^1.1.1",
7271
"chalk": "4.1.1",
7372
"chokidar": "^3.4.2",
74-
"cookie": "^0.4.1",
75-
"graphql": "^15.5.1",
73+
"cookie": "^0.4.2",
74+
"graphql": "^16.3.0",
7675
"headers-utils": "^3.0.2",
7776
"inquirer": "^8.2.0",
7877
"is-node-process": "^1.0.1",
@@ -82,32 +81,32 @@
8281
"statuses": "^2.0.0",
8382
"strict-event-emitter": "^0.2.0",
8483
"type-fest": "^1.2.2",
85-
"yargs": "^17.3.0"
84+
"yargs": "^17.3.1"
8685
},
8786
"devDependencies": {
88-
"@babel/core": "^7.16.0",
89-
"@babel/preset-env": "^7.16.4",
90-
"@commitlint/cli": "^16.0.2",
87+
"@babel/core": "^7.17.2",
88+
"@babel/preset-env": "^7.16.11",
89+
"@commitlint/cli": "^16.1.0",
9190
"@commitlint/config-conventional": "^16.0.0",
9291
"@open-draft/test-server": "^0.2.3",
93-
"@rollup/plugin-commonjs": "^19.0.0",
94-
"@rollup/plugin-inject": "^4.0.3",
92+
"@rollup/plugin-commonjs": "^21.0.1",
93+
"@rollup/plugin-inject": "^4.0.4",
9594
"@rollup/plugin-json": "^4.1.0",
96-
"@rollup/plugin-node-resolve": "^13.0.6",
97-
"@rollup/plugin-replace": "^3.0.0",
98-
"@types/fs-extra": "^9.0.12",
95+
"@rollup/plugin-node-resolve": "^13.1.3",
96+
"@rollup/plugin-replace": "^3.1.0",
97+
"@types/fs-extra": "^9.0.13",
9998
"@types/jest": "26",
10099
"@types/json-bigint": "^1.0.1",
101100
"@types/node": "^14.14.31",
102101
"@types/node-fetch": "^2.5.11",
103102
"@types/puppeteer": "^5.4.4",
104-
"@typescript-eslint/eslint-plugin": "^4.28.3",
105-
"@typescript-eslint/parser": "^4.28.3",
103+
"@typescript-eslint/eslint-plugin": "^5.11.0",
104+
"@typescript-eslint/parser": "^5.11.0",
106105
"babel-loader": "^8.2.3",
107106
"babel-minify": "^0.5.1",
108107
"commitizen": "^4.2.4",
109108
"cross-env": "^7.0.3",
110-
"cross-fetch": "^3.1.4",
109+
"cross-fetch": "^3.1.5",
111110
"cz-conventional-changelog": "3.3.0",
112111
"eslint": "^7.30.0",
113112
"eslint-config-prettier": "^8.3.0",
@@ -122,16 +121,16 @@
122121
"prettier": "^2.3.2",
123122
"regenerator-runtime": "^0.13.9",
124123
"rimraf": "^3.0.2",
125-
"rollup": "^2.60.2",
124+
"rollup": "^2.67.2",
126125
"rollup-plugin-terser": "^7.0.2",
127-
"rollup-plugin-typescript2": "^0.30.0",
126+
"rollup-plugin-typescript2": "^0.31.2",
128127
"simple-git-hooks": "^2.7.0",
129128
"ts-jest": "26",
130129
"ts-loader": "^9.2.6",
131130
"ts-node": "^10.1.0",
132131
"typescript": "^4.3.5",
133132
"url-loader": "^4.1.1",
134-
"webpack": "^5.64.4",
133+
"webpack": "^5.68.0",
135134
"webpack-dev-server": "^3.11.2"
136135
},
137136
"resolutions": {

src/graphql.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DocumentNode } from 'graphql'
1+
import { DocumentNode, OperationTypeNode } from 'graphql'
22
import { ResponseResolver } from './handlers/RequestHandler'
33
import {
44
GraphQLHandler,
@@ -83,7 +83,7 @@ const standardGraphQLHandlers = {
8383
* })
8484
* @see {@link https://mswjs.io/docs/api/graphql/query `graphql.query()`}
8585
*/
86-
query: createScopedGraphQLHandler('query', '*'),
86+
query: createScopedGraphQLHandler(OperationTypeNode.QUERY, '*'),
8787

8888
/**
8989
* Captures a GraphQL mutation by a given name.
@@ -93,14 +93,14 @@ const standardGraphQLHandlers = {
9393
* })
9494
* @see {@link https://mswjs.io/docs/api/graphql/mutation `graphql.mutation()`}
9595
*/
96-
mutation: createScopedGraphQLHandler('mutation', '*'),
96+
mutation: createScopedGraphQLHandler(OperationTypeNode.MUTATION, '*'),
9797
}
9898

9999
function createGraphQLLink(url: Path): typeof standardGraphQLHandlers {
100100
return {
101101
operation: createGraphQLOperationHandler(url),
102-
query: createScopedGraphQLHandler('query', url),
103-
mutation: createScopedGraphQLHandler('mutation', url),
102+
query: createScopedGraphQLHandler(OperationTypeNode.QUERY, url),
103+
mutation: createScopedGraphQLHandler(OperationTypeNode.MUTATION, url),
104104
}
105105
}
106106

0 commit comments

Comments
 (0)