@dxos/client-services 0.1.50-main.cab6083 → 0.1.50-main.e80fdfc
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-UL74TKNZ.mjs → chunk-Y7EFVC6S.mjs} +3 -2
- package/dist/lib/browser/{chunk-UL74TKNZ.mjs.map → chunk-Y7EFVC6S.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 +20 -19
- 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 +8 -7
- 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 +2 -6
|
@@ -3201,12 +3201,13 @@ 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";
|
|
3207
3208
|
var StorageDriver = Runtime.Client.Storage.StorageDriver;
|
|
3208
3209
|
var createStorageObjects = (config) => {
|
|
3209
|
-
const { path =
|
|
3210
|
+
const { path = DX_DATA, storageType, keyStorage, persistent = false } = config != null ? config : {};
|
|
3210
3211
|
if (persistent && storageType === StorageDriver.RAM) {
|
|
3211
3212
|
throw new InvalidConfigError("RAM storage cannot be used in persistent mode.");
|
|
3212
3213
|
}
|
|
@@ -3950,4 +3951,4 @@ export {
|
|
|
3950
3951
|
ClientServicesHost,
|
|
3951
3952
|
LocalClientServices
|
|
3952
3953
|
};
|
|
3953
|
-
//# sourceMappingURL=chunk-
|
|
3954
|
+
//# sourceMappingURL=chunk-Y7EFVC6S.mjs.map
|