@sudobility/svgr_lib 0.0.35 → 0.0.37
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.
|
@@ -5,6 +5,6 @@ export declare const QUALITY_MIN = 1;
|
|
|
5
5
|
export declare const QUALITY_MAX = 10;
|
|
6
6
|
export declare const QUALITY_DEFAULT = 5;
|
|
7
7
|
export declare const SUPPORTED_IMAGE_TYPES: readonly ["image/png", "image/jpeg", "image/webp", "image/bmp", "image/gif"];
|
|
8
|
-
export declare const MAX_IMAGE_DIMENSION =
|
|
8
|
+
export declare const MAX_IMAGE_DIMENSION = 2048;
|
|
9
9
|
export type SupportedImageType = (typeof SUPPORTED_IMAGE_TYPES)[number];
|
|
10
10
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/config/constants.js
CHANGED
package/dist/utils/validation.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SUPPORTED_IMAGE_TYPES, } from '../config/constants';
|
|
2
|
-
export const MAX_FILE_SIZE_BYTES =
|
|
3
|
-
export const MAX_FILE_SIZE_MB =
|
|
2
|
+
export const MAX_FILE_SIZE_BYTES = 15 * 1024 * 1024;
|
|
3
|
+
export const MAX_FILE_SIZE_MB = 15;
|
|
4
4
|
export function isValidImageType(mimeType) {
|
|
5
5
|
return SUPPORTED_IMAGE_TYPES.includes(mimeType);
|
|
6
6
|
}
|