@tinycloud/node-sdk 3.1.0-beta.1 → 3.1.0-beta.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/core.js CHANGED
@@ -1725,7 +1725,10 @@ import {
1725
1725
  CREDENTIAL_INVITATION_REQUEST_DOMAIN,
1726
1726
  validateShareDeliveryAuthorizationV3Bytes,
1727
1727
  verifyEip191MessageSignature,
1728
- signCompactUcanRootAuthorization
1728
+ signCompactUcanRootAuthorization,
1729
+ isStorageFullError,
1730
+ STORAGE_FULL_MESSAGE,
1731
+ STORAGE_WRITE_TOO_LARGE_MESSAGE
1729
1732
  } from "@tinycloud/sdk-core";
1730
1733
  import {
1731
1734
  parsePermissionHint
@@ -3620,6 +3623,10 @@ var _TinyCloudNode = class _TinyCloudNode {
3620
3623
  );
3621
3624
  return;
3622
3625
  }
3626
+ if (isStorageFullError(error) || isStorageFullError(error?.cause) || message.includes(STORAGE_FULL_MESSAGE) || message.includes(STORAGE_WRITE_TOO_LARGE_MESSAGE)) {
3627
+ console.warn("TinyCloud account registry sync stopped: storage is full", error);
3628
+ return;
3629
+ }
3623
3630
  lastError = error;
3624
3631
  if (attempt < delays.length - 1) {
3625
3632
  await new Promise((resolve) => setTimeout(resolve, delays[attempt]));