Skip to content

Commit

Permalink
fix: bump min required versions and fix package scripts (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith committed Jun 19, 2019
1 parent c398d79 commit eb3ae66
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 58 deletions.
102 changes: 46 additions & 56 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,85 +10,76 @@
"repository": "googleapis/nodejs-error-reporting",
"main": "./build/src/index.js",
"types": "./build/src/index.d.ts",
"nyc": {
"exclude": [
"./build/utils/fuzzer.js"
]
},
"files": [
"build/src",
"!build/src/**/*.map"
],
"scripts": {
"docs": "compodoc src/",
"lint": "eslint '**/*.js' && gts check && jsgl --local .",
"lint": "eslint '**/*.js' && gts check",
"presystem-test": "npm run compile",
"system-test": "nyc --exclude=\"error-message.js\" mocha build/system-test/**/*.js",
"cover": "nyc --exclude=\"fuzzer.js\" --reporter=lcov mocha build/test/unit/*.js build/test/unit/**/*.js && nyc report",
"system-test": "c8 mocha build/system-test",
"presamples-test": "npm run compile",
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
"test-no-cover": "mocha build/test/unit/**/*.js --timeout 20000",
"test-only": "npm run cover",
"test": "npm run test-only",
"check": "gts check",
"test": "c8 mocha --recursive build/test/unit",
"clean": "gts clean",
"compile": "tsc -p .",
"postcompile": "cpy 'utils/**/*.*' build --parents && cpy 'test/**/*.*' build --parents",
"fix": "gts fix && eslint --fix '**/*.js'",
"prepare": "npm run compile",
"pretest-only": "npm run compile",
"posttest": "npm run check && npm run license-check",
"pretest": "npm run compile",
"license-check": "jsgl --local .",
"docs-test": "linkinator docs -r --skip www.googleapis.com",
"docs-test": "linkinator docs --recurse",
"predocs-test": "npm run docs"
},
"dependencies": {
"@google-cloud/common": "^2.0.0",
"console-log-level": "^1.4.0",
"is": "^3.2.1",
"@google-cloud/common": "^2.0.1",
"console-log-level": "^1.4.1",
"is": "^3.3.0",
"lodash.has": "^4.5.2"
},
"devDependencies": {
"@compodoc/compodoc": "^1.1.7",
"@types/boom": "^7.2.0",
"@compodoc/compodoc": "^1.1.9",
"@types/boom": "^7.2.1",
"@types/console-log-level": "^1.4.0",
"@types/express": "^4.11.1",
"@types/hapi": "^18.0.0",
"@types/express": "^4.17.0",
"@types/hapi": "^18.0.2",
"@types/is": "0.0.21",
"@types/json-stable-stringify": "^1.0.32",
"@types/koa": "^2.0.45",
"@types/lodash.has": "^4.5.3",
"@types/lodash.maxby": "^4.6.3",
"@types/lodash.merge": "^4.6.3",
"@types/lodash.omit": "^4.5.3",
"@types/lodash.omitby": "^4.6.3",
"@types/lodash.pick": "^4.4.3",
"@types/lodash.random": "^3.2.3",
"@types/lodash.without": "^4.4.3",
"@types/mocha": "^5.2.0",
"@types/nock": "^10.0.0",
"@types/node": "^10.1.1",
"@types/koa": "^2.0.48",
"@types/lodash.has": "^4.5.6",
"@types/lodash.maxby": "^4.6.6",
"@types/lodash.merge": "^4.6.6",
"@types/lodash.omit": "^4.5.6",
"@types/lodash.omitby": "^4.6.6",
"@types/lodash.pick": "^4.4.6",
"@types/lodash.random": "^3.2.6",
"@types/lodash.without": "^4.4.6",
"@types/mocha": "^5.2.7",
"@types/nock": "^10.0.3",
"@types/node": "^12.0.8",
"@types/once": "^1.4.0",
"@types/proxyquire": "^1.3.28",
"@types/restify": "^7.2.0",
"@types/restify": "^7.2.11",
"@types/uuid": "^3.4.4",
"body-parser": "^1.18.3",
"boom": "^7.2.0",
"codecov": "^3.0.2",
"body-parser": "^1.19.0",
"boom": "^7.3.0",
"c8": "^5.0.1",
"codecov": "^3.5.0",
"cpy-cli": "^2.0.0",
"delay": "^4.1.0",
"eslint": "^5.0.0",
"eslint-config-prettier": "^4.0.0",
"eslint-plugin-node": "^9.0.0",
"eslint-plugin-prettier": "^3.0.0",
"express": "^4.16.3",
"delay": "^4.3.0",
"eslint": "^5.16.0",
"eslint-config-prettier": "^5.0.0",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-prettier": "^3.1.0",
"express": "^4.17.1",
"gts": "^1.0.0",
"hapi": "^18.0.0",
"hapi": "^18.1.0",
"intelli-espower-loader": "^1.0.1",
"js-green-licenses": "^1.0.0",
"js-green-licenses": "^1.1.0",
"json-stable-stringify": "^1.0.1",
"koa": "^2.5.1",
"linkinator": "^1.1.2",
"koa": "^2.7.0",
"linkinator": "^1.4.3",
"lodash.maxby": "^4.6.0",
"lodash.merge": "^4.6.1",
"lodash.omit": "^4.5.0",
Expand All @@ -97,15 +88,14 @@
"lodash.random": "^3.2.0",
"lodash.without": "^4.4.0",
"mocha": "^6.1.4",
"nock": "^10.0.0",
"nyc": "^14.0.0",
"nock": "^10.0.6",
"post-install-check": "0.0.1",
"power-assert": "^1.5.0",
"prettier": "^1.12.1",
"proxyquire": "^2.0.1",
"restify": "^8.0.0",
"source-map-support": "^0.5.9",
"typescript": "~3.5.0",
"power-assert": "^1.6.1",
"prettier": "^1.18.2",
"proxyquire": "^2.1.0",
"restify": "^8.3.3",
"source-map-support": "^0.5.12",
"typescript": "~3.5.2",
"uuid": "^3.3.2"
}
}
4 changes: 2 additions & 2 deletions test/test-servers/koa_scaffold_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const errorHandler = new ErrorReporting({
// option is now invalid.
onUncaughtException: 'report',
} as {});
import * as koa from 'koa';
const app = (koa as Function)();
import * as Koa from 'koa';
const app = new Koa();

app.use(errorHandler.koa);

Expand Down

0 comments on commit eb3ae66

Please sign in to comment.