next-tinacms-dos 10.0.4 → 10.0.6
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/README.md +1 -1
- package/dist/handlers.d.ts +20 -1
- package/dist/index.d.ts +5 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -92,7 +92,7 @@ Call `createMediaHandler` to set up routes and connect your instance of the Medi
|
|
|
92
92
|
|
|
93
93
|
Import `isAuthorized` from [`@tinacms/auth`](https://github.com/tinacms/tinacms/tree/main/packages/%40tinacms/auth).
|
|
94
94
|
|
|
95
|
-
The `authorized` key will make it so only authorized users within
|
|
95
|
+
The `authorized` key will make it so only authorized users within TinaCloud can upload and make media edits.
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
```
|
package/dist/handlers.d.ts
CHANGED
|
@@ -1 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
|
|
3
|
+
*/
|
|
4
|
+
import { S3ClientConfig } from '@aws-sdk/client-s3';
|
|
5
|
+
import { NextApiRequest, NextApiResponse } from 'next';
|
|
6
|
+
export interface DOSConfig {
|
|
7
|
+
config: S3ClientConfig;
|
|
8
|
+
bucket: string;
|
|
9
|
+
mediaRoot?: string;
|
|
10
|
+
authorized: (_req: NextApiRequest, _res: NextApiResponse) => Promise<boolean>;
|
|
11
|
+
}
|
|
12
|
+
export interface DOSOptions {
|
|
13
|
+
cdnUrl?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const mediaHandlerConfig: {
|
|
16
|
+
api: {
|
|
17
|
+
bodyParser: boolean;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const createMediaHandler: (config: DOSConfig, options?: DOSOptions) => (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "next-tinacms-dos",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.6",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"files": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"tinacms": "2.7.
|
|
21
|
+
"tinacms": "2.7.6"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/crypto-js": "^3.1.47",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"react": "^18.3.1",
|
|
29
29
|
"react-dom": "^18.3.1",
|
|
30
30
|
"typescript": "^5.7.3",
|
|
31
|
-
"
|
|
32
|
-
"tinacms": "
|
|
31
|
+
"tinacms": "2.7.6",
|
|
32
|
+
"@tinacms/scripts": "1.3.4"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"registry": "https://registry.npmjs.org"
|