@corefunc/corefunc
Advanced tools
Comparing version 0.0.16 to 0.0.18
@@ -10,3 +10,3 @@ /** | ||
possible: string = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", | ||
) { | ||
): string { | ||
let index = 0; | ||
@@ -13,0 +13,0 @@ let text = ""; |
@@ -1,2 +0,2 @@ | ||
export default function generateToken(size: number = 16) { | ||
export default function generateToken(size: number = 16): string { | ||
const random = new Array(size); | ||
@@ -3,0 +3,0 @@ for (let index = 0; index < size; index++) { |
const lut = []; | ||
for (let index = 0; index < 256; index += 1) { | ||
// eslint-disable-next-line no-ternary | ||
lut[index] = (index < 16 ? "0" : "") + index.toString(16); | ||
@@ -4,0 +5,0 @@ } |
@@ -62,3 +62,3 @@ { | ||
}, | ||
"version": "0.0.16" | ||
"version": "0.0.18" | ||
} |
102694
278
3500