@graphql-mesh/config 10.1.10 → 10.1.11-alpha-20230321145025-cc027190e

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/utils.js CHANGED
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveLogger = exports.resolveDocuments = exports.resolvePubSub = exports.resolveCache = exports.resolveCustomFetch = exports.resolveAdditionalTypeDefs = exports.getPackage = void 0;
4
- const cross_helpers_1 = require("@graphql-mesh/cross-helpers");
5
- const utils_1 = require("@graphql-tools/utils");
6
4
  const param_case_1 = require("param-case");
7
- const load_1 = require("@graphql-tools/load");
5
+ const cross_helpers_1 = require("@graphql-mesh/cross-helpers");
6
+ const utils_1 = require("@graphql-mesh/utils");
7
+ const code_file_loader_1 = require("@graphql-tools/code-file-loader");
8
8
  const graphql_file_loader_1 = require("@graphql-tools/graphql-file-loader");
9
- const utils_2 = require("@graphql-mesh/utils");
9
+ const load_1 = require("@graphql-tools/load");
10
+ const utils_2 = require("@graphql-tools/utils");
10
11
  const fetch_1 = require("@whatwg-node/fetch");
11
- const code_file_loader_1 = require("@graphql-tools/code-file-loader");
12
12
  async function getPackage({ name, type, importFn, cwd, additionalPrefixes = [], }) {
13
13
  const casedName = (0, param_case_1.paramCase)(name);
14
14
  const casedType = (0, param_case_1.paramCase)(type);
@@ -60,7 +60,7 @@ async function resolveAdditionalTypeDefs(baseDir, additionalTypeDefs) {
60
60
  loaders: [new code_file_loader_1.CodeFileLoader(), new graphql_file_loader_1.GraphQLFileLoader()],
61
61
  });
62
62
  return sources.map(source => source.document ||
63
- (0, utils_2.parseWithCache)(source.rawSDL || (0, utils_1.printSchemaWithDirectives)(source.schema)));
63
+ (0, utils_1.parseWithCache)(source.rawSDL || (0, utils_2.printSchemaWithDirectives)(source.schema)));
64
64
  }
65
65
  return undefined;
66
66
  }
@@ -152,7 +152,7 @@ async function resolvePubSub(pubsubYamlConfig, importFn, cwd, additionalPackageP
152
152
  };
153
153
  }
154
154
  else {
155
- const pubsub = new utils_2.PubSub();
155
+ const pubsub = new utils_1.PubSub();
156
156
  const importCode = `import { PubSub } from '@graphql-mesh/utils';`;
157
157
  const code = `const pubsub = new PubSub();`;
158
158
  return {
@@ -189,7 +189,7 @@ async function resolveLogger(loggerConfig, importFn, cwd, additionalPackagePrefi
189
189
  code: '',
190
190
  };
191
191
  }
192
- const logger = new utils_2.DefaultLogger(initialLoggerPrefix);
192
+ const logger = new utils_1.DefaultLogger(initialLoggerPrefix);
193
193
  return {
194
194
  logger,
195
195
  importCode: `import { DefaultLogger } from '@graphql-mesh/utils';`,
package/esm/utils.js CHANGED
@@ -1,11 +1,11 @@
1
- import { path } from '@graphql-mesh/cross-helpers';
2
- import { printSchemaWithDirectives } from '@graphql-tools/utils';
3
1
  import { paramCase } from 'param-case';
4
- import { loadDocuments, loadTypedefs } from '@graphql-tools/load';
2
+ import { path } from '@graphql-mesh/cross-helpers';
3
+ import { DefaultLogger, parseWithCache, PubSub } from '@graphql-mesh/utils';
4
+ import { CodeFileLoader } from '@graphql-tools/code-file-loader';
5
5
  import { GraphQLFileLoader } from '@graphql-tools/graphql-file-loader';
6
- import { PubSub, DefaultLogger, parseWithCache } from '@graphql-mesh/utils';
6
+ import { loadDocuments, loadTypedefs } from '@graphql-tools/load';
7
+ import { printSchemaWithDirectives } from '@graphql-tools/utils';
7
8
  import { fetch as defaultFetch } from '@whatwg-node/fetch';
8
- import { CodeFileLoader } from '@graphql-tools/code-file-loader';
9
9
  export async function getPackage({ name, type, importFn, cwd, additionalPrefixes = [], }) {
10
10
  const casedName = paramCase(name);
11
11
  const casedType = paramCase(type);
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@graphql-mesh/config",
3
- "version": "10.1.10",
3
+ "version": "10.1.11-alpha-20230321145025-cc027190e",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@graphql-mesh/runtime": "^0.46.18",
6
+ "@graphql-mesh/runtime": "0.46.19-alpha-20230321145025-cc027190e",
7
7
  "graphql": "*"
8
8
  },
9
9
  "dependencies": {
10
10
  "@envelop/core": "3.0.6",
11
- "@graphql-mesh/cache-localforage": "0.7.17",
11
+ "@graphql-mesh/cache-localforage": "0.7.18-alpha-20230321145025-cc027190e",
12
12
  "@graphql-mesh/cross-helpers": "0.3.3",
13
- "@graphql-mesh/merger-bare": "0.16.19",
14
- "@graphql-mesh/merger-stitching": "0.18.19",
15
- "@graphql-mesh/store": "0.9.17",
16
- "@graphql-mesh/types": "0.91.9",
17
- "@graphql-mesh/utils": "0.43.17",
13
+ "@graphql-mesh/merger-bare": "0.16.20-alpha-20230321145025-cc027190e",
14
+ "@graphql-mesh/merger-stitching": "0.18.20-alpha-20230321145025-cc027190e",
15
+ "@graphql-mesh/store": "0.9.18-alpha-20230321145025-cc027190e",
16
+ "@graphql-mesh/types": "0.91.10-alpha-20230321145025-cc027190e",
17
+ "@graphql-mesh/utils": "0.43.18-alpha-20230321145025-cc027190e",
18
18
  "@graphql-tools/code-file-loader": "7.3.21",
19
19
  "@graphql-tools/graphql-file-loader": "7.5.16",
20
20
  "@graphql-tools/load": "7.8.12",
21
21
  "@graphql-tools/utils": "9.2.1",
22
- "@whatwg-node/fetch": "^0.8.0",
22
+ "@whatwg-node/fetch": "^0.8.3",
23
23
  "camel-case": "4.1.2",
24
24
  "param-case": "3.0.4",
25
25
  "pascal-case": "3.1.2",
@@ -1,6 +1,6 @@
1
- import { KeyValueCache, YamlConfig, ImportFn, MeshPubSub, Logger, MeshFetch } from '@graphql-mesh/types';
2
- import { Source } from '@graphql-tools/utils';
3
1
  import { MeshStore } from '@graphql-mesh/store';
2
+ import { ImportFn, KeyValueCache, Logger, MeshFetch, MeshPubSub, YamlConfig } from '@graphql-mesh/types';
3
+ import { Source } from '@graphql-tools/utils';
4
4
  type ResolvedPackage<T> = {
5
5
  moduleName: string;
6
6
  resolved: T;
@@ -1,6 +1,6 @@
1
- import { KeyValueCache, YamlConfig, ImportFn, MeshPubSub, Logger, MeshFetch } from '@graphql-mesh/types';
2
- import { Source } from '@graphql-tools/utils';
3
1
  import { MeshStore } from '@graphql-mesh/store';
2
+ import { ImportFn, KeyValueCache, Logger, MeshFetch, MeshPubSub, YamlConfig } from '@graphql-mesh/types';
3
+ import { Source } from '@graphql-tools/utils';
4
4
  type ResolvedPackage<T> = {
5
5
  moduleName: string;
6
6
  resolved: T;