Remove dependency on uuid package (#1824)

This commit is contained in:
Josh Gross authored and GitHub committed 2024-10-02 12:28:06 -04:00
1 parent 3637e6eec6
commit 41e924bdda
4 files changed
+22 -48

No files matched your search

+1 -2
View File
@@ -5,7 +5,6 @@
import * as fs from 'fs'
import * as os from 'os'
import {v4 as uuidv4} from 'uuid'
import {toCommandValue} from './utils'
export function issueFileCommand(command: string, message: any): void {
@@ -25,7 +24,7 @@ export function issueFileCommand(command: string, message: any): void {
}
export function prepareKeyValueMessage(key: string, value: any): string {
const delimiter = `ghadelimiter_${uuidv4()}`
const delimiter = `ghadelimiter_${crypto.randomUUID()}`
const convertedValue = toCommandValue(value)
// These should realistically never happen, but just in case someone finds a