* Get metadata file path for cached MCPB
(cacheDir: string, source: string)
| 105 | * Get metadata file path for cached MCPB |
| 106 | */ |
| 107 | function getMetadataPath(cacheDir: string, source: string): string { |
| 108 | const sourceHash = createHash('md5') |
| 109 | .update(source) |
| 110 | .digest('hex') |
| 111 | .substring(0, 8) |
| 112 | return join(cacheDir, `${sourceHash}.metadata.json`) |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * Compose the secureStorage key for a per-server secret bucket. |
no test coverage detected