@napuketto/media 0.0.5 → 0.0.7
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.cjs +11 -11
- package/dist/index.mjs +11 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -2
package/dist/index.cjs
CHANGED
|
@@ -8227,7 +8227,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8227
8227
|
};
|
|
8228
8228
|
}));
|
|
8229
8229
|
//#endregion
|
|
8230
|
-
//#region ../../node_modules/.pnpm/@tokenizer+inflate@0.4.1/node_modules/@tokenizer/inflate/lib/ZipToken.js
|
|
8230
|
+
//#region ../../node_modules/.pnpm/@tokenizer+inflate@0.4.1_supports-color@8.1.1/node_modules/@tokenizer/inflate/lib/ZipToken.js
|
|
8231
8231
|
var import_src = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8232
8232
|
/**
|
|
8233
8233
|
* Detect Electron renderer / nwjs process, which is node, but we should
|
|
@@ -8357,7 +8357,7 @@ const FileHeader = {
|
|
|
8357
8357
|
len: 46
|
|
8358
8358
|
};
|
|
8359
8359
|
//#endregion
|
|
8360
|
-
//#region ../../node_modules/.pnpm/@tokenizer+inflate@0.4.1/node_modules/@tokenizer/inflate/lib/ZipHandler.js
|
|
8360
|
+
//#region ../../node_modules/.pnpm/@tokenizer+inflate@0.4.1_supports-color@8.1.1/node_modules/@tokenizer/inflate/lib/ZipHandler.js
|
|
8361
8361
|
function signatureToArray(signature) {
|
|
8362
8362
|
const signatureBytes = new Uint8Array(UINT32_LE.len);
|
|
8363
8363
|
UINT32_LE.put(signatureBytes, 0, signature);
|
|
@@ -8530,7 +8530,7 @@ function mergeArrays(chunks) {
|
|
|
8530
8530
|
return mergedArray;
|
|
8531
8531
|
}
|
|
8532
8532
|
//#endregion
|
|
8533
|
-
//#region ../../node_modules/.pnpm/@tokenizer+inflate@0.4.1/node_modules/@tokenizer/inflate/lib/GzipHandler.js
|
|
8533
|
+
//#region ../../node_modules/.pnpm/@tokenizer+inflate@0.4.1_supports-color@8.1.1/node_modules/@tokenizer/inflate/lib/GzipHandler.js
|
|
8534
8534
|
var GzipHandler = class {
|
|
8535
8535
|
constructor(tokenizer) {
|
|
8536
8536
|
this.tokenizer = tokenizer;
|
|
@@ -8592,7 +8592,7 @@ function getUintBE(view) {
|
|
|
8592
8592
|
if (byteLength === 1) return view.getUint8(0);
|
|
8593
8593
|
}
|
|
8594
8594
|
//#endregion
|
|
8595
|
-
//#region ../../node_modules/.pnpm/file-type@22.0.
|
|
8595
|
+
//#region ../../node_modules/.pnpm/file-type@22.0.2_supports-color@8.1.1/node_modules/file-type/source/tokens.js
|
|
8596
8596
|
function stringToBytes(string, encoding) {
|
|
8597
8597
|
if (encoding === "utf-16le") {
|
|
8598
8598
|
const bytes = [];
|
|
@@ -8636,7 +8636,7 @@ const uint32SyncSafeToken = {
|
|
|
8636
8636
|
len: 4
|
|
8637
8637
|
};
|
|
8638
8638
|
//#endregion
|
|
8639
|
-
//#region ../../node_modules/.pnpm/file-type@22.0.
|
|
8639
|
+
//#region ../../node_modules/.pnpm/file-type@22.0.2_supports-color@8.1.1/node_modules/file-type/source/supported.js
|
|
8640
8640
|
const extensions = [
|
|
8641
8641
|
"jpg",
|
|
8642
8642
|
"png",
|
|
@@ -9003,7 +9003,7 @@ const mimeTypes = [
|
|
|
9003
9003
|
"application/vnd.apple.pages"
|
|
9004
9004
|
];
|
|
9005
9005
|
//#endregion
|
|
9006
|
-
//#region ../../node_modules/.pnpm/file-type@22.0.
|
|
9006
|
+
//#region ../../node_modules/.pnpm/file-type@22.0.2_supports-color@8.1.1/node_modules/file-type/source/parser.js
|
|
9007
9007
|
const maximumUntrustedSkipSizeInBytes = 16777216;
|
|
9008
9008
|
var ParserHardLimitError = class extends Error {};
|
|
9009
9009
|
function getSafeBound(value, maximum, reason) {
|
|
@@ -9039,7 +9039,7 @@ function hasExceededUnknownSizeScanBudget(tokenizer, startOffset, maximumBytes)
|
|
|
9039
9039
|
return hasUnknownFileSize(tokenizer) && tokenizer.position - startOffset > maximumBytes;
|
|
9040
9040
|
}
|
|
9041
9041
|
//#endregion
|
|
9042
|
-
//#region ../../node_modules/.pnpm/file-type@22.0.
|
|
9042
|
+
//#region ../../node_modules/.pnpm/file-type@22.0.2_supports-color@8.1.1/node_modules/file-type/source/detectors/zip.js
|
|
9043
9043
|
const maximumZipEntrySizeInBytes = 1048576;
|
|
9044
9044
|
const maximumZipEntryCount = 1024;
|
|
9045
9045
|
const maximumZipBufferedReadSizeInBytes = 2 ** 31 - 1;
|
|
@@ -9473,7 +9473,7 @@ async function detectZip(tokenizer) {
|
|
|
9473
9473
|
};
|
|
9474
9474
|
}
|
|
9475
9475
|
//#endregion
|
|
9476
|
-
//#region ../../node_modules/.pnpm/file-type@22.0.
|
|
9476
|
+
//#region ../../node_modules/.pnpm/file-type@22.0.2_supports-color@8.1.1/node_modules/file-type/source/detectors/ebml.js
|
|
9477
9477
|
const maximumEbmlDocumentTypeSizeInBytes = 64;
|
|
9478
9478
|
const maximumEbmlElementPayloadSizeInBytes = 1048576;
|
|
9479
9479
|
const maximumEbmlElementCount = 256;
|
|
@@ -9541,7 +9541,7 @@ async function detectEbml(tokenizer) {
|
|
|
9541
9541
|
}
|
|
9542
9542
|
}
|
|
9543
9543
|
//#endregion
|
|
9544
|
-
//#region ../../node_modules/.pnpm/file-type@22.0.
|
|
9544
|
+
//#region ../../node_modules/.pnpm/file-type@22.0.2_supports-color@8.1.1/node_modules/file-type/source/detectors/png.js
|
|
9545
9545
|
const maximumPngChunkCount = 512;
|
|
9546
9546
|
const maximumPngStreamScanBudgetInBytes = 16777216;
|
|
9547
9547
|
const maximumPngChunkSizeInBytes = 1048576;
|
|
@@ -9600,7 +9600,7 @@ async function detectPng(tokenizer) {
|
|
|
9600
9600
|
return pngFileType;
|
|
9601
9601
|
}
|
|
9602
9602
|
//#endregion
|
|
9603
|
-
//#region ../../node_modules/.pnpm/file-type@22.0.
|
|
9603
|
+
//#region ../../node_modules/.pnpm/file-type@22.0.2_supports-color@8.1.1/node_modules/file-type/source/detectors/asf.js
|
|
9604
9604
|
const maximumAsfHeaderObjectCount = 512;
|
|
9605
9605
|
const maximumAsfHeaderPayloadSizeInBytes = 1048576;
|
|
9606
9606
|
async function detectAsf(tokenizer) {
|
|
@@ -9727,7 +9727,7 @@ async function detectAsf(tokenizer) {
|
|
|
9727
9727
|
};
|
|
9728
9728
|
}
|
|
9729
9729
|
//#endregion
|
|
9730
|
-
//#region ../../node_modules/.pnpm/file-type@22.0.
|
|
9730
|
+
//#region ../../node_modules/.pnpm/file-type@22.0.2_supports-color@8.1.1/node_modules/file-type/source/index.js
|
|
9731
9731
|
/**
|
|
9732
9732
|
Primary entry point, Node.js specific entry point is index.js
|
|
9733
9733
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -8222,7 +8222,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8222
8222
|
};
|
|
8223
8223
|
}));
|
|
8224
8224
|
//#endregion
|
|
8225
|
-
//#region ../../node_modules/.pnpm/@tokenizer+inflate@0.4.1/node_modules/@tokenizer/inflate/lib/ZipToken.js
|
|
8225
|
+
//#region ../../node_modules/.pnpm/@tokenizer+inflate@0.4.1_supports-color@8.1.1/node_modules/@tokenizer/inflate/lib/ZipToken.js
|
|
8226
8226
|
var import_src = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8227
8227
|
/**
|
|
8228
8228
|
* Detect Electron renderer / nwjs process, which is node, but we should
|
|
@@ -8352,7 +8352,7 @@ const FileHeader = {
|
|
|
8352
8352
|
len: 46
|
|
8353
8353
|
};
|
|
8354
8354
|
//#endregion
|
|
8355
|
-
//#region ../../node_modules/.pnpm/@tokenizer+inflate@0.4.1/node_modules/@tokenizer/inflate/lib/ZipHandler.js
|
|
8355
|
+
//#region ../../node_modules/.pnpm/@tokenizer+inflate@0.4.1_supports-color@8.1.1/node_modules/@tokenizer/inflate/lib/ZipHandler.js
|
|
8356
8356
|
function signatureToArray(signature) {
|
|
8357
8357
|
const signatureBytes = new Uint8Array(UINT32_LE.len);
|
|
8358
8358
|
UINT32_LE.put(signatureBytes, 0, signature);
|
|
@@ -8525,7 +8525,7 @@ function mergeArrays(chunks) {
|
|
|
8525
8525
|
return mergedArray;
|
|
8526
8526
|
}
|
|
8527
8527
|
//#endregion
|
|
8528
|
-
//#region ../../node_modules/.pnpm/@tokenizer+inflate@0.4.1/node_modules/@tokenizer/inflate/lib/GzipHandler.js
|
|
8528
|
+
//#region ../../node_modules/.pnpm/@tokenizer+inflate@0.4.1_supports-color@8.1.1/node_modules/@tokenizer/inflate/lib/GzipHandler.js
|
|
8529
8529
|
var GzipHandler = class {
|
|
8530
8530
|
constructor(tokenizer) {
|
|
8531
8531
|
this.tokenizer = tokenizer;
|
|
@@ -8587,7 +8587,7 @@ function getUintBE(view) {
|
|
|
8587
8587
|
if (byteLength === 1) return view.getUint8(0);
|
|
8588
8588
|
}
|
|
8589
8589
|
//#endregion
|
|
8590
|
-
//#region ../../node_modules/.pnpm/file-type@22.0.
|
|
8590
|
+
//#region ../../node_modules/.pnpm/file-type@22.0.2_supports-color@8.1.1/node_modules/file-type/source/tokens.js
|
|
8591
8591
|
function stringToBytes(string, encoding) {
|
|
8592
8592
|
if (encoding === "utf-16le") {
|
|
8593
8593
|
const bytes = [];
|
|
@@ -8631,7 +8631,7 @@ const uint32SyncSafeToken = {
|
|
|
8631
8631
|
len: 4
|
|
8632
8632
|
};
|
|
8633
8633
|
//#endregion
|
|
8634
|
-
//#region ../../node_modules/.pnpm/file-type@22.0.
|
|
8634
|
+
//#region ../../node_modules/.pnpm/file-type@22.0.2_supports-color@8.1.1/node_modules/file-type/source/supported.js
|
|
8635
8635
|
const extensions = [
|
|
8636
8636
|
"jpg",
|
|
8637
8637
|
"png",
|
|
@@ -8998,7 +8998,7 @@ const mimeTypes = [
|
|
|
8998
8998
|
"application/vnd.apple.pages"
|
|
8999
8999
|
];
|
|
9000
9000
|
//#endregion
|
|
9001
|
-
//#region ../../node_modules/.pnpm/file-type@22.0.
|
|
9001
|
+
//#region ../../node_modules/.pnpm/file-type@22.0.2_supports-color@8.1.1/node_modules/file-type/source/parser.js
|
|
9002
9002
|
const maximumUntrustedSkipSizeInBytes = 16777216;
|
|
9003
9003
|
var ParserHardLimitError = class extends Error {};
|
|
9004
9004
|
function getSafeBound(value, maximum, reason) {
|
|
@@ -9034,7 +9034,7 @@ function hasExceededUnknownSizeScanBudget(tokenizer, startOffset, maximumBytes)
|
|
|
9034
9034
|
return hasUnknownFileSize(tokenizer) && tokenizer.position - startOffset > maximumBytes;
|
|
9035
9035
|
}
|
|
9036
9036
|
//#endregion
|
|
9037
|
-
//#region ../../node_modules/.pnpm/file-type@22.0.
|
|
9037
|
+
//#region ../../node_modules/.pnpm/file-type@22.0.2_supports-color@8.1.1/node_modules/file-type/source/detectors/zip.js
|
|
9038
9038
|
const maximumZipEntrySizeInBytes = 1048576;
|
|
9039
9039
|
const maximumZipEntryCount = 1024;
|
|
9040
9040
|
const maximumZipBufferedReadSizeInBytes = 2 ** 31 - 1;
|
|
@@ -9468,7 +9468,7 @@ async function detectZip(tokenizer) {
|
|
|
9468
9468
|
};
|
|
9469
9469
|
}
|
|
9470
9470
|
//#endregion
|
|
9471
|
-
//#region ../../node_modules/.pnpm/file-type@22.0.
|
|
9471
|
+
//#region ../../node_modules/.pnpm/file-type@22.0.2_supports-color@8.1.1/node_modules/file-type/source/detectors/ebml.js
|
|
9472
9472
|
const maximumEbmlDocumentTypeSizeInBytes = 64;
|
|
9473
9473
|
const maximumEbmlElementPayloadSizeInBytes = 1048576;
|
|
9474
9474
|
const maximumEbmlElementCount = 256;
|
|
@@ -9536,7 +9536,7 @@ async function detectEbml(tokenizer) {
|
|
|
9536
9536
|
}
|
|
9537
9537
|
}
|
|
9538
9538
|
//#endregion
|
|
9539
|
-
//#region ../../node_modules/.pnpm/file-type@22.0.
|
|
9539
|
+
//#region ../../node_modules/.pnpm/file-type@22.0.2_supports-color@8.1.1/node_modules/file-type/source/detectors/png.js
|
|
9540
9540
|
const maximumPngChunkCount = 512;
|
|
9541
9541
|
const maximumPngStreamScanBudgetInBytes = 16777216;
|
|
9542
9542
|
const maximumPngChunkSizeInBytes = 1048576;
|
|
@@ -9595,7 +9595,7 @@ async function detectPng(tokenizer) {
|
|
|
9595
9595
|
return pngFileType;
|
|
9596
9596
|
}
|
|
9597
9597
|
//#endregion
|
|
9598
|
-
//#region ../../node_modules/.pnpm/file-type@22.0.
|
|
9598
|
+
//#region ../../node_modules/.pnpm/file-type@22.0.2_supports-color@8.1.1/node_modules/file-type/source/detectors/asf.js
|
|
9599
9599
|
const maximumAsfHeaderObjectCount = 512;
|
|
9600
9600
|
const maximumAsfHeaderPayloadSizeInBytes = 1048576;
|
|
9601
9601
|
async function detectAsf(tokenizer) {
|
|
@@ -9722,7 +9722,7 @@ async function detectAsf(tokenizer) {
|
|
|
9722
9722
|
};
|
|
9723
9723
|
}
|
|
9724
9724
|
//#endregion
|
|
9725
|
-
//#region ../../node_modules/.pnpm/file-type@22.0.
|
|
9725
|
+
//#region ../../node_modules/.pnpm/file-type@22.0.2_supports-color@8.1.1/node_modules/file-type/source/index.js
|
|
9726
9726
|
/**
|
|
9727
9727
|
Primary entry point, Node.js specific entry point is index.js
|
|
9728
9728
|
*/
|