@tinacms/graphql 0.0.0-fbcd928-20241024223724 → 0.0.0-fd664d8-20250407054012
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/ast-builder/index.d.ts +0 -1
- package/dist/builder/index.d.ts +2 -2
- package/dist/database/datalayer.d.ts +5 -1
- package/dist/database/index.d.ts +2 -0
- package/dist/index.js +853 -224
- package/dist/index.mjs +815 -194
- package/dist/resolver/index.d.ts +12 -1
- package/dist/resolver/media-utils.d.ts +3 -3
- package/package.json +17 -18
package/dist/resolver/index.d.ts
CHANGED
|
@@ -40,6 +40,17 @@ export declare const transformDocumentIntoPayload: (fullPath: string, rawData: {
|
|
|
40
40
|
__typename: string;
|
|
41
41
|
id: string;
|
|
42
42
|
}>;
|
|
43
|
+
/**
|
|
44
|
+
* Updates a property in an object using a JSONPath.
|
|
45
|
+
* @param obj - The object to update.
|
|
46
|
+
* @param path - The JSONPath string.
|
|
47
|
+
* @param newValue - The new value to set at the specified path.
|
|
48
|
+
* @returns the updated object.
|
|
49
|
+
*/
|
|
50
|
+
export declare const updateObjectWithJsonPath: (obj: any, path: string, oldValue: any, newValue: any) => {
|
|
51
|
+
object: any;
|
|
52
|
+
updated: boolean;
|
|
53
|
+
};
|
|
43
54
|
/**
|
|
44
55
|
* The resolver provides functions for all possible types of lookup
|
|
45
56
|
* values and retrieves them from the database
|
|
@@ -346,7 +357,7 @@ export declare class Resolver {
|
|
|
346
357
|
* Finds references to a document
|
|
347
358
|
* @param id the id of the document to find references to
|
|
348
359
|
* @param c the collection to find references in
|
|
349
|
-
* @returns
|
|
360
|
+
* @returns a map of references to the document
|
|
350
361
|
*/
|
|
351
362
|
private findReferences;
|
|
352
363
|
private buildFieldMutations;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
|
|
3
3
|
*/
|
|
4
|
-
import type { GraphQLConfig } from '../types';
|
|
5
4
|
import type { Schema } from '@tinacms/schema-tools';
|
|
5
|
+
import type { GraphQLConfig } from '../types';
|
|
6
6
|
/**
|
|
7
|
-
* Strips away the
|
|
7
|
+
* Strips away the TinaCloud Asset URL from an `image` value
|
|
8
8
|
*
|
|
9
9
|
* @param {string | string[]} value
|
|
10
10
|
* @param {GraphQLConfig} config
|
|
@@ -12,7 +12,7 @@ import type { Schema } from '@tinacms/schema-tools';
|
|
|
12
12
|
*/
|
|
13
13
|
export declare const resolveMediaCloudToRelative: (value: string | string[], config: GraphQLConfig, schema: Schema<true>) => string | string[];
|
|
14
14
|
/**
|
|
15
|
-
* Adds
|
|
15
|
+
* Adds TinaCloud Asset URL to an `image` value
|
|
16
16
|
*
|
|
17
17
|
* @param {string | string[]} value
|
|
18
18
|
* @param {GraphQLConfig} config
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/graphql",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-fd664d8-20250407054012",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -26,26 +26,26 @@
|
|
|
26
26
|
"@iarna/toml": "^2.2.5",
|
|
27
27
|
"abstract-level": "^1.0.4",
|
|
28
28
|
"date-fns": "^2.30.0",
|
|
29
|
-
"fast-glob": "^3.3.
|
|
30
|
-
"fs-extra": "^11.
|
|
29
|
+
"fast-glob": "^3.3.3",
|
|
30
|
+
"fs-extra": "^11.3.0",
|
|
31
31
|
"glob-parent": "^6.0.2",
|
|
32
32
|
"graphql": "15.8.0",
|
|
33
33
|
"gray-matter": "^4.0.3",
|
|
34
|
-
"isomorphic-git": "^1.
|
|
34
|
+
"isomorphic-git": "^1.29.0",
|
|
35
35
|
"js-sha1": "^0.6.0",
|
|
36
36
|
"js-yaml": "^3.14.1",
|
|
37
|
-
"jsonpath-plus": "
|
|
37
|
+
"jsonpath-plus": "10.1.0",
|
|
38
38
|
"lodash.clonedeep": "^4.5.0",
|
|
39
39
|
"lodash.set": "^4.3.2",
|
|
40
40
|
"lodash.uniqby": "^4.7.0",
|
|
41
41
|
"many-level": "^2.0.0",
|
|
42
42
|
"micromatch": "4.0.8",
|
|
43
43
|
"normalize-path": "^3.0.0",
|
|
44
|
-
"readable-stream": "^4.
|
|
44
|
+
"readable-stream": "^4.7.0",
|
|
45
45
|
"scmp": "^2.1.0",
|
|
46
46
|
"yup": "^0.32.11",
|
|
47
|
-
"@tinacms/
|
|
48
|
-
"@tinacms/
|
|
47
|
+
"@tinacms/schema-tools": "0.0.0-fd664d8-20250407054012",
|
|
48
|
+
"@tinacms/mdx": "0.0.0-fd664d8-20250407054012"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"registry": "https://registry.npmjs.org"
|
|
@@ -59,33 +59,32 @@
|
|
|
59
59
|
"@types/estree": "^0.0.50",
|
|
60
60
|
"@types/express": "^4.17.21",
|
|
61
61
|
"@types/fs-extra": "^9.0.13",
|
|
62
|
-
"@types/jest": "^26.0.24",
|
|
63
62
|
"@types/js-yaml": "^3.12.10",
|
|
64
63
|
"@types/lodash.camelcase": "^4.3.9",
|
|
65
64
|
"@types/lodash.upperfirst": "^4.3.9",
|
|
66
65
|
"@types/lru-cache": "^5.1.1",
|
|
67
66
|
"@types/mdast": "^3.0.15",
|
|
68
67
|
"@types/micromatch": "^4.0.9",
|
|
69
|
-
"@types/node": "^22.
|
|
68
|
+
"@types/node": "^22.13.1",
|
|
70
69
|
"@types/normalize-path": "^3.0.2",
|
|
71
70
|
"@types/ws": "^7.4.7",
|
|
72
71
|
"@types/yup": "^0.29.14",
|
|
73
|
-
"jest": "^29.7.0",
|
|
74
|
-
"jest-diff": "^29.7.0",
|
|
75
72
|
"jest-file-snapshot": "^0.5.0",
|
|
76
|
-
"jest-matcher-utils": "^29.7.0",
|
|
77
73
|
"memory-level": "^1.0.0",
|
|
78
74
|
"nodemon": "3.1.4",
|
|
79
|
-
"typescript": "^5.
|
|
80
|
-
"
|
|
81
|
-
"
|
|
75
|
+
"typescript": "^5.7.3",
|
|
76
|
+
"vite": "^4.5.9",
|
|
77
|
+
"vitest": "^0.32.4",
|
|
78
|
+
"zod": "^3.24.2",
|
|
79
|
+
"@tinacms/schema-tools": "0.0.0-fd664d8-20250407054012",
|
|
80
|
+
"@tinacms/scripts": "0.0.0-fd664d8-20250407054012"
|
|
82
81
|
},
|
|
83
82
|
"scripts": {
|
|
84
83
|
"types": "pnpm tsc",
|
|
85
84
|
"build": "tinacms-scripts build",
|
|
86
85
|
"docs": "pnpm typedoc",
|
|
87
86
|
"serve": "pnpm nodemon dist/server.js",
|
|
88
|
-
"test": "
|
|
89
|
-
"test-watch": "
|
|
87
|
+
"test": "vitest run",
|
|
88
|
+
"test-watch": "vitest"
|
|
90
89
|
}
|
|
91
90
|
}
|