@tinacms/graphql 0.63.13 → 0.63.14

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 CHANGED
@@ -2451,7 +2451,7 @@ var validateField = async (field) => {
2451
2451
 
2452
2452
  // package.json
2453
2453
  var name = "@tinacms/graphql";
2454
- var version = "0.63.13";
2454
+ var version = "0.63.14";
2455
2455
  var main = "dist/index.js";
2456
2456
  var typings = "dist/index.d.ts";
2457
2457
  var files = [
@@ -4179,7 +4179,7 @@ var _deleteIndexContent = async (database, documentPaths, collection) => {
4179
4179
  var buildSchema = async (rootPath, database, flags) => {
4180
4180
  const tempConfig = import_path4.default.join(rootPath, ".tina", "__generated__", "config");
4181
4181
  const config = await import_fs_extra2.default.readFileSync(import_path4.default.join(tempConfig, "schema.json")).toString();
4182
- await import_fs_extra2.default.rm(tempConfig, { recursive: true });
4182
+ await import_fs_extra2.default.remove(tempConfig);
4183
4183
  const { graphQLSchema, tinaSchema } = await buildDotTinaFiles({
4184
4184
  database,
4185
4185
  config: JSON.parse(config),
@@ -39,7 +39,7 @@ export declare class Resolver {
39
39
  label?: string;
40
40
  name: string;
41
41
  path: string;
42
- defaultItem?: () => Record<string, any>;
42
+ defaultItem?: Record<string, any> | (() => Record<string, any>);
43
43
  indexes?: import("@tinacms/schema-tools").TinaIndex[];
44
44
  format?: "json" | "md" | "markdown" | "mdx";
45
45
  ui?: import("@tinacms/schema-tools").UICollection;
@@ -62,7 +62,7 @@ export declare class Resolver {
62
62
  label?: string;
63
63
  name: string;
64
64
  path: string;
65
- defaultItem?: () => Record<string, any>;
65
+ defaultItem?: Record<string, any> | (() => Record<string, any>);
66
66
  indexes?: import("@tinacms/schema-tools").TinaIndex[];
67
67
  format?: "json" | "md" | "markdown" | "mdx";
68
68
  ui?: import("@tinacms/schema-tools").UICollection;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/graphql",
3
- "version": "0.63.13",
3
+ "version": "0.63.14",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -20,8 +20,8 @@
20
20
  "dependencies": {
21
21
  "@graphql-tools/relay-operation-optimizer": "^6.4.1",
22
22
  "@tinacms/datalayer": "0.2.4",
23
- "@tinacms/schema-tools": "0.1.7",
24
- "@tinacms/mdx": "0.61.11",
23
+ "@tinacms/schema-tools": "0.1.8",
24
+ "@tinacms/mdx": "0.61.12",
25
25
  "body-parser": "^1.19.0",
26
26
  "cors": "^2.8.5",
27
27
  "dataloader": "^2.0.0",
@@ -72,7 +72,7 @@
72
72
  },
73
73
  "devDependencies": {
74
74
  "@tinacms/datalayer": "0.2.4",
75
- "@tinacms/schema-tools": "0.1.7",
75
+ "@tinacms/schema-tools": "0.1.8",
76
76
  "@tinacms/scripts": "0.51.1",
77
77
  "@types/cors": "^2.8.7",
78
78
  "@types/estree": "^0.0.50",