Remove dependency on uuid package (#1824)

This commit is contained in:
Josh Gross
2024-10-02 12:28:06 -04:00
committed by GitHub
parent 6dd369c0e6
commit 78af634e7e
10 changed files with 29 additions and 135 deletions

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