Skip to content

Commit

Permalink
update mtgatooldb
Browse files Browse the repository at this point in the history
  • Loading branch information
Manwe-777 committed Nov 24, 2023
1 parent 5475e36 commit 5c4f3a8
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 19 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -201,4 +201,4 @@
"type": "git",
"url": "https://github.com/mtgatool/mtgatool-desktop.git"
}
}
}
7 changes: 5 additions & 2 deletions public/tooldb-worker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
14 changes: 7 additions & 7 deletions tooldb-worker/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tooldb-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 5c4f3a8

Please sign in to comment.