sculp-js 1.18.2 → 1.18.3

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 (60) hide show
  1. package/dist/cjs/{array.js → array.cjs} +1 -1
  2. package/dist/cjs/{async.js → async.cjs} +1 -1
  3. package/dist/cjs/{base64.js → base64.cjs} +3 -3
  4. package/dist/cjs/{clipboard.js → clipboard.cjs} +3 -3
  5. package/dist/cjs/{cloneDeep.js → cloneDeep.cjs} +1 -1
  6. package/dist/cjs/{cookie.js → cookie.cjs} +2 -2
  7. package/dist/cjs/{date.js → date.cjs} +2 -2
  8. package/dist/cjs/{dom.js → dom.cjs} +4 -4
  9. package/dist/cjs/{download.js → download.cjs} +3 -3
  10. package/dist/cjs/{file.js → file.cjs} +2 -2
  11. package/dist/cjs/{func.js → func.cjs} +1 -1
  12. package/dist/cjs/{index.js → index.cjs} +29 -29
  13. package/dist/cjs/{isEqual.js → isEqual.cjs} +1 -1
  14. package/dist/cjs/{math.js → math.cjs} +1 -1
  15. package/dist/cjs/{number.js → number.cjs} +4 -4
  16. package/dist/cjs/{object.js → object.cjs} +2 -2
  17. package/dist/cjs/{path.js → path.cjs} +1 -1
  18. package/dist/cjs/{qs.js → qs.cjs} +3 -3
  19. package/dist/cjs/{random.js → random.cjs} +3 -3
  20. package/dist/cjs/{string.js → string.cjs} +1 -1
  21. package/dist/cjs/{tooltip.js → tooltip.cjs} +3 -3
  22. package/dist/cjs/{tree.js → tree.cjs} +3 -3
  23. package/dist/cjs/{type.js → type.cjs} +1 -1
  24. package/dist/cjs/{unicodeToolkit.js → unicodeToolkit.cjs} +1 -1
  25. package/dist/cjs/{unique.js → unique.cjs} +4 -4
  26. package/dist/cjs/{url.js → url.cjs} +4 -4
  27. package/dist/cjs/{validator.js → validator.cjs} +1 -1
  28. package/dist/cjs/{variable.js → variable.cjs} +2 -2
  29. package/dist/cjs/{watermark.js → watermark.cjs} +2 -2
  30. package/dist/esm/{array.js → array.mjs} +1 -1
  31. package/dist/esm/{async.js → async.mjs} +1 -1
  32. package/dist/esm/{base64.js → base64.mjs} +3 -3
  33. package/dist/esm/{clipboard.js → clipboard.mjs} +3 -3
  34. package/dist/esm/{cloneDeep.js → cloneDeep.mjs} +1 -1
  35. package/dist/esm/{cookie.js → cookie.mjs} +2 -2
  36. package/dist/esm/{date.js → date.mjs} +2 -2
  37. package/dist/esm/{dom.js → dom.mjs} +4 -4
  38. package/dist/esm/{download.js → download.mjs} +3 -3
  39. package/dist/esm/{file.js → file.mjs} +2 -2
  40. package/dist/esm/{func.js → func.mjs} +1 -1
  41. package/dist/esm/{index.js → index.mjs} +29 -29
  42. package/dist/esm/{isEqual.js → isEqual.mjs} +1 -1
  43. package/dist/esm/{math.js → math.mjs} +1 -1
  44. package/dist/esm/{number.js → number.mjs} +4 -4
  45. package/dist/esm/{object.js → object.mjs} +2 -2
  46. package/dist/esm/{path.js → path.mjs} +1 -1
  47. package/dist/esm/{qs.js → qs.mjs} +3 -3
  48. package/dist/esm/{random.js → random.mjs} +3 -3
  49. package/dist/esm/{string.js → string.mjs} +1 -1
  50. package/dist/esm/{tooltip.js → tooltip.mjs} +3 -3
  51. package/dist/esm/{tree.js → tree.mjs} +3 -3
  52. package/dist/esm/{type.js → type.mjs} +1 -1
  53. package/dist/esm/{unicodeToolkit.js → unicodeToolkit.mjs} +1 -1
  54. package/dist/esm/{unique.js → unique.mjs} +4 -4
  55. package/dist/esm/{url.js → url.mjs} +4 -4
  56. package/dist/esm/{validator.js → validator.mjs} +1 -1
  57. package/dist/esm/{variable.js → variable.mjs} +2 -2
  58. package/dist/esm/{watermark.js → watermark.mjs} +2 -2
  59. package/dist/umd/index.min.js +1 -1
  60. package/package.json +92 -120
@@ -1,12 +1,12 @@
1
1
  /*!
2
- * sculp-js v1.18.2
2
+ * sculp-js v1.18.3
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
- export { arrayEach, arrayEachAsync, arrayInsertBefore, arrayRemove, diffArray } from './array.js';
8
- export { copyText, fallbackCopyText } from './clipboard.js';
9
- export { cookieDel, cookieGet, cookieSet } from './cookie.js';
7
+ export { arrayEach, arrayEachAsync, arrayInsertBefore, arrayRemove, diffArray } from './array.mjs';
8
+ export { copyText, fallbackCopyText } from './clipboard.mjs';
9
+ export { cookieDel, cookieGet, cookieSet } from './cookie.mjs';
10
10
  export {
11
11
  calculateDate,
12
12
  calculateDateTime,
@@ -15,7 +15,7 @@ export {
15
15
  dateToStart,
16
16
  formatDate,
17
17
  isValidDate
18
- } from './date.js';
18
+ } from './date.mjs';
19
19
  export {
20
20
  addClass,
21
21
  getComputedCssVal,
@@ -25,8 +25,8 @@ export {
25
25
  removeClass,
26
26
  select,
27
27
  setStyle
28
- } from './dom.js';
29
- export { crossOriginDownload, downloadBlob, downloadData, downloadHref, downloadURL } from './download.js';
28
+ } from './dom.mjs';
29
+ export { crossOriginDownload, downloadBlob, downloadData, downloadHref, downloadURL } from './download.mjs';
30
30
  export {
31
31
  isPlainObject,
32
32
  objectAssign,
@@ -38,9 +38,9 @@ export {
38
38
  objectAssign as objectMerge,
39
39
  objectOmit,
40
40
  objectPick
41
- } from './object.js';
42
- export { pathJoin, pathNormalize } from './path.js';
43
- export { qsParse, qsStringify } from './qs.js';
41
+ } from './object.mjs';
42
+ export { pathJoin, pathNormalize } from './path.mjs';
43
+ export { qsParse, qsStringify } from './qs.mjs';
44
44
  export {
45
45
  STRING_ARABIC_NUMERALS,
46
46
  STRING_LOWERCASE_ALPHA,
@@ -52,7 +52,7 @@ export {
52
52
  stringFill,
53
53
  stringFormat,
54
54
  stringKebabCase
55
- } from './string.js';
55
+ } from './string.mjs';
56
56
  export {
57
57
  arrayLike,
58
58
  isArray,
@@ -77,13 +77,13 @@ export {
77
77
  isUndefined,
78
78
  objectHas,
79
79
  default as typeIs
80
- } from './type.js';
81
- export { urlDelParams, urlParse, urlSetParams, urlStringify } from './url.js';
82
- export { asyncMap, safeAwait, wait } from './async.js';
83
- export { chooseLocalFile, compressImg, supportCanvas } from './file.js';
84
- export { genCanvasWM } from './watermark.js';
85
- export { debounce, getGlobal, once, setGlobal, throttle } from './func.js';
86
- export { STRING_POOL, randomNumber, randomString, randomUuid } from './random.js';
80
+ } from './type.mjs';
81
+ export { urlDelParams, urlParse, urlSetParams, urlStringify } from './url.mjs';
82
+ export { asyncMap, safeAwait, wait } from './async.mjs';
83
+ export { chooseLocalFile, compressImg, supportCanvas } from './file.mjs';
84
+ export { genCanvasWM } from './watermark.mjs';
85
+ export { debounce, getGlobal, once, setGlobal, throttle } from './func.mjs';
86
+ export { STRING_POOL, randomNumber, randomString, randomUuid } from './random.mjs';
87
87
  export {
88
88
  HEX_POOL,
89
89
  formatMoney,
@@ -91,9 +91,9 @@ export {
91
91
  humanFileSize,
92
92
  numberAbbr,
93
93
  numberToHex
94
- } from './number.js';
95
- export { UNIQUE_NUMBER_SAFE_LENGTH, uniqueNumber, uniqueString } from './unique.js';
96
- export { tooltipEvent } from './tooltip.js';
94
+ } from './number.mjs';
95
+ export { UNIQUE_NUMBER_SAFE_LENGTH, uniqueNumber, uniqueString } from './unique.mjs';
96
+ export { tooltipEvent } from './tooltip.mjs';
97
97
  export {
98
98
  filterDeep,
99
99
  findDeep,
@@ -103,9 +103,9 @@ export {
103
103
  fuzzySearchTree,
104
104
  mapDeep,
105
105
  searchTreeById
106
- } from './tree.js';
107
- export { add, divide, multiply, strip, subtract } from './math.js';
108
- export { b64decode, b64encode, weAtob, weBtoa } from './base64.js';
106
+ } from './tree.mjs';
107
+ export { add, divide, multiply, strip, subtract } from './math.mjs';
108
+ export { b64decode, b64encode, weAtob, weBtoa } from './base64.mjs';
109
109
  export {
110
110
  EMAIL_REGEX,
111
111
  HTTP_URL_REGEX,
@@ -123,8 +123,8 @@ export {
123
123
  isNumerical,
124
124
  isPhone,
125
125
  isUrl
126
- } from './validator.js';
127
- export { escapeRegExp, executeInScope, parseVarFromString, replaceVarFromString, uniqueSymbol } from './variable.js';
128
- export { cloneDeep } from './cloneDeep.js';
129
- export { isEqual } from './isEqual.js';
130
- export { UnicodeToolkit } from './unicodeToolkit.js';
126
+ } from './validator.mjs';
127
+ export { escapeRegExp, executeInScope, parseVarFromString, replaceVarFromString, uniqueSymbol } from './variable.mjs';
128
+ export { cloneDeep } from './cloneDeep.mjs';
129
+ export { isEqual } from './isEqual.mjs';
130
+ export { UnicodeToolkit } from './unicodeToolkit.mjs';
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.18.2
2
+ * sculp-js v1.18.3
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.18.2
2
+ * sculp-js v1.18.3
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,12 +1,12 @@
1
1
  /*!
2
- * sculp-js v1.18.2
2
+ * sculp-js v1.18.3
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
- import { getGlobal } from './func.js';
8
- import { STRING_ARABIC_NUMERALS, STRING_UPPERCASE_ALPHA, STRING_LOWERCASE_ALPHA } from './string.js';
9
- import { isNullOrUnDef } from './type.js';
7
+ import { getGlobal } from './func.mjs';
8
+ import { STRING_ARABIC_NUMERALS, STRING_UPPERCASE_ALPHA, STRING_LOWERCASE_ALPHA } from './string.mjs';
9
+ import { isNullOrUnDef } from './type.mjs';
10
10
 
11
11
  const HEX_POOL = `${STRING_ARABIC_NUMERALS}${STRING_UPPERCASE_ALPHA}${STRING_LOWERCASE_ALPHA}`;
12
12
  const supportBigInt = typeof BigInt !== 'undefined';
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * sculp-js v1.18.2
2
+ * sculp-js v1.18.3
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
- import typeIs, { isObject, objectHas, isNumber, isUndefined, isArray } from './type.js';
7
+ import typeIs, { isObject, objectHas, isNumber, isUndefined, isArray } from './type.mjs';
8
8
 
9
9
  /**
10
10
  * 判断对象是否为纯对象
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.18.2
2
+ * sculp-js v1.18.3
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * sculp-js v1.18.2
2
+ * sculp-js v1.18.3
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
- import { objectEach } from './object.js';
8
- import { isUndefined, isArray, isString, isNumber, isBoolean, isDate } from './type.js';
7
+ import { objectEach } from './object.mjs';
8
+ import { isUndefined, isArray, isString, isNumber, isBoolean, isDate } from './type.mjs';
9
9
 
10
10
  /**
11
11
  * 解析查询参数,内部使用的是浏览器内置的 URLSearchParams 进行处理
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * sculp-js v1.18.2
2
+ * sculp-js v1.18.3
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
- import { STRING_ARABIC_NUMERALS, STRING_UPPERCASE_ALPHA, STRING_LOWERCASE_ALPHA } from './string.js';
8
- import { isString, isNumber } from './type.js';
7
+ import { STRING_ARABIC_NUMERALS, STRING_UPPERCASE_ALPHA, STRING_LOWERCASE_ALPHA } from './string.mjs';
8
+ import { isString, isNumber } from './type.mjs';
9
9
 
10
10
  /**
11
11
  * 随机整数
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.18.2
2
+ * sculp-js v1.18.3
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * sculp-js v1.18.2
2
+ * sculp-js v1.18.3
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
- import { getStrWidthPx } from './dom.js';
8
- import { isString } from './type.js';
7
+ import { getStrWidthPx } from './dom.mjs';
8
+ import { isString } from './type.mjs';
9
9
 
10
10
  /**
11
11
  * 自定义的 tooltip, 支持鼠标移动动悬浮提示
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * sculp-js v1.18.2
2
+ * sculp-js v1.18.3
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
- import { objectOmit } from './object.js';
8
- import { isObject, objectHas, isNodeList } from './type.js';
7
+ import { objectOmit } from './object.mjs';
8
+ import { isObject, objectHas, isNodeList } from './type.mjs';
9
9
 
10
10
  const defaultFieldOptions = { keyField: 'key', childField: 'children', pidField: 'pid' };
11
11
  const defaultSearchTreeOptions = {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.18.2
2
+ * sculp-js v1.18.3
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.18.2
2
+ * sculp-js v1.18.3
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,12 +1,12 @@
1
1
  /*!
2
- * sculp-js v1.18.2
2
+ * sculp-js v1.18.3
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
- import { numberToHex, HEX_POOL } from './number.js';
8
- import { randomNumber } from './random.js';
9
- import { isString, isNumber } from './type.js';
7
+ import { numberToHex, HEX_POOL } from './number.mjs';
8
+ import { randomNumber } from './random.mjs';
9
+ import { isString, isNumber } from './type.mjs';
10
10
 
11
11
  const padStartWithZero = (str, maxLength = 2) => String(str).padStart(maxLength, '0');
12
12
  let safeNo = 0;
@@ -1,12 +1,12 @@
1
1
  /*!
2
- * sculp-js v1.18.2
2
+ * sculp-js v1.18.3
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
- import { isFunction } from './type.js';
8
- import { pathJoin } from './path.js';
9
- import { qsParse, qsStringify } from './qs.js';
7
+ import { isFunction } from './type.mjs';
8
+ import { pathJoin } from './path.mjs';
9
+ import { qsParse, qsStringify } from './qs.mjs';
10
10
 
11
11
  /**
12
12
  * url 解析
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.18.2
2
+ * sculp-js v1.18.3
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * sculp-js v1.18.2
2
+ * sculp-js v1.18.3
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
- import { isNullOrUnDef, objectHas } from './type.js';
7
+ import { isNullOrUnDef, objectHas } from './type.mjs';
8
8
 
9
9
  /**
10
10
  * 去除字符串中重复字符
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * sculp-js v1.18.2
2
+ * sculp-js v1.18.3
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
- import { isNullOrUnDef, isString } from './type.js';
7
+ import { isNullOrUnDef, isString } from './type.mjs';
8
8
 
9
9
  /*
10
10
  * @created: Saturday, 2020-04-18 14:38:23
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.18.2
2
+ * sculp-js v1.18.3
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */