@open-xamu-co/ui-common-types 4.0.0 → 4.1.0
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/package.json +2 -2
- package/src/files.ts +9 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-xamu-co/ui-common-types",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Xamu shared types",
|
|
5
5
|
"author": "@xamu-co",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"build:legacy": "rimraf dist && tsc --outDir dist --declaration --emitDeclarationOnly"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@open-xamu-co/ui-common-enums": "^4.
|
|
34
|
+
"@open-xamu-co/ui-common-enums": "^4.1.0",
|
|
35
35
|
"@fortawesome/fontawesome-common-types": "^6.4.0",
|
|
36
36
|
"sweetalert2": "^11.11.1"
|
|
37
37
|
},
|
package/src/files.ts
CHANGED
|
@@ -7,18 +7,23 @@ export interface iMime {
|
|
|
7
7
|
*/
|
|
8
8
|
mime: string;
|
|
9
9
|
/**
|
|
10
|
-
* Pattern to match
|
|
10
|
+
* Pattern to match (optional for text files without fixed magic bytes)
|
|
11
11
|
* @example [0xff, 0xd8, 0xff]
|
|
12
12
|
*/
|
|
13
|
-
pattern
|
|
13
|
+
pattern?: number[];
|
|
14
14
|
/**
|
|
15
|
-
* Mask to match
|
|
15
|
+
* Mask to match (optional for text files without fixed magic bytes)
|
|
16
16
|
* @example [0xff, 0xff, 0xff]
|
|
17
17
|
*/
|
|
18
|
-
mask
|
|
18
|
+
mask?: number[];
|
|
19
19
|
/**
|
|
20
20
|
* Mime type range
|
|
21
21
|
* @example eMimeType.IMAGE
|
|
22
22
|
*/
|
|
23
23
|
type: eMimeType;
|
|
24
|
+
/**
|
|
25
|
+
* Associated file extensions without leading dot (used to disambiguate shared container formats)
|
|
26
|
+
* @example ['docx'], ['zip']
|
|
27
|
+
*/
|
|
28
|
+
extensions?: string[];
|
|
24
29
|
}
|