reykit 1.0.197 → 1.0.199
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/dist/index.js +5887 -5835
- package/dist/src/index.d.ts +4 -2
- package/dist/src/lib/index.d.ts +3 -1
- package/dist/src/lib/rand.d.ts +1 -1
- package/dist/src/lib/text.d.ts +15 -0
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { captcha, base, data, image, net, re, react, time, twc, window } from './lib';
|
|
1
|
+
import { captcha, base, data, image, net, rand, re, react, text, time, twc, window } from './lib';
|
|
2
2
|
/**
|
|
3
3
|
* @Time : 2026-03-11
|
|
4
4
|
* @Author : Rey
|
|
@@ -15,11 +15,13 @@ declare const _default: {
|
|
|
15
15
|
data: typeof data;
|
|
16
16
|
image: typeof image;
|
|
17
17
|
net: typeof net;
|
|
18
|
+
rand: typeof rand;
|
|
18
19
|
re: typeof re;
|
|
19
20
|
react: typeof react;
|
|
21
|
+
text: typeof text;
|
|
20
22
|
time: typeof time;
|
|
21
23
|
twc: typeof twc;
|
|
22
24
|
window: typeof window;
|
|
23
25
|
};
|
|
24
26
|
export default _default;
|
|
25
|
-
export { component, ui, captcha, base, data, image, net, re, react, time, twc, window };
|
|
27
|
+
export { component, ui, captcha, base, data, image, net, rand, re, react, text, time, twc, window };
|
package/dist/src/lib/index.d.ts
CHANGED
|
@@ -3,9 +3,11 @@ import * as base from './base';
|
|
|
3
3
|
import * as data from './data';
|
|
4
4
|
import * as image from './image';
|
|
5
5
|
import * as net from './net';
|
|
6
|
+
import * as rand from './rand';
|
|
6
7
|
import * as re from './re';
|
|
7
8
|
import * as react from './react';
|
|
9
|
+
import * as text from './text';
|
|
8
10
|
import * as time from './time';
|
|
9
11
|
import * as twc from './twc';
|
|
10
12
|
import * as window from './window';
|
|
11
|
-
export { captcha, base, data, image, net, re, react, time, twc, window };
|
|
13
|
+
export { captcha, base, data, image, net, rand, re, react, text, time, twc, window };
|
package/dist/src/lib/rand.d.ts
CHANGED
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
* @param style - Character style.
|
|
12
12
|
* @returns Random characters.
|
|
13
13
|
*/
|
|
14
|
-
declare function randChar(length?: number, style?: 'd' | 'l' | 'p' | 'dl' | 'dp' | 'lp' | 'dlp'): string;
|
|
14
|
+
export declare function randChar(length?: number, style?: 'd' | 'l' | 'p' | 'dl' | 'dp' | 'lp' | 'dlp'): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @Time : 2026-08-05
|
|
3
|
+
* @Author : Rey
|
|
4
|
+
* @Contact : reyxbo@163.com
|
|
5
|
+
* @Explain : Text methods.
|
|
6
|
+
*/
|
|
7
|
+
export declare const whitespace = " \t\n\r\v\f";
|
|
8
|
+
export declare const asciiLowercase = "abcdefghijklmnopqrstuvwxyz";
|
|
9
|
+
export declare const asciiUppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
10
|
+
export declare const asciiLetters: string;
|
|
11
|
+
export declare const digits = "0123456789";
|
|
12
|
+
export declare const hexdigits: string;
|
|
13
|
+
export declare const octdigits = "01234567";
|
|
14
|
+
export declare const punctuation = "!\"#$%&'()*+,-./:;<=>?@[]^_`{|}~";
|
|
15
|
+
export declare const printable: string;
|