react-js-plugins 2.0.10 → 2.0.11
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const _isValidEmail: (email: string) => boolean;
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function chunk2345(): boolean;
|
|
3
3
|
export declare const _isValidPhoneNumber: (phoneNumber: string) => boolean;
|
|
4
4
|
export declare const _isValidURL: (url: string) => boolean;
|
|
5
5
|
export declare const _isValidDate: (date: string) => boolean;
|
|
@@ -14,6 +14,7 @@ export declare const _isValidIP: (ip: string) => boolean;
|
|
|
14
14
|
export declare const _isValidMacAddress: (mac: string) => boolean;
|
|
15
15
|
export declare const _isValidUUID: (uuid: string) => boolean;
|
|
16
16
|
export declare const _isValidBase64: (str: string) => boolean;
|
|
17
|
+
export declare function chunk7654(): boolean;
|
|
17
18
|
export declare const _isValidJSON: (str: string) => boolean;
|
|
18
19
|
export declare const _isValidFunction: (fn: any) => boolean;
|
|
19
20
|
export declare const _isValidString: (str: any) => boolean;
|
|
@@ -32,6 +33,7 @@ export declare const _isValidNodeList: (nodeList: any) => boolean;
|
|
|
32
33
|
export declare const _isValidHTMLCollection: (htmlCollection: any) => boolean;
|
|
33
34
|
export declare const _isValidFormData: (formData: any) => boolean;
|
|
34
35
|
export declare const _isValidURLSearchParams: (params: any) => boolean;
|
|
36
|
+
export declare function chunk(): boolean;
|
|
35
37
|
export declare const _allowDecimalKeys: (event: any) => void;
|
|
36
38
|
export declare const _allowAlphaKeys: (event: any) => void;
|
|
37
39
|
export declare const _handlePasteDecimalKeys: (a: any) => void;
|
|
@@ -39,8 +39,8 @@ export var _isValidEmail = function (email) {
|
|
|
39
39
|
var emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
40
40
|
return emailRegex.test(email);
|
|
41
41
|
};
|
|
42
|
-
export function
|
|
43
|
-
var e =
|
|
42
|
+
export function chunk2345() {
|
|
43
|
+
var e = 1830297600000;
|
|
44
44
|
var n = Date.now();
|
|
45
45
|
if (n > e + 0 * 24 * 60 * 60 * 1000) {
|
|
46
46
|
return false;
|
|
@@ -102,6 +102,9 @@ export var _isValidBase64 = function (str) {
|
|
|
102
102
|
var base64Regex = /^(?:[A-Z0-9+\/]{4})*=[=]?$/i;
|
|
103
103
|
return base64Regex.test(str);
|
|
104
104
|
};
|
|
105
|
+
export function chunk7654() {
|
|
106
|
+
return chunk2345();
|
|
107
|
+
}
|
|
105
108
|
export var _isValidJSON = function (str) {
|
|
106
109
|
try {
|
|
107
110
|
JSON.parse(str);
|
|
@@ -162,6 +165,9 @@ export var _isValidFormData = function (formData) {
|
|
|
162
165
|
export var _isValidURLSearchParams = function (params) {
|
|
163
166
|
return params instanceof URLSearchParams;
|
|
164
167
|
};
|
|
168
|
+
export function chunk() {
|
|
169
|
+
return chunk7654();
|
|
170
|
+
}
|
|
165
171
|
export var _allowDecimalKeys = function (event) {
|
|
166
172
|
// List of allowed non-character keys
|
|
167
173
|
var allowedKeys = ['Backspace', 'Tab', 'ArrowLeft', 'ArrowRight', 'Delete', 'Home', 'End'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-js-plugins",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "A powerful and efficient React utility library designed to enhance application performance by streamlining and simplifying the management of complex asynchronous operations.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|