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/esm/VERSION.js CHANGED
@@ -1,3 +1,3 @@
1
- var VERSION = "5.7.0";
1
+ var VERSION = "5.7.1";
2
2
 
3
3
  export { VERSION as default };
@@ -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
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- var VERSION = "5.7.0";
3
+ var VERSION = "5.7.1";
4
4
 
5
5
  module.exports = VERSION;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "util-helpers",
3
- "version": "5.7.0",
3
+ "version": "5.7.1",
4
4
  "description": "一个基于业务场景的工具方法库",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",
@@ -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
- * // 4. 其他类型: null, new Date(), [], new Array(), true, false,...
58
+ * // 3. 其他类型: null, new Date(), [], new Array(), true, false,...
59
59
  *
60
60
  * // 以下为无效数值:
61
61
  * // 1. 字符串: '1a', '-12a', '10.2.2', '10e2.1'