@dxos/client-services 0.1.50-main.88a1229 → 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-BAHSFG33.mjs → chunk-UL74TKNZ.mjs} +2 -4
- package/dist/lib/browser/{chunk-BAHSFG33.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 +25 -27
- 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 -9
- 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 +1 -3
|
@@ -3201,14 +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
|
-
import { isNode } from "@dxos/util";
|
|
3209
3207
|
var StorageDriver = Runtime.Client.Storage.StorageDriver;
|
|
3210
3208
|
var createStorageObjects = (config) => {
|
|
3211
|
-
const { path =
|
|
3209
|
+
const { path = "dxos/storage", storageType, keyStorage, persistent = false } = config != null ? config : {};
|
|
3212
3210
|
if (persistent && storageType === StorageDriver.RAM) {
|
|
3213
3211
|
throw new InvalidConfigError("RAM storage cannot be used in persistent mode.");
|
|
3214
3212
|
}
|
|
@@ -3952,4 +3950,4 @@ export {
|
|
|
3952
3950
|
ClientServicesHost,
|
|
3953
3951
|
LocalClientServices
|
|
3954
3952
|
};
|
|
3955
|
-
//# sourceMappingURL=chunk-
|
|
3953
|
+
//# sourceMappingURL=chunk-UL74TKNZ.mjs.map
|