Comparing version 2.0.11 to 2.0.12
/// <reference types="node" /> | ||
import { BridgeRoutes } from './routes'; | ||
import { ErrorHandler } from './error'; | ||
import { RoutesToBridgeType } from './routes'; | ||
import type * as express from 'express'; | ||
@@ -10,3 +11,3 @@ import formidableLib from 'formidable'; | ||
private url; | ||
private bridgeType; | ||
bridgeType: RoutesToBridgeType<Routes>; | ||
constructor(routes: Routes, config: { | ||
@@ -13,0 +14,0 @@ errorHandler?: ErrorHandler; |
@@ -5,17 +5,2 @@ "use strict"; | ||
const node_http_1 = require("./server/adapters/node-http"); | ||
// export const initBridge = <Routes extends BridgeRoutes>({ | ||
// routes, | ||
// url, | ||
// errorHandler, | ||
// formidable, | ||
// }: { | ||
// routes: Routes; | ||
// url?: string; | ||
// formidable?: typeof formidableLib; | ||
// errorHandler?: ErrorHandler; | ||
// }): { bridgeType: RoutesToBridgeType<Routes>; createExpressMiddleware: () => express.Handler } => { | ||
// return { | ||
// createExpressMiddleware: () => createHttpHandler(routes, { formidable, errorHandler }), | ||
// } as any; | ||
// }; | ||
class Bridge { | ||
@@ -22,0 +7,0 @@ routes; |
{ | ||
"name": "bridge", | ||
"version": "2.0.11", | ||
"version": "2.0.12", | ||
"description": "Bridge is a new way of developing your api's", | ||
@@ -5,0 +5,0 @@ "author": "El Ouahabi Nabil", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
103674
1145