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