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.0.1 to 1.1.1

error.js

6

package.json
{
"name": "send-data",
"version": "1.0.1",
"version": "1.1.1",
"description": "send data through response",

@@ -23,3 +23,5 @@ "keywords": [],

"test-server": "~0.1.1",
"tape": "~0.3.3"
"tape": "~0.3.3",
"request": "~2.20.0",
"xtend": "~2.0.3"
},

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

@@ -11,2 +11,3 @@ # send-data [![build status][1]][2]

var sendHtml = require("send-data/html")
var sendError = require("send-data/error")
var http = require("http")

@@ -44,2 +45,4 @@

sendHtml(req, res, "<div>foo</div>")
} else if (req.url === "/oops") {
sendError(req, res, new Error("OOPS"))
}

@@ -46,0 +49,0 @@ }).listen(8080)

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