@jhqn/utils-core 0.3.3 → 0.4.0

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/README.md CHANGED
@@ -1,2 +1,3 @@
1
1
  # utils
2
+
2
3
  A collection of tool functions🧷
package/dist/index.d.ts CHANGED
@@ -5,7 +5,6 @@
5
5
  /// <reference types="dayjs/plugin/objectSupport" />
6
6
 
7
7
  import dayjs, { ConfigType, Dayjs } from "dayjs";
8
- import { detect } from "detect-browser";
9
8
 
10
9
  //#region types/index.d.ts
11
10
  /**
@@ -271,10 +270,7 @@ declare const jGroupC: (...args: any[]) => void;
271
270
  /**
272
271
  * jade console.groupEnd
273
272
  */
274
- declare const jGroupE: {
275
- (): void;
276
- (): void;
277
- };
273
+ declare const jGroupE: () => void;
278
274
  /**
279
275
  * jade console.time
280
276
  * @param str
@@ -288,10 +284,7 @@ declare const jTimeEnd: (str: string) => void;
288
284
  /**
289
285
  * jade console.clear
290
286
  */
291
- declare const jClear: {
292
- (): void;
293
- (): void;
294
- };
287
+ declare const jClear: () => void;
295
288
  //#endregion
296
289
  //#region src/console/log-dedupe.d.ts
297
290
  /**
@@ -674,7 +667,7 @@ declare const getMockDataList: <T>(data: T[], total: number, code?: number, mess
674
667
  * 检测变量类型
675
668
  * @param {any} val 检测的目标
676
669
  */
677
- declare const getVariableType: (val: any) => string | undefined;
670
+ declare const getVariableType: (val: any) => string;
678
671
  /**
679
672
  * 是否是数字
680
673
  * @param {any} val 检测的目标
@@ -902,5 +895,4 @@ declare const isValidArrRes: (res: Res<any[]>, code?: number) => boolean;
902
895
  */
903
896
  declare const isValidPageRes: (res: PageRes, code?: number) => boolean;
904
897
  //#endregion
905
- export { type Dayjs, type Dict, type HostEnv, type MaybeArray, type NullOrUndefinable, type Nullable, type Numeric, type PageReq, type PageRes, type PageResData, type PartialBy, type Res, type UnDef, type Undefinable, type VK, attachFmt, camel2Kebab, camel2Pascal, camel2Snake, camel2Title, checkImg, cnIdCard15Re, cnIdCard18Re, cnPhoneRE, cnTelRE, cnTelRE2, cnUSCIRE, currencyFmt, dateDuration, dateFmt, dayjs, detect, emailRE, filterObj, fixiOSInputAutoZoomIn, getBaseAttachUrl, getCodeOfDate, getCodeOfHour, getCodeOfMonth, getHostEnv, getMockData, getMockDataList, getVariableType, hideBankCard, hideCardNo, hideEmail, hideFirstName, hideHead, hideMiddle, hidePhone, hideSurname, hideTail, hideThird, inBrowser, isArrStr, isArray, isBigInt, isBlob, isBoolean, isDate, isDef, isEmail, isEmpty, isError, isFile, isFunction, isIdCard, isJSONStr, isMap, isNull, isNumber, isNumeric, isObject, isPhone, isPromise, isRegExp, isSet, isString, isSymbol, isTel, isURL, isUSCI, isUndefined, isValidArrRes, isValidFileType, isValidKey, isValidPageRes, isValidRes, isValidResCode, isWeakMap, isWeakSet, jClear, jDebug, jError, jGroup, jGroupC, jGroupE, jInfo, jLog, jLogDedupe, jLogOnce, jTime, jTimeEnd, jWarn, kebab2Camel, kebab2Pascal, kebab2Snake, kebab2Title, naturalSort, naturalSortBy, nonASCII, parseJSON, parseToJSON, pascal2Camel, pascal2Kebab, pascal2Snake, pascal2Title, recoverFile, replacer, resUrl, reviver, setBaseAttachUrl, snake2Camel, snake2Kebab, snake2Pascal, snake2Title, stringifyJSON, title2Camel, title2Kebab, title2Pascal, title2Snake, toThousands, userAgent, waitTime };
906
- //# sourceMappingURL=index.d.ts.map
898
+ export { type Dayjs, type Dict, type HostEnv, type MaybeArray, type NullOrUndefinable, type Nullable, type Numeric, type PageReq, type PageRes, type PageResData, type PartialBy, type Res, type UnDef, type Undefinable, type VK, attachFmt, camel2Kebab, camel2Pascal, camel2Snake, camel2Title, checkImg, cnIdCard15Re, cnIdCard18Re, cnPhoneRE, cnTelRE, cnTelRE2, cnUSCIRE, currencyFmt, dateDuration, dateFmt, dayjs, emailRE, filterObj, fixiOSInputAutoZoomIn, getBaseAttachUrl, getCodeOfDate, getCodeOfHour, getCodeOfMonth, getHostEnv, getMockData, getMockDataList, getVariableType, hideBankCard, hideCardNo, hideEmail, hideFirstName, hideHead, hideMiddle, hidePhone, hideSurname, hideTail, hideThird, inBrowser, isArrStr, isArray, isBigInt, isBlob, isBoolean, isDate, isDef, isEmail, isEmpty, isError, isFile, isFunction, isIdCard, isJSONStr, isMap, isNull, isNumber, isNumeric, isObject, isPhone, isPromise, isRegExp, isSet, isString, isSymbol, isTel, isURL, isUSCI, isUndefined, isValidArrRes, isValidFileType, isValidKey, isValidPageRes, isValidRes, isValidResCode, isWeakMap, isWeakSet, jClear, jDebug, jError, jGroup, jGroupC, jGroupE, jInfo, jLog, jLogDedupe, jLogOnce, jTime, jTimeEnd, jWarn, kebab2Camel, kebab2Pascal, kebab2Snake, kebab2Title, naturalSort, naturalSortBy, nonASCII, parseJSON, parseToJSON, pascal2Camel, pascal2Kebab, pascal2Snake, pascal2Title, recoverFile, replacer, resUrl, reviver, setBaseAttachUrl, snake2Camel, snake2Kebab, snake2Pascal, snake2Title, stringifyJSON, title2Camel, title2Kebab, title2Pascal, title2Snake, toThousands, userAgent, waitTime };