hyperswitch
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -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", |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 2 instances in 1 package
168245
3931
5