Huge News!Announcing our $40M Series B led by Abstract Ventures.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.7 to 2.0.8

13

dist/package/routes/convert.js

@@ -16,8 +16,9 @@ "use strict";

const convertBridgeRoutesToServerRoutes = (routes, prefix = '') => {
for (const [key, value] of Object.entries(routes)) {
if ((0, core_1.isBridgeHandler)(value))
serverRoutes[`${prefix}/${key}`] = { endpoint: value };
else if ((0, types_1.isBridgeRoutes)(value))
(0, exports.convertBridgeRoutesToServerRoutes)(value, `${prefix}/${key}`);
}
if (typeof routes === 'object')
for (const [key, value] of Object.entries(routes)) {
if ((0, core_1.isBridgeHandler)(value))
serverRoutes[`${prefix}/${key}`] = { endpoint: value };
else if ((0, types_1.isBridgeRoutes)(value))
(0, exports.convertBridgeRoutesToServerRoutes)(value, `${prefix}/${key}`);
}
return { ...defaultServerRoutes, ...serverRoutes };

@@ -24,0 +25,0 @@ };

{
"name": "bridge",
"version": "2.0.7",
"version": "2.0.8",
"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