@dxos/client-services 0.1.50-next.53f1631 → 0.1.50

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.
@@ -3201,12 +3201,14 @@ var SpacesServiceImpl = class {
3201
3201
  var getChannelId = (channel) => `user-channel/${channel}`;
3202
3202
 
3203
3203
  // packages/sdk/client-services/src/packlets/storage/storage.ts
3204
+ import { DX_DATA } from "@dxos/client-protocol";
3204
3205
  import { InvalidConfigError } from "@dxos/errors";
3205
3206
  import { Runtime } from "@dxos/protocols/proto/dxos/config";
3206
3207
  import { createStorage, StorageType } from "@dxos/random-access-storage";
3208
+ import { isNode } from "@dxos/util";
3207
3209
  var StorageDriver = Runtime.Client.Storage.StorageDriver;
3208
3210
  var createStorageObjects = (config) => {
3209
- const { path = "dxos/storage", storageType, keyStorage, persistent = false } = config != null ? config : {};
3211
+ const { path = isNode() ? DX_DATA : "dxos/storage", storageType, keyStorage, persistent = false } = config != null ? config : {};
3210
3212
  if (persistent && storageType === StorageDriver.RAM) {
3211
3213
  throw new InvalidConfigError("RAM storage cannot be used in persistent mode.");
3212
3214
  }
@@ -3950,4 +3952,4 @@ export {
3950
3952
  ClientServicesHost,
3951
3953
  LocalClientServices
3952
3954
  };
3953
- //# sourceMappingURL=chunk-UL74TKNZ.mjs.map
3955
+ //# sourceMappingURL=chunk-BAHSFG33.mjs.map