From b8b586f2d59f40ff771e1a0afe4427a31c08559e Mon Sep 17 00:00:00 2001 From: Satoshi Kobayashi Date: Mon, 26 Dec 2022 07:53:47 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E3=82=B2=E3=83=BC=E3=83=A0=E5=81=9C?= =?UTF-8?q?=E6=AD=A2=E6=99=82=E3=81=AB=E3=82=B3=E3=83=BC=E3=83=AB=E3=83=90?= =?UTF-8?q?=E3=83=83=E3=82=AF=E3=81=8C=E5=91=BC=E3=81=B0=E3=82=8C=E3=81=AA?= =?UTF-8?q?=E3=81=84=E3=81=93=E3=81=A8=E3=81=8C=E3=81=82=E3=82=8B=E3=83=90?= =?UTF-8?q?=E3=82=B0=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/game.js | 1 - test/game.js | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/game.js b/lib/game.js index b946f8a..2691375 100644 --- a/lib/game.js +++ b/lib/game.js @@ -72,7 +72,6 @@ module.exports = class Game { } stop(callback = ()=>{}) { - this._timeout_id = clearTimeout(this._timeout_id); this._stop = callback; } diff --git a/test/game.js b/test/game.js index b12d1f7..e4b0f4d 100644 --- a/test/game.js +++ b/test/game.js @@ -186,7 +186,6 @@ suite('Majiang.Game', ()=>{ test('停止すること', ()=>{ game.stop(); assert.ok(game._stop); - assert.ok(! game._timeout_id); game._reply = [1,1,1,1]; game.next(); }); From bde28f5eea04a4281a7ee0986d52b1df7b5a7fe1 Mon Sep 17 00:00:00 2001 From: Satoshi Kobayashi Date: Mon, 26 Dec 2022 08:39:53 +0800 Subject: [PATCH 2/2] v1.0.1 / 2022-12-26 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ゲーム停止時にコールバックが呼ばれないことがあるバグを修正 --- ChangeLog.md | 4 ++++ lib/index.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index 93c3a88..d215a9e 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,3 +1,7 @@ +### v1.0.1 / 2022-12-26 + + - ゲーム停止時にコールバックが呼ばれないことがあるバグを修正 + # v1.0.0 / 2022-11-11 - 正式版リリース diff --git a/lib/index.js b/lib/index.js index 24358eb..ecefe9a 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,5 +1,5 @@ /*! - * @kobalab/majiang-core v1.0.0 + * @kobalab/majiang-core v1.0.1 * * Copyright(C) 2021 Satoshi Kobayashi * Released under the MIT license diff --git a/package-lock.json b/package-lock.json index 8a06ed5..34ee1bf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@kobalab/majiang-core", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@kobalab/majiang-core", - "version": "1.0.0", + "version": "1.0.1", "license": "MIT", "devDependencies": { "mocha": "^9.2.0", diff --git a/package.json b/package.json index 6b50382..49acc60 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kobalab/majiang-core", - "version": "1.0.0", + "version": "1.0.1", "description": "麻雀基本ライブラリ", "publishConfig": { "access": "public"