@dxos/client-services 0.1.50-main.3962d45 → 0.1.50-main.88a1229

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.
@@ -3205,9 +3205,10 @@ import { DX_DATA } from "@dxos/client-protocol";
3205
3205
  import { InvalidConfigError } from "@dxos/errors";
3206
3206
  import { Runtime } from "@dxos/protocols/proto/dxos/config";
3207
3207
  import { createStorage, StorageType } from "@dxos/random-access-storage";
3208
+ import { isNode } from "@dxos/util";
3208
3209
  var StorageDriver = Runtime.Client.Storage.StorageDriver;
3209
3210
  var createStorageObjects = (config) => {
3210
- const { path = DX_DATA, storageType, keyStorage, persistent = false } = config != null ? config : {};
3211
+ const { path = isNode() ? DX_DATA : "dxos/storage", storageType, keyStorage, persistent = false } = config != null ? config : {};
3211
3212
  if (persistent && storageType === StorageDriver.RAM) {
3212
3213
  throw new InvalidConfigError("RAM storage cannot be used in persistent mode.");
3213
3214
  }
@@ -3951,4 +3952,4 @@ export {
3951
3952
  ClientServicesHost,
3952
3953
  LocalClientServices
3953
3954
  };
3954
- //# sourceMappingURL=chunk-Y7EFVC6S.mjs.map
3955
+ //# sourceMappingURL=chunk-BAHSFG33.mjs.map