chore(deps): remove crypto-random-string dependency

This commit is contained in:
Phan An 2022-08-01 12:58:11 +02:00
parent 964e1df26f
commit b6daeb5d77
No known key found for this signature in database
GPG key ID: A81E4477F0BB6FDC
3 changed files with 1 additions and 8 deletions

View file

@ -55,7 +55,6 @@
"@vitejs/plugin-vue": "^2.3.1",
"@vue/test-utils": "^2.0.0-rc.21",
"cross-env": "^7.0.3",
"crypto-random-string": "^1.0.0",
"css-loader": "^0.28.7",
"cypress": "^9.5.4",
"eslint": "^8.14.0",

View file

@ -1,9 +1,8 @@
import crypto from 'crypto-random-string'
import { Faker } from '@faker-js/faker'
export default (faker: Faker): YouTubeVideo => ({
id: {
videoId: crypto(16)
videoId: faker.random.alphaNumeric(16)
},
snippet: {
title: faker.lorem.sentence(),

View file

@ -2415,11 +2415,6 @@ cross-spawn@^7.0.0, cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
shebang-command "^2.0.0"
which "^2.0.1"
crypto-random-string@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e"
integrity sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=
css-color-names@0.0.4:
version "0.0.4"
resolved "https://registry.yarnpkg.com/css-color-names/-/css-color-names-0.0.4.tgz#808adc2e79cf84738069b646cb20ec27beb629e0"