defaultGenerateIdempotencyKey() — typescript-sdk Function Reference
Architecture documentation for the defaultGenerateIdempotencyKey() function in async.ts from the typescript-sdk codebase.
Entity Profile
Relationship Graph
Source Code
src/async.ts lines 139–148
function defaultGenerateIdempotencyKey(): string {
if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {
return crypto.randomUUID();
}
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
const r = (Math.random() * 16) | 0;
const v = c === 'x' ? r : (r & 0x3) | 0x8;
return v.toString(16);
});
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free