Skip to content

Commit

Permalink
deps: @npmcli/fs@2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzy committed Aug 17, 2022
1 parent 3c5a866 commit 07536a4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
8 changes: 6 additions & 2 deletions node_modules/@npmcli/fs/lib/common/owner-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,15 @@ const update = (path, uid, gid) => {
if (uid === stat.uid && gid === stat.gid) {
return
}
} catch (err) {}
} catch {
// ignore errors
}

try {
fs.chownSync(path, uid, gid)
} catch (err) {}
} catch {
// ignore errors
}
}

// accepts a `path` and the `owner` property of an options object and normalizes
Expand Down
8 changes: 6 additions & 2 deletions node_modules/@npmcli/fs/lib/common/owner.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,15 @@ const update = async (path, uid, gid) => {
if (uid === stat.uid && gid === stat.gid) {
return
}
} catch (err) {}
} catch {
// ignore errors
}

try {
await fs.chown(path, uid, gid)
} catch (err) {}
} catch {
// ignore errors
}
}

// accepts a `path` and the `owner` property of an options object and normalizes
Expand Down
4 changes: 3 additions & 1 deletion node_modules/@npmcli/fs/lib/with-temp-dir.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ const withTempDir = async (root, fn, opts) => {

try {
await rm(target, { force: true, recursive: true })
} catch {}
} catch {
// ignore errors
}

if (err) {
throw err
Expand Down
2 changes: 1 addition & 1 deletion node_modules/@npmcli/fs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@npmcli/fs",
"version": "2.1.1",
"version": "2.1.2",
"description": "filesystem utilities for the npm cli",
"main": "lib/index.js",
"files": [
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -916,9 +916,9 @@
}
},
"node_modules/@npmcli/fs": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-2.1.1.tgz",
"integrity": "sha512-1Q0uzx6c/NVNGszePbr5Gc2riSU1zLpNlo/1YWntH+eaPmMgBssAW0qXofCVkpdj3ce4swZtlDYQu+NKiYcptg==",
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-2.1.2.tgz",
"integrity": "sha512-yOJKRvohFOaLqipNtwYB9WugyZKhC/DZC4VYPmpaCzDBrA8YpK3qHZ8/HGscMnE4GqbkLNuVcCnxkeQEdGt6LQ==",
"inBundle": true,
"dependencies": {
"@gar/promisify": "^1.1.3",
Expand Down

0 comments on commit 07536a4

Please sign in to comment.