@senhainfo/shared-utils 1.0.5 → 1.0.6
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/app-log.d.ts +9 -0
- package/lib/app-log.d.ts.map +1 -1
- package/lib/app-log.js +9 -0
- package/lib/app-log.js.map +1 -1
- package/lib/assign-default-values.d.ts +17 -0
- package/lib/assign-default-values.d.ts.map +1 -0
- package/lib/assign-default-values.js +18 -0
- package/lib/assign-default-values.js.map +1 -0
- package/lib/execute-promise.d.ts +6 -0
- package/lib/execute-promise.d.ts.map +1 -1
- package/lib/execute-promise.js +1 -1
- package/lib/execute-promise.js.map +1 -1
- package/lib/format-case.d.ts +18 -0
- package/lib/format-case.d.ts.map +1 -1
- package/lib/format-case.js +18 -0
- package/lib/format-case.js.map +1 -1
- package/lib/format-text.d.ts +27 -1
- package/lib/format-text.d.ts.map +1 -1
- package/lib/format-text.js +32 -1
- package/lib/format-text.js.map +1 -1
- package/lib/get-ip-address.d.ts +5 -0
- package/lib/get-ip-address.d.ts.map +1 -1
- package/lib/get-ip-address.js +5 -0
- package/lib/get-ip-address.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/xor-encrypt.d.ts +8 -0
- package/lib/xor-encrypt.d.ts.map +1 -1
- package/lib/xor-encrypt.js +8 -0
- package/lib/xor-encrypt.js.map +1 -1
- package/package.json +1 -1
package/lib/app-log.d.ts
CHANGED
|
@@ -10,6 +10,15 @@ interface LogFileProps {
|
|
|
10
10
|
export declare class AppLog {
|
|
11
11
|
private options;
|
|
12
12
|
constructor(options?: AppLogOptions);
|
|
13
|
+
/**
|
|
14
|
+
* Save log file
|
|
15
|
+
* @param {LogFileProps} props
|
|
16
|
+
* @param {string} props.file - File name
|
|
17
|
+
* @param {string} props.message - Log message
|
|
18
|
+
* @param {string} [props.error] - Error message
|
|
19
|
+
* @param {string} [props.query] - Query string
|
|
20
|
+
* @returns {Promise<void>}
|
|
21
|
+
*/
|
|
13
22
|
save({ file, message, error, query }: LogFileProps): Promise<void>;
|
|
14
23
|
}
|
|
15
24
|
export {};
|
package/lib/app-log.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-log.d.ts","sourceRoot":"","sources":["../src/app-log.ts"],"names":[],"mappings":"AAIA,UAAU,aAAa;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,MAAM;IACjB,OAAO,CAAC,OAAO,CAEb;gBAEU,OAAO,CAAC,EAAE,aAAa;
|
|
1
|
+
{"version":3,"file":"app-log.d.ts","sourceRoot":"","sources":["../src/app-log.ts"],"names":[],"mappings":"AAIA,UAAU,aAAa;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,MAAM;IACjB,OAAO,CAAC,OAAO,CAEb;gBAEU,OAAO,CAAC,EAAE,aAAa;IAMnC;;;;;;;;OAQG;IACI,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;CAiC1E"}
|
package/lib/app-log.js
CHANGED
|
@@ -16,6 +16,15 @@ class AppLog {
|
|
|
16
16
|
Object.assign(this.options, options);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Save log file
|
|
21
|
+
* @param {LogFileProps} props
|
|
22
|
+
* @param {string} props.file - File name
|
|
23
|
+
* @param {string} props.message - Log message
|
|
24
|
+
* @param {string} [props.error] - Error message
|
|
25
|
+
* @param {string} [props.query] - Query string
|
|
26
|
+
* @returns {Promise<void>}
|
|
27
|
+
*/
|
|
19
28
|
save({ file, message, error, query }) {
|
|
20
29
|
return new Promise((resolve, reject) => {
|
|
21
30
|
const date = (0, date_fns_1.format)(new Date(), "dd/MM/yyyy HH:mm:ss");
|
package/lib/app-log.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-log.js","sourceRoot":"","sources":["../src/app-log.ts"],"names":[],"mappings":";;;;;;AAAA,uCAAkC;AAClC,sDAAyB;AACzB,0DAA6B;AAa7B,MAAa,MAAM;IAKjB,YAAY,OAAuB;QAJ3B,YAAO,GAAkB;YAC/B,OAAO,EAAE,mBAAI,CAAC,OAAO,CAAC,UAAU,CAAC;SAClC,CAAC;QAGA,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACvC,CAAC;IACH,CAAC;
|
|
1
|
+
{"version":3,"file":"app-log.js","sourceRoot":"","sources":["../src/app-log.ts"],"names":[],"mappings":";;;;;;AAAA,uCAAkC;AAClC,sDAAyB;AACzB,0DAA6B;AAa7B,MAAa,MAAM;IAKjB,YAAY,OAAuB;QAJ3B,YAAO,GAAkB;YAC/B,OAAO,EAAE,mBAAI,CAAC,OAAO,CAAC,UAAU,CAAC;SAClC,CAAC;QAGA,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACvC,CAAC;IACH,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAgB;QACvD,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,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
+
value: T[keyof T];
|
|
6
|
+
}>;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Assign default values to entity attributes
|
|
10
|
+
*
|
|
11
|
+
* @param {AssignDefaultValuesProps<T>} props
|
|
12
|
+
* @param {T} props.entity - The entity to assign default values
|
|
13
|
+
* @param {Array<{ name: keyof T, value: T[keyof T] }>} props.attributes - The attributes to assign default values
|
|
14
|
+
*/
|
|
15
|
+
export declare function assignDefaultValues<T>({ entity, attributes }: AssignDefaultValuesProps<T>): void;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=assign-default-values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assign-default-values.d.ts","sourceRoot":"","sources":["../src/assign-default-values.ts"],"names":[],"mappings":"AAAA,UAAU,wBAAwB,CAAC,CAAC;IAClC,MAAM,EAAE,CAAC,CAAC;IACV,UAAU,EAAE,KAAK,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC,CAAC;QACd,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;KACnB,CAAC,CAAC;CACJ;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC,GAAG,IAAI,CAMhG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assignDefaultValues = assignDefaultValues;
|
|
4
|
+
/**
|
|
5
|
+
* Assign default values to entity attributes
|
|
6
|
+
*
|
|
7
|
+
* @param {AssignDefaultValuesProps<T>} props
|
|
8
|
+
* @param {T} props.entity - The entity to assign default values
|
|
9
|
+
* @param {Array<{ name: keyof T, value: T[keyof T] }>} props.attributes - The attributes to assign default values
|
|
10
|
+
*/
|
|
11
|
+
function assignDefaultValues({ entity, attributes }) {
|
|
12
|
+
for (const { name, value } of attributes) {
|
|
13
|
+
if (entity[name] === undefined || entity[name] === null) {
|
|
14
|
+
entity[name] = value;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=assign-default-values.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assign-default-values.js","sourceRoot":"","sources":["../src/assign-default-values.ts"],"names":[],"mappings":";;AAeA,kDAMC;AAbD;;;;;;GAMG;AACH,SAAgB,mBAAmB,CAAI,EAAE,MAAM,EAAE,UAAU,EAA+B;IACxF,KAAK,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,UAAU,EAAE,CAAC;QACzC,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;YACxD,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;AACH,CAAC"}
|
package/lib/execute-promise.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Executes a promise and returns the result, error message and error object.
|
|
3
|
+
*
|
|
4
|
+
* @param {Promise<T>} promise - The promise to execute
|
|
5
|
+
* @returns {Promise<[T, string | null, any?]>} The result, error message and error object
|
|
6
|
+
*/
|
|
1
7
|
declare function executePromise<T>(promise: Promise<T>): Promise<[T, string | null, any?]>;
|
|
2
8
|
export { executePromise };
|
|
3
9
|
//# sourceMappingURL=execute-promise.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-promise.d.ts","sourceRoot":"","sources":["../src/execute-promise.ts"],"names":[],"mappings":"AAEA,iBAAe,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAqBzF,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"execute-promise.d.ts","sourceRoot":"","sources":["../src/execute-promise.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,iBAAe,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAqBzF,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
package/lib/execute-promise.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-promise.js","sourceRoot":"","sources":["../src/execute-promise.ts"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"execute-promise.js","sourceRoot":"","sources":["../src/execute-promise.ts"],"names":[],"mappings":";;;;;;;;;;;AA6BS,wCAAc;AA7BvB,iCAAmC;AAUnC,SAAe,cAAc,CAAI,OAAmB;;;QAClD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC;YAC7B,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAC9B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,OAAO,GAAG,+BAA+B,CAAC;YAE9C,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;gBAC3B,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;YAC1B,CAAC;YAED,IAAI,KAAK,YAAY,kBAAU,EAAE,CAAC;gBAChC,OAAO,GAAG,CAAA,MAAA,KAAK,CAAC,QAAQ,0CAAE,IAAI,CAAC,OAAO,KAAI,KAAK,CAAC,OAAO,CAAC;YAC1D,CAAC;YAED,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;CAAA"}
|
package/lib/format-case.d.ts
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
export declare class FormatCase {
|
|
2
|
+
/**
|
|
3
|
+
* Convert a string to PascalCase
|
|
4
|
+
*
|
|
5
|
+
* @param {string} text - The text to convert
|
|
6
|
+
* @returns {string} The text in PascalCase
|
|
7
|
+
*/
|
|
2
8
|
toPascalCase(text?: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Convert a string to camelCase
|
|
11
|
+
*
|
|
12
|
+
* @param {string} text - The text to convert
|
|
13
|
+
* @returns {string} The text in camelCase
|
|
14
|
+
*/
|
|
3
15
|
toCamelCase(text?: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* Convert a string to kebab-case
|
|
18
|
+
*
|
|
19
|
+
* @param {string} text - The text to convert
|
|
20
|
+
* @returns {string} The text in kebab-case
|
|
21
|
+
*/
|
|
4
22
|
toSnakeCase(text?: string): string;
|
|
5
23
|
}
|
|
6
24
|
//# sourceMappingURL=format-case.d.ts.map
|
package/lib/format-case.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-case.d.ts","sourceRoot":"","sources":["../src/format-case.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU;
|
|
1
|
+
{"version":3,"file":"format-case.d.ts","sourceRoot":"","sources":["../src/format-case.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU;IACrB;;;;;OAKG;IACI,YAAY,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM;IAW1C;;;;;OAKG;IACI,WAAW,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM;IASzC;;;;;OAKG;IACI,WAAW,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM;CAU1C"}
|
package/lib/format-case.js
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FormatCase = void 0;
|
|
4
4
|
class FormatCase {
|
|
5
|
+
/**
|
|
6
|
+
* Convert a string to PascalCase
|
|
7
|
+
*
|
|
8
|
+
* @param {string} text - The text to convert
|
|
9
|
+
* @returns {string} The text in PascalCase
|
|
10
|
+
*/
|
|
5
11
|
toPascalCase(text) {
|
|
6
12
|
if (!text) {
|
|
7
13
|
return "";
|
|
@@ -11,6 +17,12 @@ class FormatCase {
|
|
|
11
17
|
.map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
|
|
12
18
|
.join("");
|
|
13
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Convert a string to camelCase
|
|
22
|
+
*
|
|
23
|
+
* @param {string} text - The text to convert
|
|
24
|
+
* @returns {string} The text in camelCase
|
|
25
|
+
*/
|
|
14
26
|
toCamelCase(text) {
|
|
15
27
|
if (!text) {
|
|
16
28
|
return "";
|
|
@@ -18,6 +30,12 @@ class FormatCase {
|
|
|
18
30
|
const pascalCase = this.toPascalCase(text);
|
|
19
31
|
return pascalCase.charAt(0).toLowerCase() + pascalCase.slice(1);
|
|
20
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Convert a string to kebab-case
|
|
35
|
+
*
|
|
36
|
+
* @param {string} text - The text to convert
|
|
37
|
+
* @returns {string} The text in kebab-case
|
|
38
|
+
*/
|
|
21
39
|
toSnakeCase(text) {
|
|
22
40
|
if (!text) {
|
|
23
41
|
return "";
|
package/lib/format-case.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-case.js","sourceRoot":"","sources":["../src/format-case.ts"],"names":[],"mappings":";;;AAAA,MAAa,UAAU;
|
|
1
|
+
{"version":3,"file":"format-case.js","sourceRoot":"","sources":["../src/format-case.ts"],"names":[],"mappings":";;;AAAA,MAAa,UAAU;IACrB;;;;;OAKG;IACI,YAAY,CAAC,IAAa;QAC/B,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO,IAAI;aACR,KAAK,CAAC,MAAM,CAAC;aACb,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;aACzE,IAAI,CAAC,EAAE,CAAC,CAAC;IACd,CAAC;IAED;;;;;OAKG;IACI,WAAW,CAAC,IAAa;QAC9B,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QAC3C,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACI,WAAW,CAAC,IAAa;QAC9B,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO,IAAI;aACR,KAAK,CAAC,WAAW,CAAC;aAClB,IAAI,CAAC,GAAG,CAAC;aACT,WAAW,EAAE,CAAC;IACnB,CAAC;CACF;AAjDD,gCAiDC"}
|
package/lib/format-text.d.ts
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
type CapitalizeModeType = "words" | "first-letter";
|
|
2
2
|
export declare class FormatText {
|
|
3
|
+
/**
|
|
4
|
+
* Normalize a string by replacing special characters with their standard equivalents
|
|
5
|
+
*
|
|
6
|
+
* @param {string} [text] - The string to be normalized
|
|
7
|
+
* @returns {string} The normalized string
|
|
8
|
+
*/
|
|
3
9
|
normalize(text?: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* Capitalize a string
|
|
12
|
+
*
|
|
13
|
+
* @param {string} [text] - The string to be capitalized
|
|
14
|
+
* @param {CapitalizeModeType} [mode] - The mode to capitalize the string
|
|
15
|
+
* @returns {string} The capitalized string
|
|
16
|
+
*/
|
|
4
17
|
capitalize(text?: string, mode?: CapitalizeModeType): string;
|
|
5
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Remove non-alphanumeric characters from a string
|
|
20
|
+
*
|
|
21
|
+
* @param {string} [text] - The string to remove non-alphanumeric characters
|
|
22
|
+
* @returns {string} The string without non-alphanumeric characters
|
|
23
|
+
*/
|
|
24
|
+
removeNonAlphanumeric(text?: string): string;
|
|
25
|
+
/**
|
|
26
|
+
* Remove letters from a string
|
|
27
|
+
*
|
|
28
|
+
* @param {string} [text] - The string to remove letters
|
|
29
|
+
* @returns {string} The string without letters
|
|
30
|
+
*/
|
|
31
|
+
removeLetters(text?: string): string;
|
|
6
32
|
}
|
|
7
33
|
export {};
|
|
8
34
|
//# sourceMappingURL=format-text.d.ts.map
|
package/lib/format-text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-text.d.ts","sourceRoot":"","sources":["../src/format-text.ts"],"names":[],"mappings":"AAAA,KAAK,kBAAkB,GAAG,OAAO,GAAG,cAAc,CAAC;AAEnD,qBAAa,UAAU;
|
|
1
|
+
{"version":3,"file":"format-text.d.ts","sourceRoot":"","sources":["../src/format-text.ts"],"names":[],"mappings":"AAAA,KAAK,kBAAkB,GAAG,OAAO,GAAG,cAAc,CAAC;AAEnD,qBAAa,UAAU;IACrB;;;;;OAKG;IACI,SAAS,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM;IAQvC;;;;;;OAMG;IACI,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,GAAE,kBAA4B,GAAG,MAAM;IAsG5E;;;;;OAKG;IACI,qBAAqB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM;IAQnD;;;;;OAKG;IACI,aAAa,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM;CAO5C"}
|
package/lib/format-text.js
CHANGED
|
@@ -2,12 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FormatText = void 0;
|
|
4
4
|
class FormatText {
|
|
5
|
+
/**
|
|
6
|
+
* Normalize a string by replacing special characters with their standard equivalents
|
|
7
|
+
*
|
|
8
|
+
* @param {string} [text] - The string to be normalized
|
|
9
|
+
* @returns {string} The normalized string
|
|
10
|
+
*/
|
|
5
11
|
normalize(text) {
|
|
6
12
|
if (!text) {
|
|
7
13
|
return "";
|
|
8
14
|
}
|
|
9
15
|
return text.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
10
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Capitalize a string
|
|
19
|
+
*
|
|
20
|
+
* @param {string} [text] - The string to be capitalized
|
|
21
|
+
* @param {CapitalizeModeType} [mode] - The mode to capitalize the string
|
|
22
|
+
* @returns {string} The capitalized string
|
|
23
|
+
*/
|
|
11
24
|
capitalize(text, mode = "words") {
|
|
12
25
|
if (!text) {
|
|
13
26
|
return "";
|
|
@@ -86,12 +99,30 @@ class FormatText {
|
|
|
86
99
|
});
|
|
87
100
|
return capitalizedWords.join(" ").replace("`", "'");
|
|
88
101
|
}
|
|
89
|
-
|
|
102
|
+
/**
|
|
103
|
+
* Remove non-alphanumeric characters from a string
|
|
104
|
+
*
|
|
105
|
+
* @param {string} [text] - The string to remove non-alphanumeric characters
|
|
106
|
+
* @returns {string} The string without non-alphanumeric characters
|
|
107
|
+
*/
|
|
108
|
+
removeNonAlphanumeric(text) {
|
|
90
109
|
if (!text) {
|
|
91
110
|
return "";
|
|
92
111
|
}
|
|
93
112
|
return text.replace(/[^a-zA-Z0-9]/g, "");
|
|
94
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Remove letters from a string
|
|
116
|
+
*
|
|
117
|
+
* @param {string} [text] - The string to remove letters
|
|
118
|
+
* @returns {string} The string without letters
|
|
119
|
+
*/
|
|
120
|
+
removeLetters(text) {
|
|
121
|
+
if (!text) {
|
|
122
|
+
return "";
|
|
123
|
+
}
|
|
124
|
+
return text.replace(/[a-zA-Z]/g, "");
|
|
125
|
+
}
|
|
95
126
|
}
|
|
96
127
|
exports.FormatText = FormatText;
|
|
97
128
|
//# sourceMappingURL=format-text.js.map
|
package/lib/format-text.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-text.js","sourceRoot":"","sources":["../src/format-text.ts"],"names":[],"mappings":";;;AAEA,MAAa,UAAU;
|
|
1
|
+
{"version":3,"file":"format-text.js","sourceRoot":"","sources":["../src/format-text.ts"],"names":[],"mappings":";;;AAEA,MAAa,UAAU;IACrB;;;;;OAKG;IACI,SAAS,CAAC,IAAa;QAC5B,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;OAMG;IACI,UAAU,CAAC,IAAa,EAAE,OAA2B,OAAO;QACjE,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,IAAI,IAAI,KAAK,cAAc,EAAE,CAAC;YAC5B,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QACpE,CAAC;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAE9B,MAAM,gBAAgB,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YACjD,oCAAoC;YACpC,IAAI,IAAI,CAAC,KAAK,CAAC,2CAA2C,CAAC,EAAE,CAAC;gBAC5D,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;oBAChB,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;gBAC5B,CAAC;gBAED,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;YAC5B,CAAC;YAED,uCAAuC;YACvC,IAAI,IAAI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MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;oBAC9B,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAC9B,CAAC;YACJ,CAAC;YAED,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QACpE,CAAC,CAAC,CAAC;QAEH,OAAO,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACI,qBAAqB,CAAC,IAAa;QACxC,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAAC,IAAa;QAChC,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IACvC,CAAC;CACF;AAvJD,gCAuJC"}
|
package/lib/get-ip-address.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ip-address.d.ts","sourceRoot":"","sources":["../src/get-ip-address.ts"],"names":[],"mappings":"AAIA,wBAAgB,YAAY,IAAI;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CA4B7D"}
|
|
1
|
+
{"version":3,"file":"get-ip-address.d.ts","sourceRoot":"","sources":["../src/get-ip-address.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,YAAY,IAAI;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CA4B7D"}
|
package/lib/get-ip-address.js
CHANGED
|
@@ -6,6 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.getIPAddress = getIPAddress;
|
|
7
7
|
const node_os_1 = __importDefault(require("node:os"));
|
|
8
8
|
const nets = node_os_1.default.networkInterfaces();
|
|
9
|
+
/**
|
|
10
|
+
* Get the IP address of the current machine.
|
|
11
|
+
*
|
|
12
|
+
* @returns {{ ipv4: string; ipv6: string }} The IPv4 and IPv6 addresses
|
|
13
|
+
*/
|
|
9
14
|
function getIPAddress() {
|
|
10
15
|
let ipv4 = "";
|
|
11
16
|
let ipv6 = "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ip-address.js","sourceRoot":"","sources":["../src/get-ip-address.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"get-ip-address.js","sourceRoot":"","sources":["../src/get-ip-address.ts"],"names":[],"mappings":";;;;;AASA,oCA4BC;AArCD,sDAAyB;AAEzB,MAAM,IAAI,GAAG,iBAAE,CAAC,iBAAiB,EAAE,CAAC;AAEpC;;;;GAIG;AACH,SAAgB,YAAY;IAC1B,IAAI,IAAI,GAAG,EAAE,CAAC;IACd,IAAI,IAAI,GAAG,EAAE,CAAC;IAEd,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,IAAI,GAAG,KAAK,UAAU,IAAI,GAAG,KAAK,OAAO,IAAI,GAAG,KAAK,MAAM,EAAE,CAAC;YAC5D,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;YAE7B,IAAI,CAAC,UAAU,EAAE,CAAC;gBAChB,MAAM;YACR,CAAC;YAED,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;gBAC7B,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;oBACnD,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;wBAC1B,IAAI,GAAG,GAAG,CAAC,OAAO,CAAC;oBACrB,CAAC;yBAAM,CAAC;wBACN,IAAI,GAAG,GAAG,CAAC,OAAO,CAAC;oBACrB,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO;QACL,IAAI;QACJ,IAAI;KACL,CAAC;AACJ,CAAC"}
|
package/lib/index.d.ts
CHANGED
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAE9B,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAE9B,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Exceptions = void 0;
|
|
40
40
|
__exportStar(require("./app-log"), exports);
|
|
41
|
+
__exportStar(require("./assign-default-values"), exports);
|
|
41
42
|
__exportStar(require("./execute-promise"), exports);
|
|
42
43
|
__exportStar(require("./format-case"), exports);
|
|
43
44
|
__exportStar(require("./format-text"), exports);
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,oDAAkC;AAClC,gDAA8B;AAC9B,gDAA8B;AAC9B,mDAAiC;AACjC,qDAAmC;AACnC,gDAA8B;AAE9B,2DAA2C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,0DAAwC;AACxC,oDAAkC;AAClC,gDAA8B;AAC9B,gDAA8B;AAC9B,mDAAiC;AACjC,qDAAmC;AACnC,gDAA8B;AAE9B,2DAA2C"}
|
package/lib/xor-encrypt.d.ts
CHANGED
|
@@ -2,6 +2,14 @@ interface XorEncryptProps {
|
|
|
2
2
|
value?: string;
|
|
3
3
|
hash: string;
|
|
4
4
|
}
|
|
5
|
+
/**
|
|
6
|
+
* Encrypts a string using XOR encryption
|
|
7
|
+
*
|
|
8
|
+
* @param {XorEncryptProps} props - The string to encrypt and the hash to use
|
|
9
|
+
* @param {string} [props.value] - The string to encrypt
|
|
10
|
+
* @param {string} props.hash - The hash to use for encryption
|
|
11
|
+
* @returns {string} - The encrypted string
|
|
12
|
+
*/
|
|
5
13
|
export declare function xorEncrypt({ value, hash }: XorEncryptProps): string;
|
|
6
14
|
export {};
|
|
7
15
|
//# sourceMappingURL=xor-encrypt.d.ts.map
|
package/lib/xor-encrypt.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xor-encrypt.d.ts","sourceRoot":"","sources":["../src/xor-encrypt.ts"],"names":[],"mappings":"AAAA,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,eAAe,GAAG,MAAM,CAanE"}
|
|
1
|
+
{"version":3,"file":"xor-encrypt.d.ts","sourceRoot":"","sources":["../src/xor-encrypt.ts"],"names":[],"mappings":"AAAA,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,eAAe,GAAG,MAAM,CAanE"}
|
package/lib/xor-encrypt.js
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.xorEncrypt = xorEncrypt;
|
|
4
|
+
/**
|
|
5
|
+
* Encrypts a string using XOR encryption
|
|
6
|
+
*
|
|
7
|
+
* @param {XorEncryptProps} props - The string to encrypt and the hash to use
|
|
8
|
+
* @param {string} [props.value] - The string to encrypt
|
|
9
|
+
* @param {string} props.hash - The hash to use for encryption
|
|
10
|
+
* @returns {string} - The encrypted string
|
|
11
|
+
*/
|
|
4
12
|
function xorEncrypt({ value, hash }) {
|
|
5
13
|
if (!value || !value.trim() || !hash) {
|
|
6
14
|
return "";
|
package/lib/xor-encrypt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xor-encrypt.js","sourceRoot":"","sources":["../src/xor-encrypt.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"xor-encrypt.js","sourceRoot":"","sources":["../src/xor-encrypt.ts"],"names":[],"mappings":";;AAaA,gCAaC;AArBD;;;;;;;GAOG;AACH,SAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,IAAI,EAAmB;IACzD,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;QACrC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,KAAK,GAAG,KAAK;aACV,KAAK,CAAC,EAAE,CAAC;aACT,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;aAC9E,IAAI,CAAC,EAAE,CAAC,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|