Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-boom-filemaker

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-boom-filemaker - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

7

index.js

@@ -8,12 +8,9 @@ const boom = require('boom');

res.boom = {};
Object.keys(boom).forEach(function(key) {
Object.getOwnPropertyNames(boom).forEach(function(key) {
if (typeof boom[key] !== 'function') return;
if (helperMethods.indexOf(key) !== -1) {
res.boom[key] = function() {
return boom[key].apply(boom, arguments);
};
res.boom[key] = () => boom[key].apply(boom, arguments);
} else {
res.boom[key] = function() {
const boomed = boom[key].apply(boom, arguments);
const boomedPayloadAndAditionalResponse = Object.assign(

@@ -20,0 +17,0 @@ boomed.output.payload,

{
"name": "express-boom-filemaker",
"version": "0.1.0",
"version": "0.1.1",
"description": "A module to map boom errors to a custom response header accessible to a FileMaker client.",

@@ -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