New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bridge

Package Overview
Dependencies
Maintainers
1
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.5 to 2.0.6

2

dist/package/error/index.d.ts

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

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

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

@@ -18,3 +18,6 @@ "use strict";

exports.httpError = exports.isError = void 0;
const isError = (error) => typeof error === 'object' && typeof error.name === 'string' && typeof error.status === 'number';
const isError = (object) => typeof object === 'object' &&
typeof object.error === 'object' &&
typeof object.error.name === 'string' &&
typeof object.error.status === 'number';
exports.isError = isError;

@@ -21,0 +24,0 @@ /**

{
"name": "bridge",
"version": "2.0.5",
"version": "2.0.6",
"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

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