Socket
Socket
Sign inDemoInstall

bare-fs

Package Overview
Dependencies
Maintainers
2
Versions
45
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 2.1.2 to 2.1.3

22

index.js

@@ -608,3 +608,12 @@ /* global Bare */

if (err) return cb(err, err.errno, null)
mkdir(filepath, { mode }, cb)
mkdir(filepath, { mode }, function (err) {
if (err === null) return cb(null, 0, null)
stat(filepath, function (e, st) {
if (e) return cb(e, e.errno, null)
if (st.isDirectory()) return cb(null, 0, null)
cb(err, err.errno, null)
})
})
})

@@ -651,3 +660,12 @@ })

mkdirResursiveSync(filepath.slice(0, i), { mode })
mkdirSync(filepath, { mode })
try {
mkdirSync(filepath, { mode })
} catch (err) {
if (statSync(filepath).isDirectory()) {
return
}
throw err
}
}

@@ -654,0 +672,0 @@ }

2

package.json
{
"name": "bare-fs",
"version": "2.1.2",
"version": "2.1.3",
"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