@graphql-mesh/cli 0.99.0 → 0.99.1

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.
@@ -9,7 +9,7 @@ const os_1 = tslib_1.__importDefault(require("os"));
9
9
  const open_1 = tslib_1.__importDefault(require("open"));
10
10
  const cross_helpers_1 = require("@graphql-mesh/cross-helpers");
11
11
  const http_1 = require("@graphql-mesh/http");
12
- const utils_1 = require("@graphql-tools/utils");
12
+ const promise_helpers_1 = require("@whatwg-node/promise-helpers");
13
13
  const getMaxConcurency_js_1 = require("./getMaxConcurency.js");
14
14
  const node_http_js_1 = require("./node-http.js");
15
15
  function portSelectorFn(sources, logger) {
@@ -124,8 +124,11 @@ async function serveMesh({ baseDir, argsPort, getBuiltMesh, logger, rawServeConf
124
124
  registerTerminateHandler(eventName => {
125
125
  const eventLogger = logger.child({ terminateEvent: eventName });
126
126
  eventLogger.debug(`Stopping HTTP Server`);
127
- (0, utils_1.mapMaybePromise)(stop(), () => {
127
+ // eslint-disable-next-line @typescript-eslint/no-floating-promises
128
+ (0, promise_helpers_1.handleMaybePromise)(stop, () => {
128
129
  eventLogger.debug(`HTTP Server has been stopped`);
130
+ }, () => {
131
+ eventLogger.error(`Failed to stop HTTP Server`);
129
132
  });
130
133
  });
131
134
  if (browser) {
@@ -5,7 +5,7 @@ import os from 'os';
5
5
  import open from 'open';
6
6
  import { process } from '@graphql-mesh/cross-helpers';
7
7
  import { createMeshHTTPHandler } from '@graphql-mesh/http';
8
- import { mapMaybePromise } from '@graphql-tools/utils';
8
+ import { handleMaybePromise } from '@whatwg-node/promise-helpers';
9
9
  import { getMaxConcurrency } from './getMaxConcurency.js';
10
10
  import { startNodeHttpServer } from './node-http.js';
11
11
  function portSelectorFn(sources, logger) {
@@ -120,8 +120,11 @@ export async function serveMesh({ baseDir, argsPort, getBuiltMesh, logger, rawSe
120
120
  registerTerminateHandler(eventName => {
121
121
  const eventLogger = logger.child({ terminateEvent: eventName });
122
122
  eventLogger.debug(`Stopping HTTP Server`);
123
- mapMaybePromise(stop(), () => {
123
+ // eslint-disable-next-line @typescript-eslint/no-floating-promises
124
+ handleMaybePromise(stop, () => {
124
125
  eventLogger.debug(`HTTP Server has been stopped`);
126
+ }, () => {
127
+ eventLogger.error(`Failed to stop HTTP Server`);
125
128
  });
126
129
  });
127
130
  if (browser) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/cli",
3
- "version": "0.99.0",
3
+ "version": "0.99.1",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*"
@@ -12,15 +12,16 @@
12
12
  "@graphql-codegen/typescript-generic-sdk": "^3.1.0",
13
13
  "@graphql-codegen/typescript-operations": "^4.0.0",
14
14
  "@graphql-codegen/typescript-resolvers": "^4.0.0",
15
- "@graphql-mesh/config": "^0.107.0",
15
+ "@graphql-mesh/config": "^0.107.1",
16
16
  "@graphql-mesh/cross-helpers": "^0.4.10",
17
- "@graphql-mesh/http": "^0.105.21",
18
- "@graphql-mesh/include": "^0.2.18",
19
- "@graphql-mesh/runtime": "^0.105.21",
20
- "@graphql-mesh/store": "^0.103.19",
21
- "@graphql-mesh/types": "^0.103.19",
22
- "@graphql-mesh/utils": "^0.103.19",
17
+ "@graphql-mesh/http": "^0.105.22",
18
+ "@graphql-mesh/include": "^0.2.19",
19
+ "@graphql-mesh/runtime": "^0.105.22",
20
+ "@graphql-mesh/store": "^0.103.20",
21
+ "@graphql-mesh/types": "^0.103.20",
22
+ "@graphql-mesh/utils": "^0.103.20",
23
23
  "@graphql-tools/utils": "^10.8.0",
24
+ "@whatwg-node/promise-helpers": "^1.0.0",
24
25
  "ajv": "^8.12.0",
25
26
  "change-case": "^4.1.2",
26
27
  "cosmiconfig": "^9.0.0",