Skip to content
This repository was archived by the owner on Oct 21, 2021. It is now read-only.

Commit cce1517

Browse files
author
Elmer Bulthuis
authored
Merge pull request #6 from elmerbulthuis/abort-controller
Abort controller
2 parents b90b762 + ffcd806 commit cce1517

33 files changed

+1500
-1953
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.*
22
*.log
33
/node_modules/
4-
/report/
4+
/coverage/
55
/node/
66
/module/
77
/types/

.vscode/settings.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@
22
{
33
"typescript.tsdk": "node_modules/typescript/lib",
44
"editor.formatOnSave": true,
5+
"editor.codeActionsOnSave": {
6+
"source.organizeImports": true,
7+
"source.fixAll": true,
8+
},
59
"editor.rulers": [
6-
80,
7-
120
8-
]
10+
100,
11+
],
12+
"editor.tabSize": 4,
13+
"editor.insertSpaces": true,
14+
"[typescript]": {
15+
"editor.detectIndentation": false
16+
},
17+
"[typescriptreact]": {
18+
"editor.detectIndentation": false
19+
},
20+
"javascript.preferences.quoteStyle": "double",
21+
"typescript.preferences.quoteStyle": "double",
922
}

package-lock.json

Lines changed: 1321 additions & 695 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"compile": "tsc && tsc --project tsconfig.module.json",
99
"clean": "rm -rf node types module",
1010
"test": "npm run spec-all",
11-
"lint": "tslint \"src/**/*.ts\"",
11+
"lint": "eslint \"src/**/*.ts\"",
1212
"spec": "tape --require \"ts-node/register\"",
1313
"spec-all": "npm run spec \"src/**/*.spec.ts\"",
14-
"coverage": "nyc --report-dir report --reporter text-summary --reporter lcov --include \"src/**/*.ts\" --exclude \"src/**/*.spec.ts\" --extension \".ts\" npm test"
14+
"coverage": "nyc --reporter text-summary --reporter lcov npm test"
1515
},
1616
"repository": {
1717
"type": "git",
@@ -23,30 +23,25 @@
2323
"url": "https://github.com/Gameye/messaging-client-node/issues"
2424
},
2525
"homepage": "https://github.com/Gameye/messaging-client-node#readme",
26-
"engines": {
27-
"node": "^10"
28-
},
2926
"devDependencies": {
30-
"@gameye/server-context": "0.0.3",
31-
"@types/blue-tape": "^0.1.33",
32-
"@types/koa": "^2.11.2",
33-
"@types/koa-bodyparser": "^4.3.0",
34-
"@types/tape": "^4.2.34",
35-
"blue-tape": "^1.0.0",
36-
"koa": "^2.11.0",
37-
"koa-bodyparser": "^4.2.1",
38-
"nyc": "^15.0.0",
39-
"server-context": "^0.1.1",
40-
"tape": "^4.13.2",
41-
"ts-node": "^8.7.0",
42-
"tslint": "^5.20.1",
43-
"tslint-sonarts": "^1.9.0",
27+
"@types/tape": "^4.13.0",
28+
"@types/tape-promise": "^4.0.0",
29+
"@typescript-eslint/eslint-plugin": "^2.30.0",
30+
"@typescript-eslint/parser": "^2.30.0",
31+
"eslint": "^6.8.0",
32+
"nyc": "^15.0.1",
33+
"tape": "^5.0.0",
34+
"tape-promise": "^4.0.0",
35+
"ts-node": "^8.10.1",
4436
"typescript": "^3.8.3"
4537
},
4638
"dependencies": {
4739
"@types/http-errors": "^1.6.3",
40+
"@types/node-fetch": "^2.5.7",
41+
"abort-controller": "^3.0.0",
4842
"flux-standard-action": "^2.1.1",
4943
"http-errors": "^1.7.3",
50-
"msecs": "^1.0.0"
44+
"msecs": "^1.0.0",
45+
"node-fetch": "^2.6.0"
5146
}
5247
}

src/.eslintrc.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 2017
6+
},
7+
"plugins": [
8+
"@typescript-eslint"
9+
],
10+
"extends": [
11+
"eslint:recommended",
12+
"plugin:@typescript-eslint/eslint-recommended",
13+
"plugin:@typescript-eslint/recommended"
14+
],
15+
"rules": {
16+
"@typescript-eslint/explicit-function-return-type": "off",
17+
"@typescript-eslint/no-use-before-define": "off",
18+
"comma-dangle": [
19+
"error",
20+
"always-multiline"
21+
],
22+
"no-multiple-empty-lines": [
23+
"error",
24+
{
25+
"max": 1,
26+
"maxBOF": 0,
27+
"maxEOF": 0
28+
}
29+
],
30+
"eol-last": "error",
31+
"complexity": [
32+
"error",
33+
20
34+
],
35+
"max-len": [
36+
"error",
37+
{
38+
"code": 100,
39+
"ignoreStrings": true,
40+
"ignoreTemplateLiterals": true,
41+
"ignoreRegExpLiterals": true
42+
}
43+
]
44+
}
45+
}

src/client/command.spec.ts

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/client/command.ts

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)