fix(core): update

This commit is contained in:
2020-12-31 04:11:33 +00:00
parent c517652122
commit 25d0ba8036
4 changed files with 31 additions and 13 deletions

View File

@ -21,9 +21,9 @@ export const createRandomString = (
};
/**
* creates a crytic string in the speicifed length
* creates a cryptic string in the speicifed length
* @param lengthArg the length of the crypto string
*/
export const createCryptoRandomString = (lengthArg: number): string => {
return plugins.cryptoRandomString(lengthArg);
return plugins.nanoid(lengthArg);
};

View File

@ -8,9 +8,18 @@ import * as url from 'url';
export { crypto, url };
// third party
export let jsBase64 = require('js-base64').Base64;
const jsBase64 = require('js-base64').Base64;
export let stripIndent = require('strip-indent');
export let normalizeNewline = require('normalize-newline');
export let randomatic = require('randomatic');
export let cryptoRandomString = require('crypto-random-string');
const stripIndent = require('strip-indent');
const normalizeNewline = require('normalize-newline');
const randomatic = require('randomatic');
import { nanoid } from 'nanoid';
export {
jsBase64,
stripIndent,
normalizeNewline,
randomatic,
nanoid
}