@graphql-mesh/merger-bare 0.13.49 → 0.13.50-alpha-cbbbc8b6d.0

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 (3) hide show
  1. package/index.js +4 -4
  2. package/index.mjs +4 -4
  3. package/package.json +3 -3
package/index.js CHANGED
@@ -11,7 +11,7 @@ class BareMerger {
11
11
  }
12
12
  async getUnifiedSchema({ rawSources, typeDefs, resolvers, transforms }) {
13
13
  const sourceMap = new Map();
14
- this.logger.debug(() => `Applying transforms for each source`);
14
+ this.logger.debug(`Applying transforms for each source`);
15
15
  const schemas = rawSources.map(source => {
16
16
  let schema = source.schema;
17
17
  let sourceLevelSchema = source.schema;
@@ -31,7 +31,7 @@ class BareMerger {
31
31
  sourceMap.set(source, sourceLevelSchema);
32
32
  return schema;
33
33
  });
34
- this.logger.debug(() => `Merging sources`);
34
+ this.logger.debug(`Merging sources`);
35
35
  let unifiedSchema = schemas.length === 1 && !(typeDefs === null || typeDefs === void 0 ? void 0 : typeDefs.length) && !resolvers
36
36
  ? schemas[0]
37
37
  : schema.mergeSchemas({
@@ -39,7 +39,7 @@ class BareMerger {
39
39
  typeDefs,
40
40
  resolvers,
41
41
  });
42
- this.logger.debug(() => `Handling root level transforms`);
42
+ this.logger.debug(`Handling root level transforms`);
43
43
  const rootLevelTransformGroups = utils.groupTransforms(transforms || []);
44
44
  if (rootLevelTransformGroups.wrapTransforms.length > 0) {
45
45
  unifiedSchema = wrap.wrapSchema({
@@ -51,7 +51,7 @@ class BareMerger {
51
51
  else {
52
52
  unifiedSchema = utils.applySchemaTransforms(unifiedSchema, undefined, unifiedSchema, rootLevelTransformGroups.noWrapTransforms);
53
53
  }
54
- this.logger.debug(() => `Attaching sources to the unified schema`);
54
+ this.logger.debug(`Attaching sources to the unified schema`);
55
55
  unifiedSchema.extensions = unifiedSchema.extensions || {};
56
56
  Object.defineProperty(unifiedSchema.extensions, 'sourceMap', {
57
57
  get: () => sourceMap,
package/index.mjs CHANGED
@@ -9,7 +9,7 @@ class BareMerger {
9
9
  }
10
10
  async getUnifiedSchema({ rawSources, typeDefs, resolvers, transforms }) {
11
11
  const sourceMap = new Map();
12
- this.logger.debug(() => `Applying transforms for each source`);
12
+ this.logger.debug(`Applying transforms for each source`);
13
13
  const schemas = rawSources.map(source => {
14
14
  let schema = source.schema;
15
15
  let sourceLevelSchema = source.schema;
@@ -29,7 +29,7 @@ class BareMerger {
29
29
  sourceMap.set(source, sourceLevelSchema);
30
30
  return schema;
31
31
  });
32
- this.logger.debug(() => `Merging sources`);
32
+ this.logger.debug(`Merging sources`);
33
33
  let unifiedSchema = schemas.length === 1 && !(typeDefs === null || typeDefs === void 0 ? void 0 : typeDefs.length) && !resolvers
34
34
  ? schemas[0]
35
35
  : mergeSchemas({
@@ -37,7 +37,7 @@ class BareMerger {
37
37
  typeDefs,
38
38
  resolvers,
39
39
  });
40
- this.logger.debug(() => `Handling root level transforms`);
40
+ this.logger.debug(`Handling root level transforms`);
41
41
  const rootLevelTransformGroups = groupTransforms(transforms || []);
42
42
  if (rootLevelTransformGroups.wrapTransforms.length > 0) {
43
43
  unifiedSchema = wrapSchema({
@@ -49,7 +49,7 @@ class BareMerger {
49
49
  else {
50
50
  unifiedSchema = applySchemaTransforms(unifiedSchema, undefined, unifiedSchema, rootLevelTransformGroups.noWrapTransforms);
51
51
  }
52
- this.logger.debug(() => `Attaching sources to the unified schema`);
52
+ this.logger.debug(`Attaching sources to the unified schema`);
53
53
  unifiedSchema.extensions = unifiedSchema.extensions || {};
54
54
  Object.defineProperty(unifiedSchema.extensions, 'sourceMap', {
55
55
  get: () => sourceMap,
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@graphql-mesh/merger-bare",
3
- "version": "0.13.49",
3
+ "version": "0.13.50-alpha-cbbbc8b6d.0",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*"
7
7
  },
8
8
  "dependencies": {
9
- "@graphql-mesh/types": "0.73.1",
10
- "@graphql-mesh/utils": "0.35.1",
9
+ "@graphql-mesh/types": "0.73.2-alpha-cbbbc8b6d.0",
10
+ "@graphql-mesh/utils": "0.35.2-alpha-cbbbc8b6d.0",
11
11
  "@graphql-tools/schema": "8.3.13",
12
12
  "@graphql-tools/utils": "8.6.12",
13
13
  "@graphql-tools/wrap": "8.4.19",