fix: use protected instead of private

This commit is contained in:
MARCROCK22 2025-04-25 00:51:59 -04:00
parent 589a59c5f6
commit faa222275f

View File

@ -98,13 +98,13 @@ export class ApiHandler {
}
}
#randomUUID(): UUID {
randomUUID(): UUID {
const uuid = randomUUID();
if (this.workerPromises!.has(uuid)) return this.#randomUUID();
if (this.workerPromises!.has(uuid)) return this.randomUUID();
return uuid;
}
private sendMessage(_body: WorkerSendApiRequest) {
protected sendMessage(_body: WorkerSendApiRequest) {
throw new Error('Function not implemented');
}
@ -121,7 +121,7 @@ export class ApiHandler {
{ auth = true, ...request }: ApiRequestOptions = {},
): Promise<T> {
if (this.options.workerProxy) {
const nonce = this.#randomUUID();
const nonce = this.randomUUID();
return this.postMessage<T>({
method,
url,