Compare commits

..

1 Commits

Author SHA1 Message Date
last2014 9c09675205 Merge pull request '2026.5.3' (#20) from develop into main
Reviewed-on: #20
2026-05-17 04:56:17 +00:00
3 changed files with 6 additions and 6 deletions
-3
View File
@@ -1,6 +1,3 @@
# 2026.5.4
- Chg: メモリをキャッシュしないように
# 2026.5.3
- Chg: 震度分布画像のメッセージを変更
- Fix: distに震度分布画像のアセットと地域マップがコピーされるように
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "notice-uwuzu",
"version": "2026.5.4",
"version": "2026.5.3",
"type": "module",
"main": "dist/index.js",
"scripts": {
+5 -2
View File
@@ -17,14 +17,17 @@ class MemoryClass {
max_length: 0,
}));
}
this.cachedMemory = JSON.parse(readFileSync(path, "utf-8"));
}
get memory() {
return JSON.parse(readFileSync(path, "utf-8"));
return this.cachedMemory;
}
set memory(data: any) {
writeFileSync(path, JSON.stringify(data), "utf-8");
this.cachedMemory = data;
writeFileSync(path, JSON.stringify(this.cachedMemory), "utf-8");
}
}