mazey 3.2.0 → 3.3.2

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/lib/index.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * @param {string} bStr String
6
6
  * @returns {number} Length
7
7
  */
8
- export declare function calLongestCommonSubstring(aStr?: string, bStr?: string): number;
8
+ export declare function calLongestCommonSubstring(aStr: string, bStr: string): number;
9
9
  /**
10
10
  * @method calLongestCommonSubsequence
11
11
  * @description 计算两个字符串的最长公共子序列
@@ -13,14 +13,14 @@ export declare function calLongestCommonSubstring(aStr?: string, bStr?: string):
13
13
  * @param {string} bStr 字符串
14
14
  * @returns {number} 长度
15
15
  */
16
- export declare function calLongestCommonSubsequence(aStr?: string, bStr?: string): number;
16
+ export declare function calLongestCommonSubsequence(aStr: string, bStr: string): number;
17
17
  /**
18
18
  * @method getQueryParam
19
19
  * @description Get the query param's value of the current Web URL(`location.search`).
20
20
  * @param {string} param Query param.
21
21
  * @returns {string} value
22
22
  */
23
- export declare function getQueryParam(param?: string): string;
23
+ export declare function getQueryParam(param: string): string;
24
24
  /**
25
25
  * @method getUrlParam
26
26
  * @description Get the query param's value of the input URL.
@@ -28,7 +28,7 @@ export declare function getQueryParam(param?: string): string;
28
28
  * @param {string} param Query param.
29
29
  * @returns {string} value
30
30
  */
31
- export declare function getUrlParam(url?: string, param?: string): string;
31
+ export declare function getUrlParam(url: string, param: string): string | string[];
32
32
  /**
33
33
  * @method updateQueryParam
34
34
  * @description Update the query param's value of the input URL.
@@ -37,49 +37,49 @@ export declare function getUrlParam(url?: string, param?: string): string;
37
37
  * @param {string} value Param's value.
38
38
  * @returns {string} URL.
39
39
  */
40
- export declare function updateQueryParam(url?: string, param?: string, value?: string): string;
40
+ export declare function updateQueryParam(url: string, param: string, value: string): string;
41
41
  /**
42
42
  * @method getHashQueryParam
43
43
  * @description Get the hash query param's value of the current Web URL(`location.hash`).
44
44
  * @param {string} param Query param.
45
45
  * @returns {string} value
46
46
  */
47
- export declare function getHashQueryParam(param?: string): string;
47
+ export declare function getHashQueryParam(param: string): string;
48
48
  /**
49
49
  * @method getDomain
50
50
  * @description Get the domain of URL, and other params.
51
51
  * @param {string} url
52
52
  * @param {array} rules Object.keys(location), ['href', 'protocol', 'host', 'hostname', 'port', 'pathname', 'search', 'hash'], ['hostname', 'pathname'] = 'km.mazey.net/plugins/servlet/mobile'
53
53
  */
54
- export declare function getDomain(url?: string, rules?: string[]): string;
54
+ export declare function getDomain(url: string, rules?: string[]): string;
55
55
  /**
56
56
  * @method camelCaseToKebabCase
57
57
  * @description Transfer CamelCase to KebabCase.
58
58
  * @param {string} camelCase 'aBC' or 'ABC'
59
59
  * @returns {string} 'a-b-c'
60
60
  */
61
- export declare function camelCaseToKebabCase(camelCase?: string): string;
61
+ export declare function camelCaseToKebabCase(camelCase: string): string;
62
62
  /**
63
63
  * @method camelCase2Underscore
64
64
  * @description Transfer CamelCase to Underscore.
65
65
  * @param {string} camelCase 'aBC' or 'ABC'
66
66
  * @returns {string} 'a_b_c'
67
67
  */
68
- export declare function camelCase2Underscore(camelCase?: string): string;
68
+ export declare function camelCase2Underscore(camelCase: string): string;
69
69
  /**
70
70
  * @method mTrim
71
71
  * @description Remove leading and trailing whitespace or specified characters from string.
72
72
  * @param {string} str The string to trim.
73
73
  * @returns {string} Trimmed string.
74
74
  */
75
- export declare function mTrim(str?: string): string;
75
+ export declare function mTrim(str: string): string;
76
76
  /**
77
77
  * @method newLine
78
78
  * @description Make a newline of HTML.
79
79
  * @param {string} str The string to make a newline.
80
80
  * @returns {string} A newline with `br`.
81
81
  */
82
- export declare function newLine(str?: string): string;
82
+ export declare function newLine(str: string): string;
83
83
  /**
84
84
  * @method deepCopyObject
85
85
  * @description Clone Object deeply.
@@ -93,7 +93,7 @@ export declare function deepCopyObject(obj: any): any;
93
93
  * @param {string} str The string to check.
94
94
  * @returns {boolean} Return the result of checking.
95
95
  */
96
- export declare function isJsonString(str?: string): boolean;
96
+ export declare function isJsonString(str: string): boolean;
97
97
  /**
98
98
  * @method generateRndNum
99
99
  * @description Produce a random string of number, `generateRndNum(7)` => '7658495'.
@@ -113,7 +113,7 @@ export declare function generateUniqueNum(n?: number): string;
113
113
  * @param {number} num 浮点数
114
114
  * @param {number} fixSize 保留几位浮点数
115
115
  */
116
- export declare function floatToPercent(num?: number, fixSize?: number): string;
116
+ export declare function floatToPercent(num: number, fixSize?: number): string;
117
117
  /**
118
118
  * @method floatFixed
119
119
  * @description 浮点数保留指定位。
@@ -137,37 +137,52 @@ export declare function addClass(obj: any, cls: string): void;
137
137
  */
138
138
  export declare function removeClass(obj: any, cls: string): void;
139
139
  /**
140
- * @method throttle
141
- * @description 节流。
140
+ * EN: Throttle
141
+ *
142
+ * ZH: 节流
143
+ *
144
+ * Reference: [Lodash](https://lodash.com/docs/4.17.15#throttle)
142
145
  */
143
- export declare function throttle(func: any, wait: number, options: any): any;
146
+ export declare function throttle(func: any, wait: number, options?: {
147
+ leading?: boolean;
148
+ trailing?: boolean;
149
+ }): any;
144
150
  /**
145
- * @method debounce
146
- * @description 去抖。
151
+ * EN: Debounce
152
+ *
153
+ * ZH: 去抖
154
+ *
155
+ * Usage:
156
+ *
157
+ * ```
158
+ * const foo = debounce(() => {
159
+ * console.log('The debounced function will only be invoked in 1000 milliseconds, the other invoking will disappear during the wait time.');
160
+ * }, 1000, true);
161
+ * ```
147
162
  */
148
- export declare function debounce(func: any, wait: number, immediate: any): any;
163
+ export declare function debounce(func: any, wait: number, immediate?: any): any;
149
164
  /**
150
165
  * @method friendlyInterval
151
166
  * @description 获取间隔时间。
152
167
  * @param {number/Date} start 开始时间戳 1585325367122
153
168
  * @param {number/Date} end 结束时间戳 1585325367122
154
- * @type {string} type 返回类型 d: 2(天) text: 2 天 4 时...
169
+ * @param {string} options.type 返回类型 d: 2(天) text: 2 天 4 时...
155
170
  * @returns {String/number} 取决于 type
156
171
  */
157
- export declare function friendlyInterval(start?: number, end?: number, { type }?: {
158
- type?: string | undefined;
172
+ export declare function friendlyInterval(start?: number, end?: number, options?: {
173
+ type?: string;
159
174
  }): number | string;
160
175
  /**
161
176
  * @method isNumber
162
177
  * @description 判断是否有效数字
163
178
  * @param {*} num 被判断的值
164
- * @param {boolean} isNaNAsNumber 是否 NaN 算数字(默认不算)
165
- * @param {boolean} isUnFiniteAsNumber 是否 无限 算数字(默认不算)
179
+ * @param {boolean} options.isNaNAsNumber 是否 NaN 算数字(默认不算)
180
+ * @param {boolean} options.isUnFiniteAsNumber 是否 无限 算数字(默认不算)
166
181
  * @returns {boolean} true 是数字
167
182
  */
168
- export declare function isNumber(num: any, { isNaNAsNumber, isUnFiniteAsNumber }?: {
169
- isNaNAsNumber?: boolean | undefined;
170
- isUnFiniteAsNumber?: boolean | undefined;
183
+ export declare function isNumber(num: any, options?: {
184
+ isNaNAsNumber?: boolean;
185
+ isUnFiniteAsNumber?: boolean;
171
186
  }): boolean;
172
187
  /**
173
188
  * @method doFn
@@ -207,28 +222,28 @@ export declare function getLocalStorage(key: string): any;
207
222
  * @method loadCSS
208
223
  * @description 动态加载css文件
209
224
  * @param {string} url -- css资源路径
210
- * @param {string} id -- link标签id
225
+ * @param {string} options.id -- link标签id
211
226
  * @returns {Promise<boolean>} true -- 加载成功
212
227
  */
213
- export declare function loadCSS(url?: string, { id }?: {
214
- id?: string | undefined;
215
- }): Promise<any>;
228
+ export declare function loadCSS(url: string, options?: {
229
+ id?: string;
230
+ }): Promise<boolean | Error | any>;
216
231
  /**
217
232
  * @method loadScript
218
233
  * @description 动态加载js文件
219
234
  * @param {string} url -- js资源路径
220
- * @param {string} id -- DOM ID
221
- * @param {function} callback -- 加载后回调函数
222
- * @param {number} timeout -- 超时时长
223
- * @param {boolean} isDefer -- 是否添加 defer 标签
235
+ * @param {string} options.id -- DOM ID
236
+ * @param {function} options.callback -- 加载后回调函数
237
+ * @param {number} options.timeout -- 超时时长
238
+ * @param {boolean} options.isDefer -- 是否添加 defer 标签
224
239
  * @returns {Promise<boolean>} -- true 成功
225
240
  */
226
- export declare function loadScript(url?: string, { id, callback, timeout, isDefer }?: {
227
- id?: string | undefined;
228
- callback?: (() => void) | undefined;
229
- timeout?: number | undefined;
230
- isDefer?: boolean | undefined;
231
- }): Promise<any>;
241
+ export declare function loadScript(url: string, options?: {
242
+ id: string;
243
+ callback: (...params: any[]) => any;
244
+ timeout: number;
245
+ isDefer: boolean;
246
+ }): Promise<boolean | string | Error>;
232
247
  /**
233
248
  * @method mNow
234
249
  * @description 获取时间戳
@@ -244,13 +259,16 @@ export declare function setCookie(name: string, value: string, days: number, dom
244
259
  * @description 获取 Cookie
245
260
  */
246
261
  export declare function getCookie(name: string): string;
262
+ interface WebPerformance {
263
+ [key: string]: string | number;
264
+ }
247
265
  /**
248
266
  * @method getPerformance
249
267
  * @description 获取页面加载相关的各项数据
250
268
  * @param {boolean} camelCase -- true(默认) 以驼峰形式返回数据 false 以下划线形式返回数据
251
269
  * @returns {Promise<object>} 加载数据
252
270
  */
253
- export declare function getPerformance(camelCase?: boolean): Promise<any>;
271
+ export declare function getPerformance(camelCase?: boolean): Promise<WebPerformance | Error>;
254
272
  /**
255
273
  * @method inRate
256
274
  * @description 百分位概率
@@ -265,18 +283,55 @@ export declare function inRate(rate: number): boolean;
265
283
  */
266
284
  export declare function isSafePWAEnv(): boolean;
267
285
  /**
268
- * @method getBrowserInfo
269
- * @description 返回浏览器信息 https://github.com/JowayYoung/juejin-code/blob/master/browser-type.js
270
- * @returns {object} 浏览器信息
271
- */
272
- export declare function getBrowserInfo(): any;
286
+ * EN: Browser Information
287
+ *
288
+ * ZH: 返回浏览器信息 https://github.com/JowayYoung/juejin-code/blob/master/browser-type.js
289
+ *
290
+ * ```
291
+ * getBrowserInfo(); // {"engine":"webkit","engineVs":"537.36","platform":"desktop","supporter":"chrome","supporterVs":"85.0.4183.121","system":"windows","systemVs":"10"}
292
+ * ```
293
+ *
294
+ * | Index | Field | Description |
295
+ * | --- | --- | --- |
296
+ * | System | system | android, ios, windows, macos, linux |
297
+ * | System version | systemVs | windows: 2000, xp, 2003, vista, 7, 8, 8.1, 10 <br />macos: ... |
298
+ * | Platform | platform | desktop, mobile |
299
+ * | Engine | engine | webkit, gecko, presto, trident |
300
+ * | Engine version | engineVs | - |
301
+ * | Supporter | supporter | edge, opera, chrome, safari, firefox, iexplore |
302
+ * | Supporter version | supporterVs | - |
303
+ * | Shell | shell | (Optional) wechat, qq_browser, qq_app, uc, 360, 2345, sougou, liebao, maxthon, bilibili |
304
+ * | Shell version | shellVs | (Optional) |
305
+ * | Apple device type | appleType | (Optional) iphone, ipad, ipod, iwatch |
306
+ *
307
+ * Example: Determine the environment of the mobile QQ.
308
+ *
309
+ * ```
310
+ * const { system, shell } = getBrowserInfo();
311
+ * const isMobileQQ = ['android', 'ios'].includes(system) && ['qq_browser', 'qq_app'].includes(shell);
312
+ * ```
313
+ *
314
+ * @returns 浏览器信息
315
+ */
316
+ export declare function getBrowserInfo(): {
317
+ engine: string;
318
+ engineVs: string;
319
+ platform: string;
320
+ supporter: string;
321
+ supporterVs: string;
322
+ system: string;
323
+ systemVs: string;
324
+ shell?: string;
325
+ shellVs?: string;
326
+ appleType?: string;
327
+ };
273
328
  /**
274
329
  * @method clearHtml
275
330
  * @description 去除HTML标签
276
- * @param {string} string 带html标签的字符串
331
+ * @param {string} str 带html标签的字符串
277
332
  * @returns {string} 字符串
278
333
  */
279
- export declare function clearHtml(string?: string): string;
334
+ export declare function clearHtml(str: string): string;
280
335
  /**
281
336
  * @method cutCHSString
282
337
  * @description 截取字符串,中文算2个字节
@@ -285,20 +340,20 @@ export declare function clearHtml(string?: string): string;
285
340
  * @param {boolean} hasDot
286
341
  * @returnss {string} 返回截取后的字符串
287
342
  */
288
- export declare function cutCHSString(str?: string, len?: number, hasDot?: boolean): string;
343
+ export declare function cutCHSString(str: string, len: number, hasDot?: boolean): string;
289
344
  /**
290
345
  * @method windowLoaded
291
346
  * @description 页面加载完成
292
347
  * @param {number} timeout 超时时间 / 单位:秒
293
348
  * @returns {Promise<string>} document is loaded? 'complete' 'load' / 'timeout'
294
349
  */
295
- export declare function windowLoaded(timeout?: number): Promise<string>;
350
+ export declare function windowLoaded(timeout?: number): Promise<string | Error>;
296
351
  /**
297
352
  * EN: Add `<style>` in `<head>`.
298
353
  *
299
354
  * ZH: 添加样式标签; style: 样式标签内的字符串; id: `<style>` 标签的 `id`; 返回: 添加成功/失败.
300
355
  *
301
- * Case 1: Add the `<style>` with `id`, and repeated invoking will update the content instead of adding a new one.
356
+ * Example 1: Add the `<style>` with `id`, and repeated invoking will update the content instead of adding a new one.
302
357
  *
303
358
  * ```
304
359
  * addStyle(
@@ -318,7 +373,7 @@ export declare function windowLoaded(timeout?: number): Promise<string>;
318
373
  * // </style>
319
374
  * ```
320
375
  *
321
- * Case 2: Add the `<style>` without `id`, and repeated invoking will adding a new one.
376
+ * Example 2: Add the `<style>` without `id`, and repeated invoking will adding a new one.
322
377
  *
323
378
  * ```
324
379
  * addStyle(
@@ -339,8 +394,8 @@ export declare function windowLoaded(timeout?: number): Promise<string>;
339
394
  * @param options.id `id` in `<style>`
340
395
  * @returns Success/Fail
341
396
  */
342
- export declare function addStyle(style?: string, options?: {
343
- id: string;
397
+ export declare function addStyle(style: string, options?: {
398
+ id?: string;
344
399
  }): boolean;
345
400
  /**
346
401
  * @method genCustomConsole
@@ -349,5 +404,33 @@ export declare function addStyle(style?: string, options?: {
349
404
  * @param {function} allowFn 允许打印的判断函数
350
405
  * @returns {object} 新实例
351
406
  */
352
- export declare function genCustomConsole(prefix?: string): any;
407
+ export declare function genCustomConsole(prefix?: string): Console;
408
+ /**
409
+ * Verify the validity of axios response.
410
+ */
411
+ export declare function zAxiosIsValidRes(res: any, options?: {
412
+ validStatus: number[];
413
+ validCode: number[];
414
+ }): boolean;
415
+ /**
416
+ * Verify the validity of a non-empty array.
417
+ */
418
+ export declare function isNonEmptyArray(arr: any[]): boolean;
419
+ /**
420
+ * 语义化文件大小, 把字节转换成正常文件大小.
421
+ */
422
+ export declare function getFileSize(size: number): string;
423
+ /**
424
+ * Detect webp support.
425
+ *
426
+ * Reference: [Detect WEBP Support with JavaScript](https://davidwalsh.name/detect-webp)
427
+ */
428
+ export declare function isSupportWebp(): Promise<boolean>;
429
+ /**
430
+ * Generate a Hash Code from a string.
431
+ *
432
+ * Reference: [Generate a Hash from string in Javascript](https://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript-jquery)
433
+ */
434
+ export declare function genHashCode(str: string): number;
435
+ export {};
353
436
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,SAAK,EAAE,IAAI,SAAK,GAAG,MAAM,CAqBtE;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,SAAK,EAAE,IAAI,SAAK,GAAG,MAAM,CA8BxE;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,SAAK,GAAG,MAAM,CAQhD;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,GAAG,SAAK,EAAE,KAAK,SAAK,GAAG,MAAM,CAiBxD;AAED;;;;;;;GAOG;AACF,wBAAgB,gBAAgB,CAAC,GAAG,SAAK,EAAE,KAAK,SAAK,EAAE,KAAK,SAAK,GAAG,MAAM,CAQ1E;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,SAAK,GAAG,MAAM,CAQpD;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,SAAK,EAAE,KAAK,WAAe,GAAG,MAAM,CAOhE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,SAAK,GAAG,MAAM,CAG3D;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,SAAK,GAAG,MAAM,CAG3D;AAED;;;;;GAKG;AACH,w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