@omnigraph/soap 0.106.0 → 0.106.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.
package/cjs/index.js CHANGED
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadSOAPSubgraph = loadSOAPSubgraph;
4
4
  const tslib_1 = require("tslib");
5
5
  const utils_1 = require("@graphql-mesh/utils");
6
+ const promise_helpers_1 = require("@whatwg-node/promise-helpers");
6
7
  const SOAPLoader_js_1 = require("./SOAPLoader.js");
7
8
  tslib_1.__exportStar(require("./SOAPLoader.js"), exports);
8
9
  tslib_1.__exportStar(require("@graphql-mesh/transport-soap"), exports);
@@ -22,13 +23,13 @@ function loadSOAPSubgraph(subgraphName, options) {
22
23
  });
23
24
  return {
24
25
  name: subgraphName,
25
- schema$: (0, utils_1.mapMaybePromise)((0, utils_1.readFileOrUrl)(options.source, {
26
+ schema$: (0, promise_helpers_1.handleMaybePromise)(() => (0, utils_1.readFileOrUrl)(options.source, {
26
27
  allowUnknownExtensions: true,
27
28
  cwd,
28
29
  fetch,
29
30
  importFn: utils_1.defaultImportFn,
30
31
  logger,
31
- }), wsdl => (0, utils_1.mapMaybePromise)(soapLoader.loadWSDL(wsdl), object => {
32
+ }), wsdl => (0, promise_helpers_1.handleMaybePromise)(() => soapLoader.loadWSDL(wsdl), object => {
32
33
  soapLoader.loadedLocations.set(options.source, object);
33
34
  return soapLoader.buildSchema();
34
35
  })),
package/esm/index.js CHANGED
@@ -1,4 +1,5 @@
1
- import { defaultImportFn, mapMaybePromise, readFileOrUrl } from '@graphql-mesh/utils';
1
+ import { defaultImportFn, readFileOrUrl } from '@graphql-mesh/utils';
2
+ import { handleMaybePromise } from '@whatwg-node/promise-helpers';
2
3
  import { SOAPLoader } from './SOAPLoader.js';
3
4
  export * from './SOAPLoader.js';
4
5
  export * from '@graphql-mesh/transport-soap';
@@ -18,13 +19,13 @@ export function loadSOAPSubgraph(subgraphName, options) {
18
19
  });
19
20
  return {
20
21
  name: subgraphName,
21
- schema$: mapMaybePromise(readFileOrUrl(options.source, {
22
+ schema$: handleMaybePromise(() => readFileOrUrl(options.source, {
22
23
  allowUnknownExtensions: true,
23
24
  cwd,
24
25
  fetch,
25
26
  importFn: defaultImportFn,
26
27
  logger,
27
- }), wsdl => mapMaybePromise(soapLoader.loadWSDL(wsdl), object => {
28
+ }), wsdl => handleMaybePromise(() => soapLoader.loadWSDL(wsdl), object => {
28
29
  soapLoader.loadedLocations.set(options.source, object);
29
30
  return soapLoader.buildSchema();
30
31
  })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnigraph/soap",
3
- "version": "0.106.0",
3
+ "version": "0.106.1",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*"
@@ -9,11 +9,12 @@
9
9
  "@graphql-mesh/cross-helpers": "^0.4.10",
10
10
  "@graphql-mesh/string-interpolation": "^0.5.8",
11
11
  "@graphql-mesh/transport-common": "^0.7.25",
12
- "@graphql-mesh/transport-soap": "^0.9.0",
13
- "@graphql-mesh/types": "^0.103.19",
14
- "@graphql-mesh/utils": "^0.103.19",
12
+ "@graphql-mesh/transport-soap": "^0.9.1",
13
+ "@graphql-mesh/types": "^0.103.20",
14
+ "@graphql-mesh/utils": "^0.103.20",
15
15
  "@graphql-tools/utils": "^10.8.0",
16
16
  "@whatwg-node/fetch": "^0.10.4",
17
+ "@whatwg-node/promise-helpers": "^1.0.0",
17
18
  "fast-xml-parser": "^5.0.0",
18
19
  "graphql-compose": "^9.0.11",
19
20
  "graphql-scalars": "^1.22.4"
@@ -45,5 +45,5 @@ export declare function loadSOAPSubgraph(subgraphName: string, options: SOAPSubg
45
45
  logger: Logger;
46
46
  }) => {
47
47
  name: string;
48
- schema$: import("@graphql-mesh/utils").MaybePromise<import("graphql").GraphQLSchema>;
48
+ schema$: import("@whatwg-node/promise-helpers").MaybePromise<import("graphql").GraphQLSchema>;
49
49
  };
@@ -45,5 +45,5 @@ export declare function loadSOAPSubgraph(subgraphName: string, options: SOAPSubg
45
45
  logger: Logger;
46
46
  }) => {
47
47
  name: string;
48
- schema$: import("@graphql-mesh/utils").MaybePromise<import("graphql").GraphQLSchema>;
48
+ schema$: import("@whatwg-node/promise-helpers").MaybePromise<import("graphql").GraphQLSchema>;
49
49
  };