@colyseus/monitor 0.16.4 → 0.16.6
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/ext/Room.mjs +2 -22
- package/build/ext/Room.mjs.map +1 -1
- package/build/index.js +3 -3
- package/build/index.js.map +2 -2
- package/build/index.mjs +1 -2
- package/build/index.mjs.map +2 -2
- package/build/static/bundle.js +20 -20
- package/build/static/bundle.js.map +1 -1
- package/build.mjs +1 -2
- package/package.json +2 -2
- package/src-backend/index.ts +3 -1
package/build.mjs
CHANGED
|
@@ -66,7 +66,7 @@ async function main() {
|
|
|
66
66
|
esbuild.build({
|
|
67
67
|
entryPoints,
|
|
68
68
|
outdir,
|
|
69
|
-
target,
|
|
69
|
+
target: "esnext",
|
|
70
70
|
format: "esm",
|
|
71
71
|
bundle: true,
|
|
72
72
|
sourcemap: "external",
|
|
@@ -92,7 +92,6 @@ async function main() {
|
|
|
92
92
|
let contents = fs.readFileSync(filePath, "utf8");
|
|
93
93
|
const loader = path.extname(filePath).substring(1);
|
|
94
94
|
contents = contents.replace("__dirname", `path.dirname(fileURLToPath(import.meta.url))`)
|
|
95
|
-
console.log({loader, contents})
|
|
96
95
|
return {
|
|
97
96
|
contents,
|
|
98
97
|
loader,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colyseus/monitor",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.6",
|
|
4
4
|
"description": "Web Monitoring Panel for Colyseus",
|
|
5
5
|
"input": "./src/index.ts",
|
|
6
6
|
"main": "./build/index.js",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@types/superagent": "^3.5.8",
|
|
53
53
|
"colyseus": "^0.16.0",
|
|
54
54
|
"css-loader": "^0.28.11",
|
|
55
|
-
"esbuild": "^0.
|
|
55
|
+
"esbuild": "^0.25.0",
|
|
56
56
|
"extract-text-webpack-plugin": "^4.0.0-beta.0",
|
|
57
57
|
"fast-glob": "^3.3.2",
|
|
58
58
|
"file-loader": "^1.1.11",
|
package/src-backend/index.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
// required for ESM support. (esbuild uses it)
|
|
5
|
+
import { fileURLToPath } from 'url';
|
|
4
6
|
|
|
5
7
|
import { getAPI } from './api.js';
|
|
6
8
|
import './ext/Room.js';
|