Comparing version 3.3.3 to 3.3.4
@@ -6,3 +6,3 @@ var send = require("./index") | ||
function sendCss(req, res, opts, callback) { | ||
if (typeof opts === "string") { | ||
if (typeof opts === "string" || Buffer.isBuffer(opts)) { | ||
opts = { body: opts } | ||
@@ -9,0 +9,0 @@ } |
@@ -6,3 +6,3 @@ var send = require("./index") | ||
function sendJavascript(req, res, opts, callback) { | ||
if (typeof opts === "string") { | ||
if (typeof opts === "string" || Buffer.isBuffer(opts)) { | ||
opts = { body: opts } | ||
@@ -9,0 +9,0 @@ } |
{ | ||
"name": "send-data", | ||
"version": "3.3.3", | ||
"version": "3.3.4", | ||
"description": "send data through response", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -6,3 +6,3 @@ var send = require("./index") | ||
function sendPlain(req, res, opts, callback) { | ||
if (typeof opts === "string") { | ||
if (typeof opts === "string" || Buffer.isBuffer(opts)) { | ||
opts = { body: opts } | ||
@@ -9,0 +9,0 @@ } |
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
14887