@mtkruto/node 0.90.1 → 0.90.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_worker_error.d.ts","sourceRoot":"","sources":["../../src/client/0_worker_error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;
|
|
1
|
+
{"version":3,"file":"0_worker_error.d.ts","sourceRoot":"","sources":["../../src/client/0_worker_error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAOH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,eAAe,GAAG,iBAAiB,GAAG,aAAa,GAAG,YAAY,GAAG,gBAAgB,GAAG,SAAS,CAAC;IAExG,IAAI,EAAE,GAAG,CAAC;CACX;AAGD,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,WAAW,CAmC9D;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,WAAW,aAqBxD"}
|
|
@@ -18,9 +18,12 @@
|
|
|
18
18
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
20
|
import { AccessError, ConnectionError, InputError, TLError, TransportError } from "../0_errors.js";
|
|
21
|
+
import { getLogger } from "../1_utilities.js";
|
|
21
22
|
import { TelegramError } from "../3_errors.js";
|
|
22
23
|
import { constructTelegramError } from "../4_errors.js";
|
|
24
|
+
const logger = getLogger("serializeWorkerError");
|
|
23
25
|
export function serializeWorkerError(err) {
|
|
26
|
+
logger.trace(err);
|
|
24
27
|
if (err instanceof TelegramError) {
|
|
25
28
|
const arg = {
|
|
26
29
|
error_code: err.errorCode,
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_worker_error.d.ts","sourceRoot":"","sources":["../../src/client/0_worker_error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;
|
|
1
|
+
{"version":3,"file":"0_worker_error.d.ts","sourceRoot":"","sources":["../../src/client/0_worker_error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAOH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,eAAe,GAAG,iBAAiB,GAAG,aAAa,GAAG,YAAY,GAAG,gBAAgB,GAAG,SAAS,CAAC;IAExG,IAAI,EAAE,GAAG,CAAC;CACX;AAGD,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,WAAW,CAmC9D;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,WAAW,aAqBxD"}
|
|
@@ -22,9 +22,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
22
22
|
exports.serializeWorkerError = serializeWorkerError;
|
|
23
23
|
exports.deserializeWorkerError = deserializeWorkerError;
|
|
24
24
|
const _0_errors_js_1 = require("../0_errors.js");
|
|
25
|
+
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
25
26
|
const _3_errors_js_1 = require("../3_errors.js");
|
|
26
27
|
const _4_errors_js_1 = require("../4_errors.js");
|
|
28
|
+
const logger = (0, _1_utilities_js_1.getLogger)("serializeWorkerError");
|
|
27
29
|
function serializeWorkerError(err) {
|
|
30
|
+
logger.trace(err);
|
|
28
31
|
if (err instanceof _3_errors_js_1.TelegramError) {
|
|
29
32
|
const arg = {
|
|
30
33
|
error_code: err.errorCode,
|