@tinycloud/cli 1.5.0-beta.6 → 1.5.0-beta.7

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.
@@ -15794,7 +15794,7 @@ async function refusal(response) {
15794
15794
  async function prepareLinkRecord(input) {
15795
15795
  const apiOrigin2 = checkApiOrigin(input.apiOrigin);
15796
15796
  const nowMs = toEpochMs(input.now);
15797
- const expiresMs = input.expiresAt.getTime();
15797
+ const expiresMs = Math.floor(input.expiresAt.getTime() / 1e3) * 1e3;
15798
15798
  if (!Number.isFinite(nowMs) || !Number.isFinite(expiresMs)) throw new LinkError("invalid_argument", "now and expiresAt must be valid dates");
15799
15799
  let blob;
15800
15800
  let key;