chore: deps upgrades (including ts 4.1)

master
simon 3 years ago
parent 03ec9f2156
commit ff2f08ecd7

@ -17,6 +17,9 @@ module.exports = {
passphrase: 'whatever2020', passphrase: 'whatever2020',
}, },
], ],
// sessionTimeout: 3600,
// sesionIdContext: 'meiasdfkljasdft!',
// ticketKeys: Buffer.from('123456789012345678901234567890123456789012345678'),
}, },
// GoogleLDAPAuth (optimized for google auth) // GoogleLDAPAuth (optimized for google auth)

21575
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -6,7 +6,7 @@
"node": ">13.10.1" "node": ">13.10.1"
}, },
"bin": { "bin": {
"radius-server": "./bin/radius-server" "radius-server": "bin/radius-server"
}, },
"files": [ "files": [
"bin", "bin",
@ -30,30 +30,31 @@
"preferGlobal": true, "preferGlobal": true,
"main": "dist/app.js", "main": "dist/app.js",
"dependencies": { "dependencies": {
"@hokify/node-ts-cache": "^5.2.0", "@hokify/node-ts-cache": "^5.4.1",
"debug": "^4.1.1", "debug": "^4.3.1",
"imap-simple": "^5.0.0", "imap-simple": "^5.0.0",
"ldapauth-fork": "^4.3.3", "ldapauth-fork": "^5.0.1",
"ldapjs": "^2.1.1", "ldapjs": "^2.2.2",
"native-duplexpair": "^1.0.0", "native-duplexpair": "^1.0.0",
"node-cache": "^5.1.2", "node-cache": "^5.1.2",
"radius": "~1.1.4", "radius": "~1.1.4",
"smtp-client": "^0.3.2", "smtp-client": "^0.3.3",
"yargs": "~15.4.1" "yargs": "~16.1.1"
}, },
"license": "GPLv3", "license": "GPLv3",
"devDependencies": { "devDependencies": {
"ts-node": "^9.0.0", "@hokify/eslint-config": "^1.0.5",
"standard-version": "^9.0.0", "@types/chai": "^4.2.14",
"@hokify/eslint-config": "^0.4.48",
"@types/chai": "^4.2.12",
"@types/ldapjs": "^1.0.9", "@types/ldapjs": "^1.0.9",
"@types/mocha": "^8.0.3", "@types/mocha": "^8.0.4",
"@types/radius": "0.0.28", "@types/radius": "0.0.28",
"@types/yargs": "^15.0.10",
"chai": "^4.2.0", "chai": "^4.2.0",
"eslint": "^7.8.1", "eslint": "^7.14.0",
"mocha": "^8.1.3", "mocha": "^8.2.1",
"prettier": "^2.1.1", "prettier": "^2.2.1",
"typescript": "^4.0.2" "standard-version": "^9.0.0",
"ts-node": "^9.0.0",
"typescript": "^4.1.2"
} }
} }

@ -18,7 +18,7 @@ if (typeof (testSocket.tls as any).exportKeyingMaterial !== 'function') {
const { argv } = yargs const { argv } = yargs
.usage('NODE RADIUS Server\nUsage: radius-server') .usage('NODE RADIUS Server\nUsage: radius-server')
.example('radius-server --port 1812 -s radiussecret') .example('radius-server --port 1812 -s radiussecret', 'start on port 1812 with a secret')
.default({ .default({
port: config.port || 1812, port: config.port || 1812,
s: config.secret || 'testing123', s: config.secret || 'testing123',

@ -62,7 +62,7 @@ export class GoogleLDAPAuth implements IAuthentication {
private async fetchDNs() { private async fetchDNs() {
const dns: { [key: string]: string } = {}; const dns: { [key: string]: string } = {};
await new Promise((resolve, reject) => { await new Promise<void>((resolve, reject) => {
const ldapDNClient = createClient(this.config).on('error', (error) => { const ldapDNClient = createClient(this.config).on('error', (error) => {
console.error('Error in ldap', error); console.error('Error in ldap', error);
reject(error); reject(error);

@ -38,4 +38,4 @@ export const newDeferredPromise = (): IDeferredPromise => {
}; };
export const delay = (timeout: number) => export const delay = (timeout: number) =>
new Promise((resolve) => setTimeout(() => resolve(), timeout)); new Promise<void>((resolve) => setTimeout(() => resolve(), timeout));

Loading…
Cancel
Save