core-3nweb-client-lib 0.42.14 → 0.42.16
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/asmail/delivery/msg.d.ts +1 -1
- package/build/core/asmail/delivery/msg.js +12 -7
- package/build/lib-client/asmail/recipient.js +2 -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-checks.js +1 -1
- package/build/lib-common/service-api/asmail/retrieval.d.ts +4 -1
- package/build/lib-common/service-api/asmail/retrieval.js +6 -7
- package/package.json +1 -1
|
Binary file
|
|
@@ -41,7 +41,7 @@ async function checkServicesStartingFromSignup(client, signupUrl, signupToken, p
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
async function checkFstServiceEndpoint(service, serviceUrl) {
|
|
44
|
-
progress === null || progress === void 0 ? void 0 : progress({ start: true, service
|
|
44
|
+
progress === null || progress === void 0 ? void 0 : progress({ start: true, service, serviceUrl });
|
|
45
45
|
try {
|
|
46
46
|
if (service === 'mailerid') {
|
|
47
47
|
await (0, service_locator_1.mailerIdInfoAt)(client, serviceUrl);
|
|
@@ -75,7 +75,10 @@ export declare namespace msgMetadata {
|
|
|
75
75
|
* passes as message meta, or undefined, otherwise.
|
|
76
76
|
* @param meta is an object that is expected to be message meta
|
|
77
77
|
*/
|
|
78
|
-
export declare function sanitizedMeta(meta: MsgMeta):
|
|
78
|
+
export declare function sanitizedMeta(meta: MsgMeta): {
|
|
79
|
+
meta?: MsgMeta;
|
|
80
|
+
errMsg?: string;
|
|
81
|
+
};
|
|
79
82
|
export interface GetObjQueryOpts {
|
|
80
83
|
/**
|
|
81
84
|
* This is a boolean flag, which true value indicates that header should be
|
|
@@ -97,23 +97,22 @@ Object.freeze(msgMetadata);
|
|
|
97
97
|
*/
|
|
98
98
|
function sanitizedMeta(meta) {
|
|
99
99
|
if (typeof meta !== 'object') {
|
|
100
|
-
return;
|
|
100
|
+
return { errMsg: `is not a json object: ${JSON.stringify(meta)}` };
|
|
101
101
|
}
|
|
102
102
|
if (typeof meta.objs !== 'object') {
|
|
103
|
-
return;
|
|
103
|
+
return { errMsg: `objs field is not an object in: ${JSON.stringify(meta)}` };
|
|
104
104
|
}
|
|
105
105
|
for (const objId of Object.keys(meta.objs)) {
|
|
106
106
|
const st = meta.objs[objId];
|
|
107
107
|
if (typeof st.size.header !== 'number') {
|
|
108
|
-
return;
|
|
108
|
+
return { errMsg: `obj's header is not a number in: ${JSON.stringify(meta)}` };
|
|
109
109
|
}
|
|
110
|
-
if (st.completed &&
|
|
111
|
-
|
|
112
|
-
return;
|
|
110
|
+
if (st.completed && (st.size.segments === undefined)) {
|
|
111
|
+
return { errMsg: `obj's segments is not a number in: ${JSON.stringify(meta)}` };
|
|
113
112
|
}
|
|
114
113
|
}
|
|
115
114
|
// TODO add more checks and return new object instead of a given one
|
|
116
|
-
return meta;
|
|
115
|
+
return { meta };
|
|
117
116
|
}
|
|
118
117
|
var msgObj;
|
|
119
118
|
(function (msgObj) {
|