Comparing version 2.0.10 to 2.0.11
@@ -12,3 +12,3 @@ interface Error { | ||
*/ | ||
export declare const httpError: <Status extends 422 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511, Name extends string, Data>(status: Status, name: Name, data?: Data | undefined) => { | ||
export declare const httpError: <Status extends 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511, Name extends string, Data>(status: Status, name: Name, data?: Data | undefined) => { | ||
error: { | ||
@@ -15,0 +15,0 @@ name: Name; |
export { handler } from './core'; | ||
export { httpError, onError, StatusCode } from './error'; | ||
export { apply } from './utilities'; | ||
export { createExpressMiddleware } from './server'; | ||
export { RoutesToBridgeType } from './routes'; | ||
export { initBridge } from './bridge'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createExpressMiddleware = exports.apply = exports.StatusCode = exports.onError = exports.httpError = exports.handler = void 0; | ||
exports.initBridge = exports.apply = exports.StatusCode = exports.onError = exports.httpError = exports.handler = void 0; | ||
var core_1 = require("./core"); | ||
@@ -12,4 +12,4 @@ Object.defineProperty(exports, "handler", { enumerable: true, get: function () { return core_1.handler; } }); | ||
Object.defineProperty(exports, "apply", { enumerable: true, get: function () { return utilities_1.apply; } }); | ||
var server_1 = require("./server"); | ||
Object.defineProperty(exports, "createExpressMiddleware", { enumerable: true, get: function () { return server_1.createExpressMiddleware; } }); | ||
var bridge_1 = require("./bridge"); | ||
Object.defineProperty(exports, "initBridge", { enumerable: true, get: function () { return bridge_1.initBridge; } }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "bridge", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104201
119
1159