@graphql-mesh/http 0.96.1 → 0.96.2

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.
package/cjs/index.js CHANGED
@@ -9,7 +9,7 @@ function createMeshHTTPHandler({ baseDir, getBuiltMesh, rawServeConfig = {}, pla
9
9
  let readyFlag = false;
10
10
  let logger = new utils_1.DefaultLogger('Mesh HTTP');
11
11
  let mesh$;
12
- const { cors: corsConfig, staticFiles, playground: playgroundEnabled, endpoint: graphqlPath = '/graphql', batchingLimit,
12
+ const { cors: corsConfig, staticFiles, playground: playgroundEnabled = cross_helpers_1.process.env.NODE_ENV !== 'production', endpoint: graphqlPath = '/graphql', batchingLimit,
13
13
  // TODO
14
14
  // trustProxy = 'loopback',
15
15
  } = rawServeConfig;
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { fs, path } from '@graphql-mesh/cross-helpers';
1
+ import { fs, path, process } from '@graphql-mesh/cross-helpers';
2
2
  import { DefaultLogger, pathExists, withCookies } from '@graphql-mesh/utils';
3
3
  import { createServerAdapter, Response } from '@whatwg-node/server';
4
4
  import { graphqlHandler } from './graphqlHandler.js';
@@ -6,7 +6,7 @@ export function createMeshHTTPHandler({ baseDir, getBuiltMesh, rawServeConfig =
6
6
  let readyFlag = false;
7
7
  let logger = new DefaultLogger('Mesh HTTP');
8
8
  let mesh$;
9
- const { cors: corsConfig, staticFiles, playground: playgroundEnabled, endpoint: graphqlPath = '/graphql', batchingLimit,
9
+ const { cors: corsConfig, staticFiles, playground: playgroundEnabled = process.env.NODE_ENV !== 'production', endpoint: graphqlPath = '/graphql', batchingLimit,
10
10
  // TODO
11
11
  // trustProxy = 'loopback',
12
12
  } = rawServeConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/http",
3
- "version": "0.96.1",
3
+ "version": "0.96.2",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@graphql-mesh/cross-helpers": "^0.4.0",