fix(core): update
This commit is contained in:
parent
c517652122
commit
25d0ba8036
19
package-lock.json
generated
19
package-lock.json
generated
@ -3927,6 +3927,7 @@
|
|||||||
"version": "3.3.0",
|
"version": "3.3.0",
|
||||||
"resolved": "https://verdaccio.lossless.one/crypto-random-string/-/crypto-random-string-3.3.0.tgz",
|
"resolved": "https://verdaccio.lossless.one/crypto-random-string/-/crypto-random-string-3.3.0.tgz",
|
||||||
"integrity": "sha512-teWAwfMb1d6brahYyKqcBEb5Yp8PJPvPOdOonXDnvaKOTmKDFNVE8E3Y2XQuzjNV/3XMwHbrX9fHWvrhRKt4Gg==",
|
"integrity": "sha512-teWAwfMb1d6brahYyKqcBEb5Yp8PJPvPOdOonXDnvaKOTmKDFNVE8E3Y2XQuzjNV/3XMwHbrX9fHWvrhRKt4Gg==",
|
||||||
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"type-fest": "^0.8.1"
|
"type-fest": "^0.8.1"
|
||||||
}
|
}
|
||||||
@ -7528,10 +7529,9 @@
|
|||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"nanoid": {
|
"nanoid": {
|
||||||
"version": "2.1.11",
|
"version": "3.1.20",
|
||||||
"resolved": "https://verdaccio.lossless.one/nanoid/-/nanoid-2.1.11.tgz",
|
"resolved": "https://verdaccio.lossless.one/nanoid/-/nanoid-3.1.20.tgz",
|
||||||
"integrity": "sha512-s/snB+WGm6uwi0WjsZdaVcuf3KJXlfGl2LcxgwkEwJF0D/BWzVWAZW/XY4bFaiR7s0Jk3FPvlnepg1H1b1UwlA==",
|
"integrity": "sha512-a1cQNyczgKbLX9jwbS/+d7W8fX/RfgYR7lVWwWOGIPNgK2m0MWvrGF6/m4kk6U3QcFMnZf3RIhL0v2Jgh/0Uxw=="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"nanomatch": {
|
"nanomatch": {
|
||||||
"version": "1.2.13",
|
"version": "1.2.13",
|
||||||
@ -9625,6 +9625,14 @@
|
|||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"nanoid": "^2.1.0"
|
"nanoid": "^2.1.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"nanoid": {
|
||||||
|
"version": "2.1.11",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/nanoid/-/nanoid-2.1.11.tgz",
|
||||||
|
"integrity": "sha512-s/snB+WGm6uwi0WjsZdaVcuf3KJXlfGl2LcxgwkEwJF0D/BWzVWAZW/XY4bFaiR7s0Jk3FPvlnepg1H1b1UwlA==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"signal-exit": {
|
"signal-exit": {
|
||||||
@ -10482,7 +10490,8 @@
|
|||||||
"type-fest": {
|
"type-fest": {
|
||||||
"version": "0.8.1",
|
"version": "0.8.1",
|
||||||
"resolved": "https://verdaccio.lossless.one/type-fest/-/type-fest-0.8.1.tgz",
|
"resolved": "https://verdaccio.lossless.one/type-fest/-/type-fest-0.8.1.tgz",
|
||||||
"integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA=="
|
"integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"type-is": {
|
"type-is": {
|
||||||
"version": "1.6.18",
|
"version": "1.6.18",
|
||||||
|
@ -34,8 +34,8 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartenv": "^4.0.16",
|
"@pushrocks/smartenv": "^4.0.16",
|
||||||
"crypto-random-string": "^3.3.0",
|
|
||||||
"js-base64": "^2.5.1",
|
"js-base64": "^2.5.1",
|
||||||
|
"nanoid": "^3.1.20",
|
||||||
"normalize-newline": "^3.0.0",
|
"normalize-newline": "^3.0.0",
|
||||||
"randomatic": "^3.1.1",
|
"randomatic": "^3.1.1",
|
||||||
"strip-indent": "^3.0.0",
|
"strip-indent": "^3.0.0",
|
||||||
|
@ -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
|
* @param lengthArg the length of the crypto string
|
||||||
*/
|
*/
|
||||||
export const createCryptoRandomString = (lengthArg: number): string => {
|
export const createCryptoRandomString = (lengthArg: number): string => {
|
||||||
return plugins.cryptoRandomString(lengthArg);
|
return plugins.nanoid(lengthArg);
|
||||||
};
|
};
|
||||||
|
@ -8,9 +8,18 @@ import * as url from 'url';
|
|||||||
export { crypto, url };
|
export { crypto, url };
|
||||||
|
|
||||||
// third party
|
// third party
|
||||||
export let jsBase64 = require('js-base64').Base64;
|
const jsBase64 = require('js-base64').Base64;
|
||||||
|
|
||||||
export let stripIndent = require('strip-indent');
|
const stripIndent = require('strip-indent');
|
||||||
export let normalizeNewline = require('normalize-newline');
|
const normalizeNewline = require('normalize-newline');
|
||||||
export let randomatic = require('randomatic');
|
const randomatic = require('randomatic');
|
||||||
export let cryptoRandomString = require('crypto-random-string');
|
|
||||||
|
import { nanoid } from 'nanoid';
|
||||||
|
|
||||||
|
export {
|
||||||
|
jsBase64,
|
||||||
|
stripIndent,
|
||||||
|
normalizeNewline,
|
||||||
|
randomatic,
|
||||||
|
nanoid
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user