@awesomeness-js/utils 1.1.5 → 1.1.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/index.js CHANGED
@@ -1,95 +1,97 @@
1
- /**
2
- * This file is auto-generated by the build script.
3
- * It consolidates API functions for use in the application.
4
- * Do not edit manually.
5
- */
6
- import _build from './src/build.js';
7
- import _clean_array from './src/clean/array.js';
8
- import _clean_boolean from './src/clean/boolean.js';
9
- import _clean_integer from './src/clean/integer.js';
10
- import _clean_number from './src/clean/number.js';
11
- import _clean_object from './src/clean/object.js';
12
- import _clean_string from './src/clean/string.js';
13
- import _clean_timestamp from './src/clean/timestamp.js';
14
- import _clean_uuid from './src/clean/uuid.js';
15
- import _collectImports from './src/collectImports.js';
16
- import _combineFiles from './src/combineFiles.js';
17
- import _convertBytes from './src/convertBytes.js';
18
- import _decrypt from './src/decrypt.js';
19
- import _each from './src/each.js';
20
- import _eachAsync from './src/eachAsync.js';
21
- import _encrypt from './src/encrypt.js';
22
- import _getAllFiles from './src/getAllFiles.js';
23
- import _isUUID from './src/isUUID.js';
24
- import _md5 from './src/md5.js';
25
- import _password_check from './src/password/check.js';
26
- import _password_hash from './src/password/hash.js';
27
- import _setLocalEnvs from './src/setLocalEnvs.js';
28
- import _shouldIgnore from './src/shouldIgnore.js';
29
- import _thingType from './src/thingType.js';
30
- import _toPennies from './src/toPennies.js';
31
- import _utils_buildExportsTree from './src/utils/buildExportsTree.js';
32
- import _utils_buildFileDataList from './src/utils/buildFileDataList.js';
33
- import _utils_clean from './src/utils/clean.js';
34
- import _utils_extractJSDocComment from './src/utils/extractJSDocComment.js';
35
- import _utils_generateFile from './src/utils/generateFile.js';
36
- import _utils_generateFlatExportLines from './src/utils/generateFlatExportLines.js';
37
- import _utils_generateImportStatements from './src/utils/generateImportStatements.js';
38
- import _utils_generateNamedExports from './src/utils/generateNamedExports.js';
39
- import _utils_generateNamespaceCode from './src/utils/generateNamespaceCode.js';
40
- import _utils_generateNamespaceExportLines from './src/utils/generateNamespaceExportLines.js';
41
- import _uuid from './src/uuid.js';
42
- import _validateSchema from './src/validateSchema.js';
43
-
44
- export { _build as build };
45
- export { _collectImports as collectImports };
46
- export { _combineFiles as combineFiles };
47
- export { _convertBytes as convertBytes };
48
- export { _decrypt as decrypt };
49
- export { _each as each };
50
- export { _eachAsync as eachAsync };
51
- export { _encrypt as encrypt };
52
- export { _getAllFiles as getAllFiles };
53
- export { _isUUID as isUUID };
54
- export { _md5 as md5 };
55
- export { _setLocalEnvs as setLocalEnvs };
56
- export { _shouldIgnore as shouldIgnore };
57
- export { _thingType as thingType };
58
- export { _toPennies as toPennies };
59
- export { _uuid as uuid };
60
- export { _validateSchema as validateSchema };
61
-
62
- export const clean = {
63
- array: _clean_array,
64
- boolean: _clean_boolean,
65
- integer: _clean_integer,
66
- number: _clean_number,
67
- object: _clean_object,
68
- string: _clean_string,
69
- timestamp: _clean_timestamp,
70
- uuid: _clean_uuid
71
- };
72
-
73
- export const password = {
74
- check: _password_check,
75
- hash: _password_hash
76
- };
77
-
78
- export const utils = {
79
- buildExportsTree: _utils_buildExportsTree,
80
- buildFileDataList: _utils_buildFileDataList,
81
- clean: _utils_clean,
82
- extractJSDocComment: _utils_extractJSDocComment,
83
- generateFile: _utils_generateFile,
84
- generateFlatExportLines: _utils_generateFlatExportLines,
85
- generateImportStatements: _utils_generateImportStatements,
86
- generateNamedExports: _utils_generateNamedExports,
87
- generateNamespaceCode: _utils_generateNamespaceCode,
88
- generateNamespaceExportLines: _utils_generateNamespaceExportLines
89
- };
90
-
91
-
92
- export default {
1
+ /**
2
+ * This file is auto-generated by the build script.
3
+ * It consolidates API functions for use in the application.
4
+ * Do not edit manually.
5
+ */
6
+ import _build from './src/build.js';
7
+ import _clean_array from './src/clean/array.js';
8
+ import _clean_boolean from './src/clean/boolean.js';
9
+ import _clean_integer from './src/clean/integer.js';
10
+ import _clean_number from './src/clean/number.js';
11
+ import _clean_object from './src/clean/object.js';
12
+ import _clean_string from './src/clean/string.js';
13
+ import _clean_timestamp from './src/clean/timestamp.js';
14
+ import _clean_uuid from './src/clean/uuid.js';
15
+ import _collectImports from './src/collectImports.js';
16
+ import _combineFiles from './src/combineFiles.js';
17
+ import _convertBytes from './src/convertBytes.js';
18
+ import _decrypt from './src/decrypt.js';
19
+ import _each from './src/each.js';
20
+ import _eachAsync from './src/eachAsync.js';
21
+ import _encrypt from './src/encrypt.js';
22
+ import _getAllFiles from './src/getAllFiles.js';
23
+ import _isUUID from './src/isUUID.js';
24
+ import _md5 from './src/md5.js';
25
+ import _password_check from './src/password/check.js';
26
+ import _password_hash from './src/password/hash.js';
27
+ import _setLocalEnvs from './src/setLocalEnvs.js';
28
+ import _shouldIgnore from './src/shouldIgnore.js';
29
+ import _thingType from './src/thingType.js';
30
+ import _toPennies from './src/toPennies.js';
31
+ import _utils_buildExportsTree from './src/utils/buildExportsTree.js';
32
+ import _utils_buildFileDataList from './src/utils/buildFileDataList.js';
33
+ import _utils_clean from './src/utils/clean.js';
34
+ import _utils_extractJSDocComment from './src/utils/extractJSDocComment.js';
35
+ import _utils_generateFile from './src/utils/generateFile.js';
36
+ import _utils_generateFlatExportLines from './src/utils/generateFlatExportLines.js';
37
+ import _utils_generateImportStatements from './src/utils/generateImportStatements.js';
38
+ import _utils_generateNamedExports from './src/utils/generateNamedExports.js';
39
+ import _utils_generateNamespaceCode from './src/utils/generateNamespaceCode.js';
40
+ import _utils_generateNamespaceExportLines from './src/utils/generateNamespaceExportLines.js';
41
+ import _uuid from './src/uuid.js';
42
+ import _validateSchema from './src/validateSchema.js';
43
+ import _wait from './src/wait.js';
44
+
45
+ export { _build as build };
46
+ export { _collectImports as collectImports };
47
+ export { _combineFiles as combineFiles };
48
+ export { _convertBytes as convertBytes };
49
+ export { _decrypt as decrypt };
50
+ export { _each as each };
51
+ export { _eachAsync as eachAsync };
52
+ export { _encrypt as encrypt };
53
+ export { _getAllFiles as getAllFiles };
54
+ export { _isUUID as isUUID };
55
+ export { _md5 as md5 };
56
+ export { _setLocalEnvs as setLocalEnvs };
57
+ export { _shouldIgnore as shouldIgnore };
58
+ export { _thingType as thingType };
59
+ export { _toPennies as toPennies };
60
+ export { _uuid as uuid };
61
+ export { _validateSchema as validateSchema };
62
+ export { _wait as wait };
63
+
64
+ export const clean = {
65
+ array: _clean_array,
66
+ boolean: _clean_boolean,
67
+ integer: _clean_integer,
68
+ number: _clean_number,
69
+ object: _clean_object,
70
+ string: _clean_string,
71
+ timestamp: _clean_timestamp,
72
+ uuid: _clean_uuid
73
+ };
74
+
75
+ export const password = {
76
+ check: _password_check,
77
+ hash: _password_hash
78
+ };
79
+
80
+ export const utils = {
81
+ buildExportsTree: _utils_buildExportsTree,
82
+ buildFileDataList: _utils_buildFileDataList,
83
+ clean: _utils_clean,
84
+ extractJSDocComment: _utils_extractJSDocComment,
85
+ generateFile: _utils_generateFile,
86
+ generateFlatExportLines: _utils_generateFlatExportLines,
87
+ generateImportStatements: _utils_generateImportStatements,
88
+ generateNamedExports: _utils_generateNamedExports,
89
+ generateNamespaceCode: _utils_generateNamespaceCode,
90
+ generateNamespaceExportLines: _utils_generateNamespaceExportLines
91
+ };
92
+
93
+
94
+ export default {
93
95
  /**
94
96
  * Builds a file from the specified source directory and writes it to the destination file.
95
97
  *
@@ -101,19 +103,19 @@ export default {
101
103
  * @param {boolean} [options.includeComments=true] - Whether to include comments in the generated file.
102
104
  * @param {boolean} [options.dts=false] - Whether to generate TypeScript declaration files.
103
105
  * @returns {Promise<boolean>} A promise that resolves to true when the build is complete.
104
- */
105
- build: _build,
106
- collectImports: _collectImports,
107
- combineFiles: _combineFiles,
106
+ */
107
+ build: _build,
108
+ collectImports: _collectImports,
109
+ combineFiles: _combineFiles,
108
110
  /**
109
111
  * Converts a given number of bytes into a more readable string format with appropriate units.
110
112
  *
111
113
  * @param {number} bytes - The number of bytes to convert.
112
114
  * @param {number} [precision=2] - The number of decimal places to include in the result.
113
115
  * @returns {string} The converted bytes in a string format with appropriate units.
114
- */
115
- convertBytes: _convertBytes,
116
- decrypt: _decrypt,
116
+ */
117
+ convertBytes: _convertBytes,
118
+ decrypt: _decrypt,
117
119
  /**
118
120
  * Iterates over elements of an array or properties of an object, invoking a callback for each element/property.
119
121
  * The iteration stops if the callback returns `false`.
@@ -122,43 +124,44 @@ export default {
122
124
  * @param {Object|Array} objectOrArray - The object or array to iterate over.
123
125
  * @param {Function} callback - The function to invoke per iteration. It is invoked with two arguments: (value, key/index).
124
126
  * @returns {void}
125
- */
126
- each: _each,
127
- eachAsync: _eachAsync,
128
- encrypt: _encrypt,
129
- getAllFiles: _getAllFiles,
130
- isUUID: _isUUID,
131
- md5: _md5,
132
- setLocalEnvs: _setLocalEnvs,
133
- shouldIgnore: _shouldIgnore,
134
- thingType: _thingType,
135
- toPennies: _toPennies,
136
- uuid: _uuid,
137
- validateSchema: _validateSchema,
138
- clean: {
139
- array: _clean_array,
140
- boolean: _clean_boolean,
141
- integer: _clean_integer,
142
- number: _clean_number,
143
- object: _clean_object,
144
- string: _clean_string,
145
- timestamp: _clean_timestamp,
146
- uuid: _clean_uuid,
147
- },
148
- password: {
149
- check: _password_check,
150
- hash: _password_hash,
151
- },
152
- utils: {
153
- buildExportsTree: _utils_buildExportsTree,
154
- buildFileDataList: _utils_buildFileDataList,
155
- clean: _utils_clean,
156
- extractJSDocComment: _utils_extractJSDocComment,
157
- generateFile: _utils_generateFile,
158
- generateFlatExportLines: _utils_generateFlatExportLines,
159
- generateImportStatements: _utils_generateImportStatements,
160
- generateNamedExports: _utils_generateNamedExports,
161
- generateNamespaceCode: _utils_generateNamespaceCode,
162
- generateNamespaceExportLines: _utils_generateNamespaceExportLines,
163
- },
127
+ */
128
+ each: _each,
129
+ eachAsync: _eachAsync,
130
+ encrypt: _encrypt,
131
+ getAllFiles: _getAllFiles,
132
+ isUUID: _isUUID,
133
+ md5: _md5,
134
+ setLocalEnvs: _setLocalEnvs,
135
+ shouldIgnore: _shouldIgnore,
136
+ thingType: _thingType,
137
+ toPennies: _toPennies,
138
+ uuid: _uuid,
139
+ validateSchema: _validateSchema,
140
+ wait: _wait,
141
+ clean: {
142
+ array: _clean_array,
143
+ boolean: _clean_boolean,
144
+ integer: _clean_integer,
145
+ number: _clean_number,
146
+ object: _clean_object,
147
+ string: _clean_string,
148
+ timestamp: _clean_timestamp,
149
+ uuid: _clean_uuid,
150
+ },
151
+ password: {
152
+ check: _password_check,
153
+ hash: _password_hash,
154
+ },
155
+ utils: {
156
+ buildExportsTree: _utils_buildExportsTree,
157
+ buildFileDataList: _utils_buildFileDataList,
158
+ clean: _utils_clean,
159
+ extractJSDocComment: _utils_extractJSDocComment,
160
+ generateFile: _utils_generateFile,
161
+ generateFlatExportLines: _utils_generateFlatExportLines,
162
+ generateImportStatements: _utils_generateImportStatements,
163
+ generateNamedExports: _utils_generateNamedExports,
164
+ generateNamespaceCode: _utils_generateNamespaceCode,
165
+ generateNamespaceExportLines: _utils_generateNamespaceExportLines,
166
+ },
164
167
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awesomeness-js/utils",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Awesomeness - Utils",
5
5
  "repository": {
6
6
  "type": "git",
package/schemas.js CHANGED
@@ -1,16 +1,16 @@
1
- /**
2
- * This file is auto-generated by the build script.
3
- * It consolidates API functions for use in the application.
4
- * Do not edit manually.
5
- */
6
- import _schema1 from './schemas/schema1.js';
7
- import _schema2 from './schemas/schema2.js';
8
-
9
- export { _schema1 as schema1 };
10
- export { _schema2 as schema2 };
11
-
12
-
13
- export default {
14
- schema1: _schema1,
15
- schema2: _schema2,
1
+ /**
2
+ * This file is auto-generated by the build script.
3
+ * It consolidates API functions for use in the application.
4
+ * Do not edit manually.
5
+ */
6
+ import _schema1 from './schemas/schema1.js';
7
+ import _schema2 from './schemas/schema2.js';
8
+
9
+ export { _schema1 as schema1 };
10
+ export { _schema2 as schema2 };
11
+
12
+
13
+ export default {
14
+ schema1: _schema1,
15
+ schema2: _schema2,
16
16
  };
package/types/build.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export default build;
2
- declare function build({ src, dest, exportRoots, ignore, includeComments, dts, useTabs, }?: {
3
- src?: string;
4
- dest?: string;
5
- exportRoots?: boolean;
6
- ignore?: any[];
7
- includeComments?: boolean;
8
- dts?: boolean;
9
- useTabs?: boolean;
10
- }): Promise<boolean>;
1
+ export default build;
2
+ declare function build({ src, dest, exportRoots, ignore, includeComments, dts, useTabs, }?: {
3
+ src?: string;
4
+ dest?: string;
5
+ exportRoots?: boolean;
6
+ ignore?: any[];
7
+ includeComments?: boolean;
8
+ dts?: boolean;
9
+ useTabs?: boolean;
10
+ }): Promise<boolean>;
@@ -1,2 +1,2 @@
1
- declare const _default: (arr: any, schema?: {}) => any[];
2
- export default _default;
1
+ declare const _default: (arr: any, schema?: {}) => any[];
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: (obj: any, schema: any) => {};
2
- export default _default;
1
+ declare const _default: (obj: any, schema: any) => {};
2
+ export default _default;
@@ -1,8 +1,10 @@
1
- export default function cleanString(x: any, { required, minLength, maxLength, allowHtml, allowScripts, validValues }?: {
2
- required?: boolean;
3
- minLength?: boolean;
4
- maxLength?: boolean;
5
- allowHtml?: boolean;
6
- allowScripts?: boolean;
7
- validValues?: boolean;
8
- }): string;
1
+ export default function cleanString(x: any, { required, minLength, maxLength, allowHtml, allowScripts, validValues, format, pattern }?: {
2
+ required?: boolean;
3
+ minLength?: boolean;
4
+ maxLength?: boolean;
5
+ allowHtml?: boolean;
6
+ allowScripts?: boolean;
7
+ validValues?: boolean;
8
+ format?: boolean;
9
+ pattern?: boolean;
10
+ }): string;
@@ -1,6 +1,6 @@
1
- export default run;
2
- declare function run(filePath: any, { returnCode, jsMaps, cssMaps }?: {
3
- returnCode?: boolean;
4
- jsMaps?: {};
5
- cssMaps?: {};
6
- }): any[];
1
+ export default run;
2
+ declare function run(filePath: any, { returnCode, jsMaps, cssMaps }?: {
3
+ returnCode?: boolean;
4
+ jsMaps?: {};
5
+ cssMaps?: {};
6
+ }): any[];
@@ -1,8 +1,8 @@
1
- export default combineFiles;
2
- declare function combineFiles(dir: any, fileType: any, { minify, processContent, }?: {
3
- minify?: boolean;
4
- processContent?: ({ content, path }: {
5
- content: any;
6
- path: any;
7
- }) => any;
8
- }): string;
1
+ export default combineFiles;
2
+ declare function combineFiles(dir: any, fileType: any, { minify, processContent, }?: {
3
+ minify?: boolean;
4
+ processContent?: ({ content, path }: {
5
+ content: any;
6
+ path: any;
7
+ }) => any;
8
+ }): string;
package/types/index.d.ts CHANGED
@@ -1,95 +1,97 @@
1
- /**
2
- * This file is auto-generated by the build script.
3
- * It consolidates API type declarations for use in the application.
4
- * Do not edit manually.
5
- */
6
- import type _build from './build';
7
- import type _clean_array from './clean/array';
8
- import type _clean_boolean from './clean/boolean';
9
- import type _clean_integer from './clean/integer';
10
- import type _clean_number from './clean/number';
11
- import type _clean_object from './clean/object';
12
- import type _clean_string from './clean/string';
13
- import type _clean_timestamp from './clean/timestamp';
14
- import type _clean_uuid from './clean/uuid';
15
- import type _collectImports from './collectImports';
16
- import type _combineFiles from './combineFiles';
17
- import type _convertBytes from './convertBytes';
18
- import type _decrypt from './decrypt';
19
- import type _each from './each';
20
- import type _eachAsync from './eachAsync';
21
- import type _encrypt from './encrypt';
22
- import type _getAllFiles from './getAllFiles';
23
- import type _isUUID from './isUUID';
24
- import type _md5 from './md5';
25
- import type _password_check from './password/check';
26
- import type _password_hash from './password/hash';
27
- import type _setLocalEnvs from './setLocalEnvs';
28
- import type _shouldIgnore from './shouldIgnore';
29
- import type _thingType from './thingType';
30
- import type _toPennies from './toPennies';
31
- import type _utils_buildExportsTree from './utils/buildExportsTree';
32
- import type _utils_buildFileDataList from './utils/buildFileDataList';
33
- import type _utils_clean from './utils/clean';
34
- import type _utils_extractJSDocComment from './utils/extractJSDocComment';
35
- import type _utils_generateFile from './utils/generateFile';
36
- import type _utils_generateFlatExportLines from './utils/generateFlatExportLines';
37
- import type _utils_generateImportStatements from './utils/generateImportStatements';
38
- import type _utils_generateNamedExports from './utils/generateNamedExports';
39
- import type _utils_generateNamespaceCode from './utils/generateNamespaceCode';
40
- import type _utils_generateNamespaceExportLines from './utils/generateNamespaceExportLines';
41
- import type _uuid from './uuid';
42
- import type _validateSchema from './validateSchema';
43
-
44
- export declare const build: typeof _build;
45
- export declare const collectImports: typeof _collectImports;
46
- export declare const combineFiles: typeof _combineFiles;
47
- export declare const convertBytes: typeof _convertBytes;
48
- export declare const decrypt: typeof _decrypt;
49
- export declare const each: typeof _each;
50
- export declare const eachAsync: typeof _eachAsync;
51
- export declare const encrypt: typeof _encrypt;
52
- export declare const getAllFiles: typeof _getAllFiles;
53
- export declare const isUUID: typeof _isUUID;
54
- export declare const md5: typeof _md5;
55
- export declare const setLocalEnvs: typeof _setLocalEnvs;
56
- export declare const shouldIgnore: typeof _shouldIgnore;
57
- export declare const thingType: typeof _thingType;
58
- export declare const toPennies: typeof _toPennies;
59
- export declare const uuid: typeof _uuid;
60
- export declare const validateSchema: typeof _validateSchema;
61
-
62
- export declare const clean: {
63
- array: typeof _clean_array;
64
- boolean: typeof _clean_boolean;
65
- integer: typeof _clean_integer;
66
- number: typeof _clean_number;
67
- object: typeof _clean_object;
68
- string: typeof _clean_string;
69
- timestamp: typeof _clean_timestamp;
70
- uuid: typeof _clean_uuid;
71
- };
72
-
73
- export declare const password: {
74
- check: typeof _password_check;
75
- hash: typeof _password_hash;
76
- };
77
-
78
- export declare const utils: {
79
- buildExportsTree: typeof _utils_buildExportsTree;
80
- buildFileDataList: typeof _utils_buildFileDataList;
81
- clean: typeof _utils_clean;
82
- extractJSDocComment: typeof _utils_extractJSDocComment;
83
- generateFile: typeof _utils_generateFile;
84
- generateFlatExportLines: typeof _utils_generateFlatExportLines;
85
- generateImportStatements: typeof _utils_generateImportStatements;
86
- generateNamedExports: typeof _utils_generateNamedExports;
87
- generateNamespaceCode: typeof _utils_generateNamespaceCode;
88
- generateNamespaceExportLines: typeof _utils_generateNamespaceExportLines;
89
- };
90
-
91
-
92
- declare const _default: {
1
+ /**
2
+ * This file is auto-generated by the build script.
3
+ * It consolidates API type declarations for use in the application.
4
+ * Do not edit manually.
5
+ */
6
+ import type _build from './build';
7
+ import type _clean_array from './clean/array';
8
+ import type _clean_boolean from './clean/boolean';
9
+ import type _clean_integer from './clean/integer';
10
+ import type _clean_number from './clean/number';
11
+ import type _clean_object from './clean/object';
12
+ import type _clean_string from './clean/string';
13
+ import type _clean_timestamp from './clean/timestamp';
14
+ import type _clean_uuid from './clean/uuid';
15
+ import type _collectImports from './collectImports';
16
+ import type _combineFiles from './combineFiles';
17
+ import type _convertBytes from './convertBytes';
18
+ import type _decrypt from './decrypt';
19
+ import type _each from './each';
20
+ import type _eachAsync from './eachAsync';
21
+ import type _encrypt from './encrypt';
22
+ import type _getAllFiles from './getAllFiles';
23
+ import type _isUUID from './isUUID';
24
+ import type _md5 from './md5';
25
+ import type _password_check from './password/check';
26
+ import type _password_hash from './password/hash';
27
+ import type _setLocalEnvs from './setLocalEnvs';
28
+ import type _shouldIgnore from './shouldIgnore';
29
+ import type _thingType from './thingType';
30
+ import type _toPennies from './toPennies';
31
+ import type _utils_buildExportsTree from './utils/buildExportsTree';
32
+ import type _utils_buildFileDataList from './utils/buildFileDataList';
33
+ import type _utils_clean from './utils/clean';
34
+ import type _utils_extractJSDocComment from './utils/extractJSDocComment';
35
+ import type _utils_generateFile from './utils/generateFile';
36
+ import type _utils_generateFlatExportLines from './utils/generateFlatExportLines';
37
+ import type _utils_generateImportStatements from './utils/generateImportStatements';
38
+ import type _utils_generateNamedExports from './utils/generateNamedExports';
39
+ import type _utils_generateNamespaceCode from './utils/generateNamespaceCode';
40
+ import type _utils_generateNamespaceExportLines from './utils/generateNamespaceExportLines';
41
+ import type _uuid from './uuid';
42
+ import type _validateSchema from './validateSchema';
43
+ import type _wait from './wait';
44
+
45
+ export declare const build: typeof _build;
46
+ export declare const collectImports: typeof _collectImports;
47
+ export declare const combineFiles: typeof _combineFiles;
48
+ export declare const convertBytes: typeof _convertBytes;
49
+ export declare const decrypt: typeof _decrypt;
50
+ export declare const each: typeof _each;
51
+ export declare const eachAsync: typeof _eachAsync;
52
+ export declare const encrypt: typeof _encrypt;
53
+ export declare const getAllFiles: typeof _getAllFiles;
54
+ export declare const isUUID: typeof _isUUID;
55
+ export declare const md5: typeof _md5;
56
+ export declare const setLocalEnvs: typeof _setLocalEnvs;
57
+ export declare const shouldIgnore: typeof _shouldIgnore;
58
+ export declare const thingType: typeof _thingType;
59
+ export declare const toPennies: typeof _toPennies;
60
+ export declare const uuid: typeof _uuid;
61
+ export declare const validateSchema: typeof _validateSchema;
62
+ export declare const wait: typeof _wait;
63
+
64
+ export declare const clean: {
65
+ array: typeof _clean_array;
66
+ boolean: typeof _clean_boolean;
67
+ integer: typeof _clean_integer;
68
+ number: typeof _clean_number;
69
+ object: typeof _clean_object;
70
+ string: typeof _clean_string;
71
+ timestamp: typeof _clean_timestamp;
72
+ uuid: typeof _clean_uuid;
73
+ };
74
+
75
+ export declare const password: {
76
+ check: typeof _password_check;
77
+ hash: typeof _password_hash;
78
+ };
79
+
80
+ export declare const utils: {
81
+ buildExportsTree: typeof _utils_buildExportsTree;
82
+ buildFileDataList: typeof _utils_buildFileDataList;
83
+ clean: typeof _utils_clean;
84
+ extractJSDocComment: typeof _utils_extractJSDocComment;
85
+ generateFile: typeof _utils_generateFile;
86
+ generateFlatExportLines: typeof _utils_generateFlatExportLines;
87
+ generateImportStatements: typeof _utils_generateImportStatements;
88
+ generateNamedExports: typeof _utils_generateNamedExports;
89
+ generateNamespaceCode: typeof _utils_generateNamespaceCode;
90
+ generateNamespaceExportLines: typeof _utils_generateNamespaceExportLines;
91
+ };
92
+
93
+
94
+ declare const _default: {
93
95
  /**
94
96
  * Builds a file from the specified source directory and writes it to the destination file.
95
97
  *
@@ -101,19 +103,19 @@ declare const _default: {
101
103
  * @param {boolean} [options.includeComments=true] - Whether to include comments in the generated file.
102
104
  * @param {boolean} [options.dts=false] - Whether to generate TypeScript declaration files.
103
105
  * @returns {Promise<boolean>} A promise that resolves to true when the build is complete.
104
- */
105
- build: typeof _build;
106
- collectImports: typeof _collectImports;
107
- combineFiles: typeof _combineFiles;
106
+ */
107
+ build: typeof _build;
108
+ collectImports: typeof _collectImports;
109
+ combineFiles: typeof _combineFiles;
108
110
  /**
109
111
  * Converts a given number of bytes into a more readable string format with appropriate units.
110
112
  *
111
113
  * @param {number} bytes - The number of bytes to convert.
112
114
  * @param {number} [precision=2] - The number of decimal places to include in the result.
113
115
  * @returns {string} The converted bytes in a string format with appropriate units.
114
- */
115
- convertBytes: typeof _convertBytes;
116
- decrypt: typeof _decrypt;
116
+ */
117
+ convertBytes: typeof _convertBytes;
118
+ decrypt: typeof _decrypt;
117
119
  /**
118
120
  * Iterates over elements of an array or properties of an object, invoking a callback for each element/property.
119
121
  * The iteration stops if the callback returns `false`.
@@ -122,45 +124,46 @@ declare const _default: {
122
124
  * @param {Object|Array} objectOrArray - The object or array to iterate over.
123
125
  * @param {Function} callback - The function to invoke per iteration. It is invoked with two arguments: (value, key/index).
124
126
  * @returns {void}
125
- */
126
- each: typeof _each;
127
- eachAsync: typeof _eachAsync;
128
- encrypt: typeof _encrypt;
129
- getAllFiles: typeof _getAllFiles;
130
- isUUID: typeof _isUUID;
131
- md5: typeof _md5;
132
- setLocalEnvs: typeof _setLocalEnvs;
133
- shouldIgnore: typeof _shouldIgnore;
134
- thingType: typeof _thingType;
135
- toPennies: typeof _toPennies;
136
- uuid: typeof _uuid;
137
- validateSchema: typeof _validateSchema;
138
- clean: {
139
- array: typeof _clean_array,
140
- boolean: typeof _clean_boolean,
141
- integer: typeof _clean_integer,
142
- number: typeof _clean_number,
143
- object: typeof _clean_object,
144
- string: typeof _clean_string,
145
- timestamp: typeof _clean_timestamp,
146
- uuid: typeof _clean_uuid,
147
- },
148
- password: {
149
- check: typeof _password_check,
150
- hash: typeof _password_hash,
151
- },
152
- utils: {
153
- buildExportsTree: typeof _utils_buildExportsTree,
154
- buildFileDataList: typeof _utils_buildFileDataList,
155
- clean: typeof _utils_clean,
156
- extractJSDocComment: typeof _utils_extractJSDocComment,
157
- generateFile: typeof _utils_generateFile,
158
- generateFlatExportLines: typeof _utils_generateFlatExportLines,
159
- generateImportStatements: typeof _utils_generateImportStatements,
160
- generateNamedExports: typeof _utils_generateNamedExports,
161
- generateNamespaceCode: typeof _utils_generateNamespaceCode,
162
- generateNamespaceExportLines: typeof _utils_generateNamespaceExportLines,
163
- },
164
- };
165
-
166
- export default _default;
127
+ */
128
+ each: typeof _each;
129
+ eachAsync: typeof _eachAsync;
130
+ encrypt: typeof _encrypt;
131
+ getAllFiles: typeof _getAllFiles;
132
+ isUUID: typeof _isUUID;
133
+ md5: typeof _md5;
134
+ setLocalEnvs: typeof _setLocalEnvs;
135
+ shouldIgnore: typeof _shouldIgnore;
136
+ thingType: typeof _thingType;
137
+ toPennies: typeof _toPennies;
138
+ uuid: typeof _uuid;
139
+ validateSchema: typeof _validateSchema;
140
+ wait: typeof _wait;
141
+ clean: {
142
+ array: typeof _clean_array,
143
+ boolean: typeof _clean_boolean,
144
+ integer: typeof _clean_integer,
145
+ number: typeof _clean_number,
146
+ object: typeof _clean_object,
147
+ string: typeof _clean_string,
148
+ timestamp: typeof _clean_timestamp,
149
+ uuid: typeof _clean_uuid,
150
+ },
151
+ password: {
152
+ check: typeof _password_check,
153
+ hash: typeof _password_hash,
154
+ },
155
+ utils: {
156
+ buildExportsTree: typeof _utils_buildExportsTree,
157
+ buildFileDataList: typeof _utils_buildFileDataList,
158
+ clean: typeof _utils_clean,
159
+ extractJSDocComment: typeof _utils_extractJSDocComment,
160
+ generateFile: typeof _utils_generateFile,
161
+ generateFlatExportLines: typeof _utils_generateFlatExportLines,
162
+ generateImportStatements: typeof _utils_generateImportStatements,
163
+ generateNamedExports: typeof _utils_generateNamedExports,
164
+ generateNamespaceCode: typeof _utils_generateNamespaceCode,
165
+ generateNamespaceExportLines: typeof _utils_generateNamespaceExportLines,
166
+ },
167
+ };
168
+
169
+ export default _default;
@@ -1 +1 @@
1
- export default function shouldIgnore(filePath: any, ignorePatterns: any): any;
1
+ export default function shouldIgnore(filePath: any, ignorePatterns: any): any;
@@ -1,12 +1,12 @@
1
- export default function buildFileDataList({ src, ignore, includeComments }: {
2
- src: any;
3
- ignore: any;
4
- includeComments: any;
5
- }): {
6
- normalizedFile: any;
7
- parts: any;
8
- functionName: any;
9
- importVarName: string;
10
- importPath: string;
11
- jsDocComment: string;
12
- }[];
1
+ export default function buildFileDataList({ src, ignore, includeComments }: {
2
+ src: any;
3
+ ignore: any;
4
+ includeComments: any;
5
+ }): {
6
+ normalizedFile: any;
7
+ parts: any;
8
+ functionName: any;
9
+ importVarName: string;
10
+ importPath: string;
11
+ jsDocComment: string;
12
+ }[];
@@ -1,19 +1,19 @@
1
- declare namespace _default {
2
- export { cleanArray as array };
3
- export { cleanObject as object };
4
- export { cleanBoolean as boolean };
5
- export { cleanInteger as integer };
6
- export { cleanNumber as number };
7
- export { cleanString as string };
8
- export { cleanTimestamp as timestamp };
9
- export { cleanUUID as uuid };
10
- }
11
- export default _default;
12
- declare function cleanArray(arr: any, schema?: {}): any[];
13
- declare function cleanObject(obj: any, schema: any): {};
14
- import cleanBoolean from '../clean/boolean.js';
15
- import cleanInteger from '../clean/integer.js';
16
- import cleanNumber from '../clean/number.js';
17
- import cleanString from '../clean/string.js';
18
- import cleanTimestamp from '../clean/timestamp.js';
19
- import cleanUUID from '../clean/uuid.js';
1
+ declare namespace _default {
2
+ export { cleanArray as array };
3
+ export { cleanObject as object };
4
+ export { cleanBoolean as boolean };
5
+ export { cleanInteger as integer };
6
+ export { cleanNumber as number };
7
+ export { cleanString as string };
8
+ export { cleanTimestamp as timestamp };
9
+ export { cleanUUID as uuid };
10
+ }
11
+ export default _default;
12
+ declare function cleanArray(arr: any, schema?: {}): any[];
13
+ declare function cleanObject(obj: any, schema: any): {};
14
+ import cleanBoolean from '../clean/boolean.js';
15
+ import cleanInteger from '../clean/integer.js';
16
+ import cleanNumber from '../clean/number.js';
17
+ import cleanString from '../clean/string.js';
18
+ import cleanTimestamp from '../clean/timestamp.js';
19
+ import cleanUUID from '../clean/uuid.js';
@@ -1,8 +1,8 @@
1
- export default function generateFile({ src, exportRoots, ignore, includeComments, dts, useTabs }: {
2
- src: any;
3
- exportRoots: any;
4
- ignore: any;
5
- includeComments: any;
6
- dts: any;
7
- useTabs?: boolean;
8
- }): string;
1
+ export default function generateFile({ src, exportRoots, ignore, includeComments, dts, useTabs }: {
2
+ src: any;
3
+ exportRoots: any;
4
+ ignore: any;
5
+ includeComments: any;
6
+ dts: any;
7
+ useTabs?: boolean;
8
+ }): string;
@@ -1,7 +1,7 @@
1
- export default function generateFlatExportLines({ flatExports, exportRoots, includeComments, dts, useTabs }: {
2
- flatExports: any;
3
- exportRoots: any;
4
- includeComments: any;
5
- dts: any;
6
- useTabs?: boolean;
7
- }): string;
1
+ export default function generateFlatExportLines({ flatExports, exportRoots, includeComments, dts, useTabs }: {
2
+ flatExports: any;
3
+ exportRoots: any;
4
+ includeComments: any;
5
+ dts: any;
6
+ useTabs?: boolean;
7
+ }): string;
@@ -1,5 +1,5 @@
1
- export default function generateImportStatements({ fileDataList, dts, src }: {
2
- fileDataList: any;
3
- dts: any;
4
- src: any;
5
- }): string;
1
+ export default function generateImportStatements({ fileDataList, dts, src }: {
2
+ fileDataList: any;
3
+ dts: any;
4
+ src: any;
5
+ }): string;
@@ -1,7 +1,7 @@
1
- export default function generateNamedExports({ flatExports, exportRoots, nestedExports, dts, useTabs }: {
2
- flatExports: any;
3
- exportRoots: any;
4
- nestedExports: any;
5
- dts: any;
6
- useTabs?: boolean;
7
- }): string;
1
+ export default function generateNamedExports({ flatExports, exportRoots, nestedExports, dts, useTabs }: {
2
+ flatExports: any;
3
+ exportRoots: any;
4
+ nestedExports: any;
5
+ dts: any;
6
+ useTabs?: boolean;
7
+ }): string;
@@ -1,7 +1,7 @@
1
- export default function generateNamespaceCode({ nsObj, indentLevel, includeComments, dts, useTabs }: {
2
- nsObj: any;
3
- indentLevel: any;
4
- includeComments: any;
5
- dts: any;
6
- useTabs?: boolean;
7
- }): string;
1
+ export default function generateNamespaceCode({ nsObj, indentLevel, includeComments, dts, useTabs }: {
2
+ nsObj: any;
3
+ indentLevel: any;
4
+ includeComments: any;
5
+ dts: any;
6
+ useTabs?: boolean;
7
+ }): string;
@@ -1,6 +1,6 @@
1
- export default function generateNamespaceExportLines({ nestedExports, includeComments, dts, useTabs }: {
2
- nestedExports: any;
3
- includeComments: any;
4
- dts: any;
5
- useTabs?: boolean;
6
- }): string;
1
+ export default function generateNamespaceExportLines({ nestedExports, includeComments, dts, useTabs }: {
2
+ nestedExports: any;
3
+ includeComments: any;
4
+ dts: any;
5
+ useTabs?: boolean;
6
+ }): string;
@@ -0,0 +1 @@
1
+ export default function wait(ms: any): Promise<any>;