@unicom-cloud/utils 0.1.37 → 0.1.38

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 (338) hide show
  1. package/assert/index.js +1 -1
  2. package/assert.js +1 -1
  3. package/canvas-roundrect-polyfill/LICENSE +21 -0
  4. package/canvas-roundrect-polyfill/index.js +210 -0
  5. package/canvasRoundrectPolyfill.js +2 -0
  6. package/case-name/index.js +1 -1
  7. package/caseName.js +1 -1
  8. package/class-name/index.js +1 -1
  9. package/className.js +1 -1
  10. package/clipboard-copy/index.js +1 -1
  11. package/clipboardCopy.js +1 -1
  12. package/constant/address.js +1 -1
  13. package/constant/chineseCharacters.js +1 -1
  14. package/constant/constellations.js +1 -1
  15. package/constant/domain.js +1 -1
  16. package/constant/identity.js +1 -1
  17. package/constant/index.js +1 -1
  18. package/constant/isMobile.js +1 -1
  19. package/constant/keyboardCode.js +1 -1
  20. package/constant/licensePlate.js +1 -1
  21. package/constant/name.js +1 -1
  22. package/constant/platform.js +1 -1
  23. package/constant/protocol.js +1 -1
  24. package/constant/string.js +1 -1
  25. package/constant/ui.js +1 -1
  26. package/constant.js +1 -1
  27. package/content-disposition/index.js +1 -1
  28. package/contentDisposition.js +1 -1
  29. package/cookie/index.js +1 -1
  30. package/cookie/src/api.js +1 -1
  31. package/cookie/src/assign.js +1 -1
  32. package/cookie/src/converter.js +1 -1
  33. package/cookie.js +1 -1
  34. package/date/convertTime.js +1 -1
  35. package/date/convertToDuration.js +1 -1
  36. package/date/index.js +1 -1
  37. package/date.js +1 -1
  38. package/decimal/decimal.js +1 -1
  39. package/decimal/index.js +1 -1
  40. package/decimal.js +1 -1
  41. package/dom-helpers/activeElement.js +1 -1
  42. package/dom-helpers/addClass.js +1 -1
  43. package/dom-helpers/addEventListener.js +1 -1
  44. package/dom-helpers/animate.js +1 -1
  45. package/dom-helpers/animationFrame.js +1 -1
  46. package/dom-helpers/attribute.js +1 -1
  47. package/dom-helpers/camelize.js +1 -1
  48. package/dom-helpers/camelizeStyle.js +1 -1
  49. package/dom-helpers/canUseDOM.js +1 -1
  50. package/dom-helpers/childElements.js +1 -1
  51. package/dom-helpers/childNodes.js +1 -1
  52. package/dom-helpers/clear.js +1 -1
  53. package/dom-helpers/closest.js +1 -1
  54. package/dom-helpers/collectElements.js +1 -1
  55. package/dom-helpers/collectSiblings.js +1 -1
  56. package/dom-helpers/contains.js +1 -1
  57. package/dom-helpers/css.js +1 -1
  58. package/dom-helpers/filterEventHandler.js +1 -1
  59. package/dom-helpers/getComputedStyle.js +1 -1
  60. package/dom-helpers/getElementCoordinates.js +1 -1
  61. package/dom-helpers/getScrollAccessor.js +1 -1
  62. package/dom-helpers/hasClass.js +1 -1
  63. package/dom-helpers/height.js +1 -1
  64. package/dom-helpers/hyphenate.js +1 -1
  65. package/dom-helpers/hyphenateStyle.js +1 -1
  66. package/dom-helpers/index.js +1 -1
  67. package/dom-helpers/insertAfter.js +1 -1
  68. package/dom-helpers/isDocument.js +1 -1
  69. package/dom-helpers/isInput.js +1 -1
  70. package/dom-helpers/isTransform.js +1 -1
  71. package/dom-helpers/isVisible.js +1 -1
  72. package/dom-helpers/isWindow.js +1 -1
  73. package/dom-helpers/listen.js +1 -1
  74. package/dom-helpers/matches.js +1 -1
  75. package/dom-helpers/nextUntil.js +1 -1
  76. package/dom-helpers/offset.js +1 -1
  77. package/dom-helpers/offsetParent.js +1 -1
  78. package/dom-helpers/ownerDocument.js +1 -1
  79. package/dom-helpers/ownerWindow.js +1 -1
  80. package/dom-helpers/parents.js +1 -1
  81. package/dom-helpers/position.js +1 -1
  82. package/dom-helpers/prepend.js +1 -1
  83. package/dom-helpers/querySelectorAll.js +1 -1
  84. package/dom-helpers/reflow.js +1 -1
  85. package/dom-helpers/remove.js +1 -1
  86. package/dom-helpers/removeClass.js +1 -1
  87. package/dom-helpers/removeEventListener.js +1 -1
  88. package/dom-helpers/scrollLeft.js +1 -1
  89. package/dom-helpers/scrollParent.js +1 -1
  90. package/dom-helpers/scrollTo.js +1 -1
  91. package/dom-helpers/scrollTop.js +1 -1
  92. package/dom-helpers/scrollbarSize.js +1 -1
  93. package/dom-helpers/siblings.js +1 -1
  94. package/dom-helpers/text.js +1 -1
  95. package/dom-helpers/toggleClass.js +1 -1
  96. package/dom-helpers/transitionEnd.js +1 -1
  97. package/dom-helpers/triggerEvent.js +1 -1
  98. package/dom-helpers/types.js +1 -1
  99. package/dom-helpers/width.js +1 -1
  100. package/domHelpers.js +1 -1
  101. package/emitter/index.js +1 -1
  102. package/emitter/src/index.js +53 -40
  103. package/emitter.js +1 -1
  104. package/emoji/emoji.js +1 -1
  105. package/emoji/emojis.js +1 -1
  106. package/emoji/index.js +1 -1
  107. package/emoji.js +1 -1
  108. package/escape/index.js +1 -1
  109. package/escape.js +1 -1
  110. package/file/fileRead.js +1 -1
  111. package/file/fileToDataURL.js +2 -2
  112. package/file/index.js +7 -7
  113. package/file/saveAs.js +2 -2
  114. package/file.js +7 -7
  115. package/function/index.js +1 -1
  116. package/function.js +1 -1
  117. package/idb/LICENSE +6 -0
  118. package/idb/async-iterators.js +35 -0
  119. package/idb/database-extras.js +28 -0
  120. package/idb/entry.js +38 -0
  121. package/idb/index-.js +103 -0
  122. package/idb/index.js +9 -101
  123. package/idb/util.js +5 -0
  124. package/idb/wrap-idb-value.js +89 -0
  125. package/idb.js +9 -3
  126. package/index.js +1 -1
  127. package/invariant/index.js +1 -1
  128. package/invariant.js +1 -1
  129. package/is/index.js +1 -1
  130. package/is/lib/isAscii.js +1 -1
  131. package/is/lib/isBase64.js +1 -1
  132. package/is/lib/isChinese.js +1 -1
  133. package/is/lib/isDataURI.js +1 -1
  134. package/is/lib/isEmail.js +1 -1
  135. package/is/lib/isFQDN.js +1 -1
  136. package/is/lib/isFullWidth.js +1 -1
  137. package/is/lib/isHSL.js +1 -1
  138. package/is/lib/isHalfWidth.js +1 -1
  139. package/is/lib/isHash.js +1 -1
  140. package/is/lib/isHexColor.js +1 -1
  141. package/is/lib/isIMEI.js +1 -1
  142. package/is/lib/isIP.js +1 -1
  143. package/is/lib/isIPRange.js +1 -1
  144. package/is/lib/isIdentityCard.js +1 -1
  145. package/is/lib/isJWT.js +1 -1
  146. package/is/lib/isMACAddress.js +1 -1
  147. package/is/lib/isMD5.js +1 -1
  148. package/is/lib/isMimeType.js +1 -1
  149. package/is/lib/isMobilePhone.js +1 -1
  150. package/is/lib/isPort.js +1 -1
  151. package/is/lib/isRgbColor.js +1 -1
  152. package/is/lib/isSemVer.js +1 -1
  153. package/is/lib/isSlug.js +1 -1
  154. package/is/lib/isStrongPassword.js +1 -1
  155. package/is/lib/isURL.js +1 -1
  156. package/is/lib/isUUID.js +1 -1
  157. package/is/lib/isVariableWidth.js +1 -1
  158. package/is.js +1 -1
  159. package/lunar/index.js +1 -1
  160. package/lunar/lib/Holiday.js +1 -1
  161. package/lunar/lib/HolidayUtil.js +1 -1
  162. package/lunar/lib/I18n.js +1 -1
  163. package/lunar/lib/JieQi.js +1 -1
  164. package/lunar/lib/Lunar.js +1 -1
  165. package/lunar/lib/LunarMonth.js +1 -1
  166. package/lunar/lib/LunarTime.js +1 -1
  167. package/lunar/lib/LunarUtil.js +1 -1
  168. package/lunar/lib/LunarYear.js +1 -1
  169. package/lunar/lib/ShouXingUtil.js +1 -1
  170. package/lunar/lib/Solar.js +1 -1
  171. package/lunar/lib/SolarHalfYear.js +1 -1
  172. package/lunar/lib/SolarMonth.js +1 -1
  173. package/lunar/lib/SolarSeason.js +1 -1
  174. package/lunar/lib/SolarUtil.js +1 -1
  175. package/lunar/lib/SolarWeek.js +1 -1
  176. package/lunar/lib/SolarYear.js +1 -1
  177. package/lunar/lib/index.js +1 -1
  178. package/lunar.js +1 -1
  179. package/math/index.js +1 -1
  180. package/math.js +1 -1
  181. package/md5/index.js +1 -1
  182. package/md5.js +1 -1
  183. package/mock/MockWebSocket.js +1 -1
  184. package/mock/MockXMLHttpRequest.js +1 -1
  185. package/mock/index.js +1 -1
  186. package/mock.js +1 -1
  187. package/normalize-wheel/ExecutionEnvironment.js +1 -1
  188. package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
  189. package/normalize-wheel/index.js +1 -1
  190. package/normalize-wheel/isEventSupported.js +1 -1
  191. package/normalizeWheel.js +1 -1
  192. package/number-to-chinese/index.js +1 -1
  193. package/numberToChinese.js +1 -1
  194. package/nzh/cn.js +2 -2
  195. package/nzh/hk.js +2 -2
  196. package/nzh/index.js +1 -1
  197. package/nzh/nzh.js +2 -2
  198. package/nzh/src/autoGet.js +1 -1
  199. package/nzh/src/index.js +1 -1
  200. package/nzh/src/langs/cn_b.js +1 -1
  201. package/nzh/src/langs/cn_s.js +1 -1
  202. package/nzh/src/langs/hk_b.js +1 -1
  203. package/nzh/src/langs/hk_s.js +1 -1
  204. package/nzh/src/utils.js +1 -1
  205. package/nzh.js +1 -1
  206. package/object/index.js +1 -1
  207. package/object.js +1 -1
  208. package/package.json +1 -1
  209. package/pinyin/index.js +1 -1
  210. package/pinyin/simplified.js +1 -1
  211. package/pinyin/src/core.js +1 -1
  212. package/pinyin/src/simplified.js +1 -1
  213. package/pinyin/src/simplified_dict.js +1 -2
  214. package/pinyin/src/traditional.js +1 -1
  215. package/pinyin/src/traditional_dict.js +1 -2
  216. package/pinyin/traditional.js +1 -1
  217. package/pinyin.js +1 -1
  218. package/promise-pool/LICENSE +19 -0
  219. package/promise-pool/index.js +116 -0
  220. package/promisePool.js +5 -0
  221. package/query-string/base.js +1 -1
  222. package/query-string/index.js +1 -1
  223. package/query-string/splitOnFirst.js +1 -1
  224. package/queryString.js +1 -1
  225. package/random/address.js +1 -1
  226. package/random/constellation.js +1 -1
  227. package/random/image.js +1 -1
  228. package/random/index.js +1 -1
  229. package/random/licensePlate.js +1 -1
  230. package/random/name.js +1 -1
  231. package/random/number.js +1 -1
  232. package/random/text.js +1 -1
  233. package/random/time.js +1 -1
  234. package/random/web.js +1 -1
  235. package/random.js +1 -1
  236. package/sanitize-url/LICENSE +21 -0
  237. package/sanitize-url/index.js +23 -0
  238. package/sanitizeUrl.js +5 -0
  239. package/screenfull/index.js +1 -1
  240. package/screenfull.js +1 -1
  241. package/sleep/index.js +1 -1
  242. package/sleep.js +1 -1
  243. package/snapdom/index.js +1 -1
  244. package/snapdom/src/api/preCache.js +1 -1
  245. package/snapdom/src/api/snapdom.js +21 -22
  246. package/snapdom/src/core/cache.js +1 -1
  247. package/snapdom/src/core/capture.js +1 -1
  248. package/snapdom/src/core/clone.js +1 -1
  249. package/snapdom/src/core/context.js +1 -1
  250. package/snapdom/src/core/plugins.js +1 -1
  251. package/snapdom/src/core/prepare.js +1 -1
  252. package/snapdom/src/exporters/download.js +10 -12
  253. package/snapdom/src/exporters/toBlob.js +6 -12
  254. package/snapdom/src/exporters/toCanvas.js +1 -1
  255. package/snapdom/src/exporters/toImg.js +1 -1
  256. package/snapdom/src/modules/CSSVar.js +1 -1
  257. package/snapdom/src/modules/background.js +1 -1
  258. package/snapdom/src/modules/changeCSS.js +1 -1
  259. package/snapdom/src/modules/counter.js +1 -1
  260. package/snapdom/src/modules/fonts.js +1 -1
  261. package/snapdom/src/modules/iconFonts.js +1 -1
  262. package/snapdom/src/modules/images.js +1 -1
  263. package/snapdom/src/modules/lineClamp.js +1 -1
  264. package/snapdom/src/modules/pseudo.js +1 -1
  265. package/snapdom/src/modules/rasterize.js +1 -1
  266. package/snapdom/src/modules/snapFetch.js +1 -1
  267. package/snapdom/src/modules/styles.js +1 -1
  268. package/snapdom/src/modules/svgDefs.js +1 -1
  269. package/snapdom/src/utils/browser.js +1 -1
  270. package/snapdom/src/utils/capture.helpers.js +1 -1
  271. package/snapdom/src/utils/clone.helpers.js +1 -1
  272. package/snapdom/src/utils/css.js +1 -1
  273. package/snapdom/src/utils/helpers.js +1 -1
  274. package/snapdom/src/utils/image.js +1 -1
  275. package/snapdom/src/utils/prepare.helpers.js +1 -1
  276. package/snapdom/src/utils/transforms.helpers.js +1 -1
  277. package/snapdom.js +1 -1
  278. package/string/chars.js +1 -1
  279. package/string/index.js +1 -1
  280. package/string.js +1 -1
  281. package/tinycolor/index.js +1 -1
  282. package/tinycolor/src/conversion.js +1 -1
  283. package/tinycolor/src/css-color-names.js +1 -1
  284. package/tinycolor/src/format-input.js +5 -5
  285. package/tinycolor/src/from-ratio.js +1 -1
  286. package/tinycolor/src/index.js +1 -1
  287. package/tinycolor/src/random.js +1 -1
  288. package/tinycolor/src/readability.js +1 -1
  289. package/tinycolor/src/to-ms-filter.js +1 -1
  290. package/tinycolor/src/utils.js +1 -1
  291. package/tinycolor.js +1 -1
  292. package/tree/index.js +1 -1
  293. package/tree/search/index.js +1 -1
  294. package/tree.js +1 -1
  295. package/tween/index.js +1 -1
  296. package/tween/src/easing.js +1 -1
  297. package/tween/src/tween.js +1 -1
  298. package/tween.js +1 -1
  299. package/types/canvas-roundrect-polyfill/index.d.ts +0 -0
  300. package/types/emitter/src/index.d.ts +18 -16
  301. package/types/idb/async-iterators.d.ts +1 -0
  302. package/types/idb/database-extras.d.ts +1 -0
  303. package/types/idb/entry.d.ts +634 -0
  304. package/types/idb/index-.d.ts +21 -0
  305. package/types/idb/index.d.ts +3 -21
  306. package/types/idb/util.d.ts +3 -0
  307. package/types/idb/wrap-idb-value.d.ts +34 -0
  308. package/types/sanitize-url/index.d.ts +2 -0
  309. package/types/xlsx/crc32.d.ts +12 -0
  310. package/ui-color/compareColorByRange.js +1 -1
  311. package/ui-color/index.js +1 -1
  312. package/uiColor.js +1 -1
  313. package/url-toolkit/index.js +1 -1
  314. package/url-toolkit/src/url-toolkit.js +1 -1
  315. package/urlToolkit.js +1 -1
  316. package/validate/index.js +11 -11
  317. package/validate/src/index.js +1 -1
  318. package/validate/src/locale/en-US.js +1 -1
  319. package/validate/src/locale/index.js +1 -1
  320. package/validate/src/locale/zh-CN.js +1 -1
  321. package/validate/src/rules/array.js +1 -1
  322. package/validate/src/rules/base.js +1 -1
  323. package/validate/src/rules/boolean.js +1 -1
  324. package/validate/src/rules/custom.js +1 -1
  325. package/validate/src/rules/number.js +1 -1
  326. package/validate/src/rules/object.js +1 -1
  327. package/validate/src/rules/string.js +1 -1
  328. package/validate/src/rules/type.js +1 -1
  329. package/validate.js +11 -11
  330. package/version/index.js +1 -1
  331. package/version.js +1 -1
  332. package/xlsx/crc32.js +48 -0
  333. package/xlsx/index.d.ts +3 -0
  334. package/xlsx/index.js +1 -1
  335. package/xlsx/xlsx.js +5436 -5479
  336. package/xlsx.js +1 -1
  337. package/types/pinyin/es/main.d.ts +0 -4
  338. package/types/pinyin/es/traditional.d.ts +0 -4
@@ -1,21 +1,3 @@
1
- declare class IDB {
2
- constructor(indexedDBName?: string, objectStoreName?: string);
3
- static deleteDatabase(name: string): void;
4
- deleteObjectStore(name: string): void;
5
- private indexedDBName;
6
- private objectStoreName;
7
- private idbOpenDBRequestPromise;
8
- private getObjectStore;
9
- add(key: IDBValidKey, value: unknown): Promise<any>;
10
- get(query: IDBValidKey | IDBKeyRange): Promise<any>;
11
- getAll(query: IDBValidKey | IDBKeyRange | null, count?: number): Promise<any>;
12
- getKey(query: IDBValidKey | IDBKeyRange): Promise<any>;
13
- getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): Promise<any>;
14
- getMany(querys: (IDBValidKey | IDBKeyRange)[]): Promise<any>;
15
- put(key: IDBValidKey, value: unknown): Promise<any>;
16
- putMany(entries: [unknown, string][]): Promise<any>;
17
- delete(key: IDBValidKey | IDBKeyRange): Promise<any>;
18
- deleteMany(keys: string[]): Promise<any>;
19
- clear(): Promise<any>;
20
- }
21
- export default IDB;
1
+ export * from './entry.js';
2
+ import './async-iterators.js';
3
+ import './database-extras.js';
@@ -0,0 +1,3 @@
1
+ export type Constructor = new (...args: any[]) => any;
2
+ export type Func = (...args: any[]) => any;
3
+ export declare const instanceOfAny: (object: any, constructors: Constructor[]) => boolean;
@@ -0,0 +1,34 @@
1
+ import { IDBPCursor, IDBPCursorWithValue, IDBPDatabase, IDBPIndex, IDBPObjectStore, IDBPTransaction } from './entry.js';
2
+ export declare const reverseTransformCache: WeakMap<WeakKey, any>;
3
+ export declare function replaceTraps(callback: (currentTraps: ProxyHandler<any>) => ProxyHandler<any>): void;
4
+ /**
5
+ * Enhance an IDB object with helpers.
6
+ *
7
+ * @param value The thing to enhance.
8
+ */
9
+ export declare function wrap(value: IDBDatabase): IDBPDatabase;
10
+ export declare function wrap(value: IDBIndex): IDBPIndex;
11
+ export declare function wrap(value: IDBObjectStore): IDBPObjectStore;
12
+ export declare function wrap(value: IDBTransaction): IDBPTransaction;
13
+ export declare function wrap(value: IDBOpenDBRequest): Promise<IDBPDatabase | undefined>;
14
+ export declare function wrap<T>(value: IDBRequest<T>): Promise<T>;
15
+ /**
16
+ * Revert an enhanced IDB object to a plain old miserable IDB one.
17
+ *
18
+ * Will also revert a promise back to an IDBRequest.
19
+ *
20
+ * @param value The enhanced object to revert.
21
+ */
22
+ interface Unwrap {
23
+ (value: IDBPCursorWithValue<any, any, any, any, any>): IDBCursorWithValue;
24
+ (value: IDBPCursor<any, any, any, any, any>): IDBCursor;
25
+ (value: IDBPDatabase<any>): IDBDatabase;
26
+ (value: IDBPIndex<any, any, any, any, any>): IDBIndex;
27
+ (value: IDBPObjectStore<any, any, any, any>): IDBObjectStore;
28
+ (value: IDBPTransaction<any, any, any>): IDBTransaction;
29
+ <T extends any>(value: Promise<IDBPDatabase<T>>): IDBOpenDBRequest;
30
+ (value: Promise<IDBPDatabase>): IDBOpenDBRequest;
31
+ <T>(value: Promise<T>): IDBRequest<T>;
32
+ }
33
+ export declare const unwrap: Unwrap;
34
+ export {};
@@ -0,0 +1,2 @@
1
+ declare function sanitizeUrl(url?: string): string;
2
+ export default sanitizeUrl;
@@ -0,0 +1,12 @@
1
+ export default CRC32;
2
+ declare namespace CRC32 {
3
+ export let version: string;
4
+ export { T0 as table };
5
+ export { crc32_bstr as bstr };
6
+ export { crc32_buf as buf };
7
+ export { crc32_str as str };
8
+ }
9
+ declare const T0: any[] | Int32Array<ArrayBuffer>;
10
+ declare function crc32_bstr(bstr: any, seed: any): number;
11
+ declare function crc32_buf(B: any, seed: any): number;
12
+ declare function crc32_str(str: any, seed: any): number;
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  function i(r = [34797, 15747172]) {
3
3
  return (n = 1) => {
4
4
  const o = r, t = Math.log(256) / Math.log(2), e = o[0] >>> t * 2 & 255, g = o[0] >>> t * 1 & 255, l = o[0] >>> t * 0 & 255, c = o[1] >>> t * 2 & 255, s = o[1] >>> t * 1 & 255, f = o[1] >>> t * 0 & 255, a = c - (c - e) * n, b = s - (s - g) * n, h = f - (f - l) * n;
package/ui-color/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  import "lodash/isUndefined.js";
3
3
  import { TinyColor as e } from "../tinycolor/src/index.js";
4
4
  import { default as U } from "./compareColorByRange.js";
package/uiColor.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  import "lodash/isUndefined.js";
3
3
  import "./tinycolor/src/index.js";
4
4
  import { default as t } from "./ui-color/compareColorByRange.js";
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  import { buildAbsoluteURL as e, buildURLFromParts as l, default as o, normalizePath as t, parseURL as u } from "./src/url-toolkit.js";
3
3
  export {
4
4
  e as buildAbsoluteURL,
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  const l = /^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^/?#]*)?))\2(?=((?:(?:[^?#/]*\/)*[^;?#/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/, p = /^(?=([^/?#]*))\1([^]*)$/, f = /(?:\/|^)\.(?=\/)/g, m = /(?:\/|^)\.\.\/(?!\.\.\/)[^/]*(?=\/)/g;
3
3
  function E(r, a, s) {
4
4
  if (s = s || {}, r = r.trim(), a = a.trim(), !a) {
package/urlToolkit.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  import { buildAbsoluteURL as e, buildURLFromParts as l, default as o, normalizePath as t, parseURL as u } from "./url-toolkit/src/url-toolkit.js";
3
3
  export {
4
4
  e as buildAbsoluteURL,
package/validate/index.js CHANGED
@@ -1,14 +1,14 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  import { PqbValidator as r, Validator as t, ValidatorSchema as e, Validator as l } from "./src/index.js";
3
3
  import { default as f } from "./src/rules/array.js";
4
4
  import { default as m } from "./src/rules/base.js";
5
5
  import { default as u } from "./src/rules/boolean.js";
6
6
  import { default as p } from "./src/rules/custom.js";
7
- import { default as b } from "./src/locale/index.js";
8
- import { default as n } from "./src/rules/number.js";
9
- import { default as B } from "./src/rules/object.js";
10
- import { default as g } from "./src/rules/string.js";
11
- import { default as j } from "./src/rules/type.js";
7
+ import { default as b } from "./src/rules/number.js";
8
+ import { default as n } from "./src/rules/object.js";
9
+ import { default as B } from "./src/rules/string.js";
10
+ import { default as g } from "./src/rules/type.js";
11
+ import { default as j } from "./src/locale/index.js";
12
12
  export {
13
13
  r as PqbValidator,
14
14
  t as Validator,
@@ -16,11 +16,11 @@ export {
16
16
  m as ValidatorBase,
17
17
  u as ValidatorBoolean,
18
18
  p as ValidatorCustom,
19
- n as ValidatorNumber,
20
- B as ValidatorObject,
19
+ b as ValidatorNumber,
20
+ n as ValidatorObject,
21
21
  e as ValidatorSchema,
22
- g as ValidatorString,
23
- j as ValidatorType,
22
+ B as ValidatorString,
23
+ g as ValidatorType,
24
24
  l as default,
25
- b as validatorLocale
25
+ j as validatorLocale
26
26
  };
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  import g from "lodash/defaultsDeep.js";
3
3
  import u from "lodash/isArray.js";
4
4
  import v from "lodash/isFunction.js";
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  const e = "#{field} is not a #{type} type", t = {
3
3
  required: "#{field} is required",
4
4
  type: {
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  import t from "./en-US.js";
3
3
  import o from "./zh-CN.js";
4
4
  const a = {
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  const e = {
3
3
  required: "#{field} 是必填项",
4
4
  type: {
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  import i from "lodash/isArray.js";
3
3
  import a from "lodash/isEqual.js";
4
4
  import { isEmptyArray as s } from "../../../is/index.js";
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  import n from "lodash/defaultsDeep.js";
3
3
  import f from "lodash/get.js";
4
4
  import u from "lodash/isArray.js";
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  import a from "lodash/isBoolean.js";
3
3
  import s from "./base.js";
4
4
  class r extends s {
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  import o from "./base.js";
3
3
  class n extends o {
4
4
  constructor(t, r) {
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  import s from "lodash/isNumber.js";
3
3
  import { isEmptyValue as i } from "../../../is/index.js";
4
4
  import a from "./base.js";
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  import s from "lodash/isEqual.js";
3
3
  import i from "lodash/isObject.js";
4
4
  import { isEmptyObject as a } from "../../../is/index.js";
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  import i from "lodash/isString.js";
3
3
  import s from "lodash/isUndefined.js";
4
4
  import a from "./base.js";
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  import t from "lodash/isUndefined";
3
3
  import r from "../../../is/lib/isAscii.js";
4
4
  import { isAllChinese as o } from "../../../is/lib/isChinese.js";
package/validate.js CHANGED
@@ -1,14 +1,14 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  import { PqbValidator as r, Validator as t, ValidatorSchema as e, Validator as l } from "./validate/src/index.js";
3
3
  import { default as f } from "./validate/src/rules/array.js";
4
4
  import { default as m } from "./validate/src/rules/base.js";
5
5
  import { default as u } from "./validate/src/rules/boolean.js";
6
6
  import { default as p } from "./validate/src/rules/custom.js";
7
- import { default as b } from "./validate/src/locale/index.js";
8
- import { default as n } from "./validate/src/rules/number.js";
9
- import { default as B } from "./validate/src/rules/object.js";
10
- import { default as g } from "./validate/src/rules/string.js";
11
- import { default as j } from "./validate/src/rules/type.js";
7
+ import { default as b } from "./validate/src/rules/number.js";
8
+ import { default as n } from "./validate/src/rules/object.js";
9
+ import { default as B } from "./validate/src/rules/string.js";
10
+ import { default as g } from "./validate/src/rules/type.js";
11
+ import { default as j } from "./validate/src/locale/index.js";
12
12
  export {
13
13
  r as PqbValidator,
14
14
  t as Validator,
@@ -16,11 +16,11 @@ export {
16
16
  m as ValidatorBase,
17
17
  u as ValidatorBoolean,
18
18
  p as ValidatorCustom,
19
- n as ValidatorNumber,
20
- B as ValidatorObject,
19
+ b as ValidatorNumber,
20
+ n as ValidatorObject,
21
21
  e as ValidatorSchema,
22
- g as ValidatorString,
23
- j as ValidatorType,
22
+ B as ValidatorString,
23
+ g as ValidatorType,
24
24
  l as default,
25
- b as validatorLocale
25
+ j as validatorLocale
26
26
  };
package/version/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  const t = "0.0.0";
3
3
  export {
4
4
  t as VERSION,
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  import { VERSION as f, VERSION as o } from "./version/index.js";
3
3
  export {
4
4
  f as VERSION,
package/xlsx/crc32.js ADDED
@@ -0,0 +1,48 @@
1
+ /* 2026-02-26 14:42:29 */
2
+ const a = {};
3
+ a.version = "1.2.0";
4
+ function u() {
5
+ let f = 0, l = new Array(256);
6
+ for (let e = 0; e != 256; ++e)
7
+ f = e, f = f & 1 ? -306674912 ^ f >>> 1 : f >>> 1, f = f & 1 ? -306674912 ^ f >>> 1 : f >>> 1, f = f & 1 ? -306674912 ^ f >>> 1 : f >>> 1, f = f & 1 ? -306674912 ^ f >>> 1 : f >>> 1, f = f & 1 ? -306674912 ^ f >>> 1 : f >>> 1, f = f & 1 ? -306674912 ^ f >>> 1 : f >>> 1, f = f & 1 ? -306674912 ^ f >>> 1 : f >>> 1, f = f & 1 ? -306674912 ^ f >>> 1 : f >>> 1, l[e] = f;
8
+ return typeof Int32Array < "u" ? new Int32Array(l) : l;
9
+ }
10
+ const o = u();
11
+ function s(f) {
12
+ let l = 0, e = 0, t = 0, n = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
13
+ for (t = 0; t != 256; ++t) n[t] = f[t];
14
+ for (t = 0; t != 256; ++t)
15
+ for (e = f[t], l = 256 + t; l < 4096; l += 256)
16
+ e = n[l] = e >>> 8 ^ f[e & 255];
17
+ const r = [];
18
+ for (t = 1; t != 16; ++t)
19
+ r[t - 1] = typeof Int32Array < "u" && typeof n.subarray == "function" ? n.subarray(t * 256, t * 256 + 256) : n.slice(t * 256, t * 256 + 256);
20
+ return r;
21
+ }
22
+ const c = s(o), x = c[0], T = c[1], d = c[2], y = c[3], b = c[4], A = c[5], C = c[6], _ = c[7], h = c[8], p = c[9], w = c[10], I = c[11], g = c[12], L = c[13], v = c[14];
23
+ function R(f, l) {
24
+ let e = l ^ -1;
25
+ for (let t = 0, n = f.length; t < n; )
26
+ e = e >>> 8 ^ o[(e ^ f.charCodeAt(t++)) & 255];
27
+ return ~e;
28
+ }
29
+ function j(f, l) {
30
+ let e = l ^ -1, t = f.length - 15, n = 0;
31
+ for (; n < t; )
32
+ e = v[f[n++] ^ e & 255] ^ L[f[n++] ^ e >> 8 & 255] ^ g[f[n++] ^ e >> 16 & 255] ^ I[f[n++] ^ e >>> 24] ^ w[f[n++]] ^ p[f[n++]] ^ h[f[n++]] ^ _[f[n++]] ^ C[f[n++]] ^ A[f[n++]] ^ b[f[n++]] ^ y[f[n++]] ^ d[f[n++]] ^ T[f[n++]] ^ x[f[n++]] ^ o[f[n++]];
33
+ for (t += 15; n < t; ) e = e >>> 8 ^ o[(e ^ f[n++]) & 255];
34
+ return ~e;
35
+ }
36
+ function k(f, l) {
37
+ let e = l ^ -1;
38
+ for (let t = 0, n = f.length, r = 0, i = 0; t < n; )
39
+ r = f.charCodeAt(t++), r < 128 ? e = e >>> 8 ^ o[(e ^ r) & 255] : r < 2048 ? (e = e >>> 8 ^ o[(e ^ (192 | r >> 6 & 31)) & 255], e = e >>> 8 ^ o[(e ^ (128 | r & 63)) & 255]) : r >= 55296 && r < 57344 ? (r = (r & 1023) + 64, i = f.charCodeAt(t++) & 1023, e = e >>> 8 ^ o[(e ^ (240 | r >> 8 & 7)) & 255], e = e >>> 8 ^ o[(e ^ (128 | r >> 2 & 63)) & 255], e = e >>> 8 ^ o[(e ^ (128 | i >> 6 & 15 | (r & 3) << 4)) & 255], e = e >>> 8 ^ o[(e ^ (128 | i & 63)) & 255]) : (e = e >>> 8 ^ o[(e ^ (224 | r >> 12 & 15)) & 255], e = e >>> 8 ^ o[(e ^ (128 | r >> 6 & 63)) & 255], e = e >>> 8 ^ o[(e ^ (128 | r & 63)) & 255]);
40
+ return ~e;
41
+ }
42
+ a.table = o;
43
+ a.bstr = R;
44
+ a.buf = j;
45
+ a.str = k;
46
+ export {
47
+ a as default
48
+ };
package/xlsx/index.d.ts CHANGED
@@ -841,6 +841,9 @@ export interface Sheet2HTMLOpts {
841
841
 
842
842
  /** Footer HTML */
843
843
  footer?: string;
844
+
845
+ /** If true, remove javascript: URLs from hyperlinks */
846
+ sanitizeLinks?: boolean;
844
847
  }
845
848
 
846
849
  export interface Sheet2JSONOpts extends DateNFOption {
package/xlsx/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2026-01-27 10:43:49 */
1
+ /* 2026-02-26 14:42:29 */
2
2
  import { CFB as r, SSF as t, default as l, parse_xlscfb as s, parse_zip as a, read as F, readFile as w, readFile as S, set_cptable as c, set_fs as d, stream as p, utils as f, version as n, write as X, writeFile as _, writeFileAsync as o, writeFile as y, writeFileXLSX as b, writeXLSX as m } from "./xlsx.js";
3
3
  export {
4
4
  r as CFB,