core-3nweb-client-lib 0.30.3 → 0.30.4
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/build/api-defs/asmail.d.ts +9 -6
- package/build/core/app-files.d.ts +4 -4
- package/build/core/app-files.js +2 -2
- package/build/core/asmail/asmail-cap-ipc.d.ts +1 -1
- package/build/core/asmail/asmail-cap-ipc.js +2 -3
- package/build/core/asmail/config/common.d.ts +2 -2
- package/build/core/asmail/config/index.d.ts +1 -1
- package/build/core/asmail/config/invitations-anon.d.ts +1 -1
- package/build/core/asmail/config/invitations-anon.js +1 -2
- package/build/core/asmail/config/published-intro-key.d.ts +2 -2
- package/build/core/asmail/config/published-intro-key.js +1 -2
- package/build/core/asmail/delivery/common.d.ts +6 -6
- package/build/core/asmail/delivery/common.js +3 -3
- package/build/core/asmail/delivery/index.d.ts +4 -4
- package/build/core/asmail/delivery/msg.d.ts +4 -4
- package/build/core/asmail/delivery/msg.js +3 -3
- package/build/core/asmail/inbox/attachments/fs.d.ts +1 -1
- package/build/core/asmail/inbox/attachments/fs.js +1 -2
- package/build/core/asmail/inbox/inbox-events.d.ts +4 -3
- package/build/core/asmail/inbox/inbox-events.js +1 -1
- package/build/core/asmail/inbox/index.d.ts +2 -2
- package/build/core/asmail/inbox/index.js +7 -4
- package/build/core/asmail/inbox/msg-indexing/index.d.ts +2 -2
- package/build/core/asmail/inbox/msg-indexing/logs-n-entries.d.ts +3 -3
- package/build/core/asmail/inbox/msg-indexing/logs-n-entries.js +2 -2
- package/build/core/asmail/inbox/msg-indexing/sql-indexing.d.ts +1 -1
- package/build/core/asmail/inbox/msg-indexing/sql-indexing.js +1 -2
- package/build/core/asmail/inbox/msg-on-disk.d.ts +2 -2
- package/build/core/asmail/inbox/msg-on-disk.js +3 -3
- package/build/core/asmail/index.d.ts +3 -3
- package/build/core/asmail/key-verification.js +2 -3
- package/build/core/asmail/keyring/common.d.ts +1 -1
- package/build/core/asmail/keyring/common.js +7 -7
- package/build/core/asmail/keyring/correspondent-keys.d.ts +1 -1
- package/build/core/asmail/keyring/correspondent-keys.js +5 -5
- package/build/core/asmail/keyring/index.d.ts +3 -3
- package/build/core/asmail/keyring/index.js +2 -2
- package/build/core/asmail/keyring/keyring-storage.d.ts +1 -1
- package/build/core/asmail/keyring/keyring-storage.js +1 -2
- package/build/core/asmail/msg/attachments-container.d.ts +3 -3
- package/build/core/asmail/msg/attachments-container.js +7 -8
- package/build/core/asmail/msg/opener.js +2 -2
- package/build/core/asmail/msg/packer.d.ts +2 -2
- package/build/core/asmail/sending-params/index.d.ts +3 -3
- package/build/core/asmail/sending-params/own-params.d.ts +3 -3
- package/build/core/asmail/sending-params/params-from-others.d.ts +3 -3
- package/build/core/id-manager/index.d.ts +4 -4
- package/build/core/id-manager/key-storage.d.ts +1 -1
- package/build/core/id-manager/mailerid-cap-ipc.d.ts +1 -1
- package/build/core/id-manager/mailerid-cap-ipc.js +2 -3
- package/build/core/index.d.ts +3 -3
- package/build/core/startup/sign-in.d.ts +6 -6
- package/build/core/startup/sign-in.js +2 -2
- package/build/core/startup/sign-up.d.ts +1 -1
- package/build/core/startup/sign-up.js +6 -6
- package/build/core/startup/startup-cap.d.ts +2 -2
- package/build/core/startup/startup-cap.js +4 -5
- package/build/core/storage/common/obj-info-file.js +12 -13
- package/build/core/storage/common/utils.js +2 -3
- package/build/core/storage/index.d.ts +5 -5
- package/build/core/storage/index.js +2 -2
- package/build/core/storage/local/storage.d.ts +3 -3
- package/build/core/storage/storage-cap-ipc.d.ts +1 -1
- package/build/core/storage/storage-cap-ipc.js +3 -4
- package/build/core/storage/synced/obj-files.d.ts +1 -1
- package/build/core/storage/synced/obj-status.d.ts +2 -2
- package/build/core/storage/synced/obj-status.js +2 -2
- package/build/core/storage/synced/storage.d.ts +4 -4
- package/build/core/storage/synced/upload-header-file.js +3 -3
- package/build/core/storage/synced/upsyncer.d.ts +1 -1
- package/build/core/storage/system-folders/apps-data.d.ts +1 -1
- package/build/core/storage/system-folders/index.d.ts +2 -2
- package/build/core/storage/system-folders/index.js +4 -4
- package/build/core-ipc/bytes.d.ts +2 -2
- package/build/core-ipc/bytes.js +4 -5
- package/build/core-ipc/common-caps.d.ts +1 -1
- package/build/core-ipc/common-caps.js +3 -4
- package/build/core-ipc/file.d.ts +13 -14
- package/build/core-ipc/file.js +31 -31
- package/build/core-ipc/fs.d.ts +3 -3
- package/build/core-ipc/fs.js +6 -6
- package/build/core-ipc/generic.d.ts +4 -4
- package/build/core-ipc/generic.js +3 -4
- package/build/core-ipc/log-cap.d.ts +1 -1
- package/build/core-ipc/log-cap.js +2 -3
- package/build/core-ipc/startup-caps.d.ts +1 -1
- package/build/core-ipc/startup-caps.js +2 -3
- package/build/ipc-via-protobuf/connector.d.ts +6 -7
- package/build/ipc-via-protobuf/connector.js +3 -3
- package/build/ipc-via-protobuf/protobuf-msg.d.ts +1 -2
- package/build/ipc-via-protobuf/protobuf-msg.js +20 -20
- package/build/lib-client/3nstorage/exceptions.d.ts +1 -1
- package/build/lib-client/3nstorage/exceptions.js +9 -10
- package/build/lib-client/3nstorage/service.d.ts +2 -2
- package/build/lib-client/3nstorage/util/file-based-json.d.ts +3 -3
- package/build/lib-client/3nstorage/util/for-arrays.js +1 -2
- package/build/lib-client/3nstorage/xsp-fs/attrs.d.ts +1 -2
- package/build/lib-client/3nstorage/xsp-fs/common.d.ts +12 -12
- package/build/lib-client/3nstorage/xsp-fs/common.js +5 -5
- package/build/lib-client/3nstorage/xsp-fs/file-node.d.ts +4 -4
- package/build/lib-client/3nstorage/xsp-fs/file.d.ts +15 -15
- package/build/lib-client/3nstorage/xsp-fs/folder-node-serialization.js +2 -3
- package/build/lib-client/3nstorage/xsp-fs/folder-node.d.ts +7 -7
- package/build/lib-client/3nstorage/xsp-fs/fs.d.ts +27 -27
- package/build/lib-client/3nstorage/xsp-fs/link-node.d.ts +2 -2
- package/build/lib-client/3nstorage/xsp-fs/node-in-fs.d.ts +7 -7
- package/build/lib-client/3nstorage/xsp-fs/node-in-fs.js +11 -11
- package/build/lib-client/3nstorage/xsp-fs/node-persistence.d.ts +2 -2
- package/build/lib-client/3nstorage/xsp-fs/xsp-payload-v1.js +1 -2
- package/build/lib-client/3nstorage/xsp-fs/xsp-payload-v2.js +3 -4
- package/build/lib-client/3nweb-signup.js +4 -5
- package/build/lib-client/asmail/recipient.d.ts +1 -1
- package/build/lib-client/asmail/recipient.js +4 -4
- package/build/lib-client/asmail/sender.d.ts +3 -3
- package/build/lib-client/asmail/sender.js +9 -9
- package/build/lib-client/cryptor/cryptor-in-worker.d.ts +2 -2
- package/build/lib-client/cryptor/cryptor.d.ts +2 -2
- package/build/lib-client/cryptor/cryptor.js +3 -3
- package/build/lib-client/cryptor/in-proc-js.js +1 -2
- package/build/lib-client/cryptor/in-proc-wasm.js +1 -2
- package/build/lib-client/cryptor/serialization-for-wasm.d.ts +1 -2
- package/build/lib-client/cryptor/serialization-for-wasm.js +6 -7
- package/build/lib-client/cryptor/wasm-mp1-modules.js +1 -2
- package/build/lib-client/cryptor-work-labels.js +1 -1
- package/build/lib-client/fs-utils/files-select.d.ts +3 -3
- package/build/lib-client/fs-utils/files-select.js +1 -2
- package/build/lib-client/fs-utils/files.d.ts +7 -7
- package/build/lib-client/fs-utils/files.js +7 -8
- package/build/lib-client/fs-utils/fs-collection.d.ts +1 -1
- package/build/lib-client/fs-utils/fs-collection.js +2 -3
- package/build/lib-client/fs-utils/fs-sync-utils.d.ts +5 -5
- package/build/lib-client/fs-utils/fs-sync-utils.js +4 -5
- package/build/lib-client/fs-utils/fs-view.d.ts +4 -4
- package/build/lib-client/fs-utils/fs-view.js +1 -2
- package/build/lib-client/key-derivation.js +3 -4
- package/build/lib-client/local-files/dev-file-sink.d.ts +2 -3
- package/build/lib-client/local-files/dev-file-src.d.ts +0 -1
- package/build/lib-client/local-files/device-fs.d.ts +18 -18
- package/build/lib-client/logging/log-to-file.d.ts +5 -5
- package/build/lib-client/logging/log-to-file.js +2 -2
- package/build/lib-client/mailer-id/login.js +2 -3
- package/build/lib-client/objs-on-disk/file-writing-proc.d.ts +1 -1
- package/build/lib-client/objs-on-disk/obj-folders.d.ts +1 -1
- package/build/lib-client/objs-on-disk/obj-folders.js +3 -3
- package/build/lib-client/objs-on-disk/obj-on-disk.d.ts +1 -1
- package/build/lib-client/protobuf-type.d.ts +0 -1
- package/build/lib-client/request-utils.d.ts +2 -4
- package/build/lib-client/request-utils.js +6 -6
- package/build/lib-client/service-locator.d.ts +3 -4
- package/build/lib-client/service-locator.js +5 -6
- package/build/lib-client/user-with-mid-session.d.ts +1 -1
- package/build/lib-client/user-with-mid-session.js +17 -17
- package/build/lib-client/user-with-pkl-session.js +16 -16
- package/build/lib-client/ws-utils.js +1 -2
- package/build/lib-common/assert.js +1 -2
- package/build/lib-common/async-cryptor-wrap.js +4 -5
- package/build/lib-common/async-fs-node.d.ts +0 -3
- package/build/lib-common/async-fs-node.js +35 -35
- package/build/lib-common/async-iter.js +2 -3
- package/build/lib-common/big-endian.d.ts +0 -1
- package/build/lib-common/big-endian.js +10 -11
- package/build/lib-common/binding.js +1 -2
- package/build/lib-common/buffer-utils.d.ts +0 -1
- package/build/lib-common/buffer-utils.js +9 -9
- package/build/lib-common/byte-streaming/bytes-fifo-buffer.js +5 -5
- package/build/lib-common/byte-streaming/pipe.d.ts +2 -2
- package/build/lib-common/byte-streaming/pipe.js +1 -2
- package/build/lib-common/byte-streaming/wrapping.d.ts +2 -2
- package/build/lib-common/byte-streaming/wrapping.js +3 -4
- package/build/lib-common/bytes-equal.js +1 -2
- package/build/lib-common/canonical-address.js +3 -4
- package/build/lib-common/exceptions/error.js +3 -4
- package/build/lib-common/exceptions/file.d.ts +2 -2
- package/build/lib-common/exceptions/file.js +7 -7
- package/build/lib-common/exceptions/http.js +2 -3
- package/build/lib-common/exceptions/runtime.js +1 -2
- package/build/lib-common/ipc/generic-ipc.d.ts +3 -3
- package/build/lib-common/ipc/generic-ipc.js +11 -11
- package/build/lib-common/ipc/ws-ipc.js +2 -2
- package/build/lib-common/json-utils.js +4 -5
- package/build/lib-common/jwkeys.d.ts +1 -1
- package/build/lib-common/jwkeys.js +13 -13
- package/build/lib-common/mid-sigs-NaCl-Ed.d.ts +3 -3
- package/build/lib-common/mid-sigs-NaCl-Ed.js +5 -5
- package/build/lib-common/obj-streaming/sink-utils.d.ts +2 -2
- package/build/lib-common/obj-streaming/sink-utils.js +2 -3
- package/build/lib-common/obj-streaming/wrapping.js +1 -2
- package/build/lib-common/objs-on-disk/file-layout.d.ts +4 -5
- package/build/lib-common/objs-on-disk/obj-file.d.ts +0 -1
- package/build/lib-common/objs-on-disk/utils.d.ts +3 -5
- package/build/lib-common/objs-on-disk/utils.js +5 -6
- package/build/lib-common/objs-on-disk/v1-obj-file-format.d.ts +0 -1
- package/build/lib-common/objs-on-disk/v1-obj-file-format.js +1 -1
- package/build/lib-common/processes/deferred.js +1 -2
- package/build/lib-common/processes/sleep.js +1 -2
- package/build/lib-common/processes/synced.d.ts +1 -1
- package/build/lib-common/processes/synced.js +2 -2
- package/build/lib-common/processes/timeout.js +1 -2
- package/build/lib-common/random-node.js +10 -11
- package/build/lib-common/service-api/3nstorage/owner.js +19 -19
- package/build/lib-common/service-api/asmail/config.js +3 -3
- package/build/lib-common/service-api/asmail/delivery.js +8 -8
- package/build/lib-common/service-api/asmail/retrieval.js +11 -11
- package/build/lib-common/service-api/mailer-id/login.js +2 -2
- package/build/lib-common/service-api/mailer-id/provisioning.js +2 -2
- package/build/lib-common/service-api/pub-key-login.js +2 -2
- package/build/lib-common/service-api/web-socket-base.d.ts +1 -1
- package/build/lib-common/service-api/web-socket-base.js +3 -3
- package/build/lib-common/session-encryptor.js +1 -2
- package/build/lib-common/timed-cache.js +1 -2
- package/build/lib-common/user-admin-api/signup.js +4 -4
- package/build/lib-common/utils-for-observables.js +5 -5
- package/build/lib-sqlite-on-3nstorage/deferred.js +1 -2
- package/build/lib-sqlite-on-3nstorage/index.d.ts +5 -5
- package/build/lib-sqlite-on-3nstorage/index.js +2 -2
- package/build/lib-sqlite-on-3nstorage/synced.d.ts +1 -1
- package/build/lib-sqlite-on-3nstorage/synced.js +2 -2
- package/build/raw-3nweb-clients.d.ts +7 -7
- package/build/raw-3nweb-clients.js +2 -2
- package/package.json +2 -2
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
19
|
+
exports.exposeCAPs = exposeCAPs;
|
|
20
|
+
exports.makeClientSide = makeClientSide;
|
|
21
|
+
exports.promiseClientSide = promiseClientSide;
|
|
20
22
|
const connector_1 = require("../ipc-via-protobuf/connector");
|
|
21
23
|
const assert_1 = require("../lib-common/assert");
|
|
22
24
|
function exposeCAPs(coreSide, w3n, mainCAPs, extraCAPs) {
|
|
@@ -27,7 +29,6 @@ function exposeCAPs(coreSide, w3n, mainCAPs, extraCAPs) {
|
|
|
27
29
|
}
|
|
28
30
|
coreSide.exposeW3NService(expW3N);
|
|
29
31
|
}
|
|
30
|
-
exports.exposeCAPs = exposeCAPs;
|
|
31
32
|
function addCAPsInExposure(expW3N, coreSide, w3n, capExposures) {
|
|
32
33
|
for (const capName in capExposures) {
|
|
33
34
|
const expose = capExposures[capName];
|
|
@@ -59,7 +60,6 @@ function makeClientSide(clientSide, mainCAPs, extraCAPs) {
|
|
|
59
60
|
}
|
|
60
61
|
return w3n;
|
|
61
62
|
}
|
|
62
|
-
exports.makeClientSide = makeClientSide;
|
|
63
63
|
async function promiseClientSide(clientSide, mainCAPs, extraCAPs) {
|
|
64
64
|
(0, assert_1.assert)(!!clientSide.listObjAsync);
|
|
65
65
|
const objPath = [connector_1.W3N_NAME];
|
|
@@ -80,5 +80,4 @@ async function promiseClientSide(clientSide, mainCAPs, extraCAPs) {
|
|
|
80
80
|
}
|
|
81
81
|
return w3n;
|
|
82
82
|
}
|
|
83
|
-
exports.promiseClientSide = promiseClientSide;
|
|
84
83
|
Object.freeze(exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExposedFn, Caller } from "../ipc-via-protobuf/connector";
|
|
2
|
-
|
|
2
|
+
type Logger = web3n.caps.common.Logger;
|
|
3
3
|
export declare function exposeLogger(fn: Logger): ExposedFn;
|
|
4
4
|
export declare function makeLogCaller(caller: Caller, path: string[]): Logger;
|
|
5
5
|
export {};
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
19
|
+
exports.exposeLogger = exposeLogger;
|
|
20
|
+
exports.makeLogCaller = makeLogCaller;
|
|
20
21
|
const protobuf_msg_1 = require("../ipc-via-protobuf/protobuf-msg");
|
|
21
22
|
const protobuf_type_1 = require("../lib-client/protobuf-type");
|
|
22
23
|
const logger_proto_1 = require("../protos/logger.proto");
|
|
@@ -30,7 +31,6 @@ function exposeLogger(fn) {
|
|
|
30
31
|
return { promise };
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
|
-
exports.exposeLogger = exposeLogger;
|
|
34
34
|
function makeLogCaller(caller, path) {
|
|
35
35
|
return (type, msg, err) => {
|
|
36
36
|
const req = { logType: type, msg };
|
|
@@ -40,5 +40,4 @@ function makeLogCaller(caller, path) {
|
|
|
40
40
|
return caller.startPromiseCall(path, logReqType.pack(req));
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
exports.makeLogCaller = makeLogCaller;
|
|
44
43
|
Object.freeze(exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExposedServices, Caller } from "../ipc-via-protobuf/connector";
|
|
2
2
|
import { ClientCAPsWraps, CAPsExposures, TypeDifference } from "./generic";
|
|
3
|
-
|
|
3
|
+
type W3N = web3n.startup.W3N;
|
|
4
4
|
export declare function exposeStartupW3N<T extends W3N>(coreSide: ExposedServices, w3n: T, extraCAPs?: CAPsExposures<TypeDifference<T, W3N>>): void;
|
|
5
5
|
export declare function makeStartupW3Nclient<T extends W3N>(clientSide: Caller, extraCAPs?: ClientCAPsWraps<TypeDifference<T, W3N>>): W3N;
|
|
6
6
|
export {};
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
19
|
+
exports.exposeStartupW3N = exposeStartupW3N;
|
|
20
|
+
exports.makeStartupW3Nclient = makeStartupW3Nclient;
|
|
20
21
|
const connector_1 = require("../ipc-via-protobuf/connector");
|
|
21
22
|
const startup_cap_1 = require("../core/startup/startup-cap");
|
|
22
23
|
const generic_1 = require("./generic");
|
|
@@ -27,7 +28,6 @@ function exposeStartupW3N(coreSide, w3n, extraCAPs) {
|
|
|
27
28
|
};
|
|
28
29
|
(0, generic_1.exposeCAPs)(coreSide, w3n, startupCAPsExposures, extraCAPs);
|
|
29
30
|
}
|
|
30
|
-
exports.exposeStartupW3N = exposeStartupW3N;
|
|
31
31
|
// This is not used, but it ensures that some require runs, providing function
|
|
32
32
|
// for protobuf-something.
|
|
33
33
|
const unused = connector_1.W3N_NAME;
|
|
@@ -38,5 +38,4 @@ function makeStartupW3Nclient(clientSide, extraCAPs) {
|
|
|
38
38
|
};
|
|
39
39
|
return (0, generic_1.makeClientSide)(clientSide, mainCAPs, extraCAPs);
|
|
40
40
|
}
|
|
41
|
-
exports.makeStartupW3Nclient = makeStartupW3Nclient;
|
|
42
41
|
Object.freeze(exports);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { Observer, SubjectLike, Subscribable } from "rxjs";
|
|
3
2
|
import { ObjectReference, Value } from "./protobuf-msg";
|
|
4
3
|
import { ProtoType } from '../lib-client/protobuf-type';
|
|
@@ -66,17 +65,17 @@ export interface Envelope {
|
|
|
66
65
|
};
|
|
67
66
|
body?: Value<Buffer>;
|
|
68
67
|
}
|
|
69
|
-
export
|
|
70
|
-
export
|
|
71
|
-
export
|
|
72
|
-
export
|
|
68
|
+
export type EnvelopeBody = Buffer | void;
|
|
69
|
+
export type MsgType = ClientToService | ServiceToClient;
|
|
70
|
+
export type ClientToService = 'start' | 'cancel' | 'drop' | 'list-obj';
|
|
71
|
+
export type ServiceToClient = 'interim' | 'end' | 'error';
|
|
73
72
|
export declare const msgProtoType: ProtoType<Envelope>;
|
|
74
|
-
export
|
|
73
|
+
export type ExposedFn = (reqBody: EnvelopeBody) => ({
|
|
75
74
|
promise?: Promise<EnvelopeBody>;
|
|
76
75
|
obs?: Subscribable<EnvelopeBody>;
|
|
77
76
|
onCancel?: () => void;
|
|
78
77
|
} | void);
|
|
79
|
-
export
|
|
78
|
+
export type ExposedObj<T extends object> = {
|
|
80
79
|
[method in keyof T]: ExposedFn | ExposedObj<any>;
|
|
81
80
|
};
|
|
82
81
|
export interface IPCException extends web3n.RuntimeException {
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
19
|
+
exports.msgProtoType = exports.W3N_NAME = exports.ObjectsConnector = void 0;
|
|
20
|
+
exports.makeIPCException = makeIPCException;
|
|
21
|
+
exports.checkRefObjTypeIs = checkRefObjTypeIs;
|
|
20
22
|
const protobuf_msg_1 = require("./protobuf-msg");
|
|
21
23
|
const protobuf_type_1 = require("../lib-client/protobuf-type");
|
|
22
24
|
const ipc_proto_1 = require("../protos/ipc.proto");
|
|
@@ -170,11 +172,9 @@ function makeIPCException(fields) {
|
|
|
170
172
|
}
|
|
171
173
|
return exc;
|
|
172
174
|
}
|
|
173
|
-
exports.makeIPCException = makeIPCException;
|
|
174
175
|
function checkRefObjTypeIs(expected, ref) {
|
|
175
176
|
if (ref.objType !== expected) {
|
|
176
177
|
throw new TypeError(`Expected reference to ${expected} type, instead got ${ref.objType}`);
|
|
177
178
|
}
|
|
178
179
|
}
|
|
179
|
-
exports.checkRefObjTypeIs = checkRefObjTypeIs;
|
|
180
180
|
Object.freeze(exports);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { EnvelopeBody } from './connector';
|
|
3
2
|
import { ProtoType } from '../lib-client/protobuf-type';
|
|
4
|
-
|
|
3
|
+
type RuntimeException = web3n.RuntimeException;
|
|
5
4
|
export interface ObjectReference<T> {
|
|
6
5
|
objType: T;
|
|
7
6
|
path: string[];
|
|
@@ -16,7 +16,26 @@
|
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
19
|
+
exports.errBodyType = exports.strArrValType = exports.boolValType = exports.objRefType = void 0;
|
|
20
|
+
exports.fixArray = fixArray;
|
|
21
|
+
exports.fixInt = fixInt;
|
|
22
|
+
exports.valOfOptInt = valOfOptInt;
|
|
23
|
+
exports.packInt = packInt;
|
|
24
|
+
exports.unpackInt = unpackInt;
|
|
25
|
+
exports.errToMsg = errToMsg;
|
|
26
|
+
exports.errFromMsg = errFromMsg;
|
|
27
|
+
exports.toVal = toVal;
|
|
28
|
+
exports.toOptVal = toOptVal;
|
|
29
|
+
exports.valOf = valOf;
|
|
30
|
+
exports.intValOf = intValOf;
|
|
31
|
+
exports.valOfOpt = valOfOpt;
|
|
32
|
+
exports.valOfOptJson = valOfOptJson;
|
|
33
|
+
exports.toOptJson = toOptJson;
|
|
34
|
+
exports.toOptAny = toOptAny;
|
|
35
|
+
exports.valOfOptAny = valOfOptAny;
|
|
36
|
+
exports.encodeToUtf8 = encodeToUtf8;
|
|
37
|
+
exports.decodeFromUtf8 = decodeFromUtf8;
|
|
38
|
+
exports.methodPathFor = methodPathFor;
|
|
20
39
|
const connector_1 = require("./connector");
|
|
21
40
|
const error_1 = require("../lib-common/exceptions/error");
|
|
22
41
|
const buffer_utils_1 = require("../lib-common/buffer-utils");
|
|
@@ -28,7 +47,6 @@ exports.strArrValType = protobuf_type_1.ProtoType.for(common_proto_1.common.Stri
|
|
|
28
47
|
function fixArray(arr) {
|
|
29
48
|
return (arr ? arr : []);
|
|
30
49
|
}
|
|
31
|
-
exports.fixArray = fixArray;
|
|
32
50
|
const MAX_HIGH = 0b111111111111111111111;
|
|
33
51
|
function fixInt(uint64) {
|
|
34
52
|
if (typeof uint64 === 'object') {
|
|
@@ -57,23 +75,19 @@ function fixInt(uint64) {
|
|
|
57
75
|
throw new TypeError(`Can't extract integer from ${typeof uint64}`);
|
|
58
76
|
}
|
|
59
77
|
}
|
|
60
|
-
exports.fixInt = fixInt;
|
|
61
78
|
function valOfOptInt(uint64) {
|
|
62
79
|
if (!uint64) {
|
|
63
80
|
return;
|
|
64
81
|
}
|
|
65
82
|
return intValOf(uint64);
|
|
66
83
|
}
|
|
67
|
-
exports.valOfOptInt = valOfOptInt;
|
|
68
84
|
const numValType = protobuf_type_1.ProtoType.for(common_proto_1.common.UInt64Value);
|
|
69
85
|
function packInt(uint64) {
|
|
70
86
|
return numValType.pack({ value: uint64 });
|
|
71
87
|
}
|
|
72
|
-
exports.packInt = packInt;
|
|
73
88
|
function unpackInt(buf) {
|
|
74
89
|
return fixInt(valOf(numValType.unpack(buf)));
|
|
75
90
|
}
|
|
76
|
-
exports.unpackInt = unpackInt;
|
|
77
91
|
exports.errBodyType = protobuf_type_1.ProtoType.for(common_proto_1.common.ErrorValue);
|
|
78
92
|
function errToMsg(err) {
|
|
79
93
|
if (typeof err !== 'object') {
|
|
@@ -86,7 +100,6 @@ function errToMsg(err) {
|
|
|
86
100
|
return { err: (0, error_1.stringifyErr)(err) };
|
|
87
101
|
}
|
|
88
102
|
}
|
|
89
|
-
exports.errToMsg = errToMsg;
|
|
90
103
|
function errFromMsg(msg) {
|
|
91
104
|
if (msg.runtimeExcJson) {
|
|
92
105
|
return JSON.parse(msg.runtimeExcJson);
|
|
@@ -95,27 +108,21 @@ function errFromMsg(msg) {
|
|
|
95
108
|
return new Error(`Error from other side of ipc:\n${msg.err}`);
|
|
96
109
|
}
|
|
97
110
|
}
|
|
98
|
-
exports.errFromMsg = errFromMsg;
|
|
99
111
|
function toVal(value) {
|
|
100
112
|
return { value };
|
|
101
113
|
}
|
|
102
|
-
exports.toVal = toVal;
|
|
103
114
|
function toOptVal(value) {
|
|
104
115
|
return ((value === undefined) ? undefined : { value });
|
|
105
116
|
}
|
|
106
|
-
exports.toOptVal = toOptVal;
|
|
107
117
|
function valOf(valObj) {
|
|
108
118
|
return valObj.value;
|
|
109
119
|
}
|
|
110
|
-
exports.valOf = valOf;
|
|
111
120
|
function intValOf(uint64) {
|
|
112
121
|
return fixInt(valOf(uint64));
|
|
113
122
|
}
|
|
114
|
-
exports.intValOf = intValOf;
|
|
115
123
|
function valOfOpt(valObj) {
|
|
116
124
|
return (valObj ? valObj.value : undefined);
|
|
117
125
|
}
|
|
118
|
-
exports.valOfOpt = valOfOpt;
|
|
119
126
|
function valOfOptJson(valObj) {
|
|
120
127
|
try {
|
|
121
128
|
return (valObj ? JSON.parse(valObj.value) : undefined);
|
|
@@ -124,11 +131,9 @@ function valOfOptJson(valObj) {
|
|
|
124
131
|
throw (0, connector_1.makeIPCException)({ cause: err, badReply: true });
|
|
125
132
|
}
|
|
126
133
|
}
|
|
127
|
-
exports.valOfOptJson = valOfOptJson;
|
|
128
134
|
function toOptJson(json) {
|
|
129
135
|
return ((json === undefined) ? undefined : toVal(JSON.stringify(json)));
|
|
130
136
|
}
|
|
131
|
-
exports.toOptJson = toOptJson;
|
|
132
137
|
function toOptAny(value) {
|
|
133
138
|
if (value === undefined) {
|
|
134
139
|
return undefined;
|
|
@@ -143,7 +148,6 @@ function toOptAny(value) {
|
|
|
143
148
|
return { json: toVal(JSON.stringify(value)) };
|
|
144
149
|
}
|
|
145
150
|
}
|
|
146
|
-
exports.toOptAny = toOptAny;
|
|
147
151
|
function valOfOptAny(valObj) {
|
|
148
152
|
if (!valObj) {
|
|
149
153
|
return undefined;
|
|
@@ -155,7 +159,6 @@ function valOfOptAny(valObj) {
|
|
|
155
159
|
return valOfOpt(valObj.bytes);
|
|
156
160
|
}
|
|
157
161
|
}
|
|
158
|
-
exports.valOfOptAny = valOfOptAny;
|
|
159
162
|
function encodeToUtf8(str) {
|
|
160
163
|
try {
|
|
161
164
|
const enc = new TextEncoder();
|
|
@@ -165,7 +168,6 @@ function encodeToUtf8(str) {
|
|
|
165
168
|
return buffer_utils_1.utf8.pack(str);
|
|
166
169
|
}
|
|
167
170
|
}
|
|
168
|
-
exports.encodeToUtf8 = encodeToUtf8;
|
|
169
171
|
function decodeFromUtf8(bytes) {
|
|
170
172
|
try {
|
|
171
173
|
const dec = new TextDecoder();
|
|
@@ -175,9 +177,7 @@ function decodeFromUtf8(bytes) {
|
|
|
175
177
|
return buffer_utils_1.utf8.open(bytes);
|
|
176
178
|
}
|
|
177
179
|
}
|
|
178
|
-
exports.decodeFromUtf8 = decodeFromUtf8;
|
|
179
180
|
function methodPathFor(objPath, method) {
|
|
180
181
|
return objPath.concat(method);
|
|
181
182
|
}
|
|
182
|
-
exports.methodPathFor = methodPathFor;
|
|
183
183
|
Object.freeze(exports);
|
|
@@ -16,7 +16,15 @@
|
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
19
|
+
exports.makeStorageException = makeStorageException;
|
|
20
|
+
exports.makeObjNotFoundExc = makeObjNotFoundExc;
|
|
21
|
+
exports.makeObjVersionNotFoundExc = makeObjVersionNotFoundExc;
|
|
22
|
+
exports.makeObjExistsExc = makeObjExistsExc;
|
|
23
|
+
exports.makeConcurrentTransExc = makeConcurrentTransExc;
|
|
24
|
+
exports.makeUnknownTransactionExc = makeUnknownTransactionExc;
|
|
25
|
+
exports.makeVersionMismatchExc = makeVersionMismatchExc;
|
|
26
|
+
exports.makeStorageIsClosedExc = makeStorageIsClosedExc;
|
|
27
|
+
exports.makeFSSyncException = makeFSSyncException;
|
|
20
28
|
function makeStorageException(fields) {
|
|
21
29
|
const exc = {
|
|
22
30
|
runtimeException: true,
|
|
@@ -27,47 +35,39 @@ function makeStorageException(fields) {
|
|
|
27
35
|
}
|
|
28
36
|
return exc;
|
|
29
37
|
}
|
|
30
|
-
exports.makeStorageException = makeStorageException;
|
|
31
38
|
function makeObjNotFoundExc(objId, remoteStorage) {
|
|
32
39
|
return makeStorageException({
|
|
33
40
|
objId, objNotFound: true, remoteStorage
|
|
34
41
|
});
|
|
35
42
|
}
|
|
36
|
-
exports.makeObjNotFoundExc = makeObjNotFoundExc;
|
|
37
43
|
function makeObjVersionNotFoundExc(objId, version, remoteStorage) {
|
|
38
44
|
return makeStorageException({
|
|
39
45
|
objId, version, objVersionNotFound: true, remoteStorage
|
|
40
46
|
});
|
|
41
47
|
}
|
|
42
|
-
exports.makeObjVersionNotFoundExc = makeObjVersionNotFoundExc;
|
|
43
48
|
function makeObjExistsExc(objId, version, remoteStorage) {
|
|
44
49
|
return makeStorageException({
|
|
45
50
|
objId, version, objExists: true, remoteStorage
|
|
46
51
|
});
|
|
47
52
|
}
|
|
48
|
-
exports.makeObjExistsExc = makeObjExistsExc;
|
|
49
53
|
function makeConcurrentTransExc(objId) {
|
|
50
54
|
return makeStorageException({
|
|
51
55
|
objId, concurrentTransaction: true, remoteStorage: true
|
|
52
56
|
});
|
|
53
57
|
}
|
|
54
|
-
exports.makeConcurrentTransExc = makeConcurrentTransExc;
|
|
55
58
|
function makeUnknownTransactionExc(objId) {
|
|
56
59
|
return makeStorageException({
|
|
57
60
|
objId, unknownTransaction: true, remoteStorage: true
|
|
58
61
|
});
|
|
59
62
|
}
|
|
60
|
-
exports.makeUnknownTransactionExc = makeUnknownTransactionExc;
|
|
61
63
|
function makeVersionMismatchExc(objId, currentVersion) {
|
|
62
64
|
return makeStorageException({
|
|
63
65
|
objId, versionMismatch: true, currentVersion, remoteStorage: true
|
|
64
66
|
});
|
|
65
67
|
}
|
|
66
|
-
exports.makeVersionMismatchExc = makeVersionMismatchExc;
|
|
67
68
|
function makeStorageIsClosedExc() {
|
|
68
69
|
return makeStorageException({ storageIsClosed: true });
|
|
69
70
|
}
|
|
70
|
-
exports.makeStorageIsClosedExc = makeStorageIsClosedExc;
|
|
71
71
|
function makeFSSyncException(path, fields) {
|
|
72
72
|
const exc = {
|
|
73
73
|
runtimeException: true,
|
|
@@ -79,5 +79,4 @@ function makeFSSyncException(path, fields) {
|
|
|
79
79
|
}
|
|
80
80
|
return exc;
|
|
81
81
|
}
|
|
82
|
-
exports.makeFSSyncException = makeFSSyncException;
|
|
83
82
|
Object.freeze(exports);
|
|
@@ -7,8 +7,8 @@ import { ServiceUser, IGetMailerIdSigner } from '../user-with-mid-session';
|
|
|
7
7
|
import * as keyGen from '../key-derivation';
|
|
8
8
|
import { SubscribingClient } from '../../lib-common/ipc/ws-ipc';
|
|
9
9
|
import { ObjId } from './xsp-fs/common';
|
|
10
|
-
export
|
|
11
|
-
export
|
|
10
|
+
export type FirstSaveReqOpts = api.PutObjFirstQueryOpts;
|
|
11
|
+
export type FollowingSaveReqOpts = api.PutObjSecondQueryOpts;
|
|
12
12
|
export declare class StorageOwner extends ServiceUser {
|
|
13
13
|
maxChunkSize: number | undefined;
|
|
14
14
|
private constructor();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
type WritableFile = web3n.files.WritableFile;
|
|
2
|
+
type FileEvent = web3n.files.FileEvent;
|
|
3
|
+
type RemoteEvent = web3n.files.RemoteEvent;
|
|
4
4
|
export declare abstract class JsonFileProc<T> {
|
|
5
5
|
private proc;
|
|
6
6
|
private file;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.appendArray =
|
|
19
|
+
exports.appendArray = appendArray;
|
|
20
20
|
function appendArray(arr, elems) {
|
|
21
21
|
if (elems !== undefined) {
|
|
22
22
|
if (Array.isArray(elems)) {
|
|
@@ -28,5 +28,4 @@ function appendArray(arr, elems) {
|
|
|
28
28
|
}
|
|
29
29
|
return arr;
|
|
30
30
|
}
|
|
31
|
-
exports.appendArray = appendArray;
|
|
32
31
|
Object.freeze(exports);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { Attrs } from "./node-persistence";
|
|
3
2
|
export declare class CommonAttrs {
|
|
4
3
|
ctime: number;
|
|
@@ -24,5 +23,5 @@ export declare class XAttrs {
|
|
|
24
23
|
get isEmpty(): boolean;
|
|
25
24
|
pack(): Uint8Array[] | undefined;
|
|
26
25
|
}
|
|
27
|
-
|
|
26
|
+
type XAttrsChanges = web3n.files.XAttrsChanges;
|
|
28
27
|
export {};
|
|
@@ -4,22 +4,22 @@ import { Observable } from 'rxjs';
|
|
|
4
4
|
import { LogError } from '../../logging/log-to-file';
|
|
5
5
|
export { AsyncSBoxCryptor } from 'xsp-files';
|
|
6
6
|
export { FolderInJSON } from './folder-node';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export
|
|
7
|
+
type StorageType = web3n.files.FSType;
|
|
8
|
+
type FolderEvent = web3n.files.FolderEvent;
|
|
9
|
+
type FileEvent = web3n.files.FileEvent;
|
|
10
|
+
type RemoteEvent = web3n.files.RemoteEvent;
|
|
11
|
+
type SyncStatus = web3n.files.SyncStatus;
|
|
12
|
+
type OptionsToAdopteRemote = web3n.files.OptionsToAdopteRemote;
|
|
13
|
+
type FSSyncException = web3n.files.FSSyncException;
|
|
14
|
+
type FileException = web3n.files.FileException;
|
|
15
|
+
export type FSChangeSrc = web3n.files.FSChangeEvent['src'];
|
|
16
16
|
export interface Node {
|
|
17
17
|
objId: string;
|
|
18
18
|
name: string;
|
|
19
19
|
type: NodeType;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
22
|
-
export
|
|
21
|
+
export type NodeType = 'file' | 'link' | 'folder';
|
|
22
|
+
export type ObjId = string | null;
|
|
23
23
|
/**
|
|
24
24
|
* This is a container for file system nodes.
|
|
25
25
|
*
|
|
@@ -103,7 +103,7 @@ export interface LocalObjStatus {
|
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
export declare function wrapStorageImplementation(impl: Storage): Storage;
|
|
106
|
-
export
|
|
106
|
+
export type StorageGetter = (type: StorageType, location?: string) => Storage;
|
|
107
107
|
export interface SyncedStorage extends Storage {
|
|
108
108
|
getObjSrcOfRemoteVersion(objId: ObjId, version: number): Promise<ObjSource>;
|
|
109
109
|
archiveVersionOnServer(objId: ObjId, version: number): Promise<void>;
|
|
@@ -16,7 +16,11 @@
|
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
19
|
+
exports.NodesContainer = void 0;
|
|
20
|
+
exports.wrapStorageImplementation = wrapStorageImplementation;
|
|
21
|
+
exports.wrapSyncStorageImplementation = wrapSyncStorageImplementation;
|
|
22
|
+
exports.isSyncedStorage = isSyncedStorage;
|
|
23
|
+
exports.setPathInExc = setPathInExc;
|
|
20
24
|
/**
|
|
21
25
|
* This is a container for file system nodes.
|
|
22
26
|
*
|
|
@@ -115,7 +119,6 @@ function wrapStorageImplementation(impl) {
|
|
|
115
119
|
};
|
|
116
120
|
return Object.freeze(wrap);
|
|
117
121
|
}
|
|
118
|
-
exports.wrapStorageImplementation = wrapStorageImplementation;
|
|
119
122
|
function wrapSyncStorageImplementation(impl) {
|
|
120
123
|
const storageWrap = wrapStorageImplementation(impl);
|
|
121
124
|
const wrap = {};
|
|
@@ -135,16 +138,13 @@ function wrapSyncStorageImplementation(impl) {
|
|
|
135
138
|
wrap.updateStatusInfo = impl.updateStatusInfo.bind(impl);
|
|
136
139
|
return Object.freeze(wrap);
|
|
137
140
|
}
|
|
138
|
-
exports.wrapSyncStorageImplementation = wrapSyncStorageImplementation;
|
|
139
141
|
function isSyncedStorage(storage) {
|
|
140
142
|
return !!storage.upload;
|
|
141
143
|
}
|
|
142
|
-
exports.isSyncedStorage = isSyncedStorage;
|
|
143
144
|
function setPathInExc(exc, path) {
|
|
144
145
|
if ((exc.type === 'fs-sync') || (exc.type === 'file')) {
|
|
145
146
|
exc.path = path;
|
|
146
147
|
}
|
|
147
148
|
return exc;
|
|
148
149
|
}
|
|
149
|
-
exports.setPathInExc = setPathInExc;
|
|
150
150
|
Object.freeze(exports);
|
|
@@ -8,10 +8,10 @@ import { Storage, AsyncSBoxCryptor } from './common';
|
|
|
8
8
|
import { Subscribe, ObjSource } from 'xsp-files';
|
|
9
9
|
import { CommonAttrs, XAttrs } from './attrs';
|
|
10
10
|
import { NodePersistance } from './node-persistence';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
type FileByteSource = web3n.files.FileByteSource;
|
|
12
|
+
type FileByteSink = web3n.files.FileByteSink;
|
|
13
|
+
type XAttrsChanges = web3n.files.XAttrsChanges;
|
|
14
|
+
type VersionedReadFlags = web3n.files.VersionedReadFlags;
|
|
15
15
|
interface FileAttrs {
|
|
16
16
|
attrs: CommonAttrs;
|
|
17
17
|
size: number;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { Linkable, LinkParameters } from '../../fs-utils/files';
|
|
2
2
|
import { FileNode, FileLinkParams } from './file-node';
|
|
3
3
|
import { Storage } from './common';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
4
|
+
type Stats = web3n.files.Stats;
|
|
5
|
+
type File = web3n.files.File;
|
|
6
|
+
type WritableFile = web3n.files.WritableFile;
|
|
7
|
+
type ReadonlyFile = web3n.files.ReadonlyFile;
|
|
8
|
+
type FileEvent = web3n.files.FileEvent;
|
|
9
|
+
type Observer<T> = web3n.Observer<T>;
|
|
10
|
+
type FileByteSource = web3n.files.FileByteSource;
|
|
11
|
+
type FileByteSink = web3n.files.FileByteSink;
|
|
12
|
+
type XAttrsChanges = web3n.files.XAttrsChanges;
|
|
13
|
+
type WritableFileSyncAPI = web3n.files.WritableFileSyncAPI;
|
|
14
|
+
type SyncStatus = web3n.files.SyncStatus;
|
|
15
|
+
type WritableFileVersionedAPI = web3n.files.WritableFileVersionedAPI;
|
|
16
|
+
type OptionsToAdopteRemote = web3n.files.OptionsToAdopteRemote;
|
|
17
|
+
type OptionsToUploadLocal = web3n.files.OptionsToUploadLocal;
|
|
18
|
+
type VersionedReadFlags = web3n.files.VersionedReadFlags;
|
|
19
19
|
export declare class FileObject implements WritableFile, Linkable {
|
|
20
20
|
name: string;
|
|
21
21
|
isNew: boolean;
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
19
|
+
exports.parseFolderInfo = parseFolderInfo;
|
|
20
|
+
exports.serializeFolderInfo = serializeFolderInfo;
|
|
20
21
|
const buffer_utils_1 = require("../../../lib-common/buffer-utils");
|
|
21
22
|
const xsp_files_1 = require("xsp-files");
|
|
22
23
|
const big_endian_1 = require("../../../lib-common/big-endian");
|
|
@@ -33,11 +34,9 @@ function parseFolderInfo(bytes) {
|
|
|
33
34
|
throw parsingException(`Cannot recognize folder's serialization version`);
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
|
-
exports.parseFolderInfo = parseFolderInfo;
|
|
37
37
|
function serializeFolderInfo(folderInfo) {
|
|
38
38
|
return formatV1.pack(folderInfo);
|
|
39
39
|
}
|
|
40
|
-
exports.serializeFolderInfo = serializeFolderInfo;
|
|
41
40
|
function parsingException(msg, cause) {
|
|
42
41
|
return {
|
|
43
42
|
runtimeException: true,
|
|
@@ -6,13 +6,13 @@ import { LinkParameters } from '../../fs-utils/files';
|
|
|
6
6
|
import { AsyncSBoxCryptor, Subscribe, ObjSource } from 'xsp-files';
|
|
7
7
|
import { CommonAttrs, XAttrs } from './attrs';
|
|
8
8
|
import { NodePersistance } from './node-persistence';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
type ListingEntry = web3n.files.ListingEntry;
|
|
10
|
+
type XAttrsChanges = web3n.files.XAttrsChanges;
|
|
11
|
+
type FolderDiff = web3n.files.FolderDiff;
|
|
12
|
+
type OptionsToAdopteRemote = web3n.files.OptionsToAdopteRemote;
|
|
13
|
+
type OptionsToAdoptRemoteItem = web3n.files.OptionsToAdoptRemoteItem;
|
|
14
|
+
type OptionsToUploadLocal = web3n.files.OptionsToUploadLocal;
|
|
15
|
+
type VersionedReadFlags = web3n.files.VersionedReadFlags;
|
|
16
16
|
export interface NodeInfo {
|
|
17
17
|
/**
|
|
18
18
|
* This is a usual file name.
|