sculp-js 1.17.3 → 1.18.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.
Files changed (63) hide show
  1. package/dist/cjs/array.js +3 -1
  2. package/dist/cjs/async.js +3 -1
  3. package/dist/cjs/base64.js +3 -1
  4. package/dist/cjs/clipboard.js +3 -1
  5. package/dist/cjs/cloneDeep.js +3 -1
  6. package/dist/cjs/cookie.js +3 -1
  7. package/dist/cjs/date.js +3 -1
  8. package/dist/cjs/dom.js +3 -1
  9. package/dist/cjs/download.js +3 -1
  10. package/dist/cjs/file.js +3 -1
  11. package/dist/cjs/func.js +3 -1
  12. package/dist/cjs/index.js +8 -4
  13. package/dist/cjs/isEqual.js +3 -1
  14. package/dist/cjs/math.js +3 -1
  15. package/dist/cjs/number.js +3 -1
  16. package/dist/cjs/object.js +5 -3
  17. package/dist/cjs/path.js +3 -1
  18. package/dist/cjs/qs.js +3 -1
  19. package/dist/cjs/random.js +3 -1
  20. package/dist/cjs/string.js +3 -1
  21. package/dist/cjs/tooltip.js +3 -1
  22. package/dist/cjs/tree.js +3 -1
  23. package/dist/cjs/type.js +2 -2
  24. package/dist/cjs/unicodeToolkit.js +118 -0
  25. package/dist/cjs/unique.js +3 -1
  26. package/dist/cjs/url.js +3 -1
  27. package/dist/cjs/validator.js +3 -1
  28. package/dist/cjs/variable.js +3 -1
  29. package/dist/cjs/watermark.js +3 -1
  30. package/dist/esm/array.js +1 -1
  31. package/dist/esm/async.js +1 -1
  32. package/dist/esm/base64.js +1 -1
  33. package/dist/esm/clipboard.js +1 -1
  34. package/dist/esm/cloneDeep.js +1 -1
  35. package/dist/esm/cookie.js +1 -1
  36. package/dist/esm/date.js +1 -1
  37. package/dist/esm/dom.js +2 -2
  38. package/dist/esm/download.js +2 -2
  39. package/dist/esm/file.js +1 -1
  40. package/dist/esm/func.js +1 -1
  41. package/dist/esm/index.js +5 -4
  42. package/dist/esm/isEqual.js +1 -1
  43. package/dist/esm/math.js +1 -1
  44. package/dist/esm/number.js +1 -1
  45. package/dist/esm/object.js +2 -2
  46. package/dist/esm/path.js +1 -1
  47. package/dist/esm/qs.js +1 -1
  48. package/dist/esm/random.js +1 -1
  49. package/dist/esm/string.js +1 -1
  50. package/dist/esm/tooltip.js +1 -1
  51. package/dist/esm/tree.js +1 -1
  52. package/dist/esm/type.js +1 -1
  53. package/dist/esm/unicodeToolkit.js +114 -0
  54. package/dist/esm/unique.js +1 -1
  55. package/dist/esm/url.js +1 -1
  56. package/dist/esm/validator.js +1 -1
  57. package/dist/esm/variable.js +1 -1
  58. package/dist/esm/watermark.js +1 -1
  59. package/dist/sculp-js.d.ts +44 -0
  60. package/dist/types/index.d.ts +1 -0
  61. package/dist/types/unicodeToolkit.d.ts +43 -0
  62. package/dist/umd/index.min.js +2 -2
  63. package/package.json +68 -10
package/dist/cjs/array.js CHANGED
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  /**
10
12
  * 遍历数组,返回 false 中断遍历(支持continue和break操作)
11
13
  *
package/dist/cjs/async.js CHANGED
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  /**
10
12
  * 等待一段时间
11
13
  * @param {number} timeout 等待时间,单位毫秒
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  var func = require('./func.js');
10
12
  var type = require('./type.js');
11
13
 
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  var dom = require('./dom.js');
10
12
  var type = require('./type.js');
11
13
 
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  /**
10
12
  * 深拷贝堪称完全体 即:任何类型的数据都会被深拷贝
11
13
  *
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  var type = require('./type.js');
10
12
 
11
13
  /**
package/dist/cjs/date.js CHANGED
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  var type = require('./type.js');
10
12
 
11
13
  const isValidDate = any => type.isDate(any) && !type.isNaN(any.getTime());
package/dist/cjs/dom.js CHANGED
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  var object = require('./object.js');
10
12
  var string = require('./string.js');
11
13
  var type = require('./type.js');
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  var type = require('./type.js');
10
12
  var url = require('./url.js');
11
13
 
package/dist/cjs/file.js CHANGED
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  var type = require('./type.js');
10
12
 
11
13
  /**
package/dist/cjs/func.js CHANGED
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  /**
10
12
  * 防抖函数
11
13
  * 当函数被连续调用时,该函数并不执行,只有当其全部停止调用超过一定时间后才执行1次。
package/dist/cjs/index.js CHANGED
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  var array = require('./array.js');
10
12
  var clipboard = require('./clipboard.js');
11
13
  var cookie = require('./cookie.js');
@@ -33,6 +35,7 @@ var validator = require('./validator.js');
33
35
  var variable = require('./variable.js');
34
36
  var cloneDeep = require('./cloneDeep.js');
35
37
  var isEqual = require('./isEqual.js');
38
+ var unicodeToolkit = require('./unicodeToolkit.js');
36
39
 
37
40
  exports.arrayEach = array.arrayEach;
38
41
  exports.arrayEachAsync = array.arrayEachAsync;
@@ -110,7 +113,7 @@ exports.isString = type.isString;
110
113
  exports.isSymbol = type.isSymbol;
111
114
  exports.isUndefined = type.isUndefined;
112
115
  exports.objectHas = type.objectHas;
113
- exports.typeIs = type.typeIs;
116
+ exports.typeIs = type.default;
114
117
  exports.urlDelParams = url.urlDelParams;
115
118
  exports.urlParse = url.urlParse;
116
119
  exports.urlSetParams = url.urlSetParams;
@@ -132,8 +135,8 @@ exports.randomNumber = random.randomNumber;
132
135
  exports.randomString = random.randomString;
133
136
  exports.randomUuid = random.randomUuid;
134
137
  exports.HEX_POOL = number.HEX_POOL;
135
- exports.formatMoney = number.formatNumber;
136
- exports.formatNumber = number.formatNumber;
138
+ exports.formatMoney = number.formatMoney;
139
+ exports.formatNumber = number.formatMoney;
137
140
  exports.humanFileSize = number.humanFileSize;
138
141
  exports.numberAbbr = number.numberAbbr;
139
142
  exports.numberToHex = number.numberToHex;
@@ -181,3 +184,4 @@ exports.replaceVarFromString = variable.replaceVarFromString;
181
184
  exports.uniqueSymbol = variable.uniqueSymbol;
182
185
  exports.cloneDeep = cloneDeep.cloneDeep;
183
186
  exports.isEqual = isEqual.isEqual;
187
+ exports.UnicodeToolkit = unicodeToolkit.UnicodeToolkit;
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  /**
10
12
  * 使用位运算或常量定义常用 Tag,这里保持字符串以匹配 Object.prototype.toString
11
13
  */
package/dist/cjs/math.js CHANGED
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  /**
10
12
  * 数值安全乘法
11
13
  * @param arg1 数值1
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  var func = require('./func.js');
10
12
  var string = require('./string.js');
11
13
  var type = require('./type.js');
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  var type = require('./type.js');
10
12
 
11
13
  /**
@@ -99,8 +101,8 @@ function objectOmit(obj, keys) {
99
101
  }
100
102
  const merge = (map, source, target) => {
101
103
  if (type.isUndefined(target)) return source;
102
- const sourceType = type.typeIs(source);
103
- const targetType = type.typeIs(target);
104
+ const sourceType = type.default(source);
105
+ const targetType = type.default(target);
104
106
  if (sourceType !== targetType) {
105
107
  if (type.isArray(target)) return merge(map, [], target);
106
108
  if (type.isObject(target)) return merge(map, {}, target);
package/dist/cjs/path.js CHANGED
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  /**
10
12
  * 标准化路径
11
13
  * @param {string} path
package/dist/cjs/qs.js CHANGED
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  var object = require('./object.js');
10
12
  var type = require('./type.js');
11
13
 
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  var string = require('./string.js');
10
12
  var type = require('./type.js');
11
13
 
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  /**
10
12
  * 将字符串转换为驼峰格式
11
13
  * @param {string} string
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  var dom = require('./dom.js');
10
12
  var type = require('./type.js');
11
13
 
package/dist/cjs/tree.js CHANGED
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  var object = require('./object.js');
10
12
  var type = require('./type.js');
11
13
 
package/dist/cjs/type.js CHANGED
@@ -1,12 +1,12 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
- Object.defineProperty(exports, '__esModule', { value: true });
9
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
10
10
 
11
11
  // 常用类型定义
12
12
  const { toString, hasOwnProperty } = Object.prototype;
@@ -0,0 +1,118 @@
1
+ /*!
2
+ * sculp-js v1.18.1
3
+ * (c) 2023-present chandq
4
+ * Released under the MIT License.
5
+ */
6
+
7
+ 'use strict';
8
+
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
11
+ /**
12
+ * 增强型 Unicode/HTML/UTF-8 编码解码工具
13
+ */
14
+ class UnicodeToolkit {
15
+ // 基础 HTML 实体映射
16
+ static ENTITY_MAP = {
17
+ '&': '&',
18
+ '<': '&lt;',
19
+ '>': '&gt;',
20
+ '"': '&quot;',
21
+ "'": '&#39;'
22
+ };
23
+ static NAMED_ENTITIES = {
24
+ '&quot;': '"',
25
+ '&amp;': '&',
26
+ '&lt;': '<',
27
+ '&gt;': '>',
28
+ '&nbsp;': '\u00A0',
29
+ '&copy;': '©',
30
+ '&trade;': '™',
31
+ '&reg;': '®'
32
+ };
33
+ /**
34
+ * 编码函数
35
+ * @param str 原始字符串
36
+ * @param mode 'unicode' (\uXXXX) | 'html' (&#123;) | 'entities' (命名实体)
37
+ * @param encodeAll 是否编码 ASCII 可见字符 (默认 false,仅编码非 ASCII 和特殊字符)
38
+ * * @example
39
+ * // Unicode 编码 (默认仅编码非 ASCII)
40
+ * UnicodeToolkit.encode('Hi 你好 😀')
41
+ * // => 'Hi \\u4F60\\u597D \\u{1F600}'
42
+ * * @example
43
+ * // 全部Unicode 编码
44
+ * UnicodeToolkit.encode('Hi 你好 😀','unicode', true)
45
+ * // => '\\u0048\\u0069\\u0020\\u4F60\\u597D\\u0020\\u{1F600}'
46
+ * * @example
47
+ * // HTML 实体编码
48
+ * UnicodeToolkit.encode('<script>', 'html',true)
49
+ * // => '&lt;&#115;&#99;&#114;&#105;&#112;&#116;&gt;&amp;'
50
+ */
51
+ static encode(str, mode = 'unicode', encodeAll = false) {
52
+ const result = [];
53
+ for (const char of str) {
54
+ const codePoint = char.codePointAt(0);
55
+ // 1. 处理特殊 HTML 基础字符
56
+ if (mode === 'html' && this.ENTITY_MAP[char]) {
57
+ result.push(this.ENTITY_MAP[char]);
58
+ continue;
59
+ }
60
+ // 2. ASCII 范围 (32-126) 且不强制全编码时,保持原样
61
+ if (!encodeAll && codePoint >= 32 && codePoint <= 126) {
62
+ result.push(char);
63
+ continue;
64
+ }
65
+ // 3. 根据模式转换
66
+ if (mode === 'unicode') {
67
+ if (codePoint > 0xffff) {
68
+ result.push(`\\u{${codePoint.toString(16).toUpperCase()}}`);
69
+ } else {
70
+ result.push(`\\u${codePoint.toString(16).toUpperCase().padStart(4, '0')}`);
71
+ }
72
+ } else {
73
+ result.push(`&#${codePoint};`);
74
+ }
75
+ }
76
+ return result.join('');
77
+ }
78
+ /**
79
+ * 综合解码 (支持 \uXXXX, \u{XXXX}, HTML 实体, 十六进制实体)
80
+ * @param normalizeSpace 是否将 \u00A0 (&nbsp;) 转换为普通空格 \u0020
81
+ * * @example
82
+ * // 解码 Unicode 和 Emoji
83
+ * UnicodeToolkit.decode('\\u4F60\\u597D\\u{1F680}')
84
+ * // => '你好🚀'
85
+ * * @example
86
+ * // 解码 HTML 实体 (支持十进制、十六进制和命名实体)
87
+ * UnicodeToolkit.decode('Price: &#163;10 &amp; &copy;')
88
+ * // => 'Price: £10 & ©'
89
+ * * @example
90
+ * // 空格归一化 (将 &nbsp; 转为标准空格)
91
+ * UnicodeToolkit.decode('A&nbsp;B', true)
92
+ * // => 'A B' (charCodeAt 为 32 而不是 160)
93
+ */
94
+ static decode(str, normalizeSpace = false) {
95
+ if (!str) return '';
96
+ let decoded = str
97
+ // 1. Unicode: \uXXXX 和 \u{XXXX}
98
+ .replace(/\\u(?:\{([0-9a-fA-F]+)\}|([0-9a-fA-F]{4}))/g, (_, hexLong, hexShort) => {
99
+ return String.fromCodePoint(parseInt(hexLong || hexShort, 16));
100
+ })
101
+ // 2. HTML 实体: &#123; 和 &#x7B;
102
+ .replace(/&#(x?)([0-9a-fA-F]+);/g, (_, isHex, code) => {
103
+ return String.fromCodePoint(parseInt(code, isHex ? 16 : 10));
104
+ })
105
+ // 3. 命名实体
106
+ .replace(/&[a-z0-9]+;/gi, entity => {
107
+ return this.NAMED_ENTITIES[entity] || entity;
108
+ });
109
+ // 4. 空格归一化处理
110
+ if (normalizeSpace) {
111
+ // 将 \u00A0 替换为标准半角空格 \u0020
112
+ decoded = decoded.replace(/\u00A0/g, ' ');
113
+ }
114
+ return decoded;
115
+ }
116
+ }
117
+
118
+ exports.UnicodeToolkit = UnicodeToolkit;
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  var number = require('./number.js');
10
12
  var random = require('./random.js');
11
13
  var type = require('./type.js');
package/dist/cjs/url.js CHANGED
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  var type = require('./type.js');
10
12
  var path = require('./path.js');
11
13
  var qs = require('./qs.js');
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  // 邮箱
10
12
  const EMAIL_REGEX = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
11
13
  /**
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  var type = require('./type.js');
10
12
 
11
13
  /**
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  'use strict';
8
8
 
9
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+
9
11
  var type = require('./type.js');
10
12
 
11
13
  /*
package/dist/esm/array.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/esm/async.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/esm/date.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.17.3
2
+ * sculp-js v1.18.1
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */