@lm_fe/utils 0.2.2 → 0.2.5
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 +1 -1
- package/dist/helper/Request/index.d.ts +1 -1
- package/dist/types.d.ts +7 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Request } from '@noah-libjs/request';
|
|
2
2
|
export * from '@noah-libjs/request';
|
|
3
|
-
export declare const rawRequest: import("
|
|
3
|
+
export declare const rawRequest: import("axios").AxiosInstance;
|
|
4
4
|
export declare const asRequest: Request;
|
|
5
5
|
export declare const fubaoRequest: Request;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import dayjs, { ConfigType, QUnitType, OpUnitType, Dayjs as Dayjs$1 } from 'dayjs';
|
|
2
2
|
export { default as dayjs } from 'dayjs';
|
|
3
|
+
import * as axios from 'axios';
|
|
3
4
|
import { AxiosRequestConfig, AxiosError, AxiosResponse, AxiosInstance } from 'axios';
|
|
4
5
|
export { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
5
6
|
import ReconnectingWebSocket from 'reconnecting-websocket';
|
|
@@ -9,6 +10,7 @@ import { FormInstance } from 'antd';
|
|
|
9
10
|
interface ICommonOption {
|
|
10
11
|
value?: any;
|
|
11
12
|
label?: string;
|
|
13
|
+
tip?: string;
|
|
12
14
|
prefix?: string;
|
|
13
15
|
sufix?: string;
|
|
14
16
|
suffix?: string;
|
|
@@ -20,6 +22,7 @@ interface ICommonOption {
|
|
|
20
22
|
id?: any;
|
|
21
23
|
text?: any;
|
|
22
24
|
code?: any;
|
|
25
|
+
disabled?: boolean;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
type PropertyKey$1 = string | number | symbol;
|
|
@@ -707,7 +710,7 @@ declare const isPromise: (value: any) => value is Promise<any>;
|
|
|
707
710
|
declare const isEmpty: (value: any) => boolean;
|
|
708
711
|
declare const isEqual: <TType>(x: TType, y: TType) => boolean;
|
|
709
712
|
|
|
710
|
-
declare function get<T = any>(value:
|
|
713
|
+
declare function get<T = any>(value: any, path: string, defaultValue?: T | undefined): T;
|
|
711
714
|
declare function identity<T>(value: T): T;
|
|
712
715
|
declare function isBoolean(value: any): value is boolean;
|
|
713
716
|
declare function isObjectLike(value: any): boolean;
|
|
@@ -765,6 +768,7 @@ declare function simple_decrypt(code: number[]): AnyObject | null;
|
|
|
765
768
|
declare function simple_encrypt_str(data: string, sp?: string): string | null;
|
|
766
769
|
declare function simple_decrypt_str(code: string, sp?: string): string | null;
|
|
767
770
|
declare function text_ellipsis(text: string, max: number): string;
|
|
771
|
+
declare function calc_number(data: AnyObject | any[] | number | string | boolean): number;
|
|
768
772
|
|
|
769
773
|
interface ILL {
|
|
770
774
|
log?(...optionalParams: any[]): void;
|
|
@@ -1124,7 +1128,7 @@ declare const codeMessage: {
|
|
|
1124
1128
|
|
|
1125
1129
|
declare function createInstance(defaultConfig?: {}): AxiosInstance;
|
|
1126
1130
|
|
|
1127
|
-
declare const rawRequest: AxiosInstance;
|
|
1131
|
+
declare const rawRequest: axios.AxiosInstance;
|
|
1128
1132
|
declare const asRequest: Request;
|
|
1129
1133
|
declare const fubaoRequest: Request;
|
|
1130
1134
|
|
|
@@ -1327,5 +1331,5 @@ declare function calc_edd_by_ntExam(checkdate: DayjsConfigType, gestationalWeek:
|
|
|
1327
1331
|
declare const calGestationalWeekByLmp: (lmp: Dayjs$1, defaultDate?: dayjs.Dayjs) => string;
|
|
1328
1332
|
declare const calGestationalWeekBySureEdd: (sureEdd: any, defaultDate?: dayjs.Dayjs) => string | number;
|
|
1329
1333
|
|
|
1330
|
-
export { ARG_URS1_KEY, ARG_URS2_KEY, AggregateError, AppEnv, BaseWsService, Browser, EMPTY_PLACEHOLDER, EnumItem, EventBus, EventEmitter, EventEmitter_Old, GetAgeByBirthDay, MyLog, ROMAN_NUMERALS, Request, TOKEN_KEY, all, alphabetical, appEnv, asRequest, assign, base64ToBinary, base64_to_image, boil, cache_fetch, calEddByLmp, calGestationalWeekByLmp, calGestationalWeekBySureEdd, cal_edd_by_lmp, calc_bmi, calc_edd_by_IVF, calc_edd_by_ntExam, callable, camel, capitalize, chain, charToUTF8, charToUnicode, clone, cloneDeep, cluster, codeMessage, compose, confirm_operation, construct, copyText, counting, createInstance, create_load_src, crush, dash, dayjs_quarter, debounce, defer, diff, diff_between, diff_hour_minute, downloadFile, draw, dyn_cb, event, expect_array, filter_obj_to_url_search, first, flat, fork, formatDate, formatDateTime, formatDateTimeNoSecond, formatRangeDate, formatRangeDateTime, formatTime, format_gp, fubaoRequest, genEnum, genHappyPath, gen_encoded_char_svg, gen_id_form_item_config, get, getBMI, getChromeVersion, getDataSource, getDictionaries, getDictionariesEnumerations, getDictionaryLabel, getDictionaryValue, getDiffYears, getDualModeOptions, getExpected, getFilledArray, getFuckTimeInterval, getFutureDate, getGesWeek, getGestationalDays, getGestationalWeekBySureEdd, getHappyConfig, getMomentObj, getMomentRange, getOptionLabel, getOptionValue, getOrderTime, getPresetOptions, getSameOptions, getSearchParamsAll, getSearchParamsValue, getSimpleOptions, getTimeSlice, get_global, get_global_happy_arg, group, guard, hasOwn, identity, image_to_base64, inRange, intersects, invert, isArray, isBoolean, isDate, isEmpty, isEqual, isFloat, isFunction, isIE, isInt, isMoment, isNil, isNull, isNumber, isObject, isObjectLike, isPrimitive, isPromise, isString, isSymbol, is_fuck_abnormal, iterate, keys, last, list, listify, load_src, lowerize, makeEventStore, map, mapEntries, mapKeys, mapValues, marshal_gestationWeek, max, memo, menopauseWeek, merge, merge_dict, merge_preset_options, min, noop, numberLikeCompare, objectify, omit, optionKey不详, optionKey其他, optionKey否, parallel, partial, partob, pascal, pick, presets_date, protocolCheck, proxied, random, randomHex, random_word, range, rawRequest, reduce, replace, replaceOrAppend, request, retry, safeExec, safeGetFromFuncOrData, safe_async_call, safe_fetch_options, safe_json_parse, safe_json_parse_arr, safe_json_stringify, safe_number_parse, scrollIntoView, select, series, set, setSearchParamsAll, setSearchParamsValue, shake, shift, shuffle, sift, simple_decrypt, simple_decrypt_str, simple_encrypt, simple_encrypt_str, size, sleep, snake, sort, speculate_on_display, sum, temp_reander, template, text_ellipsis, throttle, title, toFloat, toInt, toString, toggle, transmit_happy, transmit_happy_pre, trim, tryit as try, tryit, uid, unicodeToChar, unicode_to_UTF8, unique, unmarshal_gestationWeek, upperize, uuid, warpBase64Type, zip, zipToObject };
|
|
1334
|
+
export { ARG_URS1_KEY, ARG_URS2_KEY, AggregateError, AppEnv, BaseWsService, Browser, EMPTY_PLACEHOLDER, EnumItem, EventBus, EventEmitter, EventEmitter_Old, GetAgeByBirthDay, MyLog, ROMAN_NUMERALS, Request, TOKEN_KEY, all, alphabetical, appEnv, asRequest, assign, base64ToBinary, base64_to_image, boil, cache_fetch, calEddByLmp, calGestationalWeekByLmp, calGestationalWeekBySureEdd, cal_edd_by_lmp, calc_bmi, calc_edd_by_IVF, calc_edd_by_ntExam, calc_number, callable, camel, capitalize, chain, charToUTF8, charToUnicode, clone, cloneDeep, cluster, codeMessage, compose, confirm_operation, construct, copyText, counting, createInstance, create_load_src, crush, dash, dayjs_quarter, debounce, defer, diff, diff_between, diff_hour_minute, downloadFile, draw, dyn_cb, event, expect_array, filter_obj_to_url_search, first, flat, fork, formatDate, formatDateTime, formatDateTimeNoSecond, formatRangeDate, formatRangeDateTime, formatTime, format_gp, fubaoRequest, genEnum, genHappyPath, gen_encoded_char_svg, gen_id_form_item_config, get, getBMI, getChromeVersion, getDataSource, getDictionaries, getDictionariesEnumerations, getDictionaryLabel, getDictionaryValue, getDiffYears, getDualModeOptions, getExpected, getFilledArray, getFuckTimeInterval, getFutureDate, getGesWeek, getGestationalDays, getGestationalWeekBySureEdd, getHappyConfig, getMomentObj, getMomentRange, getOptionLabel, getOptionValue, getOrderTime, getPresetOptions, getSameOptions, getSearchParamsAll, getSearchParamsValue, getSimpleOptions, getTimeSlice, get_global, get_global_happy_arg, group, guard, hasOwn, identity, image_to_base64, inRange, intersects, invert, isArray, isBoolean, isDate, isEmpty, isEqual, isFloat, isFunction, isIE, isInt, isMoment, isNil, isNull, isNumber, isObject, isObjectLike, isPrimitive, isPromise, isString, isSymbol, is_fuck_abnormal, iterate, keys, last, list, listify, load_src, lowerize, makeEventStore, map, mapEntries, mapKeys, mapValues, marshal_gestationWeek, max, memo, menopauseWeek, merge, merge_dict, merge_preset_options, min, noop, numberLikeCompare, objectify, omit, optionKey不详, optionKey其他, optionKey否, parallel, partial, partob, pascal, pick, presets_date, protocolCheck, proxied, random, randomHex, random_word, range, rawRequest, reduce, replace, replaceOrAppend, request, retry, safeExec, safeGetFromFuncOrData, safe_async_call, safe_fetch_options, safe_json_parse, safe_json_parse_arr, safe_json_stringify, safe_number_parse, scrollIntoView, select, series, set, setSearchParamsAll, setSearchParamsValue, shake, shift, shuffle, sift, simple_decrypt, simple_decrypt_str, simple_encrypt, simple_encrypt_str, size, sleep, snake, sort, speculate_on_display, sum, temp_reander, template, text_ellipsis, throttle, title, toFloat, toInt, toString, toggle, transmit_happy, transmit_happy_pre, trim, tryit as try, tryit, uid, unicodeToChar, unicode_to_UTF8, unique, unmarshal_gestationWeek, upperize, uuid, warpBase64Type, zip, zipToObject };
|
|
1331
1335
|
export type { AnyObject, Dayjs, DayjsConfigType, EventCallback_Old, ICommonOption, IGlobalEnumItem, IRequest_AxiosRequestConfig, IRequest_ResponseError, IRequest_SpawnConfig, PartialAll, PartialSome, PropertyKey$1 as PropertyKey, TCommonFileType, TEventBus, TEventStore, TRequest_PreReq, TRequest_SimpleReq, T_FETCH_OPTIONS };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lm_fe/utils",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"keywords": [],
|
|
36
36
|
"author": "",
|
|
37
37
|
"license": "MIT",
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "41645962e95f6657643e6c6cb16320dd78f4cfcd"
|
|
39
39
|
}
|