@tinkerstack/graphql-annotation 0.0.6 → 0.0.7

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/dist/index.js CHANGED
@@ -376,7 +376,7 @@ var GraphQLAnnotatedSchemaLoader = class {
376
376
  const shouldThrow = !(opts?.ignoreMissingSources ?? false);
377
377
  if (failed.length > 0) {
378
378
  if (shouldThrow) throw new Error(`Failed to load ${failed.length} schema(s) from sources.`);
379
- else this._logger.warn(`Failed to load ${failed.length}, ignoring.`);
379
+ else this._logger.warn(`Failed to load ${failed.length} schema(s) from sources.`);
380
380
  }
381
381
  return loaded.map((l) => l.value);
382
382
  }
package/dist/index.mjs CHANGED
@@ -347,7 +347,7 @@ var GraphQLAnnotatedSchemaLoader = class {
347
347
  const shouldThrow = !(opts?.ignoreMissingSources ?? false);
348
348
  if (failed.length > 0) {
349
349
  if (shouldThrow) throw new Error(`Failed to load ${failed.length} schema(s) from sources.`);
350
- else this._logger.warn(`Failed to load ${failed.length}, ignoring.`);
350
+ else this._logger.warn(`Failed to load ${failed.length} schema(s) from sources.`);
351
351
  }
352
352
  return loaded.map((l) => l.value);
353
353
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinkerstack/graphql-annotation",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "Better type-safe-able graphql directives",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -155,7 +155,10 @@ export class GraphQLAnnotatedSchemaLoader {
155
155
  throw new Error(
156
156
  `Failed to load ${failed.length} schema(s) from sources.`,
157
157
  );
158
- else this._logger.warn(`Failed to load ${failed.length}, ignoring.`);
158
+ else
159
+ this._logger.warn(
160
+ `Failed to load ${failed.length} schema(s) from sources.`,
161
+ );
159
162
  }
160
163
 
161
164
  return loaded.map((l) => l.value);