@steedos/service-api 2.5.4 → 2.5.5

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 (2) hide show
  1. package/index.js +5 -3
  2. package/package.json +8 -7
package/index.js CHANGED
@@ -13,6 +13,8 @@ const {
13
13
  const SteedosRouter = require('@steedos/router');
14
14
  const _ = require('lodash');
15
15
  const ServiceObjectGraphql = require('@steedos/service-object-graphql')
16
+ const validator = require('validator');
17
+ const enablePlayground = validator.toBoolean(process.env.STEEDOS_GRAPHQL_ENABLE_CONSOLE || 'true', true)
16
18
 
17
19
  const mixinOptions = {
18
20
 
@@ -74,12 +76,12 @@ const mixinOptions = {
74
76
  apiKey: process.env.APOLLO_ENGINE_KEY
75
77
  },
76
78
  subscriptions: false,
77
- playground: {
79
+ playground: enablePlayground ? {
78
80
  settings: {
79
81
  'request.credentials': 'same-origin'
80
82
  }
81
- },
82
- introspection: true
83
+ } : false,
84
+ introspection: enablePlayground
83
85
  }
84
86
  }
85
87
 
package/package.json CHANGED
@@ -1,23 +1,24 @@
1
1
  {
2
2
  "name": "@steedos/service-api",
3
- "version": "2.5.4",
3
+ "version": "2.5.5",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
7
- "@steedos/auth": "2.5.4",
8
- "@steedos/router": "2.5.4",
9
- "@steedos/service-object-graphql": "2.5.4",
10
- "@steedos/service-ui": "2.5.4",
7
+ "@steedos/auth": "2.5.5",
8
+ "@steedos/router": "2.5.5",
9
+ "@steedos/service-object-graphql": "2.5.5",
10
+ "@steedos/service-ui": "2.5.5",
11
11
  "graphql": "^15.8.0",
12
12
  "graphql-iso-date": "^3.6.1",
13
13
  "graphql-type-json": "^0.3.2",
14
14
  "moleculer": "^0.14.25",
15
15
  "moleculer-apollo-server": "^0.3.6",
16
- "moleculer-web": "^0.10.4"
16
+ "moleculer-web": "^0.10.4",
17
+ "validator": "^13.6.0"
17
18
  },
18
19
  "private": false,
19
20
  "publishConfig": {
20
21
  "access": "public"
21
22
  },
22
- "gitHead": "0b1b93c80e8448e54b77064d976b9e20bfe39727"
23
+ "gitHead": "f1e15b667da1e140e3003bf836d56cd6e36c79e3"
23
24
  }