From 7017fdfba679b3291dcc572b1ecf5afc781ce85a Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Tue, 23 Jul 2019 00:00:28 +0200 Subject: [PATCH] feat(polka): export class Polka to allow customizations --- packages/polka/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/polka/index.mjs b/packages/polka/index.mjs index 6d32f71..886cfaa 100644 --- a/packages/polka/index.mjs +++ b/packages/polka/index.mjs @@ -7,7 +7,7 @@ function onError(err, req, res) { res.end(err.length && err || err.message || http.STATUS_CODES[code]); } -class Polka extends Router { +export class Polka extends Router { constructor(opts={}) { super(); this.parse = parser;