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.12.0 to 1.12.1

22

index.js

@@ -1425,4 +1425,2 @@ const { sep, resolve, isAbsolute, toNamespacedPath } = require('path')

if (this._ended) {
this.closeSync()
return { done: true }

@@ -1433,3 +1431,9 @@ }

return { done: entry === null, value: entry }
if (entry) {
return { done: false, value: entry }
}
this.closeSync()
return { done: true }
}

@@ -1447,6 +1451,14 @@ }

if (this._ended) {
return this.close((err) => err ? reject(err) : resolve({ done: true }))
return resolve({ done: true })
}
this.read((err, entry) => err ? reject(err) : resolve({ done: entry === null, value: entry }))
this.read((err, entry) => {
if (err) return reject(err)
if (entry) {
return resolve({ done: false, value: entry })
}
this.close((err) => err ? reject(err) : resolve({ done: true }))
})
})

@@ -1453,0 +1465,0 @@ }

{
"name": "bare-fs",
"version": "1.12.0",
"version": "1.12.1",
"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