@aleleba/create-node-ts-graphql-server 1.2.4 → 1.2.6

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/package.json +16 -16
  3. package/src/index.ts +7 -1
package/README.md CHANGED
@@ -5,7 +5,7 @@ This project aims to have a starter kit for creating a new Node with typescript,
5
5
  Tech(Library or Framework) | Version |
6
6
  --- | --- |
7
7
  Jest (Testing) | 29.3.1
8
- Typescript | 4.9.3
8
+ Typescript | 4.9.4
9
9
  GraphQL | 16.6.0
10
10
 
11
11
  ## Setup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aleleba/create-node-ts-graphql-server",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "Node with Typescript and GraphQL Server",
5
5
  "bin": "./bin/cli.js",
6
6
  "main": "index.js",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "homepage": "https://github.com/aleleba/node-ts-graphql-server#readme",
34
34
  "dependencies": {
35
- "@graphql-tools/schema": "^9.0.10",
35
+ "@graphql-tools/schema": "^9.0.13",
36
36
  "body-parser": "^1.20.1",
37
37
  "cookie-parser": "^1.4.6",
38
38
  "cors": "^2.8.5",
@@ -42,35 +42,35 @@
42
42
  "graphql": "^16.6.0",
43
43
  "graphql-playground-middleware-express": "^1.7.23",
44
44
  "graphql-subscriptions": "^2.0.0",
45
- "graphql-tools": "^8.3.12",
45
+ "graphql-tools": "^8.3.15",
46
46
  "graphql-ws": "^5.11.2",
47
47
  "web-push": "^3.5.0",
48
- "ws": "^8.11.0"
48
+ "ws": "^8.12.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@babel/core": "^7.20.5",
51
+ "@babel/core": "^7.20.12",
52
52
  "@babel/preset-env": "^7.20.2",
53
53
  "@babel/preset-typescript": "^7.18.6",
54
54
  "@babel/register": "^7.18.9",
55
- "@types/jest": "^29.2.4",
56
- "@types/node": "^18.11.10",
55
+ "@types/jest": "^29.4.0",
56
+ "@types/node": "^18.11.18",
57
57
  "@types/webpack": "^5.28.0",
58
58
  "@types/webpack-node-externals": "^2.5.3",
59
- "@typescript-eslint/eslint-plugin": "^5.45.0",
60
- "@typescript-eslint/parser": "^5.45.0",
61
- "babel-loader": "^9.1.0",
59
+ "@typescript-eslint/eslint-plugin": "^5.49.0",
60
+ "@typescript-eslint/parser": "^5.49.0",
61
+ "babel-loader": "^9.1.2",
62
62
  "clean-webpack-plugin": "^4.0.0",
63
63
  "compression-webpack-plugin": "^10.0.0",
64
- "eslint": "^8.29.0",
64
+ "eslint": "^8.32.0",
65
65
  "eslint-webpack-plugin": "^3.2.0",
66
- "jest": "^29.3.1",
66
+ "jest": "^29.4.0",
67
67
  "nodemon": "^2.0.20",
68
- "supertest": "^6.3.2",
69
- "ts-jest": "^29.0.3",
68
+ "supertest": "^6.3.3",
69
+ "ts-jest": "^29.0.5",
70
70
  "ts-loader": "^9.4.2",
71
- "typescript": "^4.9.3",
71
+ "typescript": "^4.9.4",
72
72
  "webpack": "^5.75.0",
73
- "webpack-cli": "^5.0.0",
73
+ "webpack-cli": "^5.0.1",
74
74
  "webpack-manifest-plugin": "^5.0.0",
75
75
  "webpack-node-externals": "^3.0.0",
76
76
  "webpack-shell-plugin-next": "^2.3.1"
package/src/index.ts CHANGED
@@ -35,7 +35,13 @@ app
35
35
  .use('/graphql', GraphQLserver);//Server of Graphql
36
36
 
37
37
  if(config.PLAYGROUND_GRAPHQL === true){
38
- app.get('/playground', expressPlayground({ endpoint: '/graphql' }));
38
+ app.get('/playground', expressPlayground({
39
+ endpoint: '/graphql',
40
+ subscriptionEndpoint: '/graphql',
41
+ settings: {
42
+ 'request.credentials': 'include', //Include Credentials for playground
43
+ },
44
+ }));
39
45
  }
40
46
 
41
47
  // DO NOT DO app.listen() unless we're testing this directly