Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd046ea8e3 | ||
|
|
8091907071 | ||
|
|
872aa1c608 | ||
|
|
cdbfb172c7 |
No files matched your search
@@ -1,5 +1,10 @@
|
||||
# Change Log
|
||||
|
||||
## 1.2.11 (2024-03-21)
|
||||
|
||||
- Resolved an issue from the previous release that caused incompatibility with
|
||||
Node.js versions 12 through 15.
|
||||
|
||||
## 1.2.10 (2024-03-18)
|
||||
|
||||
- Add support for XMPP connection requests. Use the environment variables
|
||||
|
||||
@@ -176,3 +176,4 @@ NaN
|
||||
CIDR
|
||||
XMPP
|
||||
PEM
|
||||
JID
|
||||
@@ -3,7 +3,6 @@ import * as http from "node:http";
|
||||
import * as https from "node:https";
|
||||
import { Socket } from "node:net";
|
||||
import * as path from "node:path";
|
||||
import { X509Certificate, createPrivateKey } from "node:crypto";
|
||||
import { ROOT_DIR } from "./config.ts";
|
||||
|
||||
let server: http.Server | https.Server;
|
||||
@@ -67,13 +66,6 @@ function getValidPrivKeys(value: string): Buffer[] {
|
||||
const buf = str.startsWith("-----BEGIN ")
|
||||
? Buffer.from(str)
|
||||
: readFileSync(path.resolve(ROOT_DIR, str));
|
||||
|
||||
try {
|
||||
createPrivateKey(buf);
|
||||
} catch (err) {
|
||||
throw new Error(`Invalid private key: ${err.message}`);
|
||||
}
|
||||
|
||||
return buf;
|
||||
});
|
||||
}
|
||||
@@ -84,13 +76,6 @@ function getValidCerts(value: string): Buffer[] {
|
||||
const buf = str.startsWith("-----BEGIN ")
|
||||
? Buffer.from(str)
|
||||
: readFileSync(path.resolve(ROOT_DIR, str));
|
||||
|
||||
try {
|
||||
new X509Certificate(buf);
|
||||
} catch (err) {
|
||||
throw new Error(`Invalid certificate: ${err.message}`);
|
||||
}
|
||||
|
||||
return buf;
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+23
-23
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "genieacs",
|
||||
"version": "1.2.10",
|
||||
"version": "1.2.11",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "genieacs",
|
||||
"version": "1.2.10",
|
||||
"version": "1.2.11",
|
||||
"license": "AGPL-3.0",
|
||||
"dependencies": {
|
||||
"@breejs/later": "^4.2.0",
|
||||
@@ -15,7 +15,7 @@
|
||||
"iconv-lite": "^0.6.3",
|
||||
"ipaddr.js": "^2.0.1",
|
||||
"jsonwebtoken": "^9.0.2",
|
||||
"koa": "^2.15.1",
|
||||
"koa": "^2.15.2",
|
||||
"koa-bodyparser": "^4.3.0",
|
||||
"koa-compress": "^5.1.0",
|
||||
"koa-jwt": "^4.0.3",
|
||||
@@ -39,7 +39,7 @@
|
||||
"@types/koa-router": "^7.4.8",
|
||||
"@types/koa-static": "^4.0.4",
|
||||
"@types/mithril": "^2.2.6",
|
||||
"@types/node": "^20.11.29",
|
||||
"@types/node": "^20.11.30",
|
||||
"@types/parsimmon": "^1.10.9",
|
||||
"@types/seedrandom": "^3.0.8",
|
||||
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
||||
@@ -52,7 +52,7 @@
|
||||
"prettier": "^3.2.5",
|
||||
"sql.js": "^1.10.2",
|
||||
"svgo": "^3.2.0",
|
||||
"typescript": "^5.4.2",
|
||||
"typescript": "^5.4.3",
|
||||
"yaml": "^1.10.2"
|
||||
},
|
||||
"engines": {
|
||||
@@ -2064,9 +2064,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "20.11.29",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.29.tgz",
|
||||
"integrity": "sha512-P99thMkD/1YkCvAtOd6/zGedKNA0p2fj4ZpjCzcNiSCBWgm3cNRTBfa/qjFnsKkkojxu4vVLtWpesnZ9+ap+gA==",
|
||||
"version": "20.11.30",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.30.tgz",
|
||||
"integrity": "sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw==",
|
||||
"dependencies": {
|
||||
"undici-types": "~5.26.4"
|
||||
}
|
||||
@@ -3890,9 +3890,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/koa": {
|
||||
"version": "2.15.1",
|
||||
"resolved": "https://registry.npmjs.org/koa/-/koa-2.15.1.tgz",
|
||||
"integrity": "sha512-kpxzGxsv7tlc0WmccWd6CfdWqYXk4o/FsCTjnKaDnHLjPK/Sy1MpoBkuKO5LN7GdPHgPljrAVmMO3wbFxEJTeA==",
|
||||
"version": "2.15.2",
|
||||
"resolved": "https://registry.npmjs.org/koa/-/koa-2.15.2.tgz",
|
||||
"integrity": "sha512-MXTeZH3M6AJ8ukW2QZ8wqO3Dcdfh2WRRmjCBkEP+NhKNCiqlO5RDqHmSnsyNrbRJrdjyvIGSJho4vQiWgQJSVA==",
|
||||
"dependencies": {
|
||||
"accepts": "^1.3.5",
|
||||
"cache-content-type": "^1.0.0",
|
||||
@@ -5061,9 +5061,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.4.2",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz",
|
||||
"integrity": "sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==",
|
||||
"version": "5.4.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.3.tgz",
|
||||
"integrity": "sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
@@ -6760,9 +6760,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "20.11.29",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.29.tgz",
|
||||
"integrity": "sha512-P99thMkD/1YkCvAtOd6/zGedKNA0p2fj4ZpjCzcNiSCBWgm3cNRTBfa/qjFnsKkkojxu4vVLtWpesnZ9+ap+gA==",
|
||||
"version": "20.11.30",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.30.tgz",
|
||||
"integrity": "sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw==",
|
||||
"requires": {
|
||||
"undici-types": "~5.26.4"
|
||||
}
|
||||
@@ -8076,9 +8076,9 @@
|
||||
}
|
||||
},
|
||||
"koa": {
|
||||
"version": "2.15.1",
|
||||
"resolved": "https://registry.npmjs.org/koa/-/koa-2.15.1.tgz",
|
||||
"integrity": "sha512-kpxzGxsv7tlc0WmccWd6CfdWqYXk4o/FsCTjnKaDnHLjPK/Sy1MpoBkuKO5LN7GdPHgPljrAVmMO3wbFxEJTeA==",
|
||||
"version": "2.15.2",
|
||||
"resolved": "https://registry.npmjs.org/koa/-/koa-2.15.2.tgz",
|
||||
"integrity": "sha512-MXTeZH3M6AJ8ukW2QZ8wqO3Dcdfh2WRRmjCBkEP+NhKNCiqlO5RDqHmSnsyNrbRJrdjyvIGSJho4vQiWgQJSVA==",
|
||||
"requires": {
|
||||
"accepts": "^1.3.5",
|
||||
"cache-content-type": "^1.0.0",
|
||||
@@ -8931,9 +8931,9 @@
|
||||
}
|
||||
},
|
||||
"typescript": {
|
||||
"version": "5.4.2",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz",
|
||||
"integrity": "sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==",
|
||||
"version": "5.4.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.3.tgz",
|
||||
"integrity": "sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==",
|
||||
"dev": true
|
||||
},
|
||||
"undici-types": {
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "genieacs",
|
||||
"version": "1.2.10",
|
||||
"version": "1.2.11",
|
||||
"description": "A TR-069 Auto Configuration Server (ACS)",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -31,7 +31,7 @@
|
||||
"iconv-lite": "^0.6.3",
|
||||
"ipaddr.js": "^2.0.1",
|
||||
"jsonwebtoken": "^9.0.2",
|
||||
"koa": "^2.15.1",
|
||||
"koa": "^2.15.2",
|
||||
"koa-bodyparser": "^4.3.0",
|
||||
"koa-compress": "^5.1.0",
|
||||
"koa-jwt": "^4.0.3",
|
||||
@@ -49,7 +49,7 @@
|
||||
"@types/koa-router": "^7.4.8",
|
||||
"@types/koa-static": "^4.0.4",
|
||||
"@types/mithril": "^2.2.6",
|
||||
"@types/node": "^20.11.29",
|
||||
"@types/node": "^20.11.30",
|
||||
"@types/parsimmon": "^1.10.9",
|
||||
"@types/seedrandom": "^3.0.8",
|
||||
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
||||
@@ -62,7 +62,7 @@
|
||||
"prettier": "^3.2.5",
|
||||
"sql.js": "^1.10.2",
|
||||
"svgo": "^3.2.0",
|
||||
"typescript": "^5.4.2",
|
||||
"typescript": "^5.4.3",
|
||||
"yaml": "^1.10.2"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
Reference in new issue
Block a user