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.48 to 2.0.49

2

dist/source/server/adapters/node-http.d.ts

@@ -5,2 +5,3 @@ /// <reference types="node" />

import { BridgeRoutes } from '../../routes';
declare const logs: any[];
export declare const createHttpHandler: (routes: BridgeRoutes, config?: {

@@ -11,2 +12,3 @@ errorHandler?: ErrorHandler;

}) => (req: IncomingMessage, res: ServerResponse) => Promise<ServerResponse<IncomingMessage>>;
export {};
//# sourceMappingURL=node-http.d.ts.map

5

dist/source/server/adapters/node-http.js

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

const routes_1 = require("../../routes");
const logs = [];
const createHttpHandler = (routes, config) => {

@@ -17,2 +18,4 @@ let path;

[path, queryString] = (req.url || '/').split('?');
if (path === 'get-logs')
return res.writeHead(200, { 'Content-Type': 'application/json' }).end(JSON.stringify(logs));
const route = serverRoutes[path];

@@ -36,3 +39,3 @@ const endpoint = route?.[req.method];

if (config?.logs)
console.log({
logs.push({
path,

@@ -39,0 +42,0 @@ body,

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

@@ -5,0 +5,0 @@ "author": "Bridge Team <support@bridge.codes>",

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