PR-595168: Updating packages.

This commit is contained in:
Alejandro Lembke Barrientos 2023-01-25 15:54:50 +00:00
parent 5c4cbdd50a
commit 9c5ece449a
3 changed files with 882 additions and 850 deletions

1700
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@aleleba/create-node-ts-graphql-server",
"version": "1.2.5",
"version": "1.2.6",
"description": "Node with Typescript and GraphQL Server",
"bin": "./bin/cli.js",
"main": "index.js",
@ -32,7 +32,7 @@
},
"homepage": "https://github.com/aleleba/node-ts-graphql-server#readme",
"dependencies": {
"@graphql-tools/schema": "^9.0.12",
"@graphql-tools/schema": "^9.0.13",
"body-parser": "^1.20.1",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
@ -42,31 +42,31 @@
"graphql": "^16.6.0",
"graphql-playground-middleware-express": "^1.7.23",
"graphql-subscriptions": "^2.0.0",
"graphql-tools": "^8.3.14",
"graphql-tools": "^8.3.15",
"graphql-ws": "^5.11.2",
"web-push": "^3.5.0",
"ws": "^8.11.0"
"ws": "^8.12.0"
},
"devDependencies": {
"@babel/core": "^7.20.7",
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@babel/register": "^7.18.9",
"@types/jest": "^29.2.4",
"@types/jest": "^29.4.0",
"@types/node": "^18.11.18",
"@types/webpack": "^5.28.0",
"@types/webpack-node-externals": "^2.5.3",
"@typescript-eslint/eslint-plugin": "^5.47.1",
"@typescript-eslint/parser": "^5.47.1",
"babel-loader": "^9.1.0",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"babel-loader": "^9.1.2",
"clean-webpack-plugin": "^4.0.0",
"compression-webpack-plugin": "^10.0.0",
"eslint": "^8.30.0",
"eslint": "^8.32.0",
"eslint-webpack-plugin": "^3.2.0",
"jest": "^29.3.1",
"jest": "^29.4.0",
"nodemon": "^2.0.20",
"supertest": "^6.3.3",
"ts-jest": "^29.0.3",
"ts-jest": "^29.0.5",
"ts-loader": "^9.4.2",
"typescript": "^4.9.4",
"webpack": "^5.75.0",

View File

@ -35,7 +35,13 @@ app
.use('/graphql', GraphQLserver);//Server of Graphql
if(config.PLAYGROUND_GRAPHQL === true){
app.get('/playground', expressPlayground({ endpoint: '/graphql' }));
app.get('/playground', expressPlayground({
endpoint: '/graphql',
subscriptionEndpoint: '/graphql',
settings: {
'request.credentials': 'include', //Include Credentials for playground
},
}));
}
// DO NOT DO app.listen() unless we're testing this directly