@secret-momo/notion 1.1.0 → 1.1.1
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/lib/upload.js +2 -2
- package/package.json +1 -1
package/lib/upload.js
CHANGED
|
@@ -5,8 +5,8 @@ import '@notionhq/client';
|
|
|
5
5
|
import { newNotionClient } from './client.js';
|
|
6
6
|
|
|
7
7
|
const SINGLE_PART_MAX_BYTES = 20 * 1024 * 1024;
|
|
8
|
-
const MULTIPART_CHUNK_BYTES =
|
|
9
|
-
const MULTIPART_UPLOAD_CONCURRENCY =
|
|
8
|
+
const MULTIPART_CHUNK_BYTES = 18 * 1024 * 1024;
|
|
9
|
+
const MULTIPART_UPLOAD_CONCURRENCY = 3;
|
|
10
10
|
const MIME_BY_EXT = {
|
|
11
11
|
".avif": "image/avif",
|
|
12
12
|
".bmp": "image/bmp",
|