11 lines · 498 B · TypeScript
RawDownload
export interface ScopeAddress {  readonly tenant: string;  readonly scope: string;} export const scopeAddress = (tenant: string, scope: string): ScopeAddress => ({ tenant, scope }); // Tenant-aware keys were introduced before the apps subsystem shipped, so no// on-disk migration is needed for the older scope-only layout.export const scopeAddressStorageKey = (address: ScopeAddress): string =>  `v2-${Buffer.from(JSON.stringify([address.tenant, address.scope]), "utf8").toString("hex")}`;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t