🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

bare-fs

Package Overview
Dependencies
Maintainers
3
Versions
89
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
4.5.3
to
4.5.4
+4
-2
index.js

@@ -335,3 +335,3 @@ const FIFO = require('fast-fifo')

async function write(fd, data, offset = 0, len, pos = -1, cb) {
async function write(fd, data, offset, len, pos = -1, cb) {
if (typeof data === 'string') {

@@ -373,2 +373,3 @@ let encoding = len

if (typeof offset !== 'number') offset = 0
if (typeof len !== 'number') len = data.byteLength - offset

@@ -392,3 +393,3 @@ if (typeof pos !== 'number') pos = -1

function writeSync(fd, data, offset = 0, len, pos = -1) {
function writeSync(fd, data, offset, len, pos = -1) {
if (typeof data === 'string') {

@@ -408,2 +409,3 @@ let encoding = len

if (typeof offset !== 'number') offset = 0
if (typeof len !== 'number') len = data.byteLength - offset

@@ -410,0 +412,0 @@ if (typeof pos !== 'number') pos = -1

{
"name": "bare-fs",
"version": "4.5.3",
"version": "4.5.4",
"description": "Native file system operations for Javascript",

@@ -5,0 +5,0 @@ "exports": {