Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bare-fs

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-fs - npm Package Compare versions

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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc