PR-018985: Actualizaciones de dependencias y configuraciones de GraphQL

This commit is contained in:
Alejandro Lembke Barrientos 2024-02-14 01:20:22 +00:00
parent 09a3377e6a
commit 575bbf6738
6 changed files with 457 additions and 387 deletions

View File

@ -57,4 +57,4 @@ jobs:
- run: npm ci --legacy-peer-deps
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
NPM_PERSONAL_TOKEN: ${{secrets.npm_token}}

1
.npmrc Normal file
View File

@ -0,0 +1 @@
//registry.npmjs.org/:_authToken=${NPM_PERSONAL_TOKEN}

View File

@ -7,7 +7,7 @@ Tech(Library or Framework) | Version |
Jest (Testing) | 29.7.0
Typescript | 5.3.3
GraphQL | 16.8.1
Type GraphQL | 2.0.0-beta.3
Type GraphQL | 2.0.0-beta.6
## Setup
To create a new project run in the terminal:

795
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.5.14",
"version": "1.5.15",
"description": "Node with Typescript and GraphQL Server",
"bin": "./bin/cli.js",
"main": "index.js",
@ -39,36 +39,36 @@
"cookie-parse": "^0.4.0",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"dotenv": "^16.3.2",
"dotenv": "^16.4.4",
"express": "^4.18.2",
"graphql": "^16.8.1",
"graphql-http": "^1.22.0",
"graphql-playground-middleware-express": "^1.7.23",
"graphql-subscriptions": "^2.0.0",
"graphql-tools": "^9.0.0",
"graphql-ws": "^5.14.3",
"graphql-ws": "^5.15.0",
"reflect-metadata": "^0.2.1",
"type-graphql": "^2.0.0-beta.3",
"type-graphql": "^2.0.0-beta.6",
"web-push": "^3.6.7",
"ws": "^8.16.0"
},
"devDependencies": {
"@babel/core": "^7.23.7",
"@babel/preset-env": "^7.23.8",
"@babel/core": "^7.23.9",
"@babel/preset-env": "^7.23.9",
"@babel/preset-typescript": "^7.23.3",
"@babel/register": "^7.23.7",
"@types/body-parser": "^1.19.5",
"@types/cookie-parser": "^1.4.6",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.11",
"@types/node": "^20.11.5",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.17",
"@types/supertest": "^6.0.2",
"@types/webpack": "^5.28.5",
"@types/webpack-node-externals": "^3.0.4",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.0.1",
"babel-loader": "^9.1.3",
"clean-webpack-plugin": "^4.0.0",
"compression-webpack-plugin": "^11.0.0",
@ -78,10 +78,10 @@
"nodemon": "^3.0.3",
"resolve-ts-aliases": "^1.0.1",
"supertest": "^6.3.4",
"ts-jest": "^29.1.1",
"ts-jest": "^29.1.2",
"ts-loader": "^9.5.1",
"typescript": "^5.3.3",
"webpack": "^5.89.0",
"webpack": "^5.90.1",
"webpack-cli": "^5.1.4",
"webpack-manifest-plugin": "^5.0.0",
"webpack-node-externals": "^3.0.0",

View File

@ -1,6 +1,6 @@
'use strict';
import "reflect-metadata";
import 'reflect-metadata';
import ws from 'ws'; // yarn add ws
import express from 'express'; //express
import cors from 'cors';
@ -35,15 +35,15 @@ app
.use(apiRouter)//Routes de App
.use('/graphql', GraphQLserver);//Server of Graphql
if(config.PLAYGROUND_GRAPHQL === true){
app.get('/playground', expressPlayground({
endpoint: '/graphql',
subscriptionEndpoint: '/graphql',
settings: {
'request.credentials': 'include', //Include Credentials for playground
},
}));
}
if(config.PLAYGROUND_GRAPHQL === true){
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
if (require.main === module) {