captainbattle 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -144,7 +144,7 @@ function loadFighterInfo(battlePlayer) {
|
|
|
144
144
|
*/
|
|
145
145
|
function startBattleVerify(type, battlePlayer, param, callback) {
|
|
146
146
|
if (param.forcePass) {
|
|
147
|
-
callback(null);
|
|
147
|
+
callback && callback(null);
|
|
148
148
|
return true;
|
|
149
149
|
}
|
|
150
150
|
// 配置按需加载:入口 import 本包不再有读盘副作用,直接调用也能跑
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "captainbattle",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "水上大乱斗后端战斗模拟",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"pretypecheck": "npm run gen",
|
|
31
31
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
32
32
|
"prepack": "npm run build",
|
|
33
|
+
"release": "node scripts/release.mjs",
|
|
33
34
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
34
35
|
},
|
|
35
36
|
"repository": {
|