chore: deps upgrades (including ts 4.1)

This commit is contained in:
simon 2020-12-01 22:17:30 +01:00
parent 03ec9f2156
commit ff2f08ecd7
6 changed files with 15178 additions and 6439 deletions

View File

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

21575
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -18,7 +18,7 @@ if (typeof (testSocket.tls as any).exportKeyingMaterial !== 'function') {
const { argv } = yargs
.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({
port: config.port || 1812,
s: config.secret || 'testing123',

View File

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

View File

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