@graphcommerce/graphql-codegen-near-operation-file 3.0.17 → 3.0.18

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.
@@ -127,7 +127,7 @@ function resolveDocumentImports(presetOptions, schemaObject, importResolverOptio
127
127
  }
128
128
  catch (e) {
129
129
  if (e instanceof Error) {
130
- throw new plugin_helpers_1.DetailedError("Unable to validate GraphQL document!", "File ".concat(documentFile.location, " caused error: ").concat(e.message || e.toString()), documentFile.location);
130
+ throw new plugin_helpers_1.DetailedError(e.message || e.toString(), "File ".concat(documentFile.location, " caused error: ").concat(e.message || e.toString()), documentFile.location);
131
131
  }
132
132
  else {
133
133
  throw e;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/graphql-codegen-near-operation-file",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "3.0.17",
5
+ "version": "3.0.18",
6
6
  "sideEffects": false,
7
7
  "main": "dist/index.js",
8
8
  "files": [
@@ -161,7 +161,7 @@ export function resolveDocumentImports<T>(
161
161
  } catch (e) {
162
162
  if (e instanceof Error) {
163
163
  throw new DetailedError(
164
- `Unable to validate GraphQL document!`,
164
+ e.message || e.toString(),
165
165
  `File ${documentFile.location} caused error: ${e.message || e.toString()}`,
166
166
  documentFile.location,
167
167
  )