Fix StartOS 0.4 TypeScript packaging to match SDK API
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getRandomString = getRandomString;
|
||||
const getRandomCharInSet_1 = require("./getRandomCharInSet");
|
||||
function getRandomString(generator) {
|
||||
let s = '';
|
||||
for (let i = 0; i < generator.len; i++) {
|
||||
s = s + (0, getRandomCharInSet_1.getRandomCharInSet)(generator.charset);
|
||||
}
|
||||
return s;
|
||||
}
|
||||
//# sourceMappingURL=getRandomString.js.map
|
||||
Reference in New Issue
Block a user