@tinacms/graphql 2.4.10 → 2.4.11

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -6
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -3053,7 +3053,7 @@ var assertCheckboxGroupIsList = (field) => {
3053
3053
  var package_default = {
3054
3054
  name: "@tinacms/graphql",
3055
3055
  type: "module",
3056
- version: "2.4.10",
3056
+ version: "2.4.11",
3057
3057
  main: "dist/index.js",
3058
3058
  module: "./dist/index.js",
3059
3059
  files: [
@@ -7103,11 +7103,14 @@ var Database = class {
7103
7103
  if (error instanceof GraphQLError5) {
7104
7104
  throw error;
7105
7105
  }
7106
- throw new TinaFetchError(`Error in PUT for ${filepath}`, {
7107
- originalError: error,
7108
- file: filepath,
7109
- collection: collectionName
7110
- });
7106
+ throw new TinaFetchError(
7107
+ `Error in PUT for ${filepath}: ${error instanceof Error ? error.message : String(error)}`,
7108
+ {
7109
+ originalError: error,
7110
+ file: filepath,
7111
+ collection: collectionName
7112
+ }
7113
+ );
7111
7114
  }
7112
7115
  };
7113
7116
  async getTemplateDetailsForFile(collection, data) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tinacms/graphql",
3
3
  "type": "module",
4
- "version": "2.4.10",
4
+ "version": "2.4.11",
5
5
  "main": "dist/index.js",
6
6
  "module": "./dist/index.js",
7
7
  "files": [
@@ -43,8 +43,8 @@
43
43
  "normalize-path": "^3.0.0",
44
44
  "readable-stream": "^4.7.0",
45
45
  "yup": "^1.6.1",
46
- "@tinacms/mdx": "^2.2.1",
47
- "@tinacms/schema-tools": "^2.9.0"
46
+ "@tinacms/mdx": "^2.2.2",
47
+ "@tinacms/schema-tools": "^2.10.0"
48
48
  },
49
49
  "publishConfig": {
50
50
  "registry": "https://registry.npmjs.org"
@@ -72,7 +72,7 @@
72
72
  "vite": "^4.5.9",
73
73
  "vitest": "^0.32.4",
74
74
  "zod": "^3.24.2",
75
- "@tinacms/schema-tools": "2.9.0",
75
+ "@tinacms/schema-tools": "2.10.0",
76
76
  "@tinacms/scripts": "1.6.4"
77
77
  },
78
78
  "scripts": {