Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@github.com>2022-08-17 22:25:19 +0300
committerNathan Fritz <fritzy@github.com>2022-08-17 22:44:30 +0300
commit07536a4be30ac3305fe4827335d621387bae3ca7 (patch)
tree07cc2c0d02054c5a8c4c70186dd63cd7810a8307 /node_modules
parent3c5a866cc6e58e660a0aedb8ce6fec258e523a21 (diff)
deps: @npmcli/fs@2.1.2
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/@npmcli/fs/lib/common/owner-sync.js8
-rw-r--r--node_modules/@npmcli/fs/lib/common/owner.js8
-rw-r--r--node_modules/@npmcli/fs/lib/with-temp-dir.js4
-rw-r--r--node_modules/@npmcli/fs/package.json2
4 files changed, 16 insertions, 6 deletions
diff --git a/node_modules/@npmcli/fs/lib/common/owner-sync.js b/node_modules/@npmcli/fs/lib/common/owner-sync.js
index 8fa18d512..3704aa6d1 100644
--- a/node_modules/@npmcli/fs/lib/common/owner-sync.js
+++ b/node_modules/@npmcli/fs/lib/common/owner-sync.js
@@ -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
diff --git a/node_modules/@npmcli/fs/lib/common/owner.js b/node_modules/@npmcli/fs/lib/common/owner.js
index 3fe167cfc..9f02d41a5 100644
--- a/node_modules/@npmcli/fs/lib/common/owner.js
+++ b/node_modules/@npmcli/fs/lib/common/owner.js
@@ -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
diff --git a/node_modules/@npmcli/fs/lib/with-temp-dir.js b/node_modules/@npmcli/fs/lib/with-temp-dir.js
index ad08e6ee6..81db59dd0 100644
--- a/node_modules/@npmcli/fs/lib/with-temp-dir.js
+++ b/node_modules/@npmcli/fs/lib/with-temp-dir.js
@@ -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
diff --git a/node_modules/@npmcli/fs/package.json b/node_modules/@npmcli/fs/package.json
index 9e1802821..1512fd6e4 100644
--- a/node_modules/@npmcli/fs/package.json
+++ b/node_modules/@npmcli/fs/package.json
@@ -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": [