@shipstatic/drop 0.2.14 → 0.2.16
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -67,6 +67,7 @@ declare function isZipFile(file: File): boolean;
|
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Get MIME type from file path (browser-compatible, no Node.js dependencies)
|
|
70
|
+
* Returns empty string if extension not found, allowing fallback to browser detection
|
|
70
71
|
*/
|
|
71
72
|
declare function getMimeType(path: string): string;
|
|
72
73
|
|
package/dist/index.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ declare function isZipFile(file: File): boolean;
|
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Get MIME type from file path (browser-compatible, no Node.js dependencies)
|
|
70
|
+
* Returns empty string if extension not found, allowing fallback to browser detection
|
|
70
71
|
*/
|
|
71
72
|
declare function getMimeType(path: string): string;
|
|
72
73
|
|
package/dist/index.js
CHANGED
|
@@ -11700,7 +11700,7 @@ var require_mime_db = __commonJS({
|
|
|
11700
11700
|
}
|
|
11701
11701
|
});
|
|
11702
11702
|
|
|
11703
|
-
// node_modules/.pnpm/@shipstatic+types@0.4.
|
|
11703
|
+
// node_modules/.pnpm/@shipstatic+types@0.4.23/node_modules/@shipstatic/types/dist/index.js
|
|
11704
11704
|
var ErrorType;
|
|
11705
11705
|
(function(ErrorType2) {
|
|
11706
11706
|
ErrorType2["Validation"] = "validation_failed";
|
|
@@ -11754,7 +11754,7 @@ for (const type in import_mime_db.default) {
|
|
|
11754
11754
|
}
|
|
11755
11755
|
function getMimeType(path) {
|
|
11756
11756
|
const extension = path.includes(".") ? path.substring(path.lastIndexOf(".") + 1).toLowerCase() : "";
|
|
11757
|
-
return extensionToMimeMap[extension] || "
|
|
11757
|
+
return extensionToMimeMap[extension] || "";
|
|
11758
11758
|
}
|
|
11759
11759
|
|
|
11760
11760
|
// src/utils/zipExtractor.ts
|