diff --git a/dist/restore/index.js b/dist/restore/index.js index 64298cf..c46f99e 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -67021,8 +67021,16 @@ class CacheConfig { const deps = parsed[section_name]; for (const key of Object.keys(deps)) { const dep = deps[key]; - if ("path" in dep) { - dep.version = "0.0.0"; + try { + if ("path" in dep) { + dep.version = "0.0.0"; + dep.path = ""; + } + } + catch (_e) { + // Not an object, probably a string (version), + // continue. + continue; } } } diff --git a/dist/save/index.js b/dist/save/index.js index a6d9c5d..f939359 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -67021,8 +67021,16 @@ class CacheConfig { const deps = parsed[section_name]; for (const key of Object.keys(deps)) { const dep = deps[key]; - if ("path" in dep) { - dep.version = "0.0.0"; + try { + if ("path" in dep) { + dep.version = "0.0.0"; + dep.path = ""; + } + } + catch (_e) { + // Not an object, probably a string (version), + // continue. + continue; } } } diff --git a/src/config.ts b/src/config.ts index 598ab0b..cd73f6c 100644 --- a/src/config.ts +++ b/src/config.ts @@ -166,8 +166,15 @@ export class CacheConfig { for (const key of Object.keys(deps)) { const dep = deps[key]; - if ("path" in dep) { - dep.version = "0.0.0"; + try { + if ("path" in dep) { + dep.version = "0.0.0"; + dep.path = ""; + } + } catch (_e) { + // Not an object, probably a string (version), + // continue. + continue; } } }