@rebasepro/server 0.10.1-canary.14e53ae → 0.10.1-canary.262a5be

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.es.js CHANGED
@@ -14580,7 +14580,7 @@ function buildAdapterAuthMiddleware(adapter, requireAuth, publicRead) {
14580
14580
  function createStorageRoutes(config) {
14581
14581
  const router = new Hono();
14582
14582
  router.onError(errorHandler);
14583
- const { controller, registry, sources: declaredSources, requireAuth: requireAuth$1 = true, publicRead = false, authAdapter, authorize, authorizeData } = config;
14583
+ const { controller, registry, sources: declaredSources, requireAuth: requireAuth$1 = true, publicRead = false, authAdapter, authorize } = config;
14584
14584
  /**
14585
14585
  * Run the per-object authorization hook, if one is configured.
14586
14586
  *
@@ -14601,8 +14601,7 @@ function createStorageRoutes(config) {
14601
14601
  bucket,
14602
14602
  operation,
14603
14603
  user,
14604
- storageId: storageId ?? void 0,
14605
- data: authorizeData?.()
14604
+ storageId: storageId ?? void 0
14606
14605
  });
14607
14606
  } catch {
14608
14607
  allowed = false;
@@ -20964,7 +20963,6 @@ async function _initializeRebaseBackend(config) {
20964
20963
  logger.info("Schema Editor mounted", { path: `${basePath}/schema-editor` });
20965
20964
  }
20966
20965
  }
20967
- const storageAuthorizeData = {};
20968
20966
  if (storageController) {
20969
20967
  const storageMaxSize = (config.storage && typeof config.storage === "object" && "type" in config.storage ? config.storage.maxFileSize : void 0) ?? 50 * 1024 * 1024;
20970
20968
  assertStorageAccessControlConfigured({
@@ -20979,8 +20977,7 @@ async function _initializeRebaseBackend(config) {
20979
20977
  requireAuth: resolveRequireAuth(config.auth),
20980
20978
  publicRead: config.storagePublicRead === true,
20981
20979
  authAdapter,
20982
- authorize: config.storageAuthorize,
20983
- authorizeData: () => storageAuthorizeData.current
20980
+ authorize: config.storageAuthorize
20984
20981
  });
20985
20982
  const storageRouter = new Hono();
20986
20983
  if (apiKeyPreAuth) storageRouter.use("/*", apiKeyPreAuth, createStorageApiKeyGuard());
@@ -21059,7 +21056,6 @@ async function _initializeRebaseBackend(config) {
21059
21056
  roles: ["admin"]
21060
21057
  };
21061
21058
  const defaultData = buildSdkData(await scopeDataDriver(defaultDriver, serviceIdentity));
21062
- storageAuthorizeData.current = defaultData;
21063
21059
  const dataSourcesByKey = {};
21064
21060
  for (const driverKey of driverRegistry.list()) {
21065
21061
  if (driverKey === "(default)") continue;