@pollinations/cli 0.1.57 → 0.1.58
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/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var init_package = __esm({
|
|
|
14
14
|
"package.json"() {
|
|
15
15
|
package_default = {
|
|
16
16
|
name: "@pollinations/cli",
|
|
17
|
-
version: "0.1.
|
|
17
|
+
version: "0.1.58",
|
|
18
18
|
description: "The Pollinations CLI \u2014 for humans, AI agents, and everything in between",
|
|
19
19
|
type: "module",
|
|
20
20
|
bin: {
|
|
@@ -6326,6 +6326,10 @@ function collectSiteFiles(dir) {
|
|
|
6326
6326
|
walk(dir);
|
|
6327
6327
|
return files9;
|
|
6328
6328
|
}
|
|
6329
|
+
function assetType(file) {
|
|
6330
|
+
const type = mimeTypeFor(file);
|
|
6331
|
+
return type === "application/octet-stream" ? "application/null" : type;
|
|
6332
|
+
}
|
|
6329
6333
|
async function uploadBuckets(session, files9) {
|
|
6330
6334
|
const byHash = new Map(files9.map((file) => [file.hash, file]));
|
|
6331
6335
|
let jwt = session.jwt;
|
|
@@ -6338,7 +6342,7 @@ async function uploadBuckets(session, files9) {
|
|
|
6338
6342
|
form.append(
|
|
6339
6343
|
hash,
|
|
6340
6344
|
new Blob([readFileSync8(file.file).toString("base64")], {
|
|
6341
|
-
type:
|
|
6345
|
+
type: assetType(file.file)
|
|
6342
6346
|
}),
|
|
6343
6347
|
hash
|
|
6344
6348
|
);
|