mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-18 11:39:15 +00:00
io improvement
This commit is contained in:
7
packages/io/utils/hash.js
Normal file
7
packages/io/utils/hash.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const crypto = require('crypto')
|
||||
|
||||
const generateRef = () => {
|
||||
return crypto.randomUUID()
|
||||
}
|
||||
|
||||
module.exports = { generateRef }
|
||||
3
packages/io/utils/index.js
Normal file
3
packages/io/utils/index.js
Normal file
@@ -0,0 +1,3 @@
|
||||
const { generateRef } = require('./hash')
|
||||
|
||||
module.exports = { generateRef }
|
||||
Reference in New Issue
Block a user