Comparing version 1.0.1 to 1.1.1
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8113
10
158
66
5