Update package versions for node 18
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
Garrett Mills 2023-06-13 01:16:14 -05:00
parent 899c8448fc
commit 9aa3f56340
4 changed files with 580 additions and 466 deletions

View File

@ -11,45 +11,45 @@
"@atao60/fse-cli": "^0.1.7",
"@extollo/ui": "^0.1.0",
"@types/bcrypt": "^5.0.0",
"@types/busboy": "^0.2.3",
"@types/busboy": "^0.2.4",
"@types/cli-table": "^0.3.1",
"@types/ioredis": "^4.26.6",
"@types/ioredis": "^4.28.10",
"@types/jsonwebtoken": "^8.5.9",
"@types/mime-types": "^2.1.1",
"@types/mkdirp": "^1.0.2",
"@types/negotiator": "^0.6.1",
"@types/node": "^14.17.4",
"@types/pg": "^8.6.5",
"@types/node": "^14.18.51",
"@types/pg": "^8.10.2",
"@types/pluralize": "^0.0.29",
"@types/pug": "^2.0.6",
"@types/rimraf": "^3.0.2",
"@types/ssh2": "^0.5.46",
"@types/ssh2": "^0.5.52",
"@types/uuid": "^8.3.4",
"@types/ws": "^8.5.3",
"bcrypt": "^5.0.1",
"@types/ws": "^8.5.5",
"bcrypt": "^5.1.0",
"busboy": "^0.3.1",
"cli-table": "^0.3.11",
"colors": "^1.4.0",
"dotenv": "^8.2.0",
"ioredis": "^4.27.6",
"dotenv": "^8.6.0",
"ioredis": "^4.28.5",
"jsonwebtoken": "^8.5.1",
"mime-types": "^2.1.35",
"mkdirp": "^1.0.4",
"negotiator": "^0.6.3",
"node-fetch": "^3.2.10",
"pg": "^8.8.0",
"node-fetch": "^3.3.1",
"pg": "^8.11.0",
"pluralize": "^8.0.0",
"pug": "^3.0.2",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"sqlite": "^4.1.2",
"sqlite3": "^5.1.1",
"ssh2": "^1.11.0",
"sqlite": "^4.2.1",
"sqlite3": "^5.1.6",
"ssh2": "^1.13.0",
"ts-node": "^10.9.1",
"typescript": "^4.8.4",
"typescript": "^4.9.5",
"uuid": "^8.3.2",
"ws": "^8.9.0",
"zod": "^3.11.6"
"ws": "^8.13.0",
"zod": "^3.21.4"
},
"scripts": {
"test": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register 'tests/**/*.ts'",
@ -73,18 +73,19 @@
"author": "garrettmills <shout@garrettmills.dev>",
"license": "MIT",
"devDependencies": {
"@knodes/typedoc-plugin-pages": "^0.23.1",
"@types/chai": "^4.3.3",
"@types/mocha": "^9.0.0",
"@types/sinon": "^10.0.13",
"@knodes/typedoc-plugin-pages": "^0.23.4",
"@types/chai": "^4.3.5",
"@types/mocha": "^9.1.1",
"@types/sinon": "^10.0.15",
"@types/wtfnode": "^0.7.0",
"@typescript-eslint/eslint-plugin": "^5.38.1",
"@typescript-eslint/parser": "^5.38.1",
"chai": "^4.3.6",
"eslint": "^8.24.0",
"mocha": "^9.1.3",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"chai": "^4.3.7",
"eslint": "^8.42.0",
"lunr": "^2.3.0",
"mocha": "^9.2.2",
"sinon": "^12.0.1",
"typedoc": "^0.23.21",
"typedoc": "^0.23.28",
"wtfnode": "^0.9.1"
},
"extollo": {

File diff suppressed because it is too large Load Diff

View File

@ -68,7 +68,7 @@ export class WebsocketServer extends Unit {
// Start the websocket server
this.logging.info('Starting WebSocket server...')
this.server = new WebSocket.Server<WebSocket.WebSocket>({
this.server = new WebSocket.Server<typeof WebSocket.WebSocket>({
server: this.http.getServer(),
})

View File

@ -45,7 +45,7 @@ export type ParameterizedCallback<T> = ((arg: T) => any)
export type KeyValue<T> = {key: string, value: T}
/** Simple helper method to verify that a key is a keyof some object. */
export function isKeyof<T>(key: unknown, obj: T): key is keyof T {
export function isKeyof<T extends object>(key: unknown, obj: T): key is keyof T {
if ( typeof key !== 'string' && typeof key !== 'symbol' ) {
return false
}