@vosjs/cli 0.52.0 → 0.52.2

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.
@@ -25,12 +25,13 @@ import {
25
25
  requireCredential,
26
26
  resolveCredential,
27
27
  resolveMediaType,
28
+ serverWarnings,
28
29
  sniffMediaType,
29
30
  strFlag,
30
31
  videoFormat,
31
32
  writeCredential,
32
33
  writeSyncState
33
- } from "./chunk-KSEU3YK5.js";
34
+ } from "./chunk-PJX3XE7G.js";
34
35
  import {
35
36
  deadLine,
36
37
  deadWarns
@@ -7589,6 +7590,7 @@ async function pushTake(dir, flags, r) {
7589
7590
  `push failed (${created.status}): ${String(created.json.error ?? "")}${detailLine(created.json)}`
7590
7591
  );
7591
7592
  }
7593
+ serverWarnings(created.json, (l) => r.log(l));
7592
7594
  const vos = created.json.vos;
7593
7595
  const meta = await api(ctx, `/vos/${vos.id}`);
7594
7596
  const versionId = String(
@@ -7630,6 +7632,7 @@ async function pushTake(dir, flags, r) {
7630
7632
  `push failed (${pushed.status}): ${String(pushed.json.error ?? "")}${detailLine(pushed.json)}`
7631
7633
  );
7632
7634
  }
7635
+ serverWarnings(pushed.json, (l) => r.log(l));
7633
7636
  const version = pushed.json.version;
7634
7637
  writeSyncState(dir, {
7635
7638
  vosId: state.vosId,
@@ -8116,6 +8119,7 @@ async function createProgramVos(opts) {
8116
8119
  continue;
8117
8120
  }
8118
8121
  if (res.status !== 201) throw new Error(apiError("push vos", res));
8122
+ if (opts.log) serverWarnings(res.body, opts.log);
8119
8123
  const created = res.body.vos ?? {};
8120
8124
  return {
8121
8125
  id: String(created.id ?? ""),
@@ -8195,6 +8199,7 @@ async function cmdPushProgram(argv) {
8195
8199
  if (slug) body.slug = slug;
8196
8200
  const res = await apiJson(origin, "/api/claim", { method: "POST", body });
8197
8201
  if (res.status !== 201) throw new Error(apiError("claimable push", res));
8202
+ serverWarnings(res.body, (l) => r.log(l));
8198
8203
  const claimUrl = String(res.body.claimUrl ?? "");
8199
8204
  const expiresAt = String(res.body.expiresAt ?? "");
8200
8205
  const created2 = res.body.vos ?? {};
@@ -8282,6 +8287,7 @@ with their key: vos push ${source} --vos ${String(created2.id ?? "<id>")}`
8282
8287
  }
8283
8288
  if (res.status !== 201)
8284
8289
  throw new Error(apiError(`push version to ${vosId}`, res));
8290
+ serverWarnings(res.body, (l) => r.log(l));
8285
8291
  const version = res.body.version ?? {};
8286
8292
  if (typeof version.id === "string") {
8287
8293
  writeSyncState(dir, { vosId, versionId: version.id });
@@ -12709,4 +12715,4 @@ export {
12709
12715
  verbHelp,
12710
12716
  run
12711
12717
  };
12712
- //# sourceMappingURL=chunk-F2QCWV4U.js.map
12718
+ //# sourceMappingURL=chunk-4Z6GQCXQ.js.map