util-helpers 5.7.0 → 5.7.1
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/util-helpers.js +2 -2
- package/dist/util-helpers.js.map +1 -1
- package/dist/util-helpers.min.js +1 -1
- package/dist/util-helpers.min.js.map +1 -1
- package/esm/VERSION.js +1 -1
- package/esm/getFileType.js +1 -1
- package/lib/VERSION.js +1 -1
- package/lib/getFileType.js +1 -1
- package/package.json +1 -1
- package/types/getFileType.d.ts +1 -1
- package/types/index.d.ts +1 -1
package/esm/VERSION.js
CHANGED
package/esm/getFileType.js
CHANGED
|
@@ -3,7 +3,7 @@ import checkFileType from './checkFileType.js';
|
|
|
3
3
|
import { isUploadFile } from './utils/file.util.js';
|
|
4
4
|
|
|
5
5
|
var config = {
|
|
6
|
-
image: 'image/*,.jpeg,.jpg,.gif,.bmp,.png,.webp,.svg,.apng,.avif,.ico,.tif,.tiff',
|
|
6
|
+
image: 'image/*,.jpeg,.jpg,.gif,.bmp,.png,.webp,.svg,.apng,.avif,.ico,.cur,.tif,.tiff,.jfif,.pjpeg,.pjp',
|
|
7
7
|
audio: 'audio/*,.mp3,.wav,.aac,.flac',
|
|
8
8
|
video: 'video/*,.mp4,.webm,.ogg,.mov',
|
|
9
9
|
pdf: 'application/pdf,.pdf',
|
package/lib/VERSION.js
CHANGED
package/lib/getFileType.js
CHANGED
|
@@ -5,7 +5,7 @@ var checkFileType = require('./checkFileType.js');
|
|
|
5
5
|
var file_util = require('./utils/file.util.js');
|
|
6
6
|
|
|
7
7
|
var config = {
|
|
8
|
-
image: 'image/*,.jpeg,.jpg,.gif,.bmp,.png,.webp,.svg,.apng,.avif,.ico,.tif,.tiff',
|
|
8
|
+
image: 'image/*,.jpeg,.jpg,.gif,.bmp,.png,.webp,.svg,.apng,.avif,.ico,.cur,.tif,.tiff,.jfif,.pjpeg,.pjp',
|
|
9
9
|
audio: 'audio/*,.mp3,.wav,.aac,.flac',
|
|
10
10
|
video: 'video/*,.mp4,.webm,.ogg,.mov',
|
|
11
11
|
pdf: 'application/pdf,.pdf',
|
package/package.json
CHANGED
package/types/getFileType.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { UploadFile } from './utils/file.util';
|
|
|
18
18
|
*
|
|
19
19
|
* | 类型 | 说明符 |
|
|
20
20
|
* |---|---|
|
|
21
|
-
* | `image` | `image/*,.jpeg,.jpg,.gif,.bmp,.png,.webp,.svg,.apng,.avif,.ico,.tif,.tiff` |
|
|
21
|
+
* | `image` | `image/*,.jpeg,.jpg,.gif,.bmp,.png,.webp,.svg,.apng,.avif,.ico,.cur,.tif,.tiff,.jfif,.pjpeg,.pjp` |
|
|
22
22
|
* | `audio` | `audio/*,.mp3,.wav,.aac,.flac` |
|
|
23
23
|
* | `video` | `video/*,.mp4,.webm,.ogg,.mov` |
|
|
24
24
|
* | `pdf` | `application/pdf,.pdf` |
|
package/types/index.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export { default as transformObjectValue } from './transformObjectValue';
|
|
|
55
55
|
* // 以下为有效数值:
|
|
56
56
|
* // 1. 数字: 1, -1, 1e-2, 1.312, 0.1, Infinity
|
|
57
57
|
* // 2. 字符串: '1', '10e2', '-1', '0.1', '', ' ', ' 15', ' 15 '
|
|
58
|
-
* //
|
|
58
|
+
* // 3. 其他类型: null, new Date(), [], new Array(), true, false,...
|
|
59
59
|
*
|
|
60
60
|
* // 以下为无效数值:
|
|
61
61
|
* // 1. 字符串: '1a', '-12a', '10.2.2', '10e2.1'
|