@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.
- package/dist/lib/browser/{chunk-Y7EFVC6S.mjs → chunk-BAHSFG33.mjs} +3 -2
- package/dist/lib/browser/{chunk-Y7EFVC6S.mjs.map → chunk-BAHSFG33.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +1 -1
- package/dist/lib/node/index.cjs +8 -7
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +2 -1
- package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
- package/dist/types/src/packlets/storage/storage.d.ts.map +1 -1
- package/package.json +30 -30
- package/src/packlets/storage/storage.ts +7 -1
|
@@ -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-
|
|
3955
|
+
//# sourceMappingURL=chunk-BAHSFG33.mjs.map
|