@kalutskii/foundation 0.7.12 → 0.7.13
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.d.ts +8 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -211,6 +211,11 @@ declare const fileFormatsConfig: {
|
|
|
211
211
|
readonly mimeTypes: readonly ["image/jpeg"];
|
|
212
212
|
readonly extensions: readonly [".jpg", ".jpeg"];
|
|
213
213
|
};
|
|
214
|
+
readonly svg: {
|
|
215
|
+
readonly name: "SVG";
|
|
216
|
+
readonly mimeTypes: readonly ["image/svg+xml"];
|
|
217
|
+
readonly extensions: readonly [".svg"];
|
|
218
|
+
};
|
|
214
219
|
readonly webp: {
|
|
215
220
|
readonly name: "WEBP";
|
|
216
221
|
readonly mimeTypes: readonly ["image/webp"];
|
|
@@ -243,7 +248,7 @@ declare const fileFormatsConfig: {
|
|
|
243
248
|
};
|
|
244
249
|
};
|
|
245
250
|
|
|
246
|
-
declare const fileFormatsArray: readonly ["png", "jpg", "webp", "avif", "heic", "pdf", "rtf", "txt"];
|
|
251
|
+
declare const fileFormatsArray: readonly ["png", "jpg", "webp", "avif", "heic", "svg", "pdf", "rtf", "txt"];
|
|
247
252
|
type FileFormat = (typeof fileFormatsArray)[number];
|
|
248
253
|
declare const fileFormatsRecord: Readonly<{
|
|
249
254
|
AVIF: "avif";
|
|
@@ -251,6 +256,7 @@ declare const fileFormatsRecord: Readonly<{
|
|
|
251
256
|
PDF: "pdf";
|
|
252
257
|
PNG: "png";
|
|
253
258
|
RTF: "rtf";
|
|
259
|
+
SVG: "svg";
|
|
254
260
|
TXT: "txt";
|
|
255
261
|
WEBP: "webp";
|
|
256
262
|
HEIC: "heic";
|
|
@@ -261,6 +267,7 @@ declare const fileFormat: Readonly<{
|
|
|
261
267
|
PDF: "pdf";
|
|
262
268
|
PNG: "png";
|
|
263
269
|
RTF: "rtf";
|
|
270
|
+
SVG: "svg";
|
|
264
271
|
TXT: "txt";
|
|
265
272
|
WEBP: "webp";
|
|
266
273
|
HEIC: "heic";
|
package/dist/index.js
CHANGED
|
@@ -252,7 +252,7 @@ var loggingMiddleware = async (c, next) => {
|
|
|
252
252
|
|
|
253
253
|
// src/upload/upload.enums.ts
|
|
254
254
|
var fileFormatsArray = [
|
|
255
|
-
...["png", "jpg", "webp", "avif", "heic"],
|
|
255
|
+
...["png", "jpg", "webp", "avif", "heic", "svg"],
|
|
256
256
|
// Image formats.
|
|
257
257
|
...["pdf", "rtf", "txt"]
|
|
258
258
|
// Text and document formats.
|
|
@@ -273,6 +273,7 @@ var fileFormatsConfig = {
|
|
|
273
273
|
// Image formats.
|
|
274
274
|
[fileFormatsRecord.PNG]: { name: "PNG", mimeTypes: ["image/png"], extensions: [".png"] },
|
|
275
275
|
[fileFormatsRecord.JPG]: { name: "JPG", mimeTypes: ["image/jpeg"], extensions: [".jpg", ".jpeg"] },
|
|
276
|
+
[fileFormatsRecord.SVG]: { name: "SVG", mimeTypes: ["image/svg+xml"], extensions: [".svg"] },
|
|
276
277
|
[fileFormatsRecord.WEBP]: { name: "WEBP", mimeTypes: ["image/webp"], extensions: [".webp"] },
|
|
277
278
|
[fileFormatsRecord.AVIF]: { name: "AVIF", mimeTypes: ["image/avif"], extensions: [".avif"] },
|
|
278
279
|
[fileFormatsRecord.HEIC]: { name: "HEIC", mimeTypes: ["image/heic", "image/heif"], extensions: [".heic", ".heif"] },
|