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