@node-red/util
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -644,3 +644,8 @@ /** | ||
var data = JSON.parse(value); | ||
result = Buffer.from(data); | ||
if (Array.isArray(data) || (typeof(data) === "string")) { | ||
result = Buffer.from(data); | ||
} | ||
else { | ||
throw createError("INVALID_BUFFER_DATA", "Not string or array"); | ||
} | ||
} else if (type === 'msg' && msg) { | ||
@@ -647,0 +652,0 @@ try { |
{ | ||
"name": "@node-red/util", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
75970
1871