Comparing version 3.3.1 to 3.3.2
@@ -0,1 +1,2 @@ | ||
var Buffer = require("buffer").Buffer; | ||
var send = require("./index") | ||
@@ -6,3 +7,3 @@ | ||
function sendHtml(req, res, opts, callback) { | ||
if (typeof opts === "string") { | ||
if (typeof opts === "string" || Buffer.isBuffer(opts)) { | ||
opts = { body: opts } | ||
@@ -9,0 +10,0 @@ } |
{ | ||
"name": "send-data", | ||
"version": "3.3.1", | ||
"version": "3.3.2", | ||
"description": "send data through response", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
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
13501
266