core-3nweb-client-lib 0.30.5 → 0.31.0
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/core/id-manager/mailerid-cap-ipc.js +10 -56
- package/build/core/startup/startup-cap.js +96 -286
- package/build/core-ipc/json-ipc-wrapping/caller-side-wrap.d.ts +14 -0
- package/build/core-ipc/json-ipc-wrapping/caller-side-wrap.js +91 -0
- package/build/core-ipc/json-ipc-wrapping/json-n-binary.d.ts +5 -0
- package/build/core-ipc/json-ipc-wrapping/json-n-binary.js +216 -0
- package/build/core-ipc/json-ipc-wrapping/service-side-wrap.d.ts +16 -0
- package/build/core-ipc/json-ipc-wrapping/service-side-wrap.js +87 -0
- package/build/core-ipc/log-cap.js +7 -19
- package/build/ipc.d.ts +2 -0
- package/build/ipc.js +4 -2
- package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
- package/build/lib-client/cryptor/cryptor.wasm +0 -0
- package/build/lib-client/service-locator.js +8 -6
- package/build/protos/json-ipc.proto.js +1093 -0
- package/package.json +1 -1
- package/protos/json-ipc.proto +22 -0
- package/build/protos/logger.proto.js +0 -2278
- package/build/protos/mailerid.proto.js +0 -2429
- package/build/protos/startup.proto.js +0 -3966
- package/protos/logger.proto +0 -13
- package/protos/mailerid.proto +0 -18
- package/protos/startup.proto +0 -76
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright (C) 2022 - 2023 3NSoft Inc.
|
|
4
|
+
|
|
5
|
+
This program is free software: you can redistribute it and/or modify it under
|
|
6
|
+
the terms of the GNU General Public License as published by the Free Software
|
|
7
|
+
Foundation, either version 3 of the License, or (at your option) any later
|
|
8
|
+
version.
|
|
9
|
+
|
|
10
|
+
This program is distributed in the hope that it will be useful, but
|
|
11
|
+
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
See the GNU General Public License for more details.
|
|
14
|
+
|
|
15
|
+
You should have received a copy of the GNU General Public License along with
|
|
16
|
+
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.serializeArgs = serializeArgs;
|
|
20
|
+
exports.deserializeArgs = deserializeArgs;
|
|
21
|
+
const protobuf_type_1 = require("../../lib-client/protobuf-type");
|
|
22
|
+
const json_utils_1 = require("../../lib-common/json-utils");
|
|
23
|
+
const json_ipc_proto_1 = require("../../protos/json-ipc.proto");
|
|
24
|
+
const valuesType = protobuf_type_1.ProtoType.for(json_ipc_proto_1.json_ipc.ValuesSequence);
|
|
25
|
+
function serializeArgs(args) {
|
|
26
|
+
const { seq, passedByReference } = argsToValuesSequence(args);
|
|
27
|
+
return { bytes: valuesType.pack(seq), passedByReference };
|
|
28
|
+
}
|
|
29
|
+
function argsToValuesSequence(args) {
|
|
30
|
+
const seq = { values: [] };
|
|
31
|
+
const passedByReference = [];
|
|
32
|
+
for (const arg of args) {
|
|
33
|
+
if (arg && (typeof arg === 'object')) {
|
|
34
|
+
if (ArrayBuffer.isView(arg)) {
|
|
35
|
+
seq.values.push({
|
|
36
|
+
arr: { arr: arg, objLocation: [] }
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
else if (arg._isObjectFromCore) {
|
|
40
|
+
const indexInPassed = addToArray(passedByReference, arg);
|
|
41
|
+
seq.values.push({
|
|
42
|
+
transferred: { indexInPassed, objLocation: [] }
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
seq.values.push(turnToJsonExtractingBinaryAndTransferable(arg, passedByReference));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
seq.values.push({
|
|
51
|
+
json: JSON.stringify(arg)
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
seq,
|
|
57
|
+
passedByReference: ((passedByReference.length > 0) ?
|
|
58
|
+
passedByReference : undefined)
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function addToArray(arr, o) {
|
|
62
|
+
let foundIndex = arr.indexOf(o);
|
|
63
|
+
if (foundIndex < 0) {
|
|
64
|
+
arr.push(o);
|
|
65
|
+
return arr.length - 1;
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
return foundIndex;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function turnToJsonExtractingBinaryAndTransferable(arg, passedByReference) {
|
|
72
|
+
const parts = extractNonJsonableFrom(arg, passedByReference);
|
|
73
|
+
if (parts) {
|
|
74
|
+
const { copy, binaryInJson, transferredInJson } = parts;
|
|
75
|
+
return {
|
|
76
|
+
json: JSON.stringify(copy),
|
|
77
|
+
binaryInJson: ((binaryInJson.length > 0) ? binaryInJson : undefined),
|
|
78
|
+
transferredInJson: ((transferredInJson.length > 0) ?
|
|
79
|
+
transferredInJson : undefined)
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
return { json: JSON.stringify(arg) };
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function extractNonJsonableFrom(arg, passedByReference) {
|
|
87
|
+
const nonJsonLocations = findAllNonJsonable(arg);
|
|
88
|
+
if (!nonJsonLocations) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const copy = (0, json_utils_1.copy)(arg);
|
|
92
|
+
const binaryInJson = [];
|
|
93
|
+
const transferredInJson = [];
|
|
94
|
+
for (const objLocation of nonJsonLocations) {
|
|
95
|
+
const nonJson = getValueAtObjLocation(arg, objLocation);
|
|
96
|
+
setNewValueAtObjLocation(copy, objLocation, null);
|
|
97
|
+
if (nonJson._isObjectFromCore) {
|
|
98
|
+
const indexInPassed = addToArray(passedByReference, nonJson);
|
|
99
|
+
transferredInJson.push({ indexInPassed, objLocation });
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
binaryInJson.push({ arr: nonJson, objLocation });
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return { copy, binaryInJson, transferredInJson };
|
|
106
|
+
}
|
|
107
|
+
function findAllNonJsonable(o) {
|
|
108
|
+
const foundObjLocations = [];
|
|
109
|
+
if (ArrayBuffer.isView(o)
|
|
110
|
+
|| o._isObjectFromCore) {
|
|
111
|
+
return [[]];
|
|
112
|
+
}
|
|
113
|
+
if (Array.isArray(o)) {
|
|
114
|
+
for (let i = 0; i < o.length; i += 1) {
|
|
115
|
+
const child = o[i];
|
|
116
|
+
if (child && (typeof child === 'object')) {
|
|
117
|
+
const inChild = findAllNonJsonable(child);
|
|
118
|
+
if (inChild) {
|
|
119
|
+
for (const objLocation of inChild) {
|
|
120
|
+
foundObjLocations.push([`${i}`, ...objLocation]);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
for (const [field, child] of Object.entries(o)) {
|
|
128
|
+
if (child && (typeof child === 'object')) {
|
|
129
|
+
const inChild = findAllNonJsonable(child);
|
|
130
|
+
if (inChild) {
|
|
131
|
+
for (const objLocation of inChild) {
|
|
132
|
+
foundObjLocations.push([field, ...objLocation]);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return ((foundObjLocations.length > 0) ? foundObjLocations : undefined);
|
|
139
|
+
}
|
|
140
|
+
function getValueAtObjLocation(o, objLocation) {
|
|
141
|
+
const value = o[objLocation[0]];
|
|
142
|
+
if (objLocation.length > 1) {
|
|
143
|
+
return getValueAtObjLocation(value, objLocation.slice(1));
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
return value;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
function setNewValueAtObjLocation(o, objLocation, newValue) {
|
|
150
|
+
const value = o[objLocation[0]];
|
|
151
|
+
if (objLocation.length > 1) {
|
|
152
|
+
setNewValueAtObjLocation(value, objLocation.slice(1), newValue);
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
o[objLocation[0]] = newValue;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
function getInitAndSetNewValueAt(o, objLocation, newValue) {
|
|
159
|
+
const value = o[objLocation[0]];
|
|
160
|
+
if (objLocation.length > 1) {
|
|
161
|
+
return getInitAndSetNewValueAt(value, objLocation.slice(1), newValue);
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
o[objLocation[0]] = newValue;
|
|
165
|
+
return value;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
function deserializeArgs(bytes, passedByReference) {
|
|
169
|
+
const values = valuesType.unpack(bytes);
|
|
170
|
+
const args = [];
|
|
171
|
+
for (const val of values.values) {
|
|
172
|
+
const { json, binaryInJson, transferredInJson, arr, transferred } = val;
|
|
173
|
+
if (arr) {
|
|
174
|
+
args.push(arr.arr);
|
|
175
|
+
}
|
|
176
|
+
else if (transferred) {
|
|
177
|
+
args.push(getTransferred(transferred.indexInPassed, passedByReference));
|
|
178
|
+
}
|
|
179
|
+
else if ((typeof json === 'string') && (json.length > 0)) {
|
|
180
|
+
const arg = JSON.parse(json);
|
|
181
|
+
if (binaryInJson) {
|
|
182
|
+
attachBinaryArrays(arg, binaryInJson);
|
|
183
|
+
}
|
|
184
|
+
if (transferredInJson) {
|
|
185
|
+
attachTransferred(arg, transferredInJson, passedByReference);
|
|
186
|
+
}
|
|
187
|
+
args.push(arg);
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
// XXX throw error here
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
return args;
|
|
194
|
+
}
|
|
195
|
+
function attachBinaryArrays(arg, binaryInJson) {
|
|
196
|
+
for (const { arr, objLocation } of binaryInJson) {
|
|
197
|
+
setNewValueAtObjLocation(arg, objLocation, arr);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
function getTransferred(indexInPassed, passedByReference) {
|
|
201
|
+
if (!passedByReference) {
|
|
202
|
+
// XXX throw error here
|
|
203
|
+
throw new Error(`need better error`);
|
|
204
|
+
}
|
|
205
|
+
const o = passedByReference[indexInPassed];
|
|
206
|
+
if (!o || !o._isObjectFromCore) {
|
|
207
|
+
// XXX throw error here
|
|
208
|
+
throw new Error(`need better error`);
|
|
209
|
+
}
|
|
210
|
+
return o;
|
|
211
|
+
}
|
|
212
|
+
function attachTransferred(arg, transferredInJson, passedByReference) {
|
|
213
|
+
for (const { indexInPassed, objLocation } of transferredInJson) {
|
|
214
|
+
setNewValueAtObjLocation(arg, objLocation, getTransferred(indexInPassed, passedByReference));
|
|
215
|
+
}
|
|
216
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ExposedFn } from "../../ipc-via-protobuf/connector";
|
|
2
|
+
type Observer<T> = web3n.Observer<T>;
|
|
3
|
+
interface PassedDatum {
|
|
4
|
+
bytes?: Uint8Array;
|
|
5
|
+
passedByReference?: any[];
|
|
6
|
+
}
|
|
7
|
+
export type HandleObservingCall<TEvent> = (obs: Observer<TEvent>, ...requestArgs: any[]) => (() => void);
|
|
8
|
+
export type HandleReqReplyCall = (...requestArgs: any[]) => Promise<any>;
|
|
9
|
+
export interface TransformOpts {
|
|
10
|
+
unpackRequest?: ((req: PassedDatum | undefined) => any[]) | 'noop';
|
|
11
|
+
packReply?: ((reply: any) => PassedDatum | undefined) | 'noop';
|
|
12
|
+
}
|
|
13
|
+
export declare function wrapReqReplySrvMethod<T extends object, M extends keyof T>(srv: T, method: M, transforms?: TransformOpts): ExposedFn;
|
|
14
|
+
export declare function wrapReqReplyFunc(srv: object | undefined, func: HandleReqReplyCall, transforms?: TransformOpts): ExposedFn;
|
|
15
|
+
export declare function wrapObservingFunc<TEvent>(srv: object | undefined, func: HandleObservingCall<TEvent>, transforms?: TransformOpts): ExposedFn;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright (C) 2022 - 2024 3NSoft Inc.
|
|
4
|
+
|
|
5
|
+
This program is free software: you can redistribute it and/or modify it under
|
|
6
|
+
the terms of the GNU General Public License as published by the Free Software
|
|
7
|
+
Foundation, either version 3 of the License, or (at your option) any later
|
|
8
|
+
version.
|
|
9
|
+
|
|
10
|
+
This program is distributed in the hope that it will be useful, but
|
|
11
|
+
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
See the GNU General Public License for more details.
|
|
14
|
+
|
|
15
|
+
You should have received a copy of the GNU General Public License along with
|
|
16
|
+
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.wrapReqReplySrvMethod = wrapReqReplySrvMethod;
|
|
20
|
+
exports.wrapReqReplyFunc = wrapReqReplyFunc;
|
|
21
|
+
exports.wrapObservingFunc = wrapObservingFunc;
|
|
22
|
+
const rxjs_1 = require("rxjs");
|
|
23
|
+
const json_n_binary_1 = require("./json-n-binary");
|
|
24
|
+
function wrapReqReplySrvMethod(srv, method, transforms) {
|
|
25
|
+
return wrapReqReplyFunc(srv, srv[method], transforms);
|
|
26
|
+
}
|
|
27
|
+
function wrapReqReplyFunc(srv, func, transforms) {
|
|
28
|
+
return buf => {
|
|
29
|
+
const args = argsFromBuffer(buf, transforms);
|
|
30
|
+
const promise = (args ?
|
|
31
|
+
func.call(srv, ...args) :
|
|
32
|
+
func.call(srv)).then(result => resultToBuffer(result, transforms));
|
|
33
|
+
return { promise };
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function argsFromBuffer(buf, transforms) {
|
|
37
|
+
return argsFromPassedDatum({ bytes: buf }, transforms === null || transforms === void 0 ? void 0 : transforms.unpackRequest);
|
|
38
|
+
}
|
|
39
|
+
function resultToBuffer(data, transforms) {
|
|
40
|
+
const sequencePack = toPassedDatum(data, transforms === null || transforms === void 0 ? void 0 : transforms.packReply);
|
|
41
|
+
return sequencePack === null || sequencePack === void 0 ? void 0 : sequencePack.bytes;
|
|
42
|
+
}
|
|
43
|
+
function argsFromPassedDatum(data, unpack) {
|
|
44
|
+
if (!data) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (unpack) {
|
|
48
|
+
if (unpack === 'noop') {
|
|
49
|
+
return [data.bytes];
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
return unpack(data);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
const { bytes, passedByReference } = data;
|
|
57
|
+
return (bytes ? (0, json_n_binary_1.deserializeArgs)(bytes, passedByReference) : undefined);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function toPassedDatum(data, pack) {
|
|
61
|
+
if (data === undefined) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (pack) {
|
|
65
|
+
if (pack === 'noop') {
|
|
66
|
+
if (!ArrayBuffer.isView(data)) {
|
|
67
|
+
throw new Error(`Method returned non-binary, while no serialization is set`);
|
|
68
|
+
}
|
|
69
|
+
return { bytes: data };
|
|
70
|
+
}
|
|
71
|
+
return pack(data);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
return (0, json_n_binary_1.serializeArgs)([data]);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
function wrapObservingFunc(srv, func, transforms) {
|
|
78
|
+
return buf => {
|
|
79
|
+
const args = argsFromBuffer(buf, transforms);
|
|
80
|
+
const s = new rxjs_1.Subject();
|
|
81
|
+
const obs = s.asObservable().pipe((0, rxjs_1.map)(ev => resultToBuffer(ev, transforms)));
|
|
82
|
+
const onCancel = (args ?
|
|
83
|
+
func.call(srv, s, ...args) :
|
|
84
|
+
func.call(srv, s));
|
|
85
|
+
return { obs, onCancel };
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
Copyright (C) 2020, 2022 3NSoft Inc.
|
|
3
|
+
Copyright (C) 2020, 2022, 2024 3NSoft Inc.
|
|
4
4
|
|
|
5
5
|
This program is free software: you can redistribute it and/or modify it under
|
|
6
6
|
the terms of the GNU General Public License as published by the Free Software
|
|
@@ -18,26 +18,14 @@
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
exports.exposeLogger = exposeLogger;
|
|
20
20
|
exports.makeLogCaller = makeLogCaller;
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const logReqType = protobuf_type_1.ProtoType.for(logger_proto_1.logger.LogRequestBody);
|
|
21
|
+
const error_1 = require("../lib-common/exceptions/error");
|
|
22
|
+
const caller_side_wrap_1 = require("./json-ipc-wrapping/caller-side-wrap");
|
|
23
|
+
const service_side_wrap_1 = require("./json-ipc-wrapping/service-side-wrap");
|
|
25
24
|
function exposeLogger(fn) {
|
|
26
|
-
return
|
|
27
|
-
const { logType, msg, err } = logReqType.unpack(buf);
|
|
28
|
-
const promise = (err ?
|
|
29
|
-
fn(logType, msg, (0, protobuf_msg_1.errFromMsg)(err)) :
|
|
30
|
-
fn(logType, msg));
|
|
31
|
-
return { promise };
|
|
32
|
-
};
|
|
25
|
+
return (0, service_side_wrap_1.wrapReqReplyFunc)(undefined, fn);
|
|
33
26
|
}
|
|
34
27
|
function makeLogCaller(caller, path) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (err) {
|
|
38
|
-
req.err = (0, protobuf_msg_1.errToMsg)(err);
|
|
39
|
-
}
|
|
40
|
-
return caller.startPromiseCall(path, logReqType.pack(req));
|
|
41
|
-
};
|
|
28
|
+
const log = (0, caller_side_wrap_1.makeReqRepFuncCaller)(caller, path);
|
|
29
|
+
return (type, msg, err) => log(type, msg, (0, error_1.stringifyErr)(err));
|
|
42
30
|
}
|
|
43
31
|
Object.freeze(exports);
|
package/build/ipc.d.ts
CHANGED
|
@@ -5,3 +5,5 @@ export { FileMsg, makeFileCaller, exposeFileService } from "./core-ipc/file";
|
|
|
5
5
|
export { FSMsg, makeFSCaller, exposeFSService } from "./core-ipc/fs";
|
|
6
6
|
export { makeSinkCaller, exposeSinkService, makeSrcCaller, exposeSrcService } from "./core-ipc/bytes";
|
|
7
7
|
export { makeLogCaller, exposeLogger } from "./core-ipc/log-cap";
|
|
8
|
+
export * as callerSideJSONWrap from "./core-ipc/json-ipc-wrapping/caller-side-wrap";
|
|
9
|
+
export * as serviceSideJSONWrap from "./core-ipc/json-ipc-wrapping/service-side-wrap";
|
package/build/ipc.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
Copyright (C) 2020 - 2021 3NSoft Inc.
|
|
3
|
+
Copyright (C) 2020 - 2021, 2024 3NSoft Inc.
|
|
4
4
|
|
|
5
5
|
This program is free software: you can redistribute it and/or modify it under
|
|
6
6
|
the terms of the GNU General Public License as published by the Free Software
|
|
@@ -30,7 +30,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
30
30
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
31
31
|
};
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
exports.exposeLogger = exports.makeLogCaller = exports.exposeSrcService = exports.makeSrcCaller = exports.exposeSinkService = exports.makeSinkCaller = exports.exposeFSService = exports.makeFSCaller = exports.exposeFileService = exports.makeFileCaller = void 0;
|
|
33
|
+
exports.serviceSideJSONWrap = exports.callerSideJSONWrap = exports.exposeLogger = exports.makeLogCaller = exports.exposeSrcService = exports.makeSrcCaller = exports.exposeSinkService = exports.makeSinkCaller = exports.exposeFSService = exports.makeFSCaller = exports.exposeFileService = exports.makeFileCaller = void 0;
|
|
34
34
|
__exportStar(require("./core-ipc/common-caps"), exports);
|
|
35
35
|
__exportStar(require("./core-ipc/startup-caps"), exports);
|
|
36
36
|
__exportStar(require("./ipc-via-protobuf/connector"), exports);
|
|
@@ -48,4 +48,6 @@ Object.defineProperty(exports, "exposeSrcService", { enumerable: true, get: func
|
|
|
48
48
|
var log_cap_1 = require("./core-ipc/log-cap");
|
|
49
49
|
Object.defineProperty(exports, "makeLogCaller", { enumerable: true, get: function () { return log_cap_1.makeLogCaller; } });
|
|
50
50
|
Object.defineProperty(exports, "exposeLogger", { enumerable: true, get: function () { return log_cap_1.exposeLogger; } });
|
|
51
|
+
exports.callerSideJSONWrap = require("./core-ipc/json-ipc-wrapping/caller-side-wrap");
|
|
52
|
+
exports.serviceSideJSONWrap = require("./core-ipc/json-ipc-wrapping/service-side-wrap");
|
|
51
53
|
Object.freeze(exports);
|