@uniformdev/files 19.184.3-alpha.32 → 19.185.1-alpha.8
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.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +14 -0
- package/dist/index.js +15 -0
- package/dist/index.mjs +14 -0
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -203,5 +203,6 @@ declare const FILE_READY_STATE = 64;
|
|
|
203
203
|
/** Constant for a max file size in bytes. Subject to change. */
|
|
204
204
|
declare const FILE_MAX_SIZE: number;
|
|
205
205
|
declare const FILE_TYPES_IMAGE: string[];
|
|
206
|
+
declare const FILE_MIME_TYPES_IMAGE: string[];
|
|
206
207
|
|
|
207
|
-
export { FILE_IN_PROGRESS_STATE, FILE_MAX_SIZE, FILE_READY_STATE, FILE_TYPES_IMAGE, FileClient, type FileDeleteRequest, type FileDeleteResponse, type FileGetByIDRequest, type FileGetBySourceIDRequest, type FileGetByURLRequest, type FileGetRequest, type FileGetResponse, type FileInsertRequest, type FileInsertResponse, UncachedFileClient, getFileNameFromUrl };
|
|
208
|
+
export { FILE_IN_PROGRESS_STATE, FILE_MAX_SIZE, FILE_MIME_TYPES_IMAGE, FILE_READY_STATE, FILE_TYPES_IMAGE, FileClient, type FileDeleteRequest, type FileDeleteResponse, type FileGetByIDRequest, type FileGetBySourceIDRequest, type FileGetByURLRequest, type FileGetRequest, type FileGetResponse, type FileInsertRequest, type FileInsertResponse, UncachedFileClient, getFileNameFromUrl };
|
package/dist/index.d.ts
CHANGED
|
@@ -203,5 +203,6 @@ declare const FILE_READY_STATE = 64;
|
|
|
203
203
|
/** Constant for a max file size in bytes. Subject to change. */
|
|
204
204
|
declare const FILE_MAX_SIZE: number;
|
|
205
205
|
declare const FILE_TYPES_IMAGE: string[];
|
|
206
|
+
declare const FILE_MIME_TYPES_IMAGE: string[];
|
|
206
207
|
|
|
207
|
-
export { FILE_IN_PROGRESS_STATE, FILE_MAX_SIZE, FILE_READY_STATE, FILE_TYPES_IMAGE, FileClient, type FileDeleteRequest, type FileDeleteResponse, type FileGetByIDRequest, type FileGetBySourceIDRequest, type FileGetByURLRequest, type FileGetRequest, type FileGetResponse, type FileInsertRequest, type FileInsertResponse, UncachedFileClient, getFileNameFromUrl };
|
|
208
|
+
export { FILE_IN_PROGRESS_STATE, FILE_MAX_SIZE, FILE_MIME_TYPES_IMAGE, FILE_READY_STATE, FILE_TYPES_IMAGE, FileClient, type FileDeleteRequest, type FileDeleteResponse, type FileGetByIDRequest, type FileGetBySourceIDRequest, type FileGetByURLRequest, type FileGetRequest, type FileGetResponse, type FileInsertRequest, type FileInsertResponse, UncachedFileClient, getFileNameFromUrl };
|
package/dist/index.esm.js
CHANGED
|
@@ -60,9 +60,23 @@ var FILE_TYPES_IMAGE = [
|
|
|
60
60
|
".apng",
|
|
61
61
|
".avif"
|
|
62
62
|
];
|
|
63
|
+
var FILE_MIME_TYPES_IMAGE = [
|
|
64
|
+
"image/jpg",
|
|
65
|
+
"image/jpeg",
|
|
66
|
+
"image/jfif",
|
|
67
|
+
"image/pjpeg",
|
|
68
|
+
"image/pjp",
|
|
69
|
+
"image/png",
|
|
70
|
+
"image/gif",
|
|
71
|
+
"image/svg+xml",
|
|
72
|
+
"image/webp",
|
|
73
|
+
"image/apng",
|
|
74
|
+
"image/avif"
|
|
75
|
+
];
|
|
63
76
|
export {
|
|
64
77
|
FILE_IN_PROGRESS_STATE,
|
|
65
78
|
FILE_MAX_SIZE,
|
|
79
|
+
FILE_MIME_TYPES_IMAGE,
|
|
66
80
|
FILE_READY_STATE,
|
|
67
81
|
FILE_TYPES_IMAGE,
|
|
68
82
|
FileClient,
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,7 @@ var src_exports = {};
|
|
|
22
22
|
__export(src_exports, {
|
|
23
23
|
FILE_IN_PROGRESS_STATE: () => FILE_IN_PROGRESS_STATE,
|
|
24
24
|
FILE_MAX_SIZE: () => FILE_MAX_SIZE,
|
|
25
|
+
FILE_MIME_TYPES_IMAGE: () => FILE_MIME_TYPES_IMAGE,
|
|
25
26
|
FILE_READY_STATE: () => FILE_READY_STATE,
|
|
26
27
|
FILE_TYPES_IMAGE: () => FILE_TYPES_IMAGE,
|
|
27
28
|
FileClient: () => FileClient,
|
|
@@ -92,10 +93,24 @@ var FILE_TYPES_IMAGE = [
|
|
|
92
93
|
".apng",
|
|
93
94
|
".avif"
|
|
94
95
|
];
|
|
96
|
+
var FILE_MIME_TYPES_IMAGE = [
|
|
97
|
+
"image/jpg",
|
|
98
|
+
"image/jpeg",
|
|
99
|
+
"image/jfif",
|
|
100
|
+
"image/pjpeg",
|
|
101
|
+
"image/pjp",
|
|
102
|
+
"image/png",
|
|
103
|
+
"image/gif",
|
|
104
|
+
"image/svg+xml",
|
|
105
|
+
"image/webp",
|
|
106
|
+
"image/apng",
|
|
107
|
+
"image/avif"
|
|
108
|
+
];
|
|
95
109
|
// Annotate the CommonJS export names for ESM import in node:
|
|
96
110
|
0 && (module.exports = {
|
|
97
111
|
FILE_IN_PROGRESS_STATE,
|
|
98
112
|
FILE_MAX_SIZE,
|
|
113
|
+
FILE_MIME_TYPES_IMAGE,
|
|
99
114
|
FILE_READY_STATE,
|
|
100
115
|
FILE_TYPES_IMAGE,
|
|
101
116
|
FileClient,
|
package/dist/index.mjs
CHANGED
|
@@ -60,9 +60,23 @@ var FILE_TYPES_IMAGE = [
|
|
|
60
60
|
".apng",
|
|
61
61
|
".avif"
|
|
62
62
|
];
|
|
63
|
+
var FILE_MIME_TYPES_IMAGE = [
|
|
64
|
+
"image/jpg",
|
|
65
|
+
"image/jpeg",
|
|
66
|
+
"image/jfif",
|
|
67
|
+
"image/pjpeg",
|
|
68
|
+
"image/pjp",
|
|
69
|
+
"image/png",
|
|
70
|
+
"image/gif",
|
|
71
|
+
"image/svg+xml",
|
|
72
|
+
"image/webp",
|
|
73
|
+
"image/apng",
|
|
74
|
+
"image/avif"
|
|
75
|
+
];
|
|
63
76
|
export {
|
|
64
77
|
FILE_IN_PROGRESS_STATE,
|
|
65
78
|
FILE_MAX_SIZE,
|
|
79
|
+
FILE_MIME_TYPES_IMAGE,
|
|
66
80
|
FILE_READY_STATE,
|
|
67
81
|
FILE_TYPES_IMAGE,
|
|
68
82
|
FileClient,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/files",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.185.1-alpha.8+53f7f96124",
|
|
4
4
|
"description": "Uniform Files helpers",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@uniformdev/context": "19.
|
|
39
|
+
"@uniformdev/context": "19.185.1-alpha.8+53f7f96124"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "53f7f961242f3518b103e55337ada7ad91c18dd7"
|
|
42
42
|
}
|