@awesomeness-js/utils 1.1.22 → 1.2.0
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 +32 -0
- package/package.json +1 -1
- package/schemas/schema1.js +1 -8
- package/schemas/schema2.js +1 -8
- package/src/random/array.js +46 -0
- package/src/random/arrayValue.js +5 -0
- package/src/random/boolean.js +5 -0
- package/src/random/integer.js +8 -0
- package/src/random/number.js +17 -0
- package/src/random/object.js +46 -0
- package/src/random/string.js +10 -0
- package/src/random/timestamp.js +15 -0
- package/src/random/uuid.js +7 -0
- package/src/utils/clean.js +66 -73
- package/test/js/abc.test.js +1 -3
- package/tests/clean/array.test.js +1 -3
- package/tests/clean/boolean.test.js +1 -3
- package/tests/clean/integer.test.js +1 -3
- package/tests/clean/number.test.js +1 -3
- package/tests/clean/object.test.js +3 -4
- package/tests/clean/string.test.js +1 -3
- package/tests/clean/timestamp.test.js +1 -3
- package/tests/clean/uuid.test.js +1 -3
- package/tests/collectImports.test.js +1 -3
- package/tests/combineFiles.test.js +1 -3
- package/tests/convertBytes.test.js +1 -3
- package/tests/env.test.js +1 -3
- package/tests/example.test.js +1 -3
- package/tests/fileList.test.js +1 -3
- package/tests/hash-and-encrypt.test.js +1 -3
- package/tests/md5.test.js +1 -3
- package/tests/namedExports.test.js +1 -3
- package/tests/random.test.js +110 -0
- package/tests/uuid.test.js +1 -3
- package/tests/validateSchema.test.js +1 -3
- package/types/build.d.ts +10 -10
- package/types/clean/array.d.ts +6 -6
- package/types/clean/boolean.d.ts +3 -3
- package/types/clean/buffer.d.ts +12 -12
- package/types/clean/custom.d.ts +4 -4
- package/types/clean/file.d.ts +11 -11
- package/types/clean/integer.d.ts +6 -6
- package/types/clean/number.d.ts +8 -8
- package/types/clean/object.d.ts +6 -6
- package/types/clean/string.d.ts +10 -10
- package/types/clean/timestamp.d.ts +5 -5
- package/types/clean/uuid.d.ts +3 -3
- package/types/collectImports.d.ts +6 -6
- package/types/combineFiles.d.ts +8 -8
- package/types/convertBytes.d.ts +8 -8
- package/types/decrypt.d.ts +1 -1
- package/types/each.d.ts +10 -10
- package/types/eachAsync.d.ts +1 -1
- package/types/encrypt.d.ts +5 -5
- package/types/getAllFiles.d.ts +6 -6
- package/types/index.d.ts +150 -150
- package/types/isUUID.d.ts +1 -1
- package/types/md5.d.ts +2 -2
- package/types/password/check.d.ts +1 -1
- package/types/password/hash.d.ts +1 -1
- package/types/setLocalEnvs.d.ts +2 -2
- package/types/shouldIgnore.d.ts +1 -1
- package/types/thingType.d.ts +2 -2
- package/types/toPennies.d.ts +1 -1
- package/types/utils/buildExportsTree.d.ts +4 -4
- package/types/utils/buildFileDataList.d.ts +12 -12
- package/types/utils/clean.d.ts +27 -27
- package/types/utils/extractJSDocComment.d.ts +1 -1
- package/types/utils/generateFile.d.ts +8 -8
- package/types/utils/generateFlatExportLines.d.ts +7 -7
- package/types/utils/generateImportStatements.d.ts +5 -5
- package/types/utils/generateNamedExports.d.ts +7 -7
- package/types/utils/generateNamespaceCode.d.ts +7 -7
- package/types/utils/generateNamespaceExportLines.d.ts +6 -6
- package/types/uuid.d.ts +2 -2
- package/types/validateSchema.d.ts +2 -2
- package/types/wait.d.ts +1 -1
package/types/index.d.ts
CHANGED
|
@@ -1,101 +1,101 @@
|
|
|
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_buffer from './clean/buffer';
|
|
10
|
-
import type _clean_custom from './clean/custom';
|
|
11
|
-
import type _clean_integer from './clean/integer';
|
|
12
|
-
import type _clean_number from './clean/number';
|
|
13
|
-
import type _clean_object from './clean/object';
|
|
14
|
-
import type _clean_string from './clean/string';
|
|
15
|
-
import type _clean_timestamp from './clean/timestamp';
|
|
16
|
-
import type _clean_uuid from './clean/uuid';
|
|
17
|
-
import type _collectImports from './collectImports';
|
|
18
|
-
import type _combineFiles from './combineFiles';
|
|
19
|
-
import type _convertBytes from './convertBytes';
|
|
20
|
-
import type _decrypt from './decrypt';
|
|
21
|
-
import type _each from './each';
|
|
22
|
-
import type _eachAsync from './eachAsync';
|
|
23
|
-
import type _encrypt from './encrypt';
|
|
24
|
-
import type _getAllFiles from './getAllFiles';
|
|
25
|
-
import type _isUUID from './isUUID';
|
|
26
|
-
import type _md5 from './md5';
|
|
27
|
-
import type _password_check from './password/check';
|
|
28
|
-
import type _password_hash from './password/hash';
|
|
29
|
-
import type _setLocalEnvs from './setLocalEnvs';
|
|
30
|
-
import type _shouldIgnore from './shouldIgnore';
|
|
31
|
-
import type _thingType from './thingType';
|
|
32
|
-
import type _toPennies from './toPennies';
|
|
33
|
-
import type _utils_buildExportsTree from './utils/buildExportsTree';
|
|
34
|
-
import type _utils_buildFileDataList from './utils/buildFileDataList';
|
|
35
|
-
import type _utils_clean from './utils/clean';
|
|
36
|
-
import type _utils_extractJSDocComment from './utils/extractJSDocComment';
|
|
37
|
-
import type _utils_generateFile from './utils/generateFile';
|
|
38
|
-
import type _utils_generateFlatExportLines from './utils/generateFlatExportLines';
|
|
39
|
-
import type _utils_generateImportStatements from './utils/generateImportStatements';
|
|
40
|
-
import type _utils_generateNamedExports from './utils/generateNamedExports';
|
|
41
|
-
import type _utils_generateNamespaceCode from './utils/generateNamespaceCode';
|
|
42
|
-
import type _utils_generateNamespaceExportLines from './utils/generateNamespaceExportLines';
|
|
43
|
-
import type _uuid from './uuid';
|
|
44
|
-
import type _validateSchema from './validateSchema';
|
|
45
|
-
import type _wait from './wait';
|
|
46
|
-
|
|
47
|
-
export declare const build: typeof _build;
|
|
48
|
-
export declare const collectImports: typeof _collectImports;
|
|
49
|
-
export declare const combineFiles: typeof _combineFiles;
|
|
50
|
-
export declare const convertBytes: typeof _convertBytes;
|
|
51
|
-
export declare const decrypt: typeof _decrypt;
|
|
52
|
-
export declare const each: typeof _each;
|
|
53
|
-
export declare const eachAsync: typeof _eachAsync;
|
|
54
|
-
export declare const encrypt: typeof _encrypt;
|
|
55
|
-
export declare const getAllFiles: typeof _getAllFiles;
|
|
56
|
-
export declare const isUUID: typeof _isUUID;
|
|
57
|
-
export declare const md5: typeof _md5;
|
|
58
|
-
export declare const setLocalEnvs: typeof _setLocalEnvs;
|
|
59
|
-
export declare const shouldIgnore: typeof _shouldIgnore;
|
|
60
|
-
export declare const thingType: typeof _thingType;
|
|
61
|
-
export declare const toPennies: typeof _toPennies;
|
|
62
|
-
export declare const uuid: typeof _uuid;
|
|
63
|
-
export declare const validateSchema: typeof _validateSchema;
|
|
64
|
-
export declare const wait: typeof _wait;
|
|
65
|
-
|
|
66
|
-
export declare const clean: {
|
|
67
|
-
array: typeof _clean_array;
|
|
68
|
-
boolean: typeof _clean_boolean;
|
|
69
|
-
buffer: typeof _clean_buffer;
|
|
70
|
-
custom: typeof _clean_custom;
|
|
71
|
-
integer: typeof _clean_integer;
|
|
72
|
-
number: typeof _clean_number;
|
|
73
|
-
object: typeof _clean_object;
|
|
74
|
-
string: typeof _clean_string;
|
|
75
|
-
timestamp: typeof _clean_timestamp;
|
|
76
|
-
uuid: typeof _clean_uuid;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export declare const password: {
|
|
80
|
-
check: typeof _password_check;
|
|
81
|
-
hash: typeof _password_hash;
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export declare const utils: {
|
|
85
|
-
buildExportsTree: typeof _utils_buildExportsTree;
|
|
86
|
-
buildFileDataList: typeof _utils_buildFileDataList;
|
|
87
|
-
clean: typeof _utils_clean;
|
|
88
|
-
extractJSDocComment: typeof _utils_extractJSDocComment;
|
|
89
|
-
generateFile: typeof _utils_generateFile;
|
|
90
|
-
generateFlatExportLines: typeof _utils_generateFlatExportLines;
|
|
91
|
-
generateImportStatements: typeof _utils_generateImportStatements;
|
|
92
|
-
generateNamedExports: typeof _utils_generateNamedExports;
|
|
93
|
-
generateNamespaceCode: typeof _utils_generateNamespaceCode;
|
|
94
|
-
generateNamespaceExportLines: typeof _utils_generateNamespaceExportLines;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
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_buffer from './clean/buffer';
|
|
10
|
+
import type _clean_custom from './clean/custom';
|
|
11
|
+
import type _clean_integer from './clean/integer';
|
|
12
|
+
import type _clean_number from './clean/number';
|
|
13
|
+
import type _clean_object from './clean/object';
|
|
14
|
+
import type _clean_string from './clean/string';
|
|
15
|
+
import type _clean_timestamp from './clean/timestamp';
|
|
16
|
+
import type _clean_uuid from './clean/uuid';
|
|
17
|
+
import type _collectImports from './collectImports';
|
|
18
|
+
import type _combineFiles from './combineFiles';
|
|
19
|
+
import type _convertBytes from './convertBytes';
|
|
20
|
+
import type _decrypt from './decrypt';
|
|
21
|
+
import type _each from './each';
|
|
22
|
+
import type _eachAsync from './eachAsync';
|
|
23
|
+
import type _encrypt from './encrypt';
|
|
24
|
+
import type _getAllFiles from './getAllFiles';
|
|
25
|
+
import type _isUUID from './isUUID';
|
|
26
|
+
import type _md5 from './md5';
|
|
27
|
+
import type _password_check from './password/check';
|
|
28
|
+
import type _password_hash from './password/hash';
|
|
29
|
+
import type _setLocalEnvs from './setLocalEnvs';
|
|
30
|
+
import type _shouldIgnore from './shouldIgnore';
|
|
31
|
+
import type _thingType from './thingType';
|
|
32
|
+
import type _toPennies from './toPennies';
|
|
33
|
+
import type _utils_buildExportsTree from './utils/buildExportsTree';
|
|
34
|
+
import type _utils_buildFileDataList from './utils/buildFileDataList';
|
|
35
|
+
import type _utils_clean from './utils/clean';
|
|
36
|
+
import type _utils_extractJSDocComment from './utils/extractJSDocComment';
|
|
37
|
+
import type _utils_generateFile from './utils/generateFile';
|
|
38
|
+
import type _utils_generateFlatExportLines from './utils/generateFlatExportLines';
|
|
39
|
+
import type _utils_generateImportStatements from './utils/generateImportStatements';
|
|
40
|
+
import type _utils_generateNamedExports from './utils/generateNamedExports';
|
|
41
|
+
import type _utils_generateNamespaceCode from './utils/generateNamespaceCode';
|
|
42
|
+
import type _utils_generateNamespaceExportLines from './utils/generateNamespaceExportLines';
|
|
43
|
+
import type _uuid from './uuid';
|
|
44
|
+
import type _validateSchema from './validateSchema';
|
|
45
|
+
import type _wait from './wait';
|
|
46
|
+
|
|
47
|
+
export declare const build: typeof _build;
|
|
48
|
+
export declare const collectImports: typeof _collectImports;
|
|
49
|
+
export declare const combineFiles: typeof _combineFiles;
|
|
50
|
+
export declare const convertBytes: typeof _convertBytes;
|
|
51
|
+
export declare const decrypt: typeof _decrypt;
|
|
52
|
+
export declare const each: typeof _each;
|
|
53
|
+
export declare const eachAsync: typeof _eachAsync;
|
|
54
|
+
export declare const encrypt: typeof _encrypt;
|
|
55
|
+
export declare const getAllFiles: typeof _getAllFiles;
|
|
56
|
+
export declare const isUUID: typeof _isUUID;
|
|
57
|
+
export declare const md5: typeof _md5;
|
|
58
|
+
export declare const setLocalEnvs: typeof _setLocalEnvs;
|
|
59
|
+
export declare const shouldIgnore: typeof _shouldIgnore;
|
|
60
|
+
export declare const thingType: typeof _thingType;
|
|
61
|
+
export declare const toPennies: typeof _toPennies;
|
|
62
|
+
export declare const uuid: typeof _uuid;
|
|
63
|
+
export declare const validateSchema: typeof _validateSchema;
|
|
64
|
+
export declare const wait: typeof _wait;
|
|
65
|
+
|
|
66
|
+
export declare const clean: {
|
|
67
|
+
array: typeof _clean_array;
|
|
68
|
+
boolean: typeof _clean_boolean;
|
|
69
|
+
buffer: typeof _clean_buffer;
|
|
70
|
+
custom: typeof _clean_custom;
|
|
71
|
+
integer: typeof _clean_integer;
|
|
72
|
+
number: typeof _clean_number;
|
|
73
|
+
object: typeof _clean_object;
|
|
74
|
+
string: typeof _clean_string;
|
|
75
|
+
timestamp: typeof _clean_timestamp;
|
|
76
|
+
uuid: typeof _clean_uuid;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export declare const password: {
|
|
80
|
+
check: typeof _password_check;
|
|
81
|
+
hash: typeof _password_hash;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export declare const utils: {
|
|
85
|
+
buildExportsTree: typeof _utils_buildExportsTree;
|
|
86
|
+
buildFileDataList: typeof _utils_buildFileDataList;
|
|
87
|
+
clean: typeof _utils_clean;
|
|
88
|
+
extractJSDocComment: typeof _utils_extractJSDocComment;
|
|
89
|
+
generateFile: typeof _utils_generateFile;
|
|
90
|
+
generateFlatExportLines: typeof _utils_generateFlatExportLines;
|
|
91
|
+
generateImportStatements: typeof _utils_generateImportStatements;
|
|
92
|
+
generateNamedExports: typeof _utils_generateNamedExports;
|
|
93
|
+
generateNamespaceCode: typeof _utils_generateNamespaceCode;
|
|
94
|
+
generateNamespaceExportLines: typeof _utils_generateNamespaceExportLines;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
declare const _default: {
|
|
99
99
|
/**
|
|
100
100
|
* Builds a file from the specified source directory and writes it to the destination file.
|
|
101
101
|
*
|
|
@@ -107,19 +107,19 @@ declare const _default: {
|
|
|
107
107
|
* @param {boolean} [options.includeComments=true] - Whether to include comments in the generated file.
|
|
108
108
|
* @param {boolean} [options.dts=false] - Whether to generate TypeScript declaration files.
|
|
109
109
|
* @returns {Promise<boolean>} A promise that resolves to true when the build is complete.
|
|
110
|
-
*/
|
|
111
|
-
build: typeof _build;
|
|
112
|
-
collectImports: typeof _collectImports;
|
|
113
|
-
combineFiles: typeof _combineFiles;
|
|
110
|
+
*/
|
|
111
|
+
build: typeof _build;
|
|
112
|
+
collectImports: typeof _collectImports;
|
|
113
|
+
combineFiles: typeof _combineFiles;
|
|
114
114
|
/**
|
|
115
115
|
* Converts a given number of bytes into a more readable string format with appropriate units.
|
|
116
116
|
*
|
|
117
117
|
* @param {number} bytes - The number of bytes to convert.
|
|
118
118
|
* @param {number} [precision=2] - The number of decimal places to include in the result.
|
|
119
119
|
* @returns {string} The converted bytes in a string format with appropriate units.
|
|
120
|
-
*/
|
|
121
|
-
convertBytes: typeof _convertBytes;
|
|
122
|
-
decrypt: typeof _decrypt;
|
|
120
|
+
*/
|
|
121
|
+
convertBytes: typeof _convertBytes;
|
|
122
|
+
decrypt: typeof _decrypt;
|
|
123
123
|
/**
|
|
124
124
|
* Iterates over elements of an array or properties of an object, invoking a callback for each element/property.
|
|
125
125
|
* The iteration stops if the callback returns `false`.
|
|
@@ -128,48 +128,48 @@ declare const _default: {
|
|
|
128
128
|
* @param {Object|Array} objectOrArray - The object or array to iterate over.
|
|
129
129
|
* @param {Function} callback - The function to invoke per iteration. It is invoked with two arguments: (value, key/index).
|
|
130
130
|
* @returns {void}
|
|
131
|
-
*/
|
|
132
|
-
each: typeof _each;
|
|
133
|
-
eachAsync: typeof _eachAsync;
|
|
134
|
-
encrypt: typeof _encrypt;
|
|
135
|
-
getAllFiles: typeof _getAllFiles;
|
|
136
|
-
isUUID: typeof _isUUID;
|
|
137
|
-
md5: typeof _md5;
|
|
138
|
-
setLocalEnvs: typeof _setLocalEnvs;
|
|
139
|
-
shouldIgnore: typeof _shouldIgnore;
|
|
140
|
-
thingType: typeof _thingType;
|
|
141
|
-
toPennies: typeof _toPennies;
|
|
142
|
-
uuid: typeof _uuid;
|
|
143
|
-
validateSchema: typeof _validateSchema;
|
|
144
|
-
wait: typeof _wait;
|
|
145
|
-
clean: {
|
|
146
|
-
array: typeof _clean_array,
|
|
147
|
-
boolean: typeof _clean_boolean,
|
|
148
|
-
buffer: typeof _clean_buffer,
|
|
149
|
-
custom: typeof _clean_custom,
|
|
150
|
-
integer: typeof _clean_integer,
|
|
151
|
-
number: typeof _clean_number,
|
|
152
|
-
object: typeof _clean_object,
|
|
153
|
-
string: typeof _clean_string,
|
|
154
|
-
timestamp: typeof _clean_timestamp,
|
|
155
|
-
uuid: typeof _clean_uuid,
|
|
156
|
-
},
|
|
157
|
-
password: {
|
|
158
|
-
check: typeof _password_check,
|
|
159
|
-
hash: typeof _password_hash,
|
|
160
|
-
},
|
|
161
|
-
utils: {
|
|
162
|
-
buildExportsTree: typeof _utils_buildExportsTree,
|
|
163
|
-
buildFileDataList: typeof _utils_buildFileDataList,
|
|
164
|
-
clean: typeof _utils_clean,
|
|
165
|
-
extractJSDocComment: typeof _utils_extractJSDocComment,
|
|
166
|
-
generateFile: typeof _utils_generateFile,
|
|
167
|
-
generateFlatExportLines: typeof _utils_generateFlatExportLines,
|
|
168
|
-
generateImportStatements: typeof _utils_generateImportStatements,
|
|
169
|
-
generateNamedExports: typeof _utils_generateNamedExports,
|
|
170
|
-
generateNamespaceCode: typeof _utils_generateNamespaceCode,
|
|
171
|
-
generateNamespaceExportLines: typeof _utils_generateNamespaceExportLines,
|
|
172
|
-
},
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
export default _default;
|
|
131
|
+
*/
|
|
132
|
+
each: typeof _each;
|
|
133
|
+
eachAsync: typeof _eachAsync;
|
|
134
|
+
encrypt: typeof _encrypt;
|
|
135
|
+
getAllFiles: typeof _getAllFiles;
|
|
136
|
+
isUUID: typeof _isUUID;
|
|
137
|
+
md5: typeof _md5;
|
|
138
|
+
setLocalEnvs: typeof _setLocalEnvs;
|
|
139
|
+
shouldIgnore: typeof _shouldIgnore;
|
|
140
|
+
thingType: typeof _thingType;
|
|
141
|
+
toPennies: typeof _toPennies;
|
|
142
|
+
uuid: typeof _uuid;
|
|
143
|
+
validateSchema: typeof _validateSchema;
|
|
144
|
+
wait: typeof _wait;
|
|
145
|
+
clean: {
|
|
146
|
+
array: typeof _clean_array,
|
|
147
|
+
boolean: typeof _clean_boolean,
|
|
148
|
+
buffer: typeof _clean_buffer,
|
|
149
|
+
custom: typeof _clean_custom,
|
|
150
|
+
integer: typeof _clean_integer,
|
|
151
|
+
number: typeof _clean_number,
|
|
152
|
+
object: typeof _clean_object,
|
|
153
|
+
string: typeof _clean_string,
|
|
154
|
+
timestamp: typeof _clean_timestamp,
|
|
155
|
+
uuid: typeof _clean_uuid,
|
|
156
|
+
},
|
|
157
|
+
password: {
|
|
158
|
+
check: typeof _password_check,
|
|
159
|
+
hash: typeof _password_hash,
|
|
160
|
+
},
|
|
161
|
+
utils: {
|
|
162
|
+
buildExportsTree: typeof _utils_buildExportsTree,
|
|
163
|
+
buildFileDataList: typeof _utils_buildFileDataList,
|
|
164
|
+
clean: typeof _utils_clean,
|
|
165
|
+
extractJSDocComment: typeof _utils_extractJSDocComment,
|
|
166
|
+
generateFile: typeof _utils_generateFile,
|
|
167
|
+
generateFlatExportLines: typeof _utils_generateFlatExportLines,
|
|
168
|
+
generateImportStatements: typeof _utils_generateImportStatements,
|
|
169
|
+
generateNamedExports: typeof _utils_generateNamedExports,
|
|
170
|
+
generateNamespaceCode: typeof _utils_generateNamespaceCode,
|
|
171
|
+
generateNamespaceExportLines: typeof _utils_generateNamespaceExportLines,
|
|
172
|
+
},
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
export default _default;
|
package/types/isUUID.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function isUUID(uuid: any): boolean;
|
|
1
|
+
export default function isUUID(uuid: any): boolean;
|
package/types/md5.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default md5;
|
|
2
|
-
declare function md5(data: any): any;
|
|
1
|
+
export default md5;
|
|
2
|
+
declare function md5(data: any): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function validatePassword(password: any, storedHash: any): boolean;
|
|
1
|
+
export default function validatePassword(password: any, storedHash: any): boolean;
|
package/types/password/hash.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function hashPassword(password: any): string;
|
|
1
|
+
export default function hashPassword(password: any): string;
|
package/types/setLocalEnvs.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function _default(localSecretsPath?: string): Promise<void>;
|
|
2
|
-
export default _default;
|
|
1
|
+
declare function _default(localSecretsPath?: string): Promise<void>;
|
|
2
|
+
export default _default;
|
package/types/shouldIgnore.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function shouldIgnore(filePath: any, ignorePatterns: any): any;
|
|
1
|
+
export default function shouldIgnore(filePath: any, ignorePatterns: any): any;
|
package/types/thingType.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function _default(thing: any): "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "null";
|
|
2
|
-
export default _default;
|
|
1
|
+
declare function _default(thing: any): "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "null";
|
|
2
|
+
export default _default;
|
package/types/toPennies.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function toPennies(uglyMoney: any): number;
|
|
1
|
+
export default function toPennies(uglyMoney: any): number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function buildExportsTree(fileDataList: any): {
|
|
2
|
-
flatExports: any[];
|
|
3
|
-
nestedExports: {};
|
|
4
|
-
};
|
|
1
|
+
export default function buildExportsTree(fileDataList: any): {
|
|
2
|
+
flatExports: any[];
|
|
3
|
+
nestedExports: {};
|
|
4
|
+
};
|
|
@@ -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
|
+
}[];
|
package/types/utils/clean.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
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?: {}, { testMode, allOrNothing, path }?: {
|
|
13
|
-
testMode?: boolean;
|
|
14
|
-
allOrNothing?: boolean;
|
|
15
|
-
path?: string;
|
|
16
|
-
}): any[];
|
|
17
|
-
declare function cleanObject(obj: any, schema: any, { testMode, allOrNothing, path }?: {
|
|
18
|
-
testMode?: boolean;
|
|
19
|
-
allOrNothing?: boolean;
|
|
20
|
-
path?: string;
|
|
21
|
-
}): {};
|
|
22
|
-
import cleanBoolean from '../clean/boolean.js';
|
|
23
|
-
import cleanInteger from '../clean/integer.js';
|
|
24
|
-
import cleanNumber from '../clean/number.js';
|
|
25
|
-
import cleanString from '../clean/string.js';
|
|
26
|
-
import cleanTimestamp from '../clean/timestamp.js';
|
|
27
|
-
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?: {}, { testMode, allOrNothing, path }?: {
|
|
13
|
+
testMode?: boolean;
|
|
14
|
+
allOrNothing?: boolean;
|
|
15
|
+
path?: string;
|
|
16
|
+
}): any[];
|
|
17
|
+
declare function cleanObject(obj: any, schema: any, { testMode, allOrNothing, path }?: {
|
|
18
|
+
testMode?: boolean;
|
|
19
|
+
allOrNothing?: boolean;
|
|
20
|
+
path?: string;
|
|
21
|
+
}): {};
|
|
22
|
+
import cleanBoolean from '../clean/boolean.js';
|
|
23
|
+
import cleanInteger from '../clean/integer.js';
|
|
24
|
+
import cleanNumber from '../clean/number.js';
|
|
25
|
+
import cleanString from '../clean/string.js';
|
|
26
|
+
import cleanTimestamp from '../clean/timestamp.js';
|
|
27
|
+
import cleanUUID from '../clean/uuid.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function extractJSDocComment(filePath: any): string;
|
|
1
|
+
export default function extractJSDocComment(filePath: any): string;
|
|
@@ -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;
|
package/types/uuid.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default uuid;
|
|
2
|
-
declare function uuid(): string;
|
|
1
|
+
export default uuid;
|
|
2
|
+
declare function uuid(): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default validateSchema;
|
|
2
|
-
declare function validateSchema(schema: any): boolean;
|
|
1
|
+
export default validateSchema;
|
|
2
|
+
declare function validateSchema(schema: any): boolean;
|
package/types/wait.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function wait(ms: any): Promise<any>;
|
|
1
|
+
export default function wait(ms: any): Promise<any>;
|