@unicom-cloud/utils 0.1.34 → 0.1.36
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/assert/index.js +41 -0
- package/assert.js +9 -0
- package/case-name/index.js +1 -1
- package/caseName.js +1 -1
- package/class-name/index.js +1 -1
- package/className.js +1 -1
- package/clipboard-copy/index.js +1 -1
- package/clipboardCopy.js +1 -1
- package/constant/address.js +1 -1
- package/constant/chineseCharacters.js +1 -1
- package/constant/constellations.js +1 -1
- package/constant/domain.js +1 -1
- package/constant/identity.js +1 -1
- package/constant/index.js +19 -21
- package/constant/isMobile.js +1 -1
- package/constant/keyboardCode.js +1 -1
- package/constant/licensePlate.js +1 -1
- package/constant/name.js +1 -1
- package/constant/platform.js +1 -1
- package/constant/protocol.js +1 -1
- package/constant/string.js +1 -1
- package/constant/ui.js +1 -1
- package/constant.js +17 -19
- package/content-disposition/index.js +1 -1
- package/contentDisposition.js +1 -1
- package/cookie/index.js +1 -1
- package/cookie/src/api.js +1 -1
- package/cookie/src/assign.js +1 -1
- package/cookie/src/converter.js +1 -1
- package/cookie.js +1 -1
- package/date/convertTime.js +1 -1
- package/date/convertToDuration.js +1 -1
- package/date/index.js +1 -1
- package/date.js +1 -1
- package/decimal/decimal.js +1 -1
- package/decimal/index.js +1 -1
- package/decimal.js +1 -1
- package/dom-helpers/activeElement.js +1 -1
- package/dom-helpers/addClass.js +1 -1
- package/dom-helpers/addEventListener.js +1 -1
- package/dom-helpers/animate.js +1 -1
- package/dom-helpers/animationFrame.js +1 -1
- package/dom-helpers/attribute.js +1 -1
- package/dom-helpers/camelize.js +1 -1
- package/dom-helpers/camelizeStyle.js +1 -1
- package/dom-helpers/canUseDOM.js +1 -1
- package/dom-helpers/childElements.js +1 -1
- package/dom-helpers/childNodes.js +1 -1
- package/dom-helpers/clear.js +1 -1
- package/dom-helpers/closest.js +1 -1
- package/dom-helpers/collectElements.js +1 -1
- package/dom-helpers/collectSiblings.js +1 -1
- package/dom-helpers/contains.js +1 -1
- package/dom-helpers/css.js +1 -1
- package/dom-helpers/filterEventHandler.js +1 -1
- package/dom-helpers/getComputedStyle.js +1 -1
- package/dom-helpers/getElementCoordinates.js +1 -1
- package/dom-helpers/getScrollAccessor.js +1 -1
- package/dom-helpers/hasClass.js +1 -1
- package/dom-helpers/height.js +1 -1
- package/dom-helpers/hyphenate.js +1 -1
- package/dom-helpers/hyphenateStyle.js +1 -1
- package/dom-helpers/index.js +1 -1
- package/dom-helpers/insertAfter.js +1 -1
- package/dom-helpers/isDocument.js +1 -1
- package/dom-helpers/isInput.js +1 -1
- package/dom-helpers/isTransform.js +1 -1
- package/dom-helpers/isVisible.js +1 -1
- package/dom-helpers/isWindow.js +1 -1
- package/dom-helpers/listen.js +1 -1
- package/dom-helpers/matches.js +1 -1
- package/dom-helpers/nextUntil.js +1 -1
- package/dom-helpers/offset.js +1 -1
- package/dom-helpers/offsetParent.js +1 -1
- package/dom-helpers/ownerDocument.js +1 -1
- package/dom-helpers/ownerWindow.js +1 -1
- package/dom-helpers/parents.js +1 -1
- package/dom-helpers/position.js +1 -1
- package/dom-helpers/prepend.js +1 -1
- package/dom-helpers/querySelectorAll.js +1 -1
- package/dom-helpers/reflow.js +1 -1
- package/dom-helpers/remove.js +1 -1
- package/dom-helpers/removeClass.js +1 -1
- package/dom-helpers/removeEventListener.js +1 -1
- package/dom-helpers/scrollLeft.js +1 -1
- package/dom-helpers/scrollParent.js +1 -1
- package/dom-helpers/scrollTo.js +1 -1
- package/dom-helpers/scrollTop.js +1 -1
- package/dom-helpers/scrollbarSize.js +1 -1
- package/dom-helpers/siblings.js +1 -1
- package/dom-helpers/text.js +1 -1
- package/dom-helpers/toggleClass.js +1 -1
- package/dom-helpers/transitionEnd.js +1 -1
- package/dom-helpers/triggerEvent.js +1 -1
- package/dom-helpers/types.js +1 -1
- package/dom-helpers/width.js +1 -1
- package/domHelpers.js +1 -1
- package/emitter/index.js +1 -1
- package/emitter/src/index.js +18 -18
- package/emitter.js +1 -1
- package/emoji/emoji.js +52077 -0
- package/emoji/emojis.js +1920 -0
- package/emoji/index.js +35 -0
- package/emoji.js +11 -0
- package/escape/index.js +1 -1
- package/escape.js +1 -1
- package/file/fileRead.js +55 -0
- package/file/fileToDataURL.js +9 -0
- package/file/index.js +5 -3
- package/file/saveAs.js +38 -30
- package/file.js +5 -3
- package/function/index.js +5 -4
- package/function.js +5 -4
- package/idb/index.js +1 -1
- package/idb.js +1 -1
- package/index.js +1 -1
- package/invariant/index.js +1 -1
- package/invariant.js +1 -1
- package/is/index.js +201 -198
- package/is/lib/isAscii.js +6 -6
- package/is/lib/isBase64.js +5 -5
- package/is/lib/isChinese.js +1 -1
- package/is/lib/isDataURI.js +11 -11
- package/is/lib/isEmail.js +25 -25
- package/is/lib/isFQDN.js +7 -7
- package/is/lib/isFullWidth.js +5 -5
- package/is/lib/isHSL.js +5 -5
- package/is/lib/isHalfWidth.js +5 -5
- package/is/lib/isHash.js +5 -5
- package/is/lib/isHexColor.js +7 -7
- package/is/lib/isIMEI.js +7 -7
- package/is/lib/isIP.js +12 -12
- package/is/lib/isIPRange.js +8 -8
- package/is/lib/isIdentityCard.js +12 -12
- package/is/lib/isJWT.js +9 -9
- package/is/lib/isMACAddress.js +6 -6
- package/is/lib/isMD5.js +4 -4
- package/is/lib/isMimeType.js +4 -4
- package/is/lib/isMobilePhone.js +3 -3
- package/is/lib/isPort.js +1 -1
- package/is/lib/isRgbColor.js +8 -8
- package/is/lib/isSemVer.js +5 -5
- package/is/lib/isSlug.js +6 -6
- package/is/lib/isStrongPassword.js +8 -8
- package/is/lib/isURL.js +32 -32
- package/is/lib/isUUID.js +5 -5
- package/is/lib/isVariableWidth.js +7 -7
- package/is.js +78 -76
- package/lunar/index.js +1 -1
- package/lunar/lib/Holiday.js +1 -1
- package/lunar/lib/HolidayUtil.js +1 -1
- package/lunar/lib/I18n.js +1 -1
- package/lunar/lib/JieQi.js +1 -1
- package/lunar/lib/Lunar.js +1 -1
- package/lunar/lib/LunarMonth.js +1 -1
- package/lunar/lib/LunarTime.js +1 -1
- package/lunar/lib/LunarUtil.js +1 -1
- package/lunar/lib/LunarYear.js +1 -1
- package/lunar/lib/ShouXingUtil.js +1 -1
- package/lunar/lib/Solar.js +1 -1
- package/lunar/lib/SolarHalfYear.js +1 -1
- package/lunar/lib/SolarMonth.js +1 -1
- package/lunar/lib/SolarSeason.js +1 -1
- package/lunar/lib/SolarUtil.js +1 -1
- package/lunar/lib/SolarWeek.js +1 -1
- package/lunar/lib/SolarYear.js +1 -1
- package/lunar/lib/index.js +1 -1
- package/lunar.js +1 -1
- package/math/index.js +1 -1
- package/math.js +1 -1
- package/md5/index.js +1 -1
- package/md5.js +1 -1
- package/mock/MockWebSocket.js +1 -1
- package/mock/MockXMLHttpRequest.js +1 -1
- package/mock/index.js +1 -1
- package/mock.js +1 -1
- package/normalize-wheel/ExecutionEnvironment.js +1 -1
- package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
- package/normalize-wheel/index.js +1 -1
- package/normalize-wheel/isEventSupported.js +1 -1
- package/normalizeWheel.js +1 -1
- package/number-to-chinese/index.js +1 -1
- package/numberToChinese.js +1 -1
- package/nzh/cn.js +1 -1
- package/nzh/hk.js +1 -1
- package/nzh/index.js +1 -1
- package/nzh/nzh.js +1 -1
- package/nzh/src/autoGet.js +1 -1
- package/nzh/src/index.js +1 -1
- package/nzh/src/langs/cn_b.js +1 -1
- package/nzh/src/langs/cn_s.js +1 -1
- package/nzh/src/langs/hk_b.js +1 -1
- package/nzh/src/langs/hk_s.js +1 -1
- package/nzh/src/utils.js +1 -1
- package/nzh.js +1 -1
- package/object/index.js +18 -0
- package/object.js +8 -0
- package/package.json +1 -1
- package/pinyin/index.js +1 -1
- package/pinyin/simplified.js +1 -1
- package/pinyin/src/core.js +1 -1
- package/pinyin/src/simplified.js +1 -1
- package/pinyin/src/simplified_dict.js +1 -1
- package/pinyin/src/traditional.js +1 -1
- package/pinyin/src/traditional_dict.js +1 -1
- package/pinyin/traditional.js +1 -1
- package/pinyin.js +1 -1
- package/query-string/base.js +2 -2
- package/query-string/index.js +1 -1
- package/query-string/splitOnFirst.js +1 -1
- package/queryString.js +1 -1
- package/random/address.js +1 -1
- package/random/constellation.js +1 -1
- package/random/image.js +1 -1
- package/random/index.js +1 -1
- package/random/licensePlate.js +1 -1
- package/random/name.js +1 -1
- package/random/number.js +1 -1
- package/random/text.js +1 -1
- package/random/time.js +1 -1
- package/random/web.js +1 -1
- package/random.js +1 -1
- package/screenfull/index.js +1 -1
- package/screenfull.js +1 -1
- package/sleep/index.js +1 -1
- package/sleep.js +1 -1
- package/snapdom/index.js +1 -1
- package/snapdom/src/api/preCache.js +1 -1
- package/snapdom/src/api/snapdom.js +2 -2
- package/snapdom/src/core/cache.js +1 -1
- package/snapdom/src/core/capture.js +1 -1
- package/snapdom/src/core/clone.js +1 -1
- package/snapdom/src/core/context.js +1 -1
- package/snapdom/src/core/plugins.js +1 -1
- package/snapdom/src/core/prepare.js +1 -1
- package/snapdom/src/exporters/download.js +1 -1
- package/snapdom/src/exporters/toBlob.js +1 -1
- package/snapdom/src/exporters/toCanvas.js +1 -1
- package/snapdom/src/exporters/toImg.js +1 -1
- package/snapdom/src/modules/CSSVar.js +1 -1
- package/snapdom/src/modules/background.js +1 -1
- package/snapdom/src/modules/changeCSS.js +1 -1
- package/snapdom/src/modules/counter.js +1 -1
- package/snapdom/src/modules/fonts.js +2 -2
- package/snapdom/src/modules/iconFonts.js +1 -1
- package/snapdom/src/modules/images.js +1 -1
- package/snapdom/src/modules/lineClamp.js +1 -1
- package/snapdom/src/modules/pseudo.js +1 -1
- package/snapdom/src/modules/rasterize.js +1 -1
- package/snapdom/src/modules/snapFetch.js +1 -1
- package/snapdom/src/modules/styles.js +1 -1
- package/snapdom/src/modules/svgDefs.js +1 -1
- package/snapdom/src/utils/browser.js +1 -1
- package/snapdom/src/utils/capture.helpers.js +1 -1
- package/snapdom/src/utils/clone.helpers.js +1 -1
- package/snapdom/src/utils/css.js +1 -1
- package/snapdom/src/utils/helpers.js +1 -1
- package/snapdom/src/utils/image.js +1 -1
- package/snapdom/src/utils/prepare.helpers.js +1 -1
- package/snapdom/src/utils/transforms.helpers.js +1 -1
- package/snapdom.js +1 -1
- package/string/chars.js +660 -0
- package/string/index.js +1 -1
- package/string.js +1 -1
- package/tinycolor/index.js +1 -1
- package/tinycolor/src/conversion.js +1 -1
- package/tinycolor/src/css-color-names.js +1 -1
- package/tinycolor/src/format-input.js +1 -1
- package/tinycolor/src/from-ratio.js +1 -1
- package/tinycolor/src/index.js +1 -1
- package/tinycolor/src/random.js +1 -1
- package/tinycolor/src/readability.js +1 -1
- package/tinycolor/src/to-ms-filter.js +1 -1
- package/tinycolor/src/utils.js +1 -1
- package/tinycolor.js +1 -1
- package/tree/index.js +1 -1
- package/tree/search/index.js +1 -1
- package/tree.js +1 -1
- package/tween/index.js +1 -1
- package/tween/src/easing.js +1 -1
- package/tween/src/tween.js +1 -1
- package/tween.js +1 -1
- package/types/assert/index.d.ts +8 -0
- package/types/constant/index.d.ts +0 -1
- package/types/emoji/emoji.d.ts +196 -0
- package/types/emoji/emojis.d.ts +2 -0
- package/types/{constant/emoji.d.ts → emoji/index.d.ts} +4 -0
- package/types/file/fileRead.d.ts +11 -0
- package/types/file/fileToDataURL.d.ts +3 -0
- package/types/file/index.d.ts +3 -2
- package/types/file/saveAs.d.ts +2 -1
- package/types/is/index.d.ts +18 -16
- package/types/is/lib/isIP.d.ts +1 -1
- package/types/is/lib/isURL.d.ts +1 -1
- package/types/lodash/isPromise.d.ts +1 -1
- package/types/normalize-wheel/index.d.ts +1 -1
- package/types/object/index.d.ts +5 -0
- package/types/snapdom/src/api/preCache.d.ts +1 -1
- package/types/string/chars.d.ts +2 -0
- package/ui-color/compareColorByRange.js +1 -1
- package/ui-color/index.js +1 -1
- package/uiColor.js +1 -1
- package/url-toolkit/index.js +1 -1
- package/url-toolkit/src/url-toolkit.js +1 -1
- package/urlToolkit.js +1 -1
- package/validate/index.js +1 -1
- package/validate/src/index.js +5 -4
- package/validate/src/locale/en-US.js +1 -1
- package/validate/src/locale/index.js +1 -1
- package/validate/src/locale/zh-CN.js +1 -1
- package/validate/src/rules/array.js +1 -1
- package/validate/src/rules/base.js +1 -1
- package/validate/src/rules/boolean.js +1 -1
- package/validate/src/rules/custom.js +1 -1
- package/validate/src/rules/number.js +1 -1
- package/validate/src/rules/object.js +1 -1
- package/validate/src/rules/string.js +1 -1
- package/validate/src/rules/type.js +1 -1
- package/validate.js +1 -1
- package/version/index.js +1 -1
- package/version.js +1 -1
- package/xlsx/index.js +1 -1
- package/xlsx/xlsx.js +30 -77
- package/xlsx.js +1 -1
- package/constant/emoji.js +0 -32
- package/file/fileToURL.js +0 -18
- package/is/lib/util/assertString.js +0 -12
- package/object-keys-sort/index.js +0 -8
- package/object-prototype-to-string-call/index.js +0 -9
- package/objectKeysSort.js +0 -5
- package/objectPrototypeToStringCall.js +0 -6
- package/types/file/fileToURL.d.ts +0 -2
- package/types/is/lib/util/assertString.d.ts +0 -1
- package/types/object-keys-sort/index.d.ts +0 -4
- package/types/object-prototype-to-string-call/index.d.ts +0 -2
package/is.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/*
|
|
2
|
-
import { default as
|
|
1
|
+
/* 2026-01-04 16:21:26 */
|
|
2
|
+
import { default as r } from "lodash/isArguments.js";
|
|
3
3
|
import { default as o } from "lodash/isArray.js";
|
|
4
4
|
import { default as i } from "lodash/isArrayBuffer.js";
|
|
5
5
|
import { default as d } from "lodash/isArrayLike.js";
|
|
6
6
|
import { default as u } from "lodash/isArrayLikeObject.js";
|
|
7
7
|
import { default as x } from "lodash/isBoolean.js";
|
|
8
8
|
import { default as y } from "lodash/isBuffer.js";
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
9
|
+
import { default as c } from "lodash/isDate.js";
|
|
10
|
+
import { default as h } from "lodash/isElement.js";
|
|
11
|
+
import { default as S } from "lodash/isEmpty.js";
|
|
12
|
+
import { default as I } from "lodash/isEqual.js";
|
|
13
13
|
import { default as N } from "lodash/isEqualWith.js";
|
|
14
14
|
import { default as C } from "lodash/isError.js";
|
|
15
15
|
import { default as P } from "lodash/isFinite.js";
|
|
16
|
-
import { default as
|
|
16
|
+
import { default as L } from "lodash/isFunction.js";
|
|
17
17
|
import { default as U } from "lodash/isInteger.js";
|
|
18
18
|
import { default as k } from "lodash/isLength.js";
|
|
19
|
-
import { default as
|
|
19
|
+
import { default as V } from "lodash/isMap.js";
|
|
20
20
|
import { default as H } from "lodash/isMatch.js";
|
|
21
21
|
import { default as J } from "lodash/isMatchWith.js";
|
|
22
22
|
import { default as v } from "lodash/isNaN.js";
|
|
@@ -25,25 +25,25 @@ import { default as G } from "lodash/isNil.js";
|
|
|
25
25
|
import { default as Q } from "lodash/isNull.js";
|
|
26
26
|
import { default as Y } from "lodash/isNumber.js";
|
|
27
27
|
import { default as $ } from "lodash/isObject.js";
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
28
|
+
import { default as te } from "lodash/isObjectLike.js";
|
|
29
|
+
import { default as re } from "lodash/isPlainObject.js";
|
|
30
30
|
import { default as oe } from "lodash/isRegExp.js";
|
|
31
31
|
import { default as ie } from "lodash/isSafeInteger.js";
|
|
32
32
|
import { default as de } from "lodash/isSet.js";
|
|
33
33
|
import { default as ue } from "lodash/isString.js";
|
|
34
34
|
import { default as xe } from "lodash/isSymbol.js";
|
|
35
35
|
import { default as ye } from "lodash/isTypedArray.js";
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
36
|
+
import { default as ce } from "lodash/isUndefined.js";
|
|
37
|
+
import { default as he } from "lodash/isWeakMap.js";
|
|
38
|
+
import { default as Se } from "lodash/isWeakSet.js";
|
|
39
|
+
import { default as Ie } from "./is/lib/isAscii.js";
|
|
40
40
|
import { default as Ne } from "./is/lib/isBase64.js";
|
|
41
41
|
import { isAllChinese as Ce, default as Oe } from "./is/lib/isChinese.js";
|
|
42
|
-
import { default as
|
|
42
|
+
import { default as Be } from "./is/lib/isDataURI.js";
|
|
43
43
|
import { default as Re } from "./is/lib/isEmail.js";
|
|
44
44
|
import { default as je } from "./is/lib/isFullWidth.js";
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
45
|
+
import { default as Fe } from "./is/lib/isHalfWidth.js";
|
|
46
|
+
import { default as De } from "./is/lib/isHash.js";
|
|
47
47
|
import { default as Te } from "./is/lib/isHexColor.js";
|
|
48
48
|
import { default as qe } from "./is/lib/isHSL.js";
|
|
49
49
|
import { default as we } from "./is/lib/isIdentityCard.js";
|
|
@@ -51,101 +51,103 @@ import { default as ze } from "./is/lib/isIMEI.js";
|
|
|
51
51
|
import { default as Ke } from "./is/lib/isIP.js";
|
|
52
52
|
import { default as Xe } from "./is/lib/isIPRange.js";
|
|
53
53
|
import { default as Ze } from "./is/lib/isJWT.js";
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import "./object
|
|
67
|
-
import { is32Bit as
|
|
54
|
+
import { default as et } from "./is/lib/isMACAddress.js";
|
|
55
|
+
import { default as at } from "./is/lib/isMD5.js";
|
|
56
|
+
import { default as st } from "./is/lib/isMimeType.js";
|
|
57
|
+
import { default as ft, locales as it } from "./is/lib/isMobilePhone.js";
|
|
58
|
+
import { default as dt } from "./is/lib/isPort.js";
|
|
59
|
+
import { default as ut } from "./is/lib/isRgbColor.js";
|
|
60
|
+
import { default as xt } from "./is/lib/isSemVer.js";
|
|
61
|
+
import { default as yt } from "./is/lib/isSlug.js";
|
|
62
|
+
import { default as ct } from "./is/lib/isStrongPassword.js";
|
|
63
|
+
import { default as ht } from "./is/lib/isURL.js";
|
|
64
|
+
import { default as St } from "./is/lib/isUUID.js";
|
|
65
|
+
import { default as It } from "./is/lib/isVariableWidth.js";
|
|
66
|
+
import "./object/index.js";
|
|
67
|
+
import { is32Bit as Nt, isAsyncFunction as Wt, isBigInt as Ct, isBlob as Ot, isColorValue as Pt, isColorValue_ as Bt, isEmptyArray as Lt, isEmptyObject as Rt, isEmptyValue as Ut, isEventTarget as jt, isExist as kt, isFile as Ft, isJSON as Vt, isJSON_String as Dt, isNullOrUndefined as Ht, isPromise as Tt, isReadableStream as Jt, isWindow as qt } from "./is/index.js";
|
|
68
68
|
export {
|
|
69
|
-
|
|
69
|
+
Nt as is32Bit,
|
|
70
70
|
Ce as isAllChinese,
|
|
71
|
-
|
|
71
|
+
r as isArguments,
|
|
72
72
|
o as isArray,
|
|
73
73
|
i as isArrayBuffer,
|
|
74
74
|
d as isArrayLike,
|
|
75
75
|
u as isArrayLikeObject,
|
|
76
|
-
|
|
76
|
+
Ie as isAscii,
|
|
77
|
+
Wt as isAsyncFunction,
|
|
77
78
|
Ne as isBase64,
|
|
78
|
-
|
|
79
|
+
Ct as isBigInt,
|
|
80
|
+
Ot as isBlob,
|
|
79
81
|
x as isBoolean,
|
|
80
82
|
y as isBuffer,
|
|
81
83
|
Oe as isChinese,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
Pt as isColorValue,
|
|
85
|
+
Bt as isColorValue_,
|
|
86
|
+
Be as isDataURI,
|
|
87
|
+
c as isDate,
|
|
88
|
+
h as isElement,
|
|
87
89
|
Re as isEmail,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
S as isEmpty,
|
|
91
|
+
Lt as isEmptyArray,
|
|
92
|
+
Rt as isEmptyObject,
|
|
93
|
+
Ut as isEmptyValue,
|
|
94
|
+
I as isEqual,
|
|
93
95
|
N as isEqualWith,
|
|
94
96
|
C as isError,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
jt as isEventTarget,
|
|
98
|
+
kt as isExist,
|
|
99
|
+
Ft as isFile,
|
|
98
100
|
P as isFinite,
|
|
99
101
|
je as isFullWidth,
|
|
100
|
-
|
|
102
|
+
L as isFunction,
|
|
101
103
|
qe as isHSL,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
+
Fe as isHalfWidth,
|
|
105
|
+
De as isHash,
|
|
104
106
|
Te as isHexColor,
|
|
105
107
|
ze as isIMEI,
|
|
106
108
|
Ke as isIP,
|
|
107
109
|
Xe as isIPRange,
|
|
108
110
|
we as isIdentityCard,
|
|
109
111
|
U as isInteger,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
+
Vt as isJSON,
|
|
113
|
+
Dt as isJSON_String,
|
|
112
114
|
Ze as isJWT,
|
|
113
115
|
k as isLength,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
et as isMACAddress,
|
|
117
|
+
at as isMD5,
|
|
118
|
+
V as isMap,
|
|
117
119
|
H as isMatch,
|
|
118
120
|
J as isMatchWith,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
121
|
+
st as isMimeType,
|
|
122
|
+
ft as isMobilePhone,
|
|
123
|
+
it as isMobilePhoneLocales,
|
|
122
124
|
v as isNaN,
|
|
123
125
|
_ as isNative,
|
|
124
126
|
G as isNil,
|
|
125
127
|
Q as isNull,
|
|
126
|
-
|
|
128
|
+
Ht as isNullOrUndefined,
|
|
127
129
|
Y as isNumber,
|
|
128
130
|
$ as isObject,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
te as isObjectLike,
|
|
132
|
+
re as isPlainObject,
|
|
133
|
+
dt as isPort,
|
|
134
|
+
Tt as isPromise,
|
|
135
|
+
Jt as isReadableStream,
|
|
134
136
|
oe as isRegExp,
|
|
135
|
-
|
|
137
|
+
ut as isRgbColor,
|
|
136
138
|
ie as isSafeInteger,
|
|
137
|
-
|
|
139
|
+
xt as isSemVer,
|
|
138
140
|
de as isSet,
|
|
139
|
-
|
|
141
|
+
yt as isSlug,
|
|
140
142
|
ue as isString,
|
|
141
|
-
|
|
143
|
+
ct as isStrongPassword,
|
|
142
144
|
xe as isSymbol,
|
|
143
145
|
ye as isTypedArray,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
146
|
+
ht as isURL,
|
|
147
|
+
St as isUUID,
|
|
148
|
+
ce as isUndefined,
|
|
149
|
+
It as isVariableWidth,
|
|
150
|
+
he as isWeakMap,
|
|
151
|
+
Se as isWeakSet,
|
|
152
|
+
qt as isWindow
|
|
151
153
|
};
|
package/lunar/index.js
CHANGED
package/lunar/lib/Holiday.js
CHANGED
package/lunar/lib/HolidayUtil.js
CHANGED
package/lunar/lib/I18n.js
CHANGED
package/lunar/lib/JieQi.js
CHANGED
package/lunar/lib/Lunar.js
CHANGED
package/lunar/lib/LunarMonth.js
CHANGED
package/lunar/lib/LunarTime.js
CHANGED
package/lunar/lib/LunarUtil.js
CHANGED
package/lunar/lib/LunarYear.js
CHANGED
package/lunar/lib/Solar.js
CHANGED
package/lunar/lib/SolarMonth.js
CHANGED
package/lunar/lib/SolarSeason.js
CHANGED
package/lunar/lib/SolarUtil.js
CHANGED
package/lunar/lib/SolarWeek.js
CHANGED
package/lunar/lib/SolarYear.js
CHANGED
package/lunar/lib/index.js
CHANGED
package/lunar.js
CHANGED
package/math/index.js
CHANGED
package/math.js
CHANGED
package/md5/index.js
CHANGED
package/md5.js
CHANGED
package/mock/MockWebSocket.js
CHANGED
package/mock/index.js
CHANGED
package/mock.js
CHANGED
package/normalize-wheel/index.js
CHANGED
package/normalizeWheel.js
CHANGED
package/numberToChinese.js
CHANGED
package/nzh/cn.js
CHANGED
package/nzh/hk.js
CHANGED
package/nzh/index.js
CHANGED
package/nzh/nzh.js
CHANGED
package/nzh/src/autoGet.js
CHANGED
package/nzh/src/index.js
CHANGED
package/nzh/src/langs/cn_b.js
CHANGED
package/nzh/src/langs/cn_s.js
CHANGED
package/nzh/src/langs/hk_b.js
CHANGED
package/nzh/src/langs/hk_s.js
CHANGED
package/nzh/src/utils.js
CHANGED
package/nzh.js
CHANGED
package/object/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* 2026-01-04 16:21:26 */
|
|
2
|
+
import c from "lodash/isString";
|
|
3
|
+
function s(t) {
|
|
4
|
+
const r = Object.entries(t).sort((n, e) => n[0] === e[0] ? 0 : n[0] > e[0] ? 1 : -1);
|
|
5
|
+
return Object.fromEntries(r);
|
|
6
|
+
}
|
|
7
|
+
function u(t, r) {
|
|
8
|
+
const o = Object.prototype.toString.call(t);
|
|
9
|
+
return r && c(r) ? o === `[object ${r}]` : o;
|
|
10
|
+
}
|
|
11
|
+
function l(t) {
|
|
12
|
+
return t != null && Object.prototype.hasOwnProperty.call(t, "constructor");
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
l as hasOwnConstructor,
|
|
16
|
+
s as objectKeysSort,
|
|
17
|
+
u as objectPrototypeToStringCall
|
|
18
|
+
};
|
package/object.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* 2026-01-04 16:21:26 */
|
|
2
|
+
import "lodash/isString";
|
|
3
|
+
import { hasOwnConstructor as e, objectKeysSort as c, objectPrototypeToStringCall as n } from "./object/index.js";
|
|
4
|
+
export {
|
|
5
|
+
e as hasOwnConstructor,
|
|
6
|
+
c as objectKeysSort,
|
|
7
|
+
n as objectPrototypeToStringCall
|
|
8
|
+
};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@unicom-cloud/utils","version":"0.1.
|
|
1
|
+
{"name":"@unicom-cloud/utils","version":"0.1.36","dependencies":{},"peerDependencies":{"dayjs":"^1.11.19","lodash":"^4.17.21"},"main":"./index.js","type":"module","types":"types/index.d.ts","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
|
package/pinyin/index.js
CHANGED
package/pinyin/simplified.js
CHANGED