From 64ec1b5db5f4434e26f8e7e15cc11d36f0f979cb Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Thu, 9 Apr 2020 11:11:19 +0200 Subject: [PATCH] fix --- lib/classes/Status.ts | 2 +- lib/classes/Transaction.ts | 2 +- lib/index.ts | 6 +++--- yarn.lock | 24 ++++++++++++------------ 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/lib/classes/Status.ts b/lib/classes/Status.ts index b84841b..9cbf6a3 100644 --- a/lib/classes/Status.ts +++ b/lib/classes/Status.ts @@ -1,4 +1,4 @@ -import http from '@scode/consts'; +import {http} from '@scode/consts'; export default class Status { private _status = -1; diff --git a/lib/classes/Transaction.ts b/lib/classes/Transaction.ts index 7612f3e..4702c5e 100644 --- a/lib/classes/Transaction.ts +++ b/lib/classes/Transaction.ts @@ -22,7 +22,7 @@ export default class Transaction { } /* methods */ - public finalize (data: any): void { + public finalize (data?: any): void { if (this._status.has_status) this._res.status (this.status.status); this._res.end (data); diff --git a/lib/index.ts b/lib/index.ts index 98522a2..1bee950 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -1,14 +1,14 @@ -import { App } from 'express'; +import { Application } from 'express'; import Handler from './classes/Handler'; /** * register an array of handlers to an express app * - * @param {App} app express app + * @param {Application} app express app * @param {Array} handlers handlers to register */ export default function load_handlers ( - app: App, + app: Application, handlers: Array ): void { for (const h of handlers) diff --git a/yarn.lock b/yarn.lock index c0400cc..af5e29c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -258,31 +258,31 @@ fastq "^1.6.0" "@scode/consts@^1.0.15": - version "1.0.16" - resolved "https://npm.scode.ovh/@scode%2fconsts/-/consts-1.0.16.tgz#89cf3a855ae8b6883cf2c51bb122f3a385922a48" - integrity sha512-T2YeiJIiok+LDpsTh6/IVLxCl8/NyHOM0zeyeoo54TR1Dwp0M1u0CI38vua0S1GGuyPo+l5KLGl5lQjvx7++Ng== + version "1.0.20" + resolved "https://npm.scode.ovh/@scode%2fconsts/-/consts-1.0.20.tgz#9bb0c2a975638a3d2c8507b7af8b6f0088b7c435" + integrity sha512-4EIs8bxixaovtwuv2I3RfDD2AVXa29z8xwGyXOCHUa/AeGoWpjtMXRBnOxE6PcfPNlDzxNQpyBMZrqEGZnwefA== "@scode/eslint-config-es6@^1.0.1": - version "1.0.14" - resolved "https://npm.scode.ovh/@scode%2feslint-config-es6/-/eslint-config-es6-1.0.14.tgz#3b1f023b6ac653e29eb12f1ce4ec9103e0066be0" - integrity sha512-uVSO52wbpoynUBFI6nkRh5d5DD1Pqto7Alic9cr5WEyDF6ihScy0bTQBrdRGHRHVlvMYrVCNNK9gRvSwPdjatA== + version "1.0.16" + resolved "https://npm.scode.ovh/@scode%2feslint-config-es6/-/eslint-config-es6-1.0.16.tgz#4fb441677603c9f598dfded569dfb2d52d8020de" + integrity sha512-qJooiVzeJ317gRHvHSTt2LLeTxVpjUs0VLIwNH/gTjZaLhRUQtusdNDb0pjPNO2vv85NNuTvykz4SZ+BIb1qCA== dependencies: "@scode/eslint-config" "^2.0.1" eslint-plugin-import "^2.20.1" "@scode/eslint-config-ts@^1.0.12": - version "1.0.13" - resolved "https://npm.scode.ovh/@scode%2feslint-config-ts/-/eslint-config-ts-1.0.13.tgz#0c58638617217b4907949e8ff601608703ca9c7b" - integrity sha512-mfrby0ffIlEAYG03L/JIsKphyM+Wa7jyEESGN8pcHtw/sBMxGijzLfaxpYdzGn6GcYHSlsD1TG8CUt65+RGtCw== + version "1.0.15" + resolved "https://npm.scode.ovh/@scode%2feslint-config-ts/-/eslint-config-ts-1.0.15.tgz#00ba8dad44fae84e5d09132c40e61ea0d49b6d4c" + integrity sha512-JI6vkJmusiDnwGMeXxX73RNvDCc2jLD2rvdV8cdjjcQ2/bPwj9Z5EvRO+/C6j0edEYmeN1bQmX9KNQQ5eHnzxQ== dependencies: "@scode/eslint-config-es6" "^1.0.1" "@typescript-eslint/eslint-plugin" "^2.26.0" "@typescript-eslint/parser" "^2.26.0" "@scode/eslint-config@^2.0.1": - version "2.0.6" - resolved "https://npm.scode.ovh/@scode%2feslint-config/-/eslint-config-2.0.6.tgz#0cf4d4a7776103ef7debac37dcc202ef8644f1a4" - integrity sha512-+QTZicBzgEUHqXI2aL6YFSkurN/rh5k4Fcw/0b7ZB1J2wUwXV18xiBoWR+fX4RmMIhNdwedeNmMdxXxIx21SWA== + version "2.0.7" + resolved "https://npm.scode.ovh/@scode%2feslint-config/-/eslint-config-2.0.7.tgz#8f9730d28aa85cf3007bbace7da3094f2eaa862b" + integrity sha512-7+g50HTN5jOURC5pT0eYQT96YSL2EtK7BDqJL8wfa9ZUhg3nYs0wPubZ/Ei9e2eqyUvcKxAdLBizMCe0Zu41AA== dependencies: eslint-plugin-jsdoc "22" eslint-plugin-node "^11.0.0"