* Get metadata file path for cached MCPB
(cacheDir: string, source: string)
| 115 | * Get metadata file path for cached MCPB |
| 116 | */ |
| 117 | function getMetadataPath(cacheDir: string, source: string): string { |
| 118 | const sourceHash = createHash('md5') |
| 119 | .update(source) |
| 120 | .digest('hex') |
| 121 | .substring(0, 8) |
| 122 | return join(cacheDir, `${sourceHash}.metadata.json`) |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * Compose the secureStorage key for a per-server secret bucket. |
no outgoing calls
no test coverage detected