@rmdes/indiekit-syndicator-bluesky 1.0.18 → 1.0.20
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/utils.js +1 -1
- package/package.json +3 -3
package/lib/utils.js
CHANGED
|
@@ -535,7 +535,7 @@ export async function constrainImage(buffer, maxBytes, quality = 90) {
|
|
|
535
535
|
* @returns {Promise<{buffer: Buffer, mimeType: string}>} Compressed image
|
|
536
536
|
*/
|
|
537
537
|
export async function getPostImage(buffer, mimeType) {
|
|
538
|
-
const MAX_SIZE =
|
|
538
|
+
const MAX_SIZE = 1_000_000; // Bluesky's upload limit is 1,000,000 bytes (not 1 MiB)
|
|
539
539
|
if (buffer.length < MAX_SIZE) {
|
|
540
540
|
return { buffer, mimeType };
|
|
541
541
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmdes/indiekit-syndicator-bluesky",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"description": "Bluesky syndicator for Indiekit with external like support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"url": "https://github.com/rmdes/indiekit-syndicator-bluesky"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atproto/api": "^0.
|
|
26
|
+
"@atproto/api": "^0.19.3",
|
|
27
27
|
"html-to-text": "^9.0.0",
|
|
28
28
|
"jsdom": "^24.0.0",
|
|
29
29
|
"sharp": "^0.33.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@indiekit/indiekit": "1.x",
|
|
33
|
-
"@indiekit/error": "^1.0.0-beta.
|
|
33
|
+
"@indiekit/error": "^1.0.0-beta.27",
|
|
34
34
|
"@indiekit/util": "^1.0.0-beta.25"
|
|
35
35
|
}
|
|
36
36
|
}
|