@graphql-tools/graphql-file-loader 7.3.2 → 7.3.3
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/index.d.ts +0 -4
- package/index.js +2 -2
- package/index.mjs +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -7,10 +7,6 @@ export interface GraphQLFileLoaderOptions extends BaseLoaderOptions {
|
|
|
7
7
|
* Set to `true` to disable handling `#import` syntax
|
|
8
8
|
*/
|
|
9
9
|
skipGraphQLImport?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Set to `true` to raise errors if any matched files are not valid GraphQL
|
|
12
|
-
*/
|
|
13
|
-
noSilentErrors?: boolean;
|
|
14
10
|
}
|
|
15
11
|
/**
|
|
16
12
|
* This loader loads documents and type definitions from `.graphql` files.
|
package/index.js
CHANGED
|
@@ -114,7 +114,7 @@ class GraphQLFileLoader {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
}));
|
|
117
|
-
if (errors.length > 0
|
|
117
|
+
if (errors.length > 0) {
|
|
118
118
|
if (errors.length === 1) {
|
|
119
119
|
throw errors[0];
|
|
120
120
|
}
|
|
@@ -141,7 +141,7 @@ class GraphQLFileLoader {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
if (errors.length > 0
|
|
144
|
+
if (errors.length > 0) {
|
|
145
145
|
if (errors.length === 1) {
|
|
146
146
|
throw errors[0];
|
|
147
147
|
}
|
package/index.mjs
CHANGED
|
@@ -108,7 +108,7 @@ class GraphQLFileLoader {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
}));
|
|
111
|
-
if (errors.length > 0
|
|
111
|
+
if (errors.length > 0) {
|
|
112
112
|
if (errors.length === 1) {
|
|
113
113
|
throw errors[0];
|
|
114
114
|
}
|
|
@@ -135,7 +135,7 @@ class GraphQLFileLoader {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
if (errors.length > 0
|
|
138
|
+
if (errors.length > 0) {
|
|
139
139
|
if (errors.length === 1) {
|
|
140
140
|
throw errors[0];
|
|
141
141
|
}
|