()
| 138 | } |
| 139 | |
| 140 | function base64Uuid() { |
| 141 | // Generate a UUID |
| 142 | const hexUuid = uuidv1(); |
| 143 | |
| 144 | // Convert the UUID from hex to a Buffer |
| 145 | const bufferUuid = Buffer.from(hexUuid.replace(/-/g, ''), 'hex'); |
| 146 | |
| 147 | // Convert the Buffer to a base64 string |
| 148 | const base64Uuid = bufferUuid.toString('base64'); |
| 149 | |
| 150 | return base64Uuid; |
| 151 | } |
| 152 | |
| 153 | let taskyonDB: TaskyonDatabase | undefined = undefined; |
| 154 |
no outgoing calls
no test coverage detected