@logux/server 0.12.7 → 0.12.9

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.
@@ -1,4 +1,4 @@
1
- import ip from 'ip'
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 => ip.cidrSubnet(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.7",
3
+ "version": "0.12.9",
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.5.0",
34
- "dotenv": "^16.3.1",
35
- "fast-glob": "^3.3.1",
36
- "ip": "^2.0.0",
33
+ "cookie": "^0.6.0",
34
+ "dotenv": "^16.4.4",
35
+ "fast-glob": "^3.3.2",
37
36
  "nanodelay": "^2.0.2",
38
- "nanoevents": "^8.0.0",
37
+ "nanoevents": "^9.0.0",
39
38
  "nanoid": "^4.0.2",
39
+ "netmask": "^2.0.2",
40
40
  "node-fetch": "^3.3.2",
41
41
  "picocolors": "^1.0.0",
42
- "pino": "8.15.0",
43
- "pino-abstract-transport": "^1.0.0",
44
- "semver": "^7.5.4",
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.13.0",
47
+ "ws": "^8.16.0",
48
48
  "yyyy-mm-dd": "^1.0.2"
49
49
  }
50
50
  }