@logux/server 0.12.6 → 0.12.8
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/bind-control-server/index.js +2 -2
- package/package.json +11 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Netmask } from 'netmask'
|
|
2
2
|
|
|
3
3
|
const MAX_VERSION = 4
|
|
4
4
|
const MIN_VERSION = 4
|
|
@@ -28,7 +28,7 @@ export function bindControlServer(app, custom) {
|
|
|
28
28
|
return
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
let masks = app.options.controlMask.split(/,\s*/).map(i =>
|
|
31
|
+
let masks = app.options.controlMask.split(/,\s*/).map(i => new Netmask(i))
|
|
32
32
|
app.httpServer.on('request', async (req, res) => {
|
|
33
33
|
let urlString = req.url
|
|
34
34
|
if (/^\/\w+%3F/.test(urlString)) urlString = decodeURIComponent(urlString)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logux/server",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.8",
|
|
4
4
|
"description": "Build own Logux server or make proxy between WebSocket and HTTP backend on any language",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"logux",
|
|
@@ -30,21 +30,21 @@
|
|
|
30
30
|
"@logux/actions": "^0.3.1",
|
|
31
31
|
"@logux/core": "^0.8.5",
|
|
32
32
|
"JSONStream": "^1.3.5",
|
|
33
|
-
"cookie": "^0.
|
|
34
|
-
"dotenv": "^16.
|
|
35
|
-
"fast-glob": "^3.3.
|
|
36
|
-
"ip": "^1.1.8",
|
|
33
|
+
"cookie": "^0.6.0",
|
|
34
|
+
"dotenv": "^16.4.4",
|
|
35
|
+
"fast-glob": "^3.3.2",
|
|
37
36
|
"nanodelay": "^2.0.2",
|
|
38
|
-
"nanoevents": "^
|
|
39
|
-
"nanoid": "^
|
|
37
|
+
"nanoevents": "^9.0.0",
|
|
38
|
+
"nanoid": "^5.0.5",
|
|
39
|
+
"netmask": "^2.0.2",
|
|
40
40
|
"node-fetch": "^3.3.2",
|
|
41
41
|
"picocolors": "^1.0.0",
|
|
42
|
-
"pino": "8.
|
|
43
|
-
"pino-abstract-transport": "^1.
|
|
44
|
-
"semver": "^7.
|
|
42
|
+
"pino": "8.18.0",
|
|
43
|
+
"pino-abstract-transport": "^1.1.0",
|
|
44
|
+
"semver": "^7.6.0",
|
|
45
45
|
"strip-ansi": "^7.1.0",
|
|
46
46
|
"url-pattern": "^1.0.3",
|
|
47
|
-
"ws": "^8.
|
|
47
|
+
"ws": "^8.16.0",
|
|
48
48
|
"yyyy-mm-dd": "^1.0.2"
|
|
49
49
|
}
|
|
50
50
|
}
|