( webId: WebId, namespace: string, ...parts: string[] )
| 18 | * through this helper so that invariant holds. |
| 19 | */ |
| 20 | export const webScopedKey = ( |
| 21 | webId: WebId, |
| 22 | namespace: string, |
| 23 | ...parts: string[] |
| 24 | ): string => [ANALYSIS_STORAGE_PREFIX, webId, namespace, ...parts].join("/"); |
| 25 | |
| 26 | export const isWebScopedKeyForWeb = (key: string, webId: WebId): boolean => { |
| 27 | const [prefix, scopedWebId, ...artifactParts] = key.split("/"); |
no test coverage detected