@orkestrel/scaffold 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1058,13 +1058,16 @@ var CLI = class {
1058
1058
  const sync = createSync(this.#sync);
1059
1059
  let versions;
1060
1060
  try {
1061
- versions = await sync.versions(depNames.map((depName) => dependency(depName, "*")));
1061
+ versions = await sync.lookup(depNames);
1062
1062
  } finally {
1063
1063
  sync.destroy();
1064
1064
  }
1065
- const unresolved = versions.filter((version) => version.freshness !== "current" && version.freshness !== "behind" || version.latest === "").map((version) => version.name);
1065
+ const unresolved = versions.filter((version) => version.freshness === "missing" || version.freshness === "failed").map((version) => version.name);
1066
1066
  if (unresolved.length > 0) this.#fail(unresolvedVersion(unresolved), json);
1067
- const deps = versions.map((version) => dependency(version.name, `^${version.latest}`));
1067
+ const deps = versions.map((version) => {
1068
+ if (version.freshness !== "behind") this.#fail(unresolvedVersion([version.name]), json);
1069
+ return dependency(version.name, `^${version.latest}`);
1070
+ });
1068
1071
  const [plan] = this.#compile(blueprint(name, {
1069
1072
  src,
1070
1073
  app,