pendra 0.24.0 → 0.24.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/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1159,7 +1159,10 @@ var MIME_EXT = {
|
|
|
1159
1159
|
"audio/wave": "wav",
|
|
1160
1160
|
"audio/x-wav": "wav",
|
|
1161
1161
|
"audio/webm": "webm",
|
|
1162
|
+
"video/webm": "webm",
|
|
1162
1163
|
"audio/ogg": "ogg",
|
|
1164
|
+
"application/ogg": "ogg",
|
|
1165
|
+
"audio/opus": "opus",
|
|
1163
1166
|
"audio/flac": "flac",
|
|
1164
1167
|
"audio/x-flac": "flac"
|
|
1165
1168
|
};
|
|
@@ -1175,6 +1178,8 @@ async function extFromHeader(blob) {
|
|
|
1175
1178
|
if (head.length >= 4 && ascii(0, 4) === "fLaC") return "flac";
|
|
1176
1179
|
if (head.length >= 3 && ascii(0, 3) === "ID3") return "mp3";
|
|
1177
1180
|
if (head.length >= 2 && head[0] === 255 && (head[1] & 224) === 224) return "mp3";
|
|
1181
|
+
if (head.length >= 4 && head[0] === 26 && head[1] === 69 && head[2] === 223 && head[3] === 163) return "webm";
|
|
1182
|
+
if (head.length >= 4 && ascii(0, 4) === "OggS") return "ogg";
|
|
1178
1183
|
return void 0;
|
|
1179
1184
|
}
|
|
1180
1185
|
async function asBlob(file) {
|
|
@@ -1877,7 +1882,7 @@ var Rerank = class {
|
|
|
1877
1882
|
};
|
|
1878
1883
|
|
|
1879
1884
|
// src/version.ts
|
|
1880
|
-
var VERSION = "0.24.
|
|
1885
|
+
var VERSION = "0.24.1";
|
|
1881
1886
|
var USER_AGENT = `pendra-node/${VERSION}`;
|
|
1882
1887
|
|
|
1883
1888
|
// src/_privateInferenceEngine.ts
|