@tinacms/datalayer 1.2.40 → 1.3.0
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/backend/index.d.ts +4 -5
- package/package.json +4 -5
package/dist/backend/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type { IncomingMessage, ServerResponse } from 'http';
|
|
3
|
-
|
|
2
|
+
type DatabaseClient = any;
|
|
4
3
|
export interface BackendAuthProvider {
|
|
5
4
|
initialize?: () => Promise<void>;
|
|
6
5
|
isAuthorized: (req: IncomingMessage, res: ServerResponse) => Promise<{
|
|
@@ -39,8 +38,8 @@ export interface TinaBackendOptions {
|
|
|
39
38
|
basePath?: string;
|
|
40
39
|
};
|
|
41
40
|
}
|
|
42
|
-
export
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
export type NodeApiHandler = (req: IncomingMessage, res: ServerResponse) => Promise<void>;
|
|
42
|
+
type NodeRouteHandlerOptions = Required<TinaBackendOptions['options']>;
|
|
43
|
+
type NodeRouteHandler = (req: IncomingMessage, res: ServerResponse, opts: NodeRouteHandlerOptions) => Promise<void>;
|
|
45
44
|
export declare function TinaNodeBackend({ authProvider, databaseClient, options, }: TinaBackendOptions): NodeApiHandler;
|
|
46
45
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/datalayer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"typings": "dist/index",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
]
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@tinacms/graphql": "1.
|
|
34
|
+
"@tinacms/graphql": "1.5.0"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"registry": "https://registry.npmjs.org"
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
"@types/jest": "^27.4.1",
|
|
46
46
|
"@types/js-yaml": "^3.12.5",
|
|
47
47
|
"@types/level": "^6.0.0",
|
|
48
|
-
"@types/lodash": "^4.14.161",
|
|
49
48
|
"@types/lodash.camelcase": "^4.3.6",
|
|
50
49
|
"@types/lodash.upperfirst": "^4.3.6",
|
|
51
50
|
"@types/node": "^14.17.34",
|
|
@@ -55,8 +54,8 @@
|
|
|
55
54
|
"jest-diff": "^29.5.0",
|
|
56
55
|
"jest-file-snapshot": "^0.5.0",
|
|
57
56
|
"jest-matcher-utils": "^29.5.0",
|
|
58
|
-
"typescript": "
|
|
59
|
-
"@tinacms/scripts": "1.
|
|
57
|
+
"typescript": "^5.5.4",
|
|
58
|
+
"@tinacms/scripts": "1.2.0"
|
|
60
59
|
},
|
|
61
60
|
"scripts": {
|
|
62
61
|
"types": "pnpm tsc",
|