@awesomeness-js/utils 1.1.23 → 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 +179 -147
- 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/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 +1 -3
- 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/boolean.d.ts +3 -3
- package/types/clean/integer.d.ts +6 -6
- package/types/clean/number.d.ts +8 -8
- 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/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/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/tests/clean/uuid.test.js
CHANGED
package/tests/env.test.js
CHANGED
package/tests/example.test.js
CHANGED
package/tests/fileList.test.js
CHANGED
package/tests/md5.test.js
CHANGED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { expect, test } from 'vitest';
|
|
2
|
+
import utils from '../index.js';
|
|
3
|
+
import schemas from '../schemas.js';
|
|
4
|
+
|
|
5
|
+
// string
|
|
6
|
+
test('should create a random string', () => {
|
|
7
|
+
|
|
8
|
+
const randomString = utils.random.string({ minLength: 5, maxLength: 10 });
|
|
9
|
+
|
|
10
|
+
console.log('Generated random string:', randomString);
|
|
11
|
+
|
|
12
|
+
expect(randomString.length).toBeGreaterThanOrEqual(5);
|
|
13
|
+
expect(randomString.length).toBeLessThanOrEqual(10);
|
|
14
|
+
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
// array value
|
|
18
|
+
test('should create a random array value', () => {
|
|
19
|
+
const sampleArray = ['apple', 'banana', 'cherry', 'date', 'elderberry'];
|
|
20
|
+
|
|
21
|
+
const randomValue = utils.random.arrayValue(sampleArray);
|
|
22
|
+
console.log('Generated random array value:', randomValue);
|
|
23
|
+
|
|
24
|
+
expect(sampleArray).toContain(randomValue);
|
|
25
|
+
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
// boolean
|
|
29
|
+
test('should create a random boolean', () => {
|
|
30
|
+
const randomBoolean = utils.random.boolean();
|
|
31
|
+
console.log('Generated random boolean:', randomBoolean);
|
|
32
|
+
expect(typeof randomBoolean).toBe('boolean');
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
// integer
|
|
36
|
+
test('should create a random integer', () => {
|
|
37
|
+
const randomInteger = utils.random.integer({ min: 10, max: 20 });
|
|
38
|
+
console.log('Generated random integer:', randomInteger);
|
|
39
|
+
|
|
40
|
+
expect(randomInteger).toBeGreaterThanOrEqual(10);
|
|
41
|
+
expect(randomInteger).toBeLessThanOrEqual(20);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
// number
|
|
45
|
+
test('should create a random number', () => {
|
|
46
|
+
const decimalPlaces = 3;
|
|
47
|
+
const randomNumber = utils.random.number({
|
|
48
|
+
min: 1.5,
|
|
49
|
+
max: 5.5,
|
|
50
|
+
decimalPlaces
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
console.log('Generated random number:', randomNumber);
|
|
54
|
+
|
|
55
|
+
expect(randomNumber).toBeGreaterThanOrEqual(1.5);
|
|
56
|
+
expect(randomNumber).toBeLessThanOrEqual(5.5);
|
|
57
|
+
|
|
58
|
+
const decimals =
|
|
59
|
+
Number.isInteger(randomNumber)
|
|
60
|
+
? 0
|
|
61
|
+
: randomNumber.toString().split('.')[1].length;
|
|
62
|
+
|
|
63
|
+
expect(decimals).toBeLessThanOrEqual(decimalPlaces);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
// timestamp
|
|
67
|
+
test('should create a random timestamp', () => {
|
|
68
|
+
|
|
69
|
+
const randomTimestamp = utils.random.timestamp({
|
|
70
|
+
maxDays: 10,
|
|
71
|
+
minDays: 5,
|
|
72
|
+
future: true
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
console.log('Generated random timestamp:', randomTimestamp);
|
|
76
|
+
|
|
77
|
+
const randomTimestampPast = utils.random.timestamp({
|
|
78
|
+
maxDays: 10,
|
|
79
|
+
minDays: 5,
|
|
80
|
+
future: false
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
console.log('Generated random past timestamp:', randomTimestampPast);
|
|
84
|
+
|
|
85
|
+
// should be an ISO string
|
|
86
|
+
expect(new Date(randomTimestamp).toISOString()).toBe(randomTimestamp);
|
|
87
|
+
expect(new Date(randomTimestampPast).toISOString()).toBe(randomTimestampPast);
|
|
88
|
+
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
// uuid
|
|
92
|
+
test('should create a random UUID', () => {
|
|
93
|
+
const randomUUID = utils.random.uuid();
|
|
94
|
+
console.log('Generated random UUID:', randomUUID);
|
|
95
|
+
expect(utils.isUUID(randomUUID)).toBe(true);
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
// object
|
|
99
|
+
test('should create a random object based on schema1', () => {
|
|
100
|
+
|
|
101
|
+
const randomObject = utils.random.object(schemas.schema1);
|
|
102
|
+
console.log('Generated random object (schema1):', randomObject);
|
|
103
|
+
expect(typeof randomObject).toBe('object');
|
|
104
|
+
|
|
105
|
+
expect(typeof randomObject.exampleId).toBe('string');
|
|
106
|
+
expect(Array.isArray(randomObject.exampleArray)).toBe(true);
|
|
107
|
+
expect(Array.isArray(randomObject.exampleArrayOfObjects)).toBe(true);
|
|
108
|
+
expect(typeof randomObject.exampleObject).toBe('object');
|
|
109
|
+
|
|
110
|
+
});
|
package/tests/uuid.test.js
CHANGED
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>;
|
package/types/clean/boolean.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default function cleanBoolean(x: any, { required }?: {
|
|
2
|
-
required?: boolean;
|
|
3
|
-
}): any;
|
|
1
|
+
export default function cleanBoolean(x: any, { required }?: {
|
|
2
|
+
required?: boolean;
|
|
3
|
+
}): any;
|
package/types/clean/integer.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export default function cleanInt(x: any, { required, convertString, min, max, }?: {
|
|
2
|
-
required?: boolean;
|
|
3
|
-
convertString?: boolean;
|
|
4
|
-
min?: boolean;
|
|
5
|
-
max?: boolean;
|
|
6
|
-
}): any;
|
|
1
|
+
export default function cleanInt(x: any, { required, convertString, min, max, }?: {
|
|
2
|
+
required?: boolean;
|
|
3
|
+
convertString?: boolean;
|
|
4
|
+
min?: boolean;
|
|
5
|
+
max?: boolean;
|
|
6
|
+
}): any;
|
package/types/clean/number.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function cleanNumber(x: any, { required, convertString, min, max, maxDecimal, minDecimal, }?: {
|
|
2
|
-
required?: boolean;
|
|
3
|
-
convertString?: boolean;
|
|
4
|
-
min?: boolean;
|
|
5
|
-
max?: boolean;
|
|
6
|
-
maxDecimal?: boolean;
|
|
7
|
-
minDecimal?: boolean;
|
|
8
|
-
}): any;
|
|
1
|
+
export default function cleanNumber(x: any, { required, convertString, min, max, maxDecimal, minDecimal, }?: {
|
|
2
|
+
required?: boolean;
|
|
3
|
+
convertString?: boolean;
|
|
4
|
+
min?: boolean;
|
|
5
|
+
max?: boolean;
|
|
6
|
+
maxDecimal?: boolean;
|
|
7
|
+
minDecimal?: boolean;
|
|
8
|
+
}): any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export default function cleanTimestamp(isoDateTimeString: any, { required, maxDaysInFuture, maxDaysInFPast, }?: {
|
|
2
|
-
required?: boolean;
|
|
3
|
-
maxDaysInFuture?: boolean;
|
|
4
|
-
maxDaysInFPast?: boolean;
|
|
5
|
-
}): string;
|
|
1
|
+
export default function cleanTimestamp(isoDateTimeString: any, { required, maxDaysInFuture, maxDaysInFPast, }?: {
|
|
2
|
+
required?: boolean;
|
|
3
|
+
maxDaysInFuture?: boolean;
|
|
4
|
+
maxDaysInFPast?: boolean;
|
|
5
|
+
}): string;
|
package/types/clean/uuid.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default function cleanUUID(uuid: any, { required, }?: {
|
|
2
|
-
required?: boolean;
|
|
3
|
-
}): string;
|
|
1
|
+
export default function cleanUUID(uuid: any, { required, }?: {
|
|
2
|
+
required?: boolean;
|
|
3
|
+
}): 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[];
|
package/types/combineFiles.d.ts
CHANGED
|
@@ -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/convertBytes.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Converts a given number of bytes into a more readable string format with appropriate units.
|
|
3
|
-
*
|
|
4
|
-
* @param {number} bytes - The number of bytes to convert.
|
|
5
|
-
* @param {number} [precision=2] - The number of decimal places to include in the result.
|
|
6
|
-
* @returns {string} The converted bytes in a string format with appropriate units.
|
|
7
|
-
*/
|
|
8
|
-
export default function convertBytes(bytes: number, precision?: number): string;
|
|
1
|
+
/**
|
|
2
|
+
* Converts a given number of bytes into a more readable string format with appropriate units.
|
|
3
|
+
*
|
|
4
|
+
* @param {number} bytes - The number of bytes to convert.
|
|
5
|
+
* @param {number} [precision=2] - The number of decimal places to include in the result.
|
|
6
|
+
* @returns {string} The converted bytes in a string format with appropriate units.
|
|
7
|
+
*/
|
|
8
|
+
export default function convertBytes(bytes: number, precision?: number): string;
|
package/types/decrypt.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function decrypt(encryptedData: any, key?: any): any;
|
|
1
|
+
export default function decrypt(encryptedData: any, key?: any): any;
|
package/types/each.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Iterates over elements of an array or properties of an object, invoking a callback for each element/property.
|
|
3
|
-
* The iteration stops if the callback returns `false`.
|
|
4
|
-
*
|
|
5
|
-
* @example each({ a: 1, b: 2 }, (value, key) => { console.log(value, key); });
|
|
6
|
-
* @param {Object|Array} objectOrArray - The object or array to iterate over.
|
|
7
|
-
* @param {Function} callback - The function to invoke per iteration. It is invoked with two arguments: (value, key/index).
|
|
8
|
-
* @returns {void}
|
|
9
|
-
*/
|
|
10
|
-
export default function each(objectOrArray: any | any[], callback: Function): void;
|
|
1
|
+
/**
|
|
2
|
+
* Iterates over elements of an array or properties of an object, invoking a callback for each element/property.
|
|
3
|
+
* The iteration stops if the callback returns `false`.
|
|
4
|
+
*
|
|
5
|
+
* @example each({ a: 1, b: 2 }, (value, key) => { console.log(value, key); });
|
|
6
|
+
* @param {Object|Array} objectOrArray - The object or array to iterate over.
|
|
7
|
+
* @param {Function} callback - The function to invoke per iteration. It is invoked with two arguments: (value, key/index).
|
|
8
|
+
* @returns {void}
|
|
9
|
+
*/
|
|
10
|
+
export default function each(objectOrArray: any | any[], callback: Function): void;
|
package/types/eachAsync.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function eachAsync(objectOrArray: any, callback: any): Promise<void>;
|
|
1
|
+
export default function eachAsync(objectOrArray: any, callback: any): Promise<void>;
|
package/types/encrypt.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export default function encrypt(plainText: any, key?: any): {
|
|
2
|
-
iv: any;
|
|
3
|
-
authTag: any;
|
|
4
|
-
cipherText: any;
|
|
5
|
-
};
|
|
1
|
+
export default function encrypt(plainText: any, key?: any): {
|
|
2
|
+
iv: any;
|
|
3
|
+
authTag: any;
|
|
4
|
+
cipherText: any;
|
|
5
|
+
};
|
package/types/getAllFiles.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export default function getAllFiles(base: any, { dir, files, ignore, fileTypes }?: {
|
|
2
|
-
dir?: string;
|
|
3
|
-
files?: any[];
|
|
4
|
-
ignore?: any[];
|
|
5
|
-
fileTypes?: any[];
|
|
6
|
-
}): any[];
|
|
1
|
+
export default function getAllFiles(base: any, { dir, files, ignore, fileTypes }?: {
|
|
2
|
+
dir?: string;
|
|
3
|
+
files?: any[];
|
|
4
|
+
ignore?: any[];
|
|
5
|
+
fileTypes?: any[];
|
|
6
|
+
}): any[];
|
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
|
+
}[];
|
|
@@ -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;
|