@tinacms/graphql 1.4.31 → 1.4.33
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/database/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/database/index.d.ts
CHANGED
|
@@ -120,7 +120,7 @@ export declare class Database {
|
|
|
120
120
|
*/
|
|
121
121
|
clearCache(): void;
|
|
122
122
|
flush: (filepath: string) => Promise<string>;
|
|
123
|
-
getLookup: (returnType
|
|
123
|
+
getLookup: (returnType?: string) => Promise<LookupMapType | Record<string, LookupMapType>>;
|
|
124
124
|
getGraphQLSchema: () => Promise<DocumentNode>;
|
|
125
125
|
getGraphQLSchemaFromBridge: () => Promise<DocumentNode>;
|
|
126
126
|
getTinaSchema: (level?: Level) => Promise<Schema>;
|
package/dist/index.js
CHANGED
|
@@ -2855,7 +2855,7 @@ var validateField = async (field) => {
|
|
|
2855
2855
|
// package.json
|
|
2856
2856
|
var package_default = {
|
|
2857
2857
|
name: "@tinacms/graphql",
|
|
2858
|
-
version: "1.4.
|
|
2858
|
+
version: "1.4.33",
|
|
2859
2859
|
main: "dist/index.js",
|
|
2860
2860
|
module: "dist/index.mjs",
|
|
2861
2861
|
typings: "dist/index.d.ts",
|
|
@@ -5081,7 +5081,7 @@ var Resolver = class {
|
|
|
5081
5081
|
if (Array.isArray(fieldValue)) {
|
|
5082
5082
|
if (fieldValue.length === 0) {
|
|
5083
5083
|
accum[fieldName] = [];
|
|
5084
|
-
|
|
5084
|
+
continue;
|
|
5085
5085
|
}
|
|
5086
5086
|
}
|
|
5087
5087
|
const field = template.fields.find((field2) => field2.name === fieldName);
|
|
@@ -6015,7 +6015,7 @@ var Database = class {
|
|
|
6015
6015
|
SUBLEVEL_OPTIONS
|
|
6016
6016
|
).get(lookupPath);
|
|
6017
6017
|
}
|
|
6018
|
-
return this._lookup[returnType];
|
|
6018
|
+
return returnType ? this._lookup[returnType] : this._lookup;
|
|
6019
6019
|
};
|
|
6020
6020
|
this.getGraphQLSchema = async () => {
|
|
6021
6021
|
await this.initLevel();
|
package/dist/index.mjs
CHANGED
|
@@ -2788,7 +2788,7 @@ var validateField = async (field) => {
|
|
|
2788
2788
|
// package.json
|
|
2789
2789
|
var package_default = {
|
|
2790
2790
|
name: "@tinacms/graphql",
|
|
2791
|
-
version: "1.4.
|
|
2791
|
+
version: "1.4.33",
|
|
2792
2792
|
main: "dist/index.js",
|
|
2793
2793
|
module: "dist/index.mjs",
|
|
2794
2794
|
typings: "dist/index.d.ts",
|
|
@@ -5007,7 +5007,7 @@ var Resolver = class {
|
|
|
5007
5007
|
if (Array.isArray(fieldValue)) {
|
|
5008
5008
|
if (fieldValue.length === 0) {
|
|
5009
5009
|
accum[fieldName] = [];
|
|
5010
|
-
|
|
5010
|
+
continue;
|
|
5011
5011
|
}
|
|
5012
5012
|
}
|
|
5013
5013
|
const field = template.fields.find((field2) => field2.name === fieldName);
|
|
@@ -5936,7 +5936,7 @@ var Database = class {
|
|
|
5936
5936
|
SUBLEVEL_OPTIONS
|
|
5937
5937
|
).get(lookupPath);
|
|
5938
5938
|
}
|
|
5939
|
-
return this._lookup[returnType];
|
|
5939
|
+
return returnType ? this._lookup[returnType] : this._lookup;
|
|
5940
5940
|
};
|
|
5941
5941
|
this.getGraphQLSchema = async () => {
|
|
5942
5942
|
await this.initLevel();
|