@tinacms/graphql 0.56.1 → 0.57.0-hotfix
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/CHANGELOG.md +12 -0
- package/dist/ast-builder/index.d.ts +159 -0
- package/dist/{cache/s3.d.ts → build.d.ts} +6 -18
- package/dist/builder/index.d.ts +254 -0
- package/dist/builder/static-definitions.d.ts +13 -0
- package/dist/database/bridge/index.d.ts +23 -0
- package/dist/database/index.d.ts +99 -0
- package/dist/database/store/index.d.ts +74 -0
- package/dist/database/util.d.ts +16 -0
- package/dist/index.d.ts +0 -3
- package/dist/index.js +890 -534
- package/dist/{cache/lru.d.ts → mdx/index.d.ts} +9 -14
- package/dist/mdx/parse.d.ts +229 -0
- package/dist/mdx/stringify.d.ts +24 -0
- package/dist/primitives/ast-builder/index.d.ts +40 -1
- package/dist/primitives/builder/index.d.ts +29 -2
- package/dist/primitives/database/github.d.ts +1 -22
- package/dist/primitives/index.d.ts +1 -3
- package/dist/primitives/types.d.ts +1 -1
- package/dist/resolve.d.ts +22 -0
- package/dist/resolver/error.d.ts +25 -0
- package/dist/resolver/index.d.ts +279 -0
- package/dist/schema/index.d.ts +78 -0
- package/dist/schema/validate.d.ts +14 -0
- package/dist/sdkBuilder/index.d.ts +14 -0
- package/dist/spec/setup.d.ts +41 -0
- package/dist/types.d.ts +253 -0
- package/dist/util.d.ts +28 -0
- package/package.json +3 -11
package/dist/util.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
import * as yup from 'yup';
|
|
14
|
+
/**
|
|
15
|
+
* Iterate through an array of promises sequentially, ensuring the order
|
|
16
|
+
* is preserved.
|
|
17
|
+
*
|
|
18
|
+
* ```js
|
|
19
|
+
* await sequential(templates, async (template) => {
|
|
20
|
+
* await doSomething(template)
|
|
21
|
+
* })
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare const sequential: <A, B>(items: A[], callback: (args: A, idx: number) => Promise<B>) => Promise<B[]>;
|
|
25
|
+
export declare function assertShape<T extends unknown>(value: unknown, yupSchema: (args: typeof yup) => yup.AnySchema, errorMessage?: string): asserts value is T;
|
|
26
|
+
export declare const atob: (b64Encoded: string) => string;
|
|
27
|
+
export declare const btoa: (string: string) => string;
|
|
28
|
+
export declare const lastItem: (arr: (number | string)[]) => string | number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/graphql",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0-hotfix",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -38,9 +38,8 @@
|
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
|
-
"build": "yarn tsup src/index.ts --format cjs --dts",
|
|
42
|
-
"watch": "yarn tsup src/index.ts --watch --format cjs --dts",
|
|
43
41
|
"types": "yarn tsc --project ./tsconfig.real.json",
|
|
42
|
+
"build": "echo \"Run `yarn build` from the root of the repository instead\"",
|
|
44
43
|
"docs": "yarn typedoc",
|
|
45
44
|
"serve": "yarn nodemon dist/server.js",
|
|
46
45
|
"test": "jest"
|
|
@@ -49,11 +48,9 @@
|
|
|
49
48
|
"@octokit/auth-app": "^2.6.0",
|
|
50
49
|
"@octokit/graphql": "^4.5.6",
|
|
51
50
|
"@octokit/rest": "18.0.6",
|
|
52
|
-
"@types/aws-sdk": "^2.7.0",
|
|
53
51
|
"@types/estree": "^0.0.50",
|
|
54
52
|
"@types/mdast": "^3.0.10",
|
|
55
53
|
"@types/node": "^16.9.1",
|
|
56
|
-
"aws-sdk": "^2.930.0",
|
|
57
54
|
"body-parser": "^1.19.0",
|
|
58
55
|
"cors": "^2.8.5",
|
|
59
56
|
"dataloader": "^2.0.0",
|
|
@@ -68,7 +65,6 @@
|
|
|
68
65
|
"gray-matter": "^4.0.2",
|
|
69
66
|
"js-yaml": "^3.14.0",
|
|
70
67
|
"lodash": "^4.17.20",
|
|
71
|
-
"lru-cache": "^6.0.0",
|
|
72
68
|
"mdast": "^3.0.0",
|
|
73
69
|
"mdast-util-from-markdown": "^1.0.0",
|
|
74
70
|
"mdast-util-mdx": "^1.1.0",
|
|
@@ -103,8 +99,7 @@
|
|
|
103
99
|
"directory": "packages/tina-graphql"
|
|
104
100
|
},
|
|
105
101
|
"devDependencies": {
|
|
106
|
-
"@
|
|
107
|
-
"@tinacms/scripts": "0.50.3",
|
|
102
|
+
"@tinacms/scripts": "0.50.4",
|
|
108
103
|
"@types/cors": "^2.8.7",
|
|
109
104
|
"@types/express": "^4.17.8",
|
|
110
105
|
"@types/fs-extra": "^9.0.2",
|
|
@@ -117,14 +112,11 @@
|
|
|
117
112
|
"@types/normalize-path": "^3.0.0",
|
|
118
113
|
"@types/ws": "^7.2.6",
|
|
119
114
|
"@types/yup": "^0.29.7",
|
|
120
|
-
"graphql-tools": "^6.2.1",
|
|
121
115
|
"jest": "27.0.6",
|
|
122
116
|
"jest-diff": "27.0.6",
|
|
123
117
|
"jest-file-snapshot": "^0.5.0",
|
|
124
118
|
"jest-matcher-utils": "27.0.6",
|
|
125
119
|
"nodemon": "^2.0.4",
|
|
126
|
-
"ts-jest": "27.0.3",
|
|
127
|
-
"tsup": "4.12.5",
|
|
128
120
|
"typescript": "^4.3.5"
|
|
129
121
|
}
|
|
130
122
|
}
|