Skip to content

Commit ec86561

Browse files
Alan-ChaErikWittern
authored andcommitted
Update dependencies
Signed-off-by: Alan Cha <[email protected]>
1 parent 33b301c commit ec86561

File tree

6 files changed

+38
-39
lines changed

6 files changed

+38
-39
lines changed

packages/openapi-to-graphql-cli/package.json

+11-12
Original file line numberDiff line numberDiff line change
@@ -47,25 +47,24 @@
4747
}
4848
},
4949
"dependencies": {
50-
"commander": "^2.19.0",
50+
"commander": "^4.1.0",
5151
"cors": "^2.8.5",
5252
"express": "^4.16.4",
53-
"express-graphql": "^0.7.1",
54-
"graphql": "^14.0.2",
53+
"express-graphql": "^0.9.0",
54+
"graphql": "^14.6.0",
5555
"js-yaml": "^3.12.0",
5656
"openapi-to-graphql": "^1.7.0",
5757
"request": "^2.88.0"
5858
},
5959
"devDependencies": {
60-
"@types/node": "^11.9.4",
61-
"husky": "^2.3.0",
62-
"jest": "^24.1.0",
63-
"prettier": "^1.17.1",
64-
"pretty-quick": "^1.11.0",
65-
"standard": "^12.0.1",
66-
"tslint": "^5.11.0",
67-
"tslint-config-standard": "^8.0.1",
68-
"typescript": "^3.3.3"
60+
"@types/node": "^13.5.0",
61+
"husky": "^4.2.1",
62+
"prettier": "^1.19.1",
63+
"pretty-quick": "^2.0.1",
64+
"standard": "^14.3.1",
65+
"tslint": "^6.0.0",
66+
"tslint-config-standard": "^9.0.0",
67+
"typescript": "^3.7.5"
6968
},
7069
"bin": {
7170
"openapi-to-graphql": "./lib/openapi-to-graphql.js"

packages/openapi-to-graphql/lib/types/options.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ export declare type Options = {
9191
* For example, given the operation 'GET /users/{userId}/car', OtG will
9292
* create a Query field 'userCar'. Note that because 'users' is followed by
9393
* the parameter 'userId', it insinuates that this operation will get the car
94-
* that belongs to a singular user. Hence, the pluralizing 's' in 'users' is
95-
* dropped.
94+
* that belongs to a singular user. Hence, the name 'userCar' is more fitting
95+
* than 'usersCar' so the pluralizing 's' is dropped.
9696
*
9797
* This option will also consider irregular plural forms.
9898
*/
@@ -256,8 +256,8 @@ export declare type InternalOptions = {
256256
* For example, given the operation 'GET /users/{userId}/car', OtG will
257257
* create a Query field 'userCar'. Note that because 'users' is followed by
258258
* the parameter 'userId', it insinuates that this operation will get the car
259-
* that belongs to a singular user. Hence, the pluralizing 's' in 'users' is
260-
* dropped.
259+
* that belongs to a singular user. Hence, the name 'userCar' is more fitting
260+
* than 'usersCar' so the pluralizing 's' is dropped.
261261
*
262262
* This option will also consider irregular plural forms.
263263
*/

packages/openapi-to-graphql/package.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@
6565
},
6666
"dependencies": {
6767
"debug": "^4.1.0",
68-
"deep-equal": "^1.0.1",
68+
"deep-equal": "^2.0.1",
6969
"form-urlencoded": "^4.1.1",
7070
"graphql-type-json": "^0.2.1",
71-
"jsonpath-plus": "^0.18.0",
71+
"jsonpath-plus": "^3.0.0",
7272
"oas-validator": "^3.1.0",
7373
"pluralize": "^8.0.0",
7474
"request": "^2.88.0",
@@ -79,26 +79,26 @@
7979
},
8080
"devDependencies": {
8181
"@types/graphql": "^14.0.3",
82-
"@types/jest": "^24.0.18",
83-
"@types/node": "^11.9.4",
82+
"@types/jest": "^25.1.0",
83+
"@types/node": "^13.5.0",
8484
"@types/request": "^2.48.1",
8585
"body-parser": "^1.18.3",
8686
"express": "^4.16.4",
87-
"express-graphql": "^0.7.1",
87+
"express-graphql": "^0.9.0",
8888
"glob": "^7.1.3",
89-
"husky": "^2.3.0",
90-
"isomorphic-git": "^0.51.6",
91-
"jest": "^24.8.0",
89+
"husky": "^4.2.1",
90+
"isomorphic-git": "^0.78.2",
91+
"jest": "^25.1.0",
9292
"js-yaml": "^3.13.1",
93-
"nodemon": "^1.18.10",
93+
"nodemon": "^2.0.2",
9494
"prettier": "^1.17.1",
95-
"pretty-quick": "^1.11.0",
96-
"rimraf": "^2.6.1",
95+
"pretty-quick": "^2.0.1",
96+
"rimraf": "^3.0.1",
9797
"simple-statistics": "^7.0.0",
98-
"standard": "^12.0.1",
99-
"ts-jest": "^24.0.2",
100-
"tslint": "^5.11.0",
101-
"tslint-config-standard": "^8.0.1",
98+
"standard": "^14.3.1",
99+
"ts-jest": "^25.0.0",
100+
"tslint": "^6.0.0",
101+
"tslint-config-standard": "^9.0.0",
102102
"typescript": "^3.5.3"
103103
}
104104
}

packages/openapi-to-graphql/test/example_api6.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -225,18 +225,18 @@ test('inferResourceNameFromPath() field with simple plural form', () => {
225225

226226
//
227227
/**
228-
* '/octopi/{octopusId}' should create an 'octopus' field
228+
* '/cacti/{cactusId}' should create an 'cactus' field
229229
*
230230
* Also the path parameter is the combination of the singular form and 'id'
231231
*/
232232
test('inferResourceNameFromPath() field with irregular plural form', () => {
233233
const query = `{
234-
octopus (octopusId: "colossal")
234+
cactus (cactusId: "Spikey")
235235
}`
236236

237237
return graphql(createdSchema, query).then(result => {
238238
expect(result.data).toEqual({
239-
octopus: 'Octopus ID: colossal'
239+
cactus: 'Cactus ID: Spikey'
240240
})
241241
})
242242
})

packages/openapi-to-graphql/test/example_api6_server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ function startServer(PORT) {
4848
res.send(`Car ID: ${req.params.id}`)
4949
})
5050

51-
app.get('/api/octopi/:octopusId', (req, res) => {
51+
app.get('/api/cacti/:cactusId', (req, res) => {
5252
console.log(req.method, req.path)
53-
res.send(`Octopus ID: ${req.params.octopusId}`)
53+
res.send(`Cactus ID: ${req.params.cactusId}`)
5454
})
5555

5656
app.get(

packages/openapi-to-graphql/test/fixtures/example_oas6.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@
153153
}
154154
}
155155
},
156-
"/octopi/{octopusId}": {
156+
"/cacti/{cactusId}": {
157157
"get": {
158-
"description": "A particular octopus",
158+
"description": "A particular cactus",
159159
"parameters": [
160160
{
161-
"name": "octopusId",
161+
"name": "cactusId",
162162
"in": "path",
163163
"required": true,
164164
"schema": {

0 commit comments

Comments
 (0)