Harden secret store and resolve catalog overrides (#1891)
Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
f8999616ba
commit
2533d791bd
16 files changed
+105
-101
No files matched your search
@@ -427,9 +427,9 @@ function validateBundledClientAssets(clientDir: string) {
|
||||
}
|
||||
|
||||
function resolveDesktopRuntimeDependencies(
|
||||
dependencies: Record<string, unknown> | undefined,
|
||||
catalog: Record<string, unknown>,
|
||||
): Record<string, unknown> {
|
||||
dependencies: Record<string, string> | undefined,
|
||||
catalog: Record<string, string>,
|
||||
): Record<string, string> {
|
||||
if (!dependencies || Object.keys(dependencies).length === 0) {
|
||||
return {};
|
||||
}
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
* the concrete version string found in `catalog`. Throws on missing entries.
|
||||
*/
|
||||
export function resolveCatalogDependencies(
|
||||
dependencies: Record<string, unknown>,
|
||||
catalog: Record<string, unknown>,
|
||||
dependencies: Record<string, string>,
|
||||
catalog: Record<string, string>,
|
||||
label: string,
|
||||
): Record<string, unknown> {
|
||||
): Record<string, string> {
|
||||
return Object.fromEntries(
|
||||
Object.entries(dependencies).map(([name, spec]) => {
|
||||
if (typeof spec !== "string" || !spec.startsWith("catalog:")) {
|
||||
|
||||
Reference in new issue
Block a user