nhb-toolbox 2.6.7 → 2.6.9
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/form/guards.d.ts +26 -0
- package/dist/form/guards.d.ts.map +1 -0
- package/dist/form/guards.js +51 -0
- package/dist/form/transform.d.ts.map +1 -1
- package/dist/form/transform.js +27 -6
- package/dist/form/types.d.ts +33 -3
- package/dist/form/types.d.ts.map +1 -1
- package/dist/object/sanitize.d.ts +3 -3
- package/dist/object/sanitize.d.ts.map +1 -1
- package/dist/object/types.d.ts +3 -1
- package/dist/object/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CustomFile, FileUpload, OriginFileObj } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* * Checks if a given value is an `OriginFileObj`.
|
|
4
|
+
* @param value - The value to check.
|
|
5
|
+
* @returns `true` if the value is a valid `OriginFileObj`, otherwise `false`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function isOriginFileObj(value: unknown): value is OriginFileObj;
|
|
8
|
+
/**
|
|
9
|
+
* * Checks if a given value is a `CustomFile`.
|
|
10
|
+
* @param value - The value to check.
|
|
11
|
+
* @returns `true` if the value is a valid `CustomFile`, otherwise `false`.
|
|
12
|
+
*/
|
|
13
|
+
export declare function isCustomFile(value: unknown): value is CustomFile;
|
|
14
|
+
/**
|
|
15
|
+
* * Checks if a given value is an array of `CustomFile` objects.
|
|
16
|
+
* @param value - The value to check.
|
|
17
|
+
* @returns `true` if the value is a valid `CustomFile[]`, otherwise `false`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function isCustomFileArray(value: unknown): value is CustomFile[];
|
|
20
|
+
/**
|
|
21
|
+
* * Checks if a given value is a `FileUpload` object.
|
|
22
|
+
* @param value - The value to check.
|
|
23
|
+
* @returns `true` if the value is a valid `FileUpload`, otherwise `false`.
|
|
24
|
+
*/
|
|
25
|
+
export declare function isFileUpload(value: unknown): value is FileUpload;
|
|
26
|
+
//# sourceMappingURL=guards.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../src/form/guards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAErE;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAQtE;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAQhE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,EAAE,CAEvE;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAWhE"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isOriginFileObj = isOriginFileObj;
|
|
4
|
+
exports.isCustomFile = isCustomFile;
|
|
5
|
+
exports.isCustomFileArray = isCustomFileArray;
|
|
6
|
+
exports.isFileUpload = isFileUpload;
|
|
7
|
+
/**
|
|
8
|
+
* * Checks if a given value is an `OriginFileObj`.
|
|
9
|
+
* @param value - The value to check.
|
|
10
|
+
* @returns `true` if the value is a valid `OriginFileObj`, otherwise `false`.
|
|
11
|
+
*/
|
|
12
|
+
function isOriginFileObj(value) {
|
|
13
|
+
if (typeof value !== 'object' || value === null || Array.isArray(value)) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
const obj = value;
|
|
17
|
+
return typeof obj.uid === 'string';
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* * Checks if a given value is a `CustomFile`.
|
|
21
|
+
* @param value - The value to check.
|
|
22
|
+
* @returns `true` if the value is a valid `CustomFile`, otherwise `false`.
|
|
23
|
+
*/
|
|
24
|
+
function isCustomFile(value) {
|
|
25
|
+
if (typeof value !== 'object' || value === null || Array.isArray(value)) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
const obj = value;
|
|
29
|
+
return 'originFileObj' in obj && isOriginFileObj(obj.originFileObj);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* * Checks if a given value is an array of `CustomFile` objects.
|
|
33
|
+
* @param value - The value to check.
|
|
34
|
+
* @returns `true` if the value is a valid `CustomFile[]`, otherwise `false`.
|
|
35
|
+
*/
|
|
36
|
+
function isCustomFileArray(value) {
|
|
37
|
+
return Array.isArray(value) && value.length !== 0 && isCustomFile(value[0]);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* * Checks if a given value is a `FileUpload` object.
|
|
41
|
+
* @param value - The value to check.
|
|
42
|
+
* @returns `true` if the value is a valid `FileUpload`, otherwise `false`.
|
|
43
|
+
*/
|
|
44
|
+
function isFileUpload(value) {
|
|
45
|
+
if (typeof value !== 'object' || value === null || Array.isArray(value)) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
const obj = value;
|
|
49
|
+
return (('file' in obj && isCustomFile(obj.file)) ||
|
|
50
|
+
('fileList' in obj && isCustomFileArray(obj.fileList)));
|
|
51
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../src/form/transform.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../src/form/transform.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,aAAa,QACzD,CAAC,YACG,eAAe,CAAC,CAAC,CAAC,KAC1B,QAoIF,CAAC"}
|
package/dist/form/transform.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createControlledFormData = void 0;
|
|
4
4
|
const basics_1 = require("../array/basics");
|
|
5
5
|
const basics_2 = require("../object/basics");
|
|
6
|
+
const guards_1 = require("./guards");
|
|
6
7
|
/**
|
|
7
8
|
* * Utility to convert object into FormData in a controlled way.
|
|
8
9
|
*
|
|
@@ -28,24 +29,44 @@ const createControlledFormData = (data, configs) => {
|
|
|
28
29
|
}
|
|
29
30
|
return stringifyNested === '*';
|
|
30
31
|
};
|
|
32
|
+
/** - Helper function to check if a key matches a breakArray key. */
|
|
33
|
+
const shouldBreakArray = (fullKey) => {
|
|
34
|
+
if (Array.isArray(configs?.breakArray)) {
|
|
35
|
+
return configs?.breakArray?.some((path) => fullKey === path || fullKey.startsWith(`${path}.`));
|
|
36
|
+
}
|
|
37
|
+
return configs?.breakArray === '*';
|
|
38
|
+
};
|
|
31
39
|
const addToFormData = (key, value) => {
|
|
32
40
|
const transformedKey = (configs?.lowerCaseKeys === '*' ||
|
|
33
41
|
configs?.lowerCaseKeys?.includes(key)) ?
|
|
34
42
|
key.toLowerCase()
|
|
35
43
|
: key;
|
|
36
|
-
if (
|
|
44
|
+
if ((0, guards_1.isCustomFileArray)(value)) {
|
|
37
45
|
formData.append(transformedKey, value[0].originFileObj);
|
|
38
46
|
}
|
|
39
|
-
else if (
|
|
40
|
-
value.
|
|
41
|
-
|
|
42
|
-
}
|
|
47
|
+
else if ((0, guards_1.isFileUpload)(value)) {
|
|
48
|
+
if (value.file) {
|
|
49
|
+
formData.append(transformedKey, value.file.originFileObj);
|
|
50
|
+
}
|
|
51
|
+
if (value.fileList) {
|
|
52
|
+
formData.append(transformedKey, value.fileList[0].originFileObj);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
else if (Array.isArray(value) && !(0, basics_1.isValidEmptyArray)(value)) {
|
|
56
|
+
if (shouldBreakArray(key)) {
|
|
57
|
+
value.forEach((item, index) => {
|
|
58
|
+
addToFormData(`${transformedKey}[${index}]`, item);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
formData.append(transformedKey, JSON.stringify(value));
|
|
63
|
+
}
|
|
43
64
|
}
|
|
44
65
|
else if (typeof value === 'object' &&
|
|
45
66
|
value !== null &&
|
|
46
67
|
!(0, basics_2.isEmptyObject)(value)) {
|
|
47
68
|
if (shouldStringifyNested(key) && !shouldDotNotate(key)) {
|
|
48
|
-
formData.append(transformedKey, value);
|
|
69
|
+
formData.append(transformedKey, JSON.stringify(value));
|
|
49
70
|
}
|
|
50
71
|
else {
|
|
51
72
|
Object.entries(value).forEach(([nestedKey, nestedValue]) => {
|
package/dist/form/types.d.ts
CHANGED
|
@@ -1,16 +1,46 @@
|
|
|
1
1
|
import type { DotNotationKey } from '../object/types';
|
|
2
|
+
/** - Configuration options to control the formData. */
|
|
2
3
|
export interface FormDataConfigs<T> {
|
|
3
|
-
/** - Keys to exclude from processing. Ignored keys are ignored even if they're in other options */
|
|
4
|
+
/** - Keys to exclude from processing. Ignored keys are ignored even if they're in other options. */
|
|
4
5
|
ignoreKeys?: DotNotationKey<T>[];
|
|
5
|
-
/** - Keys to preserve even if falsy. `*` to include all keys */
|
|
6
|
+
/** - Keys to preserve even if falsy. `*` to include all keys. */
|
|
6
7
|
requiredKeys?: '*' | DotNotationKey<T>[];
|
|
7
|
-
/** - Keys to convert to lowercase. `*` to include all keys */
|
|
8
|
+
/** - Keys to convert to lowercase. `*` to include all keys. */
|
|
8
9
|
lowerCaseKeys?: '*' | DotNotationKey<T>[];
|
|
9
10
|
/** - Dot-notation paths to preserve (e.g., 'user.settings'). `*` to include all keys. In this case `user` is an object and `settings` should also be an object. If `dotNotateNested` and `stringifyNested` both have the same key(s) or `*` it will prioritize `dotNotateNested`. */
|
|
10
11
|
dotNotateNested?: '*' | DotNotationKey<T>[];
|
|
11
12
|
/** - Dot-notation paths to stringify nested objects instead of flattening or dot-notate them. Defaults to `*`, use `*` to stringify every nested object. In this case the value of the last part of the key should also be an object. If `dotNotateNested` and `stringifyNested` both have the same key(s) or `*` it will prioritize `dotNotateNested`. */
|
|
12
13
|
stringifyNested?: '*' | DotNotationKey<T>[];
|
|
14
|
+
/** - Break arrays in the format `{key[0]: value, key[0]: value,}` for specific key(s) or for all (`*`). `*` to include all keys. */
|
|
15
|
+
breakArray?: '*' | DotNotationKey<T>[];
|
|
13
16
|
/** - Whether to trim string values */
|
|
14
17
|
trimStrings?: boolean;
|
|
15
18
|
}
|
|
19
|
+
/** - Interface for file-type in some upload libraries like `FilePond` or `Ant-Design's Upload` */
|
|
20
|
+
export interface FileUpload {
|
|
21
|
+
file: CustomFile;
|
|
22
|
+
fileList: CustomFile[];
|
|
23
|
+
}
|
|
24
|
+
export interface CustomFile {
|
|
25
|
+
uid: string;
|
|
26
|
+
lastModified: number;
|
|
27
|
+
lastModifiedDate: string;
|
|
28
|
+
name: string;
|
|
29
|
+
size: number;
|
|
30
|
+
type: string;
|
|
31
|
+
percent: number;
|
|
32
|
+
originFileObj: OriginFileObj;
|
|
33
|
+
thumbUrl: string;
|
|
34
|
+
error?: FileError;
|
|
35
|
+
response?: string;
|
|
36
|
+
status?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface OriginFileObj {
|
|
39
|
+
uid: string;
|
|
40
|
+
}
|
|
41
|
+
export interface FileError {
|
|
42
|
+
status: number;
|
|
43
|
+
method: string;
|
|
44
|
+
url: string;
|
|
45
|
+
}
|
|
16
46
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/form/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/form/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EA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AM,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC7B,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,SAAS;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACZ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GenericObject,
|
|
1
|
+
import type { GenericObject, SanitizeOptions } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* * Sanitizes an object by ignoring specified keys and trimming string values based on options provided.
|
|
4
4
|
* * Also excludes nullish values (null, undefined) if specified. Always ignores empty nested object(s).
|
|
@@ -7,7 +7,7 @@ import type { GenericObject, SanitizedData, SanitizeOptions } from './types';
|
|
|
7
7
|
* @param options - Options that define which keys to ignore, whether to trim string values, and whether to exclude nullish values.
|
|
8
8
|
* @returns A new object with the specified modifications.
|
|
9
9
|
*/
|
|
10
|
-
export declare function sanitizeData<T extends GenericObject>(object: T, options?: SanitizeOptions<T>):
|
|
10
|
+
export declare function sanitizeData<T extends GenericObject>(object: T, options?: SanitizeOptions<T>): Partial<T>;
|
|
11
11
|
/**
|
|
12
12
|
* * Sanitizes an array of objects by ignoring specified keys and trimming string values based on options provided.
|
|
13
13
|
* * Also excludes nullish values (null, undefined) if specified. Always ignores empty nested object(s).
|
|
@@ -16,7 +16,7 @@ export declare function sanitizeData<T extends GenericObject>(object: T, options
|
|
|
16
16
|
* @param options - Options that define which keys to ignore, whether to trim string values, and whether to exclude nullish values.
|
|
17
17
|
* @returns A new array of objects with the specified modifications.
|
|
18
18
|
*/
|
|
19
|
-
export declare function sanitizeData<T extends GenericObject>(array: T[], options?: SanitizeOptions<T>):
|
|
19
|
+
export declare function sanitizeData<T extends GenericObject>(array: T[], options?: SanitizeOptions<T>): Partial<T>[];
|
|
20
20
|
/**
|
|
21
21
|
* * Trims all the words in a string.
|
|
22
22
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sanitize.d.ts","sourceRoot":"","sources":["../../src/object/sanitize.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"sanitize.d.ts","sourceRoot":"","sources":["../../src/object/sanitize.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAkB,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE9E;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,aAAa,EACnD,MAAM,EAAE,CAAC,EACT,OAAO,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,OAAO,CAAC,CAAC,CAAC,CAAC;AAEd;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,aAAa,EACnD,KAAK,EAAE,CAAC,EAAE,EACV,OAAO,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;AAEpD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC"}
|
package/dist/object/types.d.ts
CHANGED
|
@@ -38,7 +38,9 @@ export interface SanitizeOptions<T extends GenericObject> {
|
|
|
38
38
|
/** Whether to exclude nullish (null or undefined) values. Defaults to `false` */
|
|
39
39
|
ignoreNullish?: boolean;
|
|
40
40
|
}
|
|
41
|
-
/** - Data after sanitization.
|
|
41
|
+
/** - Data after sanitization.
|
|
42
|
+
* ! Unused
|
|
43
|
+
*/
|
|
42
44
|
export type SanitizedData<T> = {
|
|
43
45
|
[P in keyof T]?: T[P] extends GenericObject ? SanitizedData<T[P]> : T[P];
|
|
44
46
|
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