vargai 0.4.0-alpha64 → 0.4.0-alpha65
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/package.json +1 -1
- package/src/ai-sdk/file.ts +5 -0
- package/bun.lock +0 -1455
package/package.json
CHANGED
package/src/ai-sdk/file.ts
CHANGED
|
@@ -268,6 +268,8 @@ export class File {
|
|
|
268
268
|
"video/mp4": ".mp4",
|
|
269
269
|
"video/webm": ".webm",
|
|
270
270
|
"video/quicktime": ".mov",
|
|
271
|
+
"text/x-ssa": ".ass",
|
|
272
|
+
"application/x-subrip": ".srt",
|
|
271
273
|
};
|
|
272
274
|
return extMap[this._mediaType] ?? "";
|
|
273
275
|
}
|
|
@@ -290,6 +292,9 @@ function inferMediaType(path: string): string {
|
|
|
290
292
|
mp4: "video/mp4",
|
|
291
293
|
webm: "video/webm",
|
|
292
294
|
mov: "video/quicktime",
|
|
295
|
+
ass: "text/x-ssa",
|
|
296
|
+
ssa: "text/x-ssa",
|
|
297
|
+
srt: "application/x-subrip",
|
|
293
298
|
};
|
|
294
299
|
return mimeTypes[ext ?? ""] ?? "application/octet-stream";
|
|
295
300
|
}
|