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

hyperswitch

Package Overview
Dependencies
Maintainers
4
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperswitch - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

12

lib/hyperswitch.js

@@ -192,6 +192,4 @@ 'use strict';

body: {
type: 'request_recursion_depth_exceeded',
type: 'server_error#request_recursion_depth_exceeded',
title: 'HyperSwitch request recursion depth exceeded.',
uri: req.uri,
method: req.method,
parents: parents,

@@ -215,3 +213,3 @@ depth: this._recursionDepth

body: {
type: 'access_denied#sys',
type: 'forbidden#sys',
title: 'Access to the /sys hierarchy is restricted to system users.'

@@ -327,5 +325,5 @@ }

body: {
type: 'empty_response',
description: 'Empty response received',
req: req
type: 'server_error#empty_response',
title: 'Server Error',
description: 'Empty response received from a backend service'
}

@@ -332,0 +330,0 @@ });

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

message: response.message,
res: response,
res: /^error\//.test(logLevel) ? response : {
status: response.status,
headers: response.headers,
},
stack: response.stack,

@@ -260,3 +263,3 @@ latency: latency,

resp.end(req.method === 'head' ? undefined : JSON.stringify({
type: 'https://restbase.org/errors/no_content',
type: 'server_error#empty_response',
title: 'HyperSwitch error: No content returned by backend.',

@@ -438,3 +441,3 @@ uri: req.url,

server.listen(port, host);
opts.log('info', 'listening on ' + (host || '*') + ':' + port);
opts.log('warn/startup', 'listening on ' + (host || '*') + ':' + port);
return server;

@@ -441,0 +444,0 @@ })

{
"name": "hyperswitch",
"version": "0.4.0",
"version": "0.4.1",
"description": "REST API creation framework",

@@ -5,0 +5,0 @@ "main": "index.js",

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