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
parent3c5a866cc6e58e660a0aedb8ce6fec258e523a21 (diff)
deps: @npmcli/fs@2.1.2
-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
-rw-r--r--package-lock.json6
5 files changed, 19 insertions, 9 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": [
diff --git a/package-lock.json b/package-lock.json
index 9430ea240..516d07388 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -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",