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

send-data

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

send-data - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

4

error.js

@@ -5,9 +5,9 @@ var sendJson = require("./json")

function sendError(req, res, error) {
function sendError(req, res, error, statusCode) {
var message = typeof error === "string" ? error : error.message
sendJson(req, res, {
statusCode: 500,
statusCode: statusCode || 500,
body: { message: message }
})
}
{
"name": "send-data",
"version": "1.1.1",
"version": "1.1.2",
"description": "send data through response",

@@ -5,0 +5,0 @@ "keywords": [],

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