bare-stream
Advanced tools
Comparing version 2.2.0 to 2.2.1
25
index.js
const stream = require('streamx') | ||
const b4a = require('b4a') | ||
@@ -28,3 +29,3 @@ const getStreamError = stream.getStreamError | ||
if (typeof chunk === 'string') { | ||
chunk = Buffer.from(chunk, encoding || defaultEncoding) | ||
chunk = b4a.from(chunk, encoding || defaultEncoding) | ||
} | ||
@@ -37,3 +38,3 @@ | ||
if (typeof chunk === 'string') { | ||
chunk = Buffer.from(chunk, encoding || defaultEncoding) | ||
chunk = b4a.from(chunk, encoding || defaultEncoding) | ||
} | ||
@@ -68,3 +69,3 @@ | ||
encoding = encoding || defaultEncoding | ||
chunk = Buffer.from(chunk, encoding) | ||
chunk = b4a.from(chunk, encoding) | ||
} else { | ||
@@ -92,3 +93,3 @@ encoding = 'buffer' | ||
encoding = encoding || defaultEncoding | ||
chunk = Buffer.from(chunk, encoding || defaultEncoding) | ||
chunk = b4a.from(chunk, encoding || defaultEncoding) | ||
} else { | ||
@@ -129,3 +130,3 @@ encoding = 'buffer' | ||
if (typeof chunk === 'string') { | ||
chunk = Buffer.from(chunk, encoding || defaultEncoding) | ||
chunk = b4a.from(chunk, encoding || defaultEncoding) | ||
} | ||
@@ -138,3 +139,3 @@ | ||
if (typeof chunk === 'string') { | ||
chunk = Buffer.from(chunk, encoding || defaultEncoding) | ||
chunk = b4a.from(chunk, encoding || defaultEncoding) | ||
} | ||
@@ -153,3 +154,3 @@ | ||
encoding = encoding || defaultEncoding | ||
chunk = Buffer.from(chunk, encoding) | ||
chunk = b4a.from(chunk, encoding) | ||
} else { | ||
@@ -177,3 +178,3 @@ encoding = 'buffer' | ||
encoding = encoding || defaultEncoding | ||
chunk = Buffer.from(chunk, encoding) | ||
chunk = b4a.from(chunk, encoding) | ||
} else { | ||
@@ -206,3 +207,3 @@ encoding = 'buffer' | ||
if (typeof chunk === 'string') { | ||
chunk = Buffer.from(chunk, encoding || defaultEncoding) | ||
chunk = b4a.from(chunk, encoding || defaultEncoding) | ||
} | ||
@@ -215,3 +216,3 @@ | ||
if (typeof chunk === 'string') { | ||
chunk = Buffer.from(chunk, encoding || defaultEncoding) | ||
chunk = b4a.from(chunk, encoding || defaultEncoding) | ||
} | ||
@@ -230,3 +231,3 @@ | ||
encoding = encoding || defaultEncoding | ||
chunk = Buffer.from(chunk, encoding) | ||
chunk = b4a.from(chunk, encoding) | ||
} else { | ||
@@ -254,3 +255,3 @@ encoding = 'buffer' | ||
encoding = encoding || defaultEncoding | ||
chunk = Buffer.from(chunk, encoding) | ||
chunk = b4a.from(chunk, encoding) | ||
} else { | ||
@@ -257,0 +258,0 @@ encoding = 'buffer' |
{ | ||
"name": "bare-stream", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Streaming data for JavaScript", | ||
@@ -28,2 +28,3 @@ "exports": { | ||
"dependencies": { | ||
"b4a": "^1.6.6", | ||
"streamx": "^2.18.0" | ||
@@ -30,0 +31,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
19263
244
2
+ Addedb4a@^1.6.6
+ Addedb4a@1.6.7(transitive)