@styx-api/core 0.5.2 → 0.5.3

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.
package/dist/index.cjs CHANGED
@@ -3782,7 +3782,8 @@ function emitMetadata$1(ctx, metaConst, cb) {
3782
3782
  cb.line(`name=${pyStr(name)},`);
3783
3783
  cb.line(`package=${pyStr(pkg)},`);
3784
3784
  if (ctx.app?.doc?.literature?.length) cb.line(`citations=[${ctx.app.doc.literature.map(pyStr).join(", ")}],`);
3785
- if (ctx.app?.container?.image) cb.line(`container_image_tag=${pyStr(ctx.app.container.image)},`);
3785
+ const containerImage = ctx.package?.docker ?? ctx.app?.container?.image;
3786
+ if (containerImage) cb.line(`container_image_tag=${pyStr(containerImage)},`);
3786
3787
  });
3787
3788
  cb.line(")");
3788
3789
  }
@@ -6897,7 +6898,8 @@ function emitMetadata(ctx, metaConst, cb) {
6897
6898
  cb.line(`name: ${JSON.stringify(name)},`);
6898
6899
  cb.line(`package: ${JSON.stringify(pkg)},`);
6899
6900
  if (ctx.app?.doc?.literature?.length) cb.line(`citations: ${JSON.stringify(ctx.app.doc.literature)},`);
6900
- if (ctx.app?.container?.image) cb.line(`container_image_tag: ${JSON.stringify(ctx.app.container.image)},`);
6901
+ const containerImage = ctx.package?.docker ?? ctx.app?.container?.image;
6902
+ if (containerImage) cb.line(`container_image_tag: ${JSON.stringify(containerImage)},`);
6901
6903
  });
6902
6904
  cb.line("};");
6903
6905
  }
package/dist/index.mjs CHANGED
@@ -3781,7 +3781,8 @@ function emitMetadata$1(ctx, metaConst, cb) {
3781
3781
  cb.line(`name=${pyStr(name)},`);
3782
3782
  cb.line(`package=${pyStr(pkg)},`);
3783
3783
  if (ctx.app?.doc?.literature?.length) cb.line(`citations=[${ctx.app.doc.literature.map(pyStr).join(", ")}],`);
3784
- if (ctx.app?.container?.image) cb.line(`container_image_tag=${pyStr(ctx.app.container.image)},`);
3784
+ const containerImage = ctx.package?.docker ?? ctx.app?.container?.image;
3785
+ if (containerImage) cb.line(`container_image_tag=${pyStr(containerImage)},`);
3785
3786
  });
3786
3787
  cb.line(")");
3787
3788
  }
@@ -6896,7 +6897,8 @@ function emitMetadata(ctx, metaConst, cb) {
6896
6897
  cb.line(`name: ${JSON.stringify(name)},`);
6897
6898
  cb.line(`package: ${JSON.stringify(pkg)},`);
6898
6899
  if (ctx.app?.doc?.literature?.length) cb.line(`citations: ${JSON.stringify(ctx.app.doc.literature)},`);
6899
- if (ctx.app?.container?.image) cb.line(`container_image_tag: ${JSON.stringify(ctx.app.container.image)},`);
6900
+ const containerImage = ctx.package?.docker ?? ctx.app?.container?.image;
6901
+ if (containerImage) cb.line(`container_image_tag: ${JSON.stringify(containerImage)},`);
6900
6902
  });
6901
6903
  cb.line("};");
6902
6904
  }