This commit is contained in:
Timo Hocker 2020-04-09 11:11:19 +02:00
parent 999d493c68
commit 64ec1b5db5
4 changed files with 17 additions and 17 deletions

View File

@ -1,4 +1,4 @@
import http from '@scode/consts'; import {http} from '@scode/consts';
export default class Status { export default class Status {
private _status = -1; private _status = -1;

View File

@ -22,7 +22,7 @@ export default class Transaction {
} }
/* methods */ /* methods */
public finalize (data: any): void { public finalize (data?: any): void {
if (this._status.has_status) if (this._status.has_status)
this._res.status (this.status.status); this._res.status (this.status.status);
this._res.end (data); this._res.end (data);

View File

@ -1,14 +1,14 @@
import { App } from 'express'; import { Application } from 'express';
import Handler from './classes/Handler'; import Handler from './classes/Handler';
/** /**
* register an array of handlers to an express app * register an array of handlers to an express app
* *
* @param {App} app express app * @param {Application} app express app
* @param {Array<Handler>} handlers handlers to register * @param {Array<Handler>} handlers handlers to register
*/ */
export default function load_handlers ( export default function load_handlers (
app: App, app: Application,
handlers: Array<Handler> handlers: Array<Handler>
): void { ): void {
for (const h of handlers) for (const h of handlers)

View File

@ -258,31 +258,31 @@
fastq "^1.6.0" fastq "^1.6.0"
"@scode/consts@^1.0.15": "@scode/consts@^1.0.15":
version "1.0.16" version "1.0.20"
resolved "https://npm.scode.ovh/@scode%2fconsts/-/consts-1.0.16.tgz#89cf3a855ae8b6883cf2c51bb122f3a385922a48" resolved "https://npm.scode.ovh/@scode%2fconsts/-/consts-1.0.20.tgz#9bb0c2a975638a3d2c8507b7af8b6f0088b7c435"
integrity sha512-T2YeiJIiok+LDpsTh6/IVLxCl8/NyHOM0zeyeoo54TR1Dwp0M1u0CI38vua0S1GGuyPo+l5KLGl5lQjvx7++Ng== integrity sha512-4EIs8bxixaovtwuv2I3RfDD2AVXa29z8xwGyXOCHUa/AeGoWpjtMXRBnOxE6PcfPNlDzxNQpyBMZrqEGZnwefA==
"@scode/eslint-config-es6@^1.0.1": "@scode/eslint-config-es6@^1.0.1":
version "1.0.14" version "1.0.16"
resolved "https://npm.scode.ovh/@scode%2feslint-config-es6/-/eslint-config-es6-1.0.14.tgz#3b1f023b6ac653e29eb12f1ce4ec9103e0066be0" resolved "https://npm.scode.ovh/@scode%2feslint-config-es6/-/eslint-config-es6-1.0.16.tgz#4fb441677603c9f598dfded569dfb2d52d8020de"
integrity sha512-uVSO52wbpoynUBFI6nkRh5d5DD1Pqto7Alic9cr5WEyDF6ihScy0bTQBrdRGHRHVlvMYrVCNNK9gRvSwPdjatA== integrity sha512-qJooiVzeJ317gRHvHSTt2LLeTxVpjUs0VLIwNH/gTjZaLhRUQtusdNDb0pjPNO2vv85NNuTvykz4SZ+BIb1qCA==
dependencies: dependencies:
"@scode/eslint-config" "^2.0.1" "@scode/eslint-config" "^2.0.1"
eslint-plugin-import "^2.20.1" eslint-plugin-import "^2.20.1"
"@scode/eslint-config-ts@^1.0.12": "@scode/eslint-config-ts@^1.0.12":
version "1.0.13" version "1.0.15"
resolved "https://npm.scode.ovh/@scode%2feslint-config-ts/-/eslint-config-ts-1.0.13.tgz#0c58638617217b4907949e8ff601608703ca9c7b" resolved "https://npm.scode.ovh/@scode%2feslint-config-ts/-/eslint-config-ts-1.0.15.tgz#00ba8dad44fae84e5d09132c40e61ea0d49b6d4c"
integrity sha512-mfrby0ffIlEAYG03L/JIsKphyM+Wa7jyEESGN8pcHtw/sBMxGijzLfaxpYdzGn6GcYHSlsD1TG8CUt65+RGtCw== integrity sha512-JI6vkJmusiDnwGMeXxX73RNvDCc2jLD2rvdV8cdjjcQ2/bPwj9Z5EvRO+/C6j0edEYmeN1bQmX9KNQQ5eHnzxQ==
dependencies: dependencies:
"@scode/eslint-config-es6" "^1.0.1" "@scode/eslint-config-es6" "^1.0.1"
"@typescript-eslint/eslint-plugin" "^2.26.0" "@typescript-eslint/eslint-plugin" "^2.26.0"
"@typescript-eslint/parser" "^2.26.0" "@typescript-eslint/parser" "^2.26.0"
"@scode/eslint-config@^2.0.1": "@scode/eslint-config@^2.0.1":
version "2.0.6" version "2.0.7"
resolved "https://npm.scode.ovh/@scode%2feslint-config/-/eslint-config-2.0.6.tgz#0cf4d4a7776103ef7debac37dcc202ef8644f1a4" resolved "https://npm.scode.ovh/@scode%2feslint-config/-/eslint-config-2.0.7.tgz#8f9730d28aa85cf3007bbace7da3094f2eaa862b"
integrity sha512-+QTZicBzgEUHqXI2aL6YFSkurN/rh5k4Fcw/0b7ZB1J2wUwXV18xiBoWR+fX4RmMIhNdwedeNmMdxXxIx21SWA== integrity sha512-7+g50HTN5jOURC5pT0eYQT96YSL2EtK7BDqJL8wfa9ZUhg3nYs0wPubZ/Ei9e2eqyUvcKxAdLBizMCe0Zu41AA==
dependencies: dependencies:
eslint-plugin-jsdoc "22" eslint-plugin-jsdoc "22"
eslint-plugin-node "^11.0.0" eslint-plugin-node "^11.0.0"