Skip to content

Commit eb3ae66

Browse files
fix: bump min required versions and fix package scripts (#376)
1 parent c398d79 commit eb3ae66

File tree

2 files changed

+48
-58
lines changed

2 files changed

+48
-58
lines changed

package.json

Lines changed: 46 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -10,85 +10,76 @@
1010
"repository": "googleapis/nodejs-error-reporting",
1111
"main": "./build/src/index.js",
1212
"types": "./build/src/index.d.ts",
13-
"nyc": {
14-
"exclude": [
15-
"./build/utils/fuzzer.js"
16-
]
17-
},
1813
"files": [
1914
"build/src",
2015
"!build/src/**/*.map"
2116
],
2217
"scripts": {
2318
"docs": "compodoc src/",
24-
"lint": "eslint '**/*.js' && gts check && jsgl --local .",
19+
"lint": "eslint '**/*.js' && gts check",
2520
"presystem-test": "npm run compile",
26-
"system-test": "nyc --exclude=\"error-message.js\" mocha build/system-test/**/*.js",
27-
"cover": "nyc --exclude=\"fuzzer.js\" --reporter=lcov mocha build/test/unit/*.js build/test/unit/**/*.js && nyc report",
21+
"system-test": "c8 mocha build/system-test",
2822
"presamples-test": "npm run compile",
2923
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
30-
"test-no-cover": "mocha build/test/unit/**/*.js --timeout 20000",
31-
"test-only": "npm run cover",
32-
"test": "npm run test-only",
33-
"check": "gts check",
24+
"test": "c8 mocha --recursive build/test/unit",
3425
"clean": "gts clean",
3526
"compile": "tsc -p .",
3627
"postcompile": "cpy 'utils/**/*.*' build --parents && cpy 'test/**/*.*' build --parents",
3728
"fix": "gts fix && eslint --fix '**/*.js'",
3829
"prepare": "npm run compile",
39-
"pretest-only": "npm run compile",
40-
"posttest": "npm run check && npm run license-check",
30+
"pretest": "npm run compile",
4131
"license-check": "jsgl --local .",
42-
"docs-test": "linkinator docs -r --skip www.googleapis.com",
32+
"docs-test": "linkinator docs --recurse",
4333
"predocs-test": "npm run docs"
4434
},
4535
"dependencies": {
46-
"@google-cloud/common": "^2.0.0",
47-
"console-log-level": "^1.4.0",
48-
"is": "^3.2.1",
36+
"@google-cloud/common": "^2.0.1",
37+
"console-log-level": "^1.4.1",
38+
"is": "^3.3.0",
4939
"lodash.has": "^4.5.2"
5040
},
5141
"devDependencies": {
52-
"@compodoc/compodoc": "^1.1.7",
53-
"@types/boom": "^7.2.0",
42+
"@compodoc/compodoc": "^1.1.9",
43+
"@types/boom": "^7.2.1",
5444
"@types/console-log-level": "^1.4.0",
55-
"@types/express": "^4.11.1",
56-
"@types/hapi": "^18.0.0",
45+
"@types/express": "^4.17.0",
46+
"@types/hapi": "^18.0.2",
5747
"@types/is": "0.0.21",
5848
"@types/json-stable-stringify": "^1.0.32",
59-
"@types/koa": "^2.0.45",
60-
"@types/lodash.has": "^4.5.3",
61-
"@types/lodash.maxby": "^4.6.3",
62-
"@types/lodash.merge": "^4.6.3",
63-
"@types/lodash.omit": "^4.5.3",
64-
"@types/lodash.omitby": "^4.6.3",
65-
"@types/lodash.pick": "^4.4.3",
66-
"@types/lodash.random": "^3.2.3",
67-
"@types/lodash.without": "^4.4.3",
68-
"@types/mocha": "^5.2.0",
69-
"@types/nock": "^10.0.0",
70-
"@types/node": "^10.1.1",
49+
"@types/koa": "^2.0.48",
50+
"@types/lodash.has": "^4.5.6",
51+
"@types/lodash.maxby": "^4.6.6",
52+
"@types/lodash.merge": "^4.6.6",
53+
"@types/lodash.omit": "^4.5.6",
54+
"@types/lodash.omitby": "^4.6.6",
55+
"@types/lodash.pick": "^4.4.6",
56+
"@types/lodash.random": "^3.2.6",
57+
"@types/lodash.without": "^4.4.6",
58+
"@types/mocha": "^5.2.7",
59+
"@types/nock": "^10.0.3",
60+
"@types/node": "^12.0.8",
7161
"@types/once": "^1.4.0",
7262
"@types/proxyquire": "^1.3.28",
73-
"@types/restify": "^7.2.0",
63+
"@types/restify": "^7.2.11",
7464
"@types/uuid": "^3.4.4",
75-
"body-parser": "^1.18.3",
76-
"boom": "^7.2.0",
77-
"codecov": "^3.0.2",
65+
"body-parser": "^1.19.0",
66+
"boom": "^7.3.0",
67+
"c8": "^5.0.1",
68+
"codecov": "^3.5.0",
7869
"cpy-cli": "^2.0.0",
79-
"delay": "^4.1.0",
80-
"eslint": "^5.0.0",
81-
"eslint-config-prettier": "^4.0.0",
82-
"eslint-plugin-node": "^9.0.0",
83-
"eslint-plugin-prettier": "^3.0.0",
84-
"express": "^4.16.3",
70+
"delay": "^4.3.0",
71+
"eslint": "^5.16.0",
72+
"eslint-config-prettier": "^5.0.0",
73+
"eslint-plugin-node": "^9.1.0",
74+
"eslint-plugin-prettier": "^3.1.0",
75+
"express": "^4.17.1",
8576
"gts": "^1.0.0",
86-
"hapi": "^18.0.0",
77+
"hapi": "^18.1.0",
8778
"intelli-espower-loader": "^1.0.1",
88-
"js-green-licenses": "^1.0.0",
79+
"js-green-licenses": "^1.1.0",
8980
"json-stable-stringify": "^1.0.1",
90-
"koa": "^2.5.1",
91-
"linkinator": "^1.1.2",
81+
"koa": "^2.7.0",
82+
"linkinator": "^1.4.3",
9283
"lodash.maxby": "^4.6.0",
9384
"lodash.merge": "^4.6.1",
9485
"lodash.omit": "^4.5.0",
@@ -97,15 +88,14 @@
9788
"lodash.random": "^3.2.0",
9889
"lodash.without": "^4.4.0",
9990
"mocha": "^6.1.4",
100-
"nock": "^10.0.0",
101-
"nyc": "^14.0.0",
91+
"nock": "^10.0.6",
10292
"post-install-check": "0.0.1",
103-
"power-assert": "^1.5.0",
104-
"prettier": "^1.12.1",
105-
"proxyquire": "^2.0.1",
106-
"restify": "^8.0.0",
107-
"source-map-support": "^0.5.9",
108-
"typescript": "~3.5.0",
93+
"power-assert": "^1.6.1",
94+
"prettier": "^1.18.2",
95+
"proxyquire": "^2.1.0",
96+
"restify": "^8.3.3",
97+
"source-map-support": "^0.5.12",
98+
"typescript": "~3.5.2",
10999
"uuid": "^3.3.2"
110100
}
111101
}

test/test-servers/koa_scaffold_server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ const errorHandler = new ErrorReporting({
2020
// option is now invalid.
2121
onUncaughtException: 'report',
2222
} as {});
23-
import * as koa from 'koa';
24-
const app = (koa as Function)();
23+
import * as Koa from 'koa';
24+
const app = new Koa();
2525

2626
app.use(errorHandler.koa);
2727

0 commit comments

Comments
 (0)