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.mjs
CHANGED
|
@@ -1113,7 +1113,10 @@ var MIME_EXT = {
|
|
|
1113
1113
|
"audio/wave": "wav",
|
|
1114
1114
|
"audio/x-wav": "wav",
|
|
1115
1115
|
"audio/webm": "webm",
|
|
1116
|
+
"video/webm": "webm",
|
|
1116
1117
|
"audio/ogg": "ogg",
|
|
1118
|
+
"application/ogg": "ogg",
|
|
1119
|
+
"audio/opus": "opus",
|
|
1117
1120
|
"audio/flac": "flac",
|
|
1118
1121
|
"audio/x-flac": "flac"
|
|
1119
1122
|
};
|
|
@@ -1129,6 +1132,8 @@ async function extFromHeader(blob) {
|
|
|
1129
1132
|
if (head.length >= 4 && ascii(0, 4) === "fLaC") return "flac";
|
|
1130
1133
|
if (head.length >= 3 && ascii(0, 3) === "ID3") return "mp3";
|
|
1131
1134
|
if (head.length >= 2 && head[0] === 255 && (head[1] & 224) === 224) return "mp3";
|
|
1135
|
+
if (head.length >= 4 && head[0] === 26 && head[1] === 69 && head[2] === 223 && head[3] === 163) return "webm";
|
|
1136
|
+
if (head.length >= 4 && ascii(0, 4) === "OggS") return "ogg";
|
|
1132
1137
|
return void 0;
|
|
1133
1138
|
}
|
|
1134
1139
|
async function asBlob(file) {
|
|
@@ -1831,7 +1836,7 @@ var Rerank = class {
|
|
|
1831
1836
|
};
|
|
1832
1837
|
|
|
1833
1838
|
// src/version.ts
|
|
1834
|
-
var VERSION = "0.24.
|
|
1839
|
+
var VERSION = "0.24.1";
|
|
1835
1840
|
var USER_AGENT = `pendra-node/${VERSION}`;
|
|
1836
1841
|
|
|
1837
1842
|
// src/_privateInferenceEngine.ts
|