@colyseus/monitor 0.18.1 → 0.18.2

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.
@@ -6,7 +6,7 @@
6
6
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
7
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
8
8
  <title>Colyseus Stats</title>
9
- <script type="module" crossorigin src="./assets/index-CDY0bZlU.js"></script>
9
+ <script type="module" crossorigin src="./assets/index-CtJMymAb.js"></script>
10
10
  <link rel="stylesheet" crossorigin href="./assets/index-C4SPBCkT.css">
11
11
  </head>
12
12
  <body>
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@colyseus/monitor",
3
- "version": "0.18.1",
3
+ "version": "0.18.2",
4
+ "type": "module",
4
5
  "description": "Web Monitoring Panel for Colyseus",
5
6
  "input": "./src/index.ts",
6
7
  "main": "./build/index.cjs",
@@ -42,6 +43,9 @@
42
43
  "url": "https://github.com/colyseus/colyseus/issues"
43
44
  },
44
45
  "homepage": "https://github.com/colyseus/colyseus#readme",
46
+ "engines": {
47
+ "node": ">= 22.x"
48
+ },
45
49
  "devDependencies": {
46
50
  "@emotion/react": "^11.11.1",
47
51
  "@emotion/styled": "^11.11.0",
@@ -67,7 +71,7 @@
67
71
  "dependencies": {
68
72
  "node-os-utils": "^2.0.0",
69
73
  "zod": "^4.1.12",
70
- "@colyseus/core": "^0.18.1"
74
+ "@colyseus/core": "^0.18.5"
71
75
  },
72
76
  "publishConfig": {
73
77
  "tag": "next"
@@ -1,6 +1,5 @@
1
1
  import fs from 'fs/promises';
2
2
  import path from 'path';
3
- import { fileURLToPath } from 'url';
4
3
  import { z } from 'zod';
5
4
  import { createEndpoint, dualModeEndpoints, matchMaker, type Endpoint } from '@colyseus/core';
6
5
  import { OSUtils } from 'node-os-utils';
@@ -10,7 +9,7 @@ import './ext/Room.js';
10
9
 
11
10
  const osutils = new OSUtils();
12
11
  const UNAVAILABLE_ROOM_ERROR = "@colyseus/monitor: room $roomId is not available anymore.";
13
- const SPA_DIST = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'build', 'static');
12
+ const SPA_DIST = path.resolve(import.meta.dirname, '..', 'build', 'static');
14
13
 
15
14
  export interface MonitorOptions {
16
15
  /** Mount prefix used when spread into `createRouter`. Ignored in express-middleware mode. Defaults to `''`. */