@aleleba/create-node-ts-graphql-server 1.5.13 → 1.5.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57,4 +57,4 @@ jobs:
57
57
  - run: npm ci --legacy-peer-deps
58
58
  - run: npm publish --access=public
59
59
  env:
60
- NODE_AUTH_TOKEN: ${{secrets.npm_token}}
60
+ NPM_PERSONAL_TOKEN: ${{secrets.npm_token}}
package/README.md CHANGED
@@ -7,7 +7,7 @@ Tech(Library or Framework) | Version |
7
7
  Jest (Testing) | 29.7.0
8
8
  Typescript | 5.3.3
9
9
  GraphQL | 16.8.1
10
- Type GraphQL | 2.0.0-beta.3
10
+ Type GraphQL | 2.0.0-beta.6
11
11
 
12
12
  ## Setup
13
13
  To create a new project run in the terminal:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aleleba/create-node-ts-graphql-server",
3
- "version": "1.5.13",
3
+ "version": "1.5.15",
4
4
  "description": "Node with Typescript and GraphQL Server",
5
5
  "bin": "./bin/cli.js",
6
6
  "main": "index.js",
@@ -35,53 +35,53 @@
35
35
  "dependencies": {
36
36
  "@graphql-tools/schema": "^10.0.2",
37
37
  "body-parser": "^1.20.2",
38
- "class-validator": "^0.14.0",
38
+ "class-validator": "^0.14.1",
39
39
  "cookie-parse": "^0.4.0",
40
40
  "cookie-parser": "^1.4.6",
41
41
  "cors": "^2.8.5",
42
- "dotenv": "^16.3.1",
42
+ "dotenv": "^16.4.4",
43
43
  "express": "^4.18.2",
44
44
  "graphql": "^16.8.1",
45
45
  "graphql-http": "^1.22.0",
46
46
  "graphql-playground-middleware-express": "^1.7.23",
47
47
  "graphql-subscriptions": "^2.0.0",
48
48
  "graphql-tools": "^9.0.0",
49
- "graphql-ws": "^5.14.3",
49
+ "graphql-ws": "^5.15.0",
50
50
  "reflect-metadata": "^0.2.1",
51
- "type-graphql": "^2.0.0-beta.3",
52
- "web-push": "^3.6.6",
51
+ "type-graphql": "^2.0.0-beta.6",
52
+ "web-push": "^3.6.7",
53
53
  "ws": "^8.16.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@babel/core": "^7.23.7",
57
- "@babel/preset-env": "^7.23.7",
56
+ "@babel/core": "^7.23.9",
57
+ "@babel/preset-env": "^7.23.9",
58
58
  "@babel/preset-typescript": "^7.23.3",
59
59
  "@babel/register": "^7.23.7",
60
60
  "@types/body-parser": "^1.19.5",
61
61
  "@types/cookie-parser": "^1.4.6",
62
62
  "@types/cors": "^2.8.17",
63
63
  "@types/express": "^4.17.21",
64
- "@types/jest": "^29.5.11",
65
- "@types/node": "^20.10.6",
64
+ "@types/jest": "^29.5.12",
65
+ "@types/node": "^20.11.17",
66
66
  "@types/supertest": "^6.0.2",
67
67
  "@types/webpack": "^5.28.5",
68
68
  "@types/webpack-node-externals": "^3.0.4",
69
69
  "@types/ws": "^8.5.10",
70
- "@typescript-eslint/eslint-plugin": "^6.17.0",
71
- "@typescript-eslint/parser": "^6.17.0",
70
+ "@typescript-eslint/eslint-plugin": "^7.0.1",
71
+ "@typescript-eslint/parser": "^7.0.1",
72
72
  "babel-loader": "^9.1.3",
73
73
  "clean-webpack-plugin": "^4.0.0",
74
- "compression-webpack-plugin": "^10.0.0",
74
+ "compression-webpack-plugin": "^11.0.0",
75
75
  "eslint": "^8.56.0",
76
76
  "eslint-webpack-plugin": "^4.0.1",
77
77
  "jest": "^29.7.0",
78
- "nodemon": "^3.0.2",
78
+ "nodemon": "^3.0.3",
79
79
  "resolve-ts-aliases": "^1.0.1",
80
- "supertest": "^6.3.3",
81
- "ts-jest": "^29.1.1",
80
+ "supertest": "^6.3.4",
81
+ "ts-jest": "^29.1.2",
82
82
  "ts-loader": "^9.5.1",
83
83
  "typescript": "^5.3.3",
84
- "webpack": "^5.89.0",
84
+ "webpack": "^5.90.1",
85
85
  "webpack-cli": "^5.1.4",
86
86
  "webpack-manifest-plugin": "^5.0.0",
87
87
  "webpack-node-externals": "^3.0.0",
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- import "reflect-metadata";
3
+ import 'reflect-metadata';
4
4
  import ws from 'ws'; // yarn add ws
5
5
  import express from 'express'; //express
6
6
  import cors from 'cors';
@@ -35,15 +35,15 @@ app
35
35
  .use(apiRouter)//Routes de App
36
36
  .use('/graphql', GraphQLserver);//Server of Graphql
37
37
 
38
- if(config.PLAYGROUND_GRAPHQL === true){
39
- app.get('/playground', expressPlayground({
40
- endpoint: '/graphql',
41
- subscriptionEndpoint: '/graphql',
42
- settings: {
43
- 'request.credentials': 'include', //Include Credentials for playground
44
- },
45
- }));
46
- }
38
+ if(config.PLAYGROUND_GRAPHQL === true){
39
+ app.get('/playground', expressPlayground({
40
+ endpoint: '/graphql',
41
+ subscriptionEndpoint: '/graphql',
42
+ settings: {
43
+ 'request.credentials': 'include', //Include Credentials for playground
44
+ },
45
+ }));
46
+ }
47
47
 
48
48
  // DO NOT DO app.listen() unless we're testing this directly
49
49
  if (require.main === module) {