Skip to content

Commit eba333e

Browse files
committedJan 8, 2023
Update packages and force node 16.8+
1 parent ce44eae commit eba333e

File tree

4 files changed

+230
-2169
lines changed

4 files changed

+230
-2169
lines changed
 

‎package.json

+19-16
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"description": "A pterodactyl v1 api using undici",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
7+
"engines": {
8+
"node": ">=16.8"
9+
},
10+
"engineStrict": true,
711
"scripts": {
812
"dev": "tsc-watch --onCompilationComplete \"node --use-openssl-ca dist/test.js\"",
913
"build": "rimraf dist/* && tsc",
@@ -36,24 +40,23 @@
3640
},
3741
"homepage": "https://jspteroapi.linux123123.com",
3842
"dependencies": {
39-
"undici": "^5.9.1",
40-
"ws": "^8.8.1"
43+
"undici": "^5.14.0",
44+
"ws": "^8.12.0"
4145
},
4246
"devDependencies": {
43-
"@microsoft/tsdoc-config": "^0.16.1",
44-
"@types/node": "^18.7.11",
45-
"@types/ws": "^8.5.3",
46-
"@typescript-eslint/eslint-plugin": "^5.34.0",
47-
"@typescript-eslint/parser": "^5.34.0",
48-
"eslint": "^8.22.0",
49-
"eslint-config-prettier": "^8.5.0",
47+
"@microsoft/tsdoc-config": "^0.16.2",
48+
"@types/node": "^18.11.18",
49+
"@types/ws": "^8.5.4",
50+
"@typescript-eslint/eslint-plugin": "^5.48.0",
51+
"@typescript-eslint/parser": "^5.48.0",
52+
"eslint": "^8.31.0",
53+
"eslint-config-prettier": "^8.6.0",
5054
"eslint-plugin-prettier": "^4.2.1",
51-
"eslint-plugin-tsdoc": "^0.2.16",
52-
"np": "^7.6.2",
53-
"prettier": "^2.7.1",
55+
"eslint-plugin-tsdoc": "^0.2.17",
56+
"prettier": "^2.8.2",
5457
"rimraf": "^3.0.2",
55-
"tsc-watch": "^5.0.3",
56-
"typedoc": "^0.23.10",
57-
"typescript": "^4.7.4"
58+
"tsc-watch": "^6.0.0",
59+
"typedoc": "^0.23.24",
60+
"typescript": "^4.9.4"
5861
}
59-
}
62+
}

‎src/modules/Socket.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class Socket {
6565
this.ws.send(JSON.stringify(x));
6666
};
6767

68-
public send = (x: unknown) => {
68+
public send = (x: string) => {
6969
this.ws.send(x);
7070
};
7171

‎tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"compilerOptions": {
3-
"target": "ES2018" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
3+
"target": "ES2022" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
44
"module": "CommonJS" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
55
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
66
"declaration": true /* Generates corresponding '.d.ts' file. */,
77
"baseUrl": "./src" /* Base directory to resolve non-absolute module names. */,
88
"outDir": "./dist" /* Redirect output structure to the directory. */,
99
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
1010
"strict": true /* Enable all strict type-checking options. */,
11+
"alwaysStrict": true,
1112
"noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
1213
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
1314
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */

0 commit comments

Comments
 (0)