Commit 617d54dc authored by nanahira's avatar nanahira

use noText mode

parent 24229c19
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"https-proxy-agent": "^7.0.6", "https-proxy-agent": "^7.0.6",
"ipaddr.js": "^2.3.0", "ipaddr.js": "^2.3.0",
"koishi": "^4.18.10", "koishi": "^4.18.10",
"koishipro-core.js": "^1.3.7", "koishipro-core.js": "^1.3.8",
"nfkit": "^1.0.35", "nfkit": "^1.0.35",
"p-queue": "6.6.2", "p-queue": "6.6.2",
"pg": "^8.18.0", "pg": "^8.18.0",
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
"typeorm": "^0.3.28", "typeorm": "^0.3.28",
"ws": "^8.19.0", "ws": "^8.19.0",
"yaml": "^2.8.2", "yaml": "^2.8.2",
"ygopro-cdb-encode": "^1.0.2", "ygopro-cdb-encode": "^1.0.3",
"ygopro-deck-encode": "^1.0.15", "ygopro-deck-encode": "^1.0.15",
"ygopro-lflist-encode": "^1.0.3", "ygopro-lflist-encode": "^1.0.3",
"ygopro-msg-encode": "^1.1.31", "ygopro-msg-encode": "^1.1.31",
...@@ -6050,9 +6050,9 @@ ...@@ -6050,9 +6050,9 @@
} }
}, },
"node_modules/koishipro-core.js": { "node_modules/koishipro-core.js": {
"version": "1.3.7", "version": "1.3.8",
"resolved": "https://registry.npmjs.org/koishipro-core.js/-/koishipro-core.js-1.3.7.tgz", "resolved": "https://registry.npmjs.org/koishipro-core.js/-/koishipro-core.js-1.3.8.tgz",
"integrity": "sha512-prR7RRREW0jmKQWIaAfFAparzYrZeKo8+MJs4g2zGOryMH0JU5ZQtKO82ExEIAbCV1QRoVN7Hs0ToRVBy8/PTQ==", "integrity": "sha512-qVqhhK+VyrpD04E2TnTJEzZhqHaPytWt253h6PyU3e0VdM/wk60AVHYIGMDQ1rP5wbt0qo4WVafJKfjd+YbuyA==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@types/emscripten": "^1.41.5", "@types/emscripten": "^1.41.5",
...@@ -6061,7 +6061,7 @@ ...@@ -6061,7 +6061,7 @@
"jszip": "^3.10.1", "jszip": "^3.10.1",
"nfkit": "^1.0.14", "nfkit": "^1.0.14",
"sql.js": "^1.13.0", "sql.js": "^1.13.0",
"ygopro-cdb-encode": "^1.0.2", "ygopro-cdb-encode": "^1.0.3",
"ygopro-msg-encode": "^1.1.31", "ygopro-msg-encode": "^1.1.31",
"ygopro-yrp-encode": "^1.0.1" "ygopro-yrp-encode": "^1.0.1"
} }
...@@ -9126,9 +9126,9 @@ ...@@ -9126,9 +9126,9 @@
} }
}, },
"node_modules/ygopro-cdb-encode": { "node_modules/ygopro-cdb-encode": {
"version": "1.0.2", "version": "1.0.3",
"resolved": "https://registry.npmjs.org/ygopro-cdb-encode/-/ygopro-cdb-encode-1.0.2.tgz", "resolved": "https://registry.npmjs.org/ygopro-cdb-encode/-/ygopro-cdb-encode-1.0.3.tgz",
"integrity": "sha512-g3RESgLWfL/m3drSo5LBwkRQckESzfjEwQPg4t6PanS2QRVik5bkpgIVDxCCslBHluNocIN0Vqm3uZZjnX+yxA==", "integrity": "sha512-4T9mPpGfH/5JLmiiog9pucMA/y+aiumsz+coG4QRTK40FfDeycp38Vt++O40a6HPT2DZQvh+GC2TakVubUqCfw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@types/sql.js": "^1.4.9", "@types/sql.js": "^1.4.9",
......
...@@ -24,7 +24,7 @@ export class YGOProResourceLoader { ...@@ -24,7 +24,7 @@ export class YGOProResourceLoader {
} }
private async mergeDatabase() { private async mergeDatabase() {
const db = new YGOProCdb(this.ctx.SQL); const db = new YGOProCdb(this.ctx.SQL).noTexts();
let dbCount = 0; let dbCount = 0;
for await (const file of searchYGOProResource(...this.ygoproPaths)) { for await (const file of searchYGOProResource(...this.ygoproPaths)) {
const filename = path.basename(file.path); const filename = path.basename(file.path);
...@@ -34,7 +34,7 @@ export class YGOProResourceLoader { ...@@ -34,7 +34,7 @@ export class YGOProResourceLoader {
try { try {
const currentDb = new this.ctx.SQL.Database(await file.read()); const currentDb = new this.ctx.SQL.Database(await file.read());
try { try {
const currentCdb = new YGOProCdb(currentDb); const currentCdb = new YGOProCdb(currentDb).noTexts();
const cards = currentCdb.find(); const cards = currentCdb.find();
for (const card of cards) { for (const card of cards) {
if (!db.findById(card.code)) { if (!db.findById(card.code)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment