Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bridge

Package Overview
Dependencies
Maintainers
2
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bridge - npm Package Compare versions

Comparing version 2.0.39 to 2.0.40

2

dist/source/core/handlers/middleware.js

@@ -20,3 +20,3 @@ "use strict";

for (const result of results)
if ((0, error_1.isError)(result))
if ((0, error_1.isBridgeError)(result))
return result;

@@ -23,0 +23,0 @@ return super.handle({ ...data, mid: Object.assign({}, ...results) });

@@ -6,3 +6,3 @@ interface Error {

}
export declare const isError: (object: any) => object is Error;
export declare const isBridgeError: (object: any) => object is Error;
/**

@@ -9,0 +9,0 @@ *

@@ -17,8 +17,8 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.httpError = exports.isError = void 0;
const isError = (object) => typeof object === 'object' &&
exports.httpError = exports.isBridgeError = void 0;
const isBridgeError = (object) => typeof object === 'object' &&
typeof object.error === 'object' &&
typeof object.error.name === 'string' &&
typeof object.error.status === 'number';
exports.isError = isError;
exports.isBridgeError = isBridgeError;
/**

@@ -25,0 +25,0 @@ *

export { handler } from './core';
export { httpError, onError, StatusCode } from './error';
export { httpError, onError, StatusCode, isBridgeError } from './error';
export { apply } from './utilities';

@@ -4,0 +4,0 @@ export { initBridge } from './bridge';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.method = exports.initBridge = exports.apply = exports.StatusCode = exports.onError = exports.httpError = exports.handler = void 0;
exports.method = exports.initBridge = exports.apply = exports.isBridgeError = exports.StatusCode = exports.onError = exports.httpError = exports.handler = void 0;
var core_1 = require("./core");

@@ -10,2 +10,3 @@ Object.defineProperty(exports, "handler", { enumerable: true, get: function () { return core_1.handler; } });

Object.defineProperty(exports, "StatusCode", { enumerable: true, get: function () { return error_1.StatusCode; } });
Object.defineProperty(exports, "isBridgeError", { enumerable: true, get: function () { return error_1.isBridgeError; } });
var utilities_1 = require("./utilities");

@@ -12,0 +13,0 @@ Object.defineProperty(exports, "apply", { enumerable: true, get: function () { return utilities_1.apply; } });

{
"name": "bridge",
"version": "2.0.39",
"version": "2.0.40",
"description": "Bridge is a Typescript Node.js framework that provides an easy and scalable way to create REST APIs while generating the client code.",

@@ -16,4 +16,3 @@ "author": "Bridge Team <support@bridge.codes>",

"build": "tsc",
"remove-dist": "if [ -d dist ]; then rm -rf dist; fi",
"publish-minor": "npm run remove-dist && tsc && npm version patch && npm publish"
"publish-minor": "tsc && npm version patch && npm publish"
},

@@ -20,0 +19,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc