@tinycloud/cli 1.5.0-beta.5 → 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.
package/dist/index.js CHANGED
@@ -13419,7 +13419,7 @@ async function refusal(response) {
13419
13419
  async function prepareLinkRecord(input) {
13420
13420
  const apiOrigin = checkApiOrigin(input.apiOrigin);
13421
13421
  const nowMs = toEpochMs(input.now);
13422
- const expiresMs = input.expiresAt.getTime();
13422
+ const expiresMs = Math.floor(input.expiresAt.getTime() / 1e3) * 1e3;
13423
13423
  if (!Number.isFinite(nowMs) || !Number.isFinite(expiresMs)) throw new LinkError("invalid_argument", "now and expiresAt must be valid dates");
13424
13424
  let blob;
13425
13425
  let key;