@tinacms/graphql 1.4.32 → 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.
@@ -120,7 +120,7 @@ export declare class Database {
120
120
  */
121
121
  clearCache(): void;
122
122
  flush: (filepath: string) => Promise<string>;
123
- getLookup: (returnType: string) => Promise<LookupMapType>;
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.32",
2858
+ version: "1.4.33",
2859
2859
  main: "dist/index.js",
2860
2860
  module: "dist/index.mjs",
2861
2861
  typings: "dist/index.d.ts",
@@ -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.32",
2791
+ version: "1.4.33",
2792
2792
  main: "dist/index.js",
2793
2793
  module: "dist/index.mjs",
2794
2794
  typings: "dist/index.d.ts",
@@ -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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/graphql",
3
- "version": "1.4.32",
3
+ "version": "1.4.33",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "typings": "dist/index.d.ts",