Socket
Socket
Sign inDemoInstall

chownr

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chownr - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

10

chownr.js

@@ -40,5 +40,6 @@ 'use strict'

readdir(p, { withFileTypes: true }, (er, children) => {
// any error other than ENOTDIR means it's not readable, or
// doesn't exist. give up.
if (er && er.code !== 'ENOTDIR') return cb(er)
// any error other than ENOTDIR or ENOTSUP means it's not readable,
// or doesn't exist. give up.
if (er && er.code !== 'ENOTDIR' && er.code !== 'ENOTSUP')
return cb(er)
if (er || !children.length) return fs[LCHOWN](p, uid, gid, cb)

@@ -76,3 +77,4 @@

} catch (er) {
if (er && er.code === 'ENOTDIR') return fs[LCHOWNSYNC](p, uid, gid)
if (er && er.code === 'ENOTDIR' && er.code !== 'ENOTSUP')
return fs[LCHOWNSYNC](p, uid, gid)
throw er

@@ -79,0 +81,0 @@ }

2

package.json

@@ -5,3 +5,3 @@ {

"description": "like `chown -R`",
"version": "1.1.0",
"version": "1.1.1",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

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