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 3.0.4 to 3.0.5

10

CHANGELOG.md

@@ -0,1 +1,11 @@

# v3.0.5
- update `send-data/error` to pass extra error objects through
down the wire.
# v3.0.4
- throw an exception if you had `{ gzip: true }` and no callback
- set the gzip header
# v3.0.0

@@ -2,0 +12,0 @@

8

error.js

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

} else if (error && typeof error.message === "string") {
opts.body = { errors: [
{ message: error.message, attribute: "general" }
] }
if (!error.attribute) {
error.attribute = "general"
}
opts.body = { errors: [error] }
}

@@ -23,0 +25,0 @@

{
"name": "send-data",
"version": "3.0.4",
"version": "3.0.5",
"description": "send data through response",

@@ -22,3 +22,4 @@ "keywords": [],

"test-server": "~0.1.1",
"tape": "~1.0.4"
"tape": "~1.0.4",
"tern": "git://github.com/marijnh/tern"
},

@@ -25,0 +26,0 @@ "licenses": [

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