@hastehaul/common 1.0.19 → 1.0.20
Sign up to get free protection for your applications and to get access to all the features.
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
@@ -113,6 +113,8 @@ __exportStar(require("./utils/enums"), exports);
|
|
113
113
|
__exportStar(require("./utils/read-dir"), exports);
|
114
114
|
//TODO: DOCUMENT
|
115
115
|
__exportStar(require("./utils/schemas"), exports);
|
116
|
+
//TODO: DOCUMENT
|
117
|
+
__exportStar(require("./utils/random-codes"), exports);
|
116
118
|
/**
|
117
119
|
*? Re-exports all the contents from the "base-producers" module.
|
118
120
|
*
|
@@ -9,4 +9,4 @@
|
|
9
9
|
*
|
10
10
|
* @returns {Promise<string>} - A Promise that resolves with the generated codes as a string.
|
11
11
|
*/
|
12
|
-
declare function generateRandomCodesAsync(characters: string, numberOfCodes: number, codeSize: number, includeHyphens: boolean, chunkSize: number): Promise<string>;
|
12
|
+
export declare function generateRandomCodesAsync(characters: string, numberOfCodes: number, codeSize: number, includeHyphens: boolean, chunkSize: number): Promise<string>;
|
@@ -8,6 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
9
|
});
|
10
10
|
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.generateRandomCodesAsync = void 0;
|
11
13
|
/**
|
12
14
|
* Generates random codes as an async function using await.
|
13
15
|
*
|
@@ -50,3 +52,4 @@ function generateRandomCodesAsync(characters, numberOfCodes, codeSize, includeHy
|
|
50
52
|
return codes;
|
51
53
|
});
|
52
54
|
}
|
55
|
+
exports.generateRandomCodesAsync = generateRandomCodesAsync;
|