@h-ai/deploy 1.0.0-beta.11 → 1.0.0-beta.13

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.js CHANGED
@@ -10329,10 +10329,7 @@ var ServerResultSchema = z.object({
10329
10329
  recoveryStatus: z.enum(["not-needed", "passed", "failed", "stopped"]).optional()
10330
10330
  });
10331
10331
  function makeDeploymentId() {
10332
- const now = /* @__PURE__ */ new Date();
10333
- const pad = (n) => String(n).padStart(2, "0");
10334
- const stamp = `${now.getFullYear()}${pad(now.getMonth() + 1)}${pad(now.getDate())}-${pad(now.getHours())}${pad(now.getMinutes())}${pad(now.getSeconds())}`;
10335
- return `${stamp}-${randomBytes(3).toString("hex")}`;
10332
+ return `${core.time.formatDate(/* @__PURE__ */ new Date(), "YYYYMMDD-HHmmss")}-${randomBytes(3).toString("hex")}`;
10336
10333
  }
10337
10334
  function sleep(ms) {
10338
10335
  return new Promise((resolve9) => setTimeout(resolve9, ms));