Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UUID issue #119

Open
heavell7870 opened this issue Jul 21, 2023 · 0 comments
Open

UUID issue #119

heavell7870 opened this issue Jul 21, 2023 · 0 comments

Comments

@heavell7870
Copy link

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch videoshow@0.1.12 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/videoshow/lib/render.js b/node_modules/videoshow/lib/render.js
index 6fc8054..ab42696 100644
--- a/node_modules/videoshow/lib/render.js
+++ b/node_modules/videoshow/lib/render.js
@@ -2,7 +2,7 @@ var fs = require('fs')
 var fw = require('fw')
 var os = require('os')
 var path = require('path')
-var uuid = require('lil-uuid')
+const { v4: uuidv4 } = require('uuid');
 var union = require('lodash.merge')
 var ffmpeg = require('fluent-ffmpeg')
 var EventEmitter = require('events').EventEmitter
@@ -320,5 +320,5 @@ function remove(file, cb) {
 }
 
 function randomName() {
-  return path.join(os.tmpdir(), 'videoshow-' + uuid())
+  return path.join(os.tmpdir(), 'videoshow-' + uuidv4())
 }

This issue body was partially generated by patch-package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant