@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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/modules/core/annotation.loader.ts +4 -1
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}
|
|
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}
|
|
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
|
@@ -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
|
|
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);
|