Comparing version 1.6.4 to 1.6.5
16
index.js
@@ -206,3 +206,3 @@ const { Readable, Writable } = require('streamx') | ||
if (!Buffer.isBuffer(buffer)) { | ||
if (!Buffer.isBuffer(buffer) && !ArrayBuffer.isView(buffer)) { | ||
throw typeError('ERR_INVALID_ARG_TYPE', 'Buffer must be a buffer. Received type ' + (typeof buffer) + ' (' + buffer + ')') | ||
@@ -245,3 +245,3 @@ } | ||
if (!Buffer.isBuffer(buffer)) { | ||
if (!Buffer.isBuffer(buffer) && !ArrayBuffer.isView(buffer)) { | ||
throw typeError('ERR_INVALID_ARG_TYPE', 'Buffer must be a buffer. Received type ' + (typeof buffer) + ' (' + buffer + ')') | ||
@@ -285,3 +285,3 @@ } | ||
if (!Buffer.isBuffer(buffer)) { | ||
if (!Buffer.isBuffer(buffer) && !ArrayBuffer.isView(buffer)) { | ||
throw typeError('ERR_INVALID_ARG_TYPE', 'Buffer must be a buffer. Received type ' + (typeof buffer) + ' (' + buffer + ')') | ||
@@ -324,3 +324,3 @@ } | ||
if (!Buffer.isBuffer(buffer)) { | ||
if (!Buffer.isBuffer(buffer) && !ArrayBuffer.isView(buffer)) { | ||
throw typeError('ERR_INVALID_ARG_TYPE', 'Buffer must be a buffer. Received type ' + (typeof buffer) + ' (' + buffer + ')') | ||
@@ -750,3 +750,3 @@ } | ||
if (typeof data !== 'string' && !Buffer.isBuffer(data)) { | ||
if (typeof data !== 'string' && !Buffer.isBuffer(data) && !ArrayBuffer.isView(data)) { | ||
throw typeError('ERR_INVALID_ARG_TYPE', 'Data must be a string or buffer. Received type ' + (typeof data) + ' (' + data + ')') | ||
@@ -767,3 +767,3 @@ } | ||
open(path, opts.flag || 'w', opts.mode, function (err, fd) { | ||
open(path, opts.flag || 'w', opts || 0o666.mode, function (err, fd) { | ||
if (err) return cb(err) | ||
@@ -773,3 +773,3 @@ | ||
function loop (err, w, data) { | ||
function loop (err, w) { | ||
if (err) return closeAndError(err) | ||
@@ -800,3 +800,3 @@ if (w === data.byteLength) return done() | ||
if (typeof data !== 'string' && !Buffer.isBuffer(data)) { | ||
if (typeof data !== 'string' && !Buffer.isBuffer(data) && !ArrayBuffer.isView(data)) { | ||
throw typeError('ERR_INVALID_ARG_TYPE', 'Data must be a string or buffer. Received type ' + (typeof data) + ' (' + data + ')') | ||
@@ -803,0 +803,0 @@ } |
{ | ||
"name": "bare-fs", | ||
"version": "1.6.4", | ||
"version": "1.6.5", | ||
"description": "Native file system for Javascript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
81268