@tinacms/graphql 0.60.8 → 0.61.2
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/LICENSE +176 -0
- package/dist/index.d.ts +1 -31
- package/dist/index.js +15849 -14479
- package/dist/{ast-builder → src/ast-builder}/index.d.ts +0 -0
- package/dist/{build.d.ts → src/build.d.ts} +0 -0
- package/dist/{builder → src/builder}/index.d.ts +0 -0
- package/dist/{builder → src/builder}/static-definitions.d.ts +0 -0
- package/dist/{database → src/database}/bridge/index.d.ts +1 -1
- package/dist/{database → src/database}/index.d.ts +1 -0
- package/dist/{database → src/database}/util.d.ts +0 -0
- package/dist/src/index.d.ts +31 -0
- package/dist/{mdx → src/mdx}/index.d.ts +0 -0
- package/dist/{mdx → src/mdx}/parse.d.ts +0 -0
- package/dist/{mdx → src/mdx}/stringify.d.ts +0 -0
- package/dist/{resolve.d.ts → src/resolve.d.ts} +0 -0
- package/dist/{resolver → src/resolver}/error.d.ts +0 -0
- package/dist/{resolver → src/resolver}/filter-utils.d.ts +0 -0
- package/dist/{resolver → src/resolver}/index.d.ts +0 -0
- package/dist/{resolver → src/resolver}/media-utils.d.ts +0 -0
- package/dist/{schema → src/schema}/index.d.ts +0 -0
- package/dist/{schema → src/schema}/validate.d.ts +0 -0
- package/dist/{sdkBuilder → src/sdkBuilder}/index.d.ts +0 -0
- package/dist/{spec → src/spec}/setup.d.ts +0 -0
- package/dist/{types.d.ts → src/types.d.ts} +0 -0
- package/dist/{util.d.ts → src/util.d.ts} +0 -0
- package/package.json +15 -15
- package/CHANGELOG.md +0 -1148
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -12,7 +12,7 @@ limitations under the License.
|
|
|
12
12
|
*/
|
|
13
13
|
export interface Bridge {
|
|
14
14
|
rootPath: string;
|
|
15
|
-
glob(pattern: string): Promise<string[]>;
|
|
15
|
+
glob(pattern: string, extension: string): Promise<string[]>;
|
|
16
16
|
get(filepath: string): Promise<string>;
|
|
17
17
|
put(filepath: string, data: string): Promise<void>;
|
|
18
18
|
delete(filepath: string): Promise<void>;
|
|
@@ -28,6 +28,7 @@ declare type CreateDatabase = {
|
|
|
28
28
|
export declare const createDatabase: (config: CreateDatabase) => Promise<Database>;
|
|
29
29
|
/** Options for {@link Database.query} **/
|
|
30
30
|
export declare type QueryOptions = {
|
|
31
|
+
fileExtension?: string;
|
|
31
32
|
collection: string;
|
|
32
33
|
filterChain?: (BinaryFilter | TernaryFilter)[];
|
|
33
34
|
sort?: string;
|
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Copyright 2021 Forestry.io Holdings, Inc.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
Unless required by applicable law or agreed to in writing, software
|
|
8
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
9
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10
|
+
See the License for the specific language governing permissions and
|
|
11
|
+
limitations under the License.
|
|
12
|
+
*/
|
|
13
|
+
export { indexDB } from './build';
|
|
14
|
+
export { resolve } from './resolve';
|
|
15
|
+
export * from './resolver/error';
|
|
16
|
+
export { createDatabase } from './database';
|
|
17
|
+
export type { QueryOptions } from './database';
|
|
18
|
+
import type { Database } from './database';
|
|
19
|
+
export type { Database } from './database';
|
|
20
|
+
export type { Store } from '@tinacms/datalayer';
|
|
21
|
+
export type { Bridge } from './database/bridge';
|
|
22
|
+
export { sequential, assertShape } from './util';
|
|
23
|
+
export { stringifyFile, parseFile } from './database/util';
|
|
24
|
+
export declare const buildSchema: (rootPath: string, database: Database, flags?: string[]) => Promise<import("graphql").GraphQLSchema>;
|
|
25
|
+
import type { TinaCloudSchema as TinaCloudSchemaBase, TinaCloudCollection as TinaCloudCollectionBase, TinaCloudTemplateBase as TinaTemplate, TinaFieldBase } from './types';
|
|
26
|
+
export declare type TinaCloudSchema = TinaCloudSchemaBase<false>;
|
|
27
|
+
export declare type TinaSchema = TinaCloudSchema;
|
|
28
|
+
export declare type TinaCloudCollection = TinaCloudCollectionBase<false>;
|
|
29
|
+
export declare type TinaCollection = TinaCloudCollectionBase<false>;
|
|
30
|
+
export declare type TinaField = TinaFieldBase;
|
|
31
|
+
export type { TinaTemplate };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/graphql",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.61.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -37,18 +37,10 @@
|
|
|
37
37
|
}
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
|
-
"scripts": {
|
|
41
|
-
"types": "yarn tsc",
|
|
42
|
-
"build": "echo \"Run `yarn build` from the root of the repository instead\"",
|
|
43
|
-
"docs": "yarn typedoc",
|
|
44
|
-
"serve": "yarn nodemon dist/server.js",
|
|
45
|
-
"test": "jest",
|
|
46
|
-
"test-watch": "jest --watch"
|
|
47
|
-
},
|
|
48
40
|
"dependencies": {
|
|
49
41
|
"@graphql-tools/relay-operation-optimizer": "^6.4.1",
|
|
50
|
-
"@tinacms/datalayer": "0.
|
|
51
|
-
"@tinacms/schema-tools": "0.0.
|
|
42
|
+
"@tinacms/datalayer": "0.2.1",
|
|
43
|
+
"@tinacms/schema-tools": "0.0.8",
|
|
52
44
|
"body-parser": "^1.19.0",
|
|
53
45
|
"cors": "^2.8.5",
|
|
54
46
|
"dataloader": "^2.0.0",
|
|
@@ -98,9 +90,9 @@
|
|
|
98
90
|
"directory": "packages/tina-graphql"
|
|
99
91
|
},
|
|
100
92
|
"devDependencies": {
|
|
101
|
-
"@tinacms/datalayer": "0.
|
|
102
|
-
"@tinacms/schema-tools": "0.0.
|
|
103
|
-
"@tinacms/scripts": "0.50.
|
|
93
|
+
"@tinacms/datalayer": "0.2.1",
|
|
94
|
+
"@tinacms/schema-tools": "0.0.8",
|
|
95
|
+
"@tinacms/scripts": "0.50.9",
|
|
104
96
|
"@types/cors": "^2.8.7",
|
|
105
97
|
"@types/estree": "^0.0.50",
|
|
106
98
|
"@types/express": "^4.17.8",
|
|
@@ -121,6 +113,14 @@
|
|
|
121
113
|
"jest-file-snapshot": "^0.5.0",
|
|
122
114
|
"jest-matcher-utils": "27.0.6",
|
|
123
115
|
"nodemon": "^2.0.4",
|
|
124
|
-
"typescript": "
|
|
116
|
+
"typescript": "4.3.5"
|
|
117
|
+
},
|
|
118
|
+
"scripts": {
|
|
119
|
+
"types": "pnpm tsc",
|
|
120
|
+
"build": "tinacms-scripts build",
|
|
121
|
+
"docs": "yarn typedoc",
|
|
122
|
+
"serve": "yarn nodemon dist/server.js",
|
|
123
|
+
"test": "jest",
|
|
124
|
+
"test-watch": "jest --watch"
|
|
125
125
|
}
|
|
126
126
|
}
|