Skip to content

Commit 87af78d

Browse files
committed
chore!: undocumented env rename, and use simple Math.random() for path UUID gen
This change allows some edge-case usage of the lib, like custom Cloudflare Workers events
1 parent 30bc7e8 commit 87af78d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trigger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class TriggerEventProcessor implements EventProcessor<LambdaTriggerEvent> {
105105
export const triggerProcessor: TriggerEventProcessor = new TriggerEventProcessor()
106106

107107
// eslint-disable-next-line node/prefer-global/process
108-
export const triggerPathUUID = `${process.env.SECRET_SALT}-${Date.now()}-${globalThis.crypto.randomUUID()}`
108+
export const triggerPathUUID = `${process.env.HONO_TRIGGER_SALT}-${Date.now()}-${Math.random()}`
109109

110110
export function getTriggerPath(path: string) {
111111
return mergePath(triggerPathUUID, path)

0 commit comments

Comments
 (0)