@colyseus/monitor 0.15.0-preview.2 → 0.15.0-preview.3
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/build/api.js +1 -1
- package/package.json +2 -2
package/build/api.js
CHANGED
|
@@ -24,7 +24,7 @@ function getAPI(opts) {
|
|
|
24
24
|
const rooms = yield colyseus_1.matchMaker.query({});
|
|
25
25
|
const columns = opts.columns || ['roomId', 'name', 'clients', 'maxClients', 'locked', 'elapsedTime'];
|
|
26
26
|
// extend columns to expose "publicAddress", if present
|
|
27
|
-
if (rooms[0] && rooms[0].publicAddress !== undefined) {
|
|
27
|
+
if (!opts.columns && rooms[0] && rooms[0].publicAddress !== undefined) {
|
|
28
28
|
columns.push("publicAddress");
|
|
29
29
|
}
|
|
30
30
|
let connections = 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colyseus/monitor",
|
|
3
|
-
"version": "0.15.0-preview.
|
|
3
|
+
"version": "0.15.0-preview.3",
|
|
4
4
|
"description": "Web Monitoring Panel for Colyseus",
|
|
5
5
|
"input": "./src/index.ts",
|
|
6
6
|
"main": "./build/index.js",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"node-os-utils": "^1.2.0",
|
|
59
59
|
"superagent": "^3.8.2"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "7872907015e6ea2ec5aa7a0cb4d0a1fb08effd37"
|
|
62
62
|
}
|