@tinycloud/node-sdk 3.1.0-beta.1 → 3.1.0-beta.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.
package/dist/index.cjs CHANGED
@@ -17075,6 +17075,8 @@ __export(index_exports, {
17075
17075
  SECRET_NAME_RE: () => import_sdk_core16.SECRET_NAME_RE,
17076
17076
  SQLAction: () => import_sdk_core14.SQLAction,
17077
17077
  SQLService: () => import_sdk_core14.SQLService,
17078
+ STORAGE_FULL_MESSAGE: () => import_sdk_core11.STORAGE_FULL_MESSAGE,
17079
+ STORAGE_WRITE_TOO_LARGE_MESSAGE: () => import_sdk_core11.STORAGE_WRITE_TOO_LARGE_MESSAGE,
17078
17080
  SecretsService: () => import_sdk_core16.SecretsService,
17079
17081
  ServiceContext: () => import_sdk_core23.ServiceContext,
17080
17082
  SessionExpiredError: () => import_sdk_core12.SessionExpiredError,
@@ -17150,6 +17152,7 @@ __export(index_exports, {
17150
17152
  isCapabilitySubset: () => import_sdk_core12.isCapabilitySubset,
17151
17153
  isEvmAddress: () => import_sdk_core11.isEvmAddress,
17152
17154
  isNetworkId: () => import_sdk_core17.isNetworkId,
17155
+ isStorageFullError: () => import_sdk_core11.isStorageFullError,
17153
17156
  loadManifest: () => import_sdk_core12.loadManifest,
17154
17157
  makePkhSpaceId: () => import_sdk_core11.makePkhSpaceId,
17155
17158
  makePublicSpaceId: () => import_sdk_core21.makePublicSpaceId,
@@ -20644,6 +20647,10 @@ var _TinyCloudNode = class _TinyCloudNode {
20644
20647
  );
20645
20648
  return;
20646
20649
  }
20650
+ if ((0, import_sdk_core7.isStorageFullError)(error) || (0, import_sdk_core7.isStorageFullError)(error?.cause) || message.includes(import_sdk_core7.STORAGE_FULL_MESSAGE) || message.includes(import_sdk_core7.STORAGE_WRITE_TOO_LARGE_MESSAGE)) {
20651
+ console.warn("TinyCloud account registry sync stopped: storage is full", error);
20652
+ return;
20653
+ }
20647
20654
  lastError = error;
20648
20655
  if (attempt < delays.length - 1) {
20649
20656
  await new Promise((resolve) => setTimeout(resolve, delays[attempt]));
@@ -25084,6 +25091,8 @@ var import_sdk_core23 = require("@tinycloud/sdk-core");
25084
25091
  SECRET_NAME_RE,
25085
25092
  SQLAction,
25086
25093
  SQLService,
25094
+ STORAGE_FULL_MESSAGE,
25095
+ STORAGE_WRITE_TOO_LARGE_MESSAGE,
25087
25096
  SecretsService,
25088
25097
  ServiceContext,
25089
25098
  SessionExpiredError,
@@ -25159,6 +25168,7 @@ var import_sdk_core23 = require("@tinycloud/sdk-core");
25159
25168
  isCapabilitySubset,
25160
25169
  isEvmAddress,
25161
25170
  isNetworkId,
25171
+ isStorageFullError,
25162
25172
  loadManifest,
25163
25173
  makePkhSpaceId,
25164
25174
  makePublicSpaceId,