From 5c4f3a8673231976e61aba23e1b756dd8dee62d2 Mon Sep 17 00:00:00 2001 From: Manwe Date: Fri, 24 Nov 2023 20:30:03 -0300 Subject: [PATCH] update mtgatooldb --- package-lock.json | 14 +++++++------- package.json | 4 ++-- public/tooldb-worker/index.js | 7 +++++-- tooldb-worker/package-lock.json | 14 +++++++------- tooldb-worker/package.json | 2 +- 5 files changed, 22 insertions(+), 19 deletions(-) diff --git a/package-lock.json b/package-lock.json index a6f5052..868f75d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,7 @@ "lodash": "^4.17.21", "match-sorter": "^6.3.0", "mathjs": "^9.3.0", - "mtgatool-db": "^2.1.7", + "mtgatool-db": "^2.1.8", "mtgatool-shared": "^2.2.0", "qrcode": "^1.5.1", "queue": "^6.0.2", @@ -18209,9 +18209,9 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "node_modules/mtgatool-db": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/mtgatool-db/-/mtgatool-db-2.1.7.tgz", - "integrity": "sha512-JpnyZcgZ+6xqaVjXXgIYjfCfgvVb1lbOprRVK11lQQVYPxS1sXMIBbUUbCdmNxxsYRJuXawWrMreCbe5vAwSMg==", + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/mtgatool-db/-/mtgatool-db-2.1.8.tgz", + "integrity": "sha512-ievm+i4IXHOhhL0Eyc+x5raLTCjVfURCkKlVnJ2sCbEig7XQddbkv7g/jLbPjXdkcjgx2DpF5SPqFbbsBZWx4w==", "dependencies": { "@peculiar/webcrypto": "^1.1.7", "automerge": "^1.0.1-preview.4", @@ -42488,9 +42488,9 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "mtgatool-db": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/mtgatool-db/-/mtgatool-db-2.1.7.tgz", - "integrity": "sha512-JpnyZcgZ+6xqaVjXXgIYjfCfgvVb1lbOprRVK11lQQVYPxS1sXMIBbUUbCdmNxxsYRJuXawWrMreCbe5vAwSMg==", + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/mtgatool-db/-/mtgatool-db-2.1.8.tgz", + "integrity": "sha512-ievm+i4IXHOhhL0Eyc+x5raLTCjVfURCkKlVnJ2sCbEig7XQddbkv7g/jLbPjXdkcjgx2DpF5SPqFbbsBZWx4w==", "requires": { "@peculiar/webcrypto": "^1.1.7", "automerge": "^1.0.1-preview.4", diff --git a/package.json b/package.json index 3d91ecd..18d7ba1 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "lodash": "^4.17.21", "match-sorter": "^6.3.0", "mathjs": "^9.3.0", - "mtgatool-db": "^2.1.7", + "mtgatool-db": "^2.1.8", "mtgatool-shared": "^2.2.0", "qrcode": "^1.5.1", "queue": "^6.0.2", @@ -201,4 +201,4 @@ "type": "git", "url": "https://github.com/mtgatool/mtgatool-desktop.git" } -} +} \ No newline at end of file diff --git a/public/tooldb-worker/index.js b/public/tooldb-worker/index.js index a2e03ac..a29067c 100644 --- a/public/tooldb-worker/index.js +++ b/public/tooldb-worker/index.js @@ -895,6 +895,7 @@ const removeHost_1 = __importDefault(require("./removeHost")); const signup_1 = __importDefault(require("./signup")); const toolDb = new mtgatool_db_1.ToolDb({ topic: "mtgatool-db-swarm-v4", + debug: true, server: false, maxRetries: 999, }); @@ -958,7 +959,7 @@ self.globalData = { }; self.onmessage = (e) => { const { type } = e.data; - // console.log("Worker onmessage:", e.type, e.data); + console.log("Worker onmessage:", e.type, e.data); switch (type) { case "LOGIN": (0, login_1.default)(e.data.username, e.data.password); @@ -66196,7 +66197,9 @@ var ToolDbNetwork = /** @class */ (function (_super) { _this_1.removeFromAwaiting(pubkey); } } - // else , attempting to reconnect to a missing peer? + else { + _this_1.connectTo(_this_1.serverPeerData[pubkey]); + } }; _this_1.disconnect = function (pubKey) { _this_1.tooldb.logger("disconnecting from " + pubKey); diff --git a/tooldb-worker/package-lock.json b/tooldb-worker/package-lock.json index 2a32035..a907f83 100644 --- a/tooldb-worker/package-lock.json +++ b/tooldb-worker/package-lock.json @@ -10,7 +10,7 @@ "license": "ISC", "dependencies": { "automerge": "^1.0.1-preview.7", - "mtgatool-db": "^2.1.7", + "mtgatool-db": "^2.1.8", "mtgatool-shared": "^2.2.0" } }, @@ -3218,9 +3218,9 @@ } }, "node_modules/mtgatool-db": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/mtgatool-db/-/mtgatool-db-2.1.7.tgz", - "integrity": "sha512-JpnyZcgZ+6xqaVjXXgIYjfCfgvVb1lbOprRVK11lQQVYPxS1sXMIBbUUbCdmNxxsYRJuXawWrMreCbe5vAwSMg==", + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/mtgatool-db/-/mtgatool-db-2.1.8.tgz", + "integrity": "sha512-ievm+i4IXHOhhL0Eyc+x5raLTCjVfURCkKlVnJ2sCbEig7XQddbkv7g/jLbPjXdkcjgx2DpF5SPqFbbsBZWx4w==", "dependencies": { "@peculiar/webcrypto": "^1.1.7", "automerge": "^1.0.1-preview.4", @@ -7429,9 +7429,9 @@ } }, "mtgatool-db": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/mtgatool-db/-/mtgatool-db-2.1.7.tgz", - "integrity": "sha512-JpnyZcgZ+6xqaVjXXgIYjfCfgvVb1lbOprRVK11lQQVYPxS1sXMIBbUUbCdmNxxsYRJuXawWrMreCbe5vAwSMg==", + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/mtgatool-db/-/mtgatool-db-2.1.8.tgz", + "integrity": "sha512-ievm+i4IXHOhhL0Eyc+x5raLTCjVfURCkKlVnJ2sCbEig7XQddbkv7g/jLbPjXdkcjgx2DpF5SPqFbbsBZWx4w==", "requires": { "@peculiar/webcrypto": "^1.1.7", "automerge": "^1.0.1-preview.4", diff --git a/tooldb-worker/package.json b/tooldb-worker/package.json index b5ac4f5..e9a70a8 100644 --- a/tooldb-worker/package.json +++ b/tooldb-worker/package.json @@ -10,7 +10,7 @@ "license": "ISC", "dependencies": { "automerge": "^1.0.1-preview.7", - "mtgatool-db": "^2.1.7", + "mtgatool-db": "^2.1.8", "mtgatool-shared": "^2.2.0" } } \ No newline at end of file