@bevry/file
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -152,2 +152,8 @@ import { access as _access, readFile as _readFile, writeFile as _writeFile, unlink as _unlink, readdir as _readdir, constants, } from 'fs'; | ||
catch (err) { | ||
if (err.code === 'ENOENT') { | ||
// if it doesn't exist, then we don't care | ||
// this may not seem necessary, however it is | ||
// testen would fail on @bevry/json otherwise | ||
return; | ||
} | ||
throw new Errlop(`no write permission to delete the existing file: ${path}`, err); | ||
@@ -160,2 +166,8 @@ } | ||
catch (err) { | ||
if (err.code === 'ENOENT') { | ||
// if it didn't exist, then we don't care | ||
// this may not seem necessary, however it is | ||
// testen would fail on @bevry/json otherwise | ||
return; | ||
} | ||
throw new Errlop(`failed to delete the existing and writable file: ${path}`, err); | ||
@@ -162,0 +174,0 @@ } |
@@ -152,2 +152,8 @@ import { access as _access, readFile as _readFile, writeFile as _writeFile, unlink as _unlink, readdir as _readdir, constants, } from 'fs'; | ||
catch (err) { | ||
if (err.code === 'ENOENT') { | ||
// if it doesn't exist, then we don't care | ||
// this may not seem necessary, however it is | ||
// testen would fail on @bevry/json otherwise | ||
return; | ||
} | ||
throw new Errlop(`no write permission to delete the existing file: ${path}`, err); | ||
@@ -160,2 +166,8 @@ } | ||
catch (err) { | ||
if (err.code === 'ENOENT') { | ||
// if it didn't exist, then we don't care | ||
// this may not seem necessary, however it is | ||
// testen would fail on @bevry/json otherwise | ||
return; | ||
} | ||
throw new Errlop(`failed to delete the existing and writable file: ${path}`, err); | ||
@@ -162,0 +174,0 @@ } |
@@ -172,2 +172,8 @@ "use strict"; | ||
catch (err) { | ||
if (err.code === 'ENOENT') { | ||
// if it doesn't exist, then we don't care | ||
// this may not seem necessary, however it is | ||
// testen would fail on @bevry/json otherwise | ||
return; | ||
} | ||
throw new errlop_1.default(`no write permission to delete the existing file: ${path}`, err); | ||
@@ -180,2 +186,8 @@ } | ||
catch (err) { | ||
if (err.code === 'ENOENT') { | ||
// if it didn't exist, then we don't care | ||
// this may not seem necessary, however it is | ||
// testen would fail on @bevry/json otherwise | ||
return; | ||
} | ||
throw new errlop_1.default(`failed to delete the existing and writable file: ${path}`, err); | ||
@@ -182,0 +194,0 @@ } |
{ | ||
"name": "@bevry/file", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Helpers for reading, writing, deleting, and accessing a file.", | ||
@@ -157,3 +157,3 @@ "homepage": "https://github.com/bevry/file", | ||
"eslint": "^8.52.0", | ||
"eslint-config-bevry": "^3.27.0", | ||
"eslint-config-bevry": "^3.28.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
@@ -169,3 +169,3 @@ "eslint-plugin-prettier": "^5.0.1", | ||
"valid-directory": "^4.0.0", | ||
"valid-module": "^1.17.0" | ||
"valid-module": "^2.0.0" | ||
}, | ||
@@ -172,0 +172,0 @@ "scripts": { |
@@ -54,3 +54,3 @@ <!-- TITLE/ --> | ||
<script type="module"> | ||
import * as pkg from '//cdn.skypack.dev/@bevry/file@^1.3.0' | ||
import * as pkg from '//cdn.skypack.dev/@bevry/file@^1.4.0' | ||
</script> | ||
@@ -63,3 +63,3 @@ ``` | ||
<script type="module"> | ||
import * as pkg from '//unpkg.com/@bevry/file@^1.3.0' | ||
import * as pkg from '//unpkg.com/@bevry/file@^1.4.0' | ||
</script> | ||
@@ -72,3 +72,3 @@ ``` | ||
<script type="module"> | ||
import * as pkg from '//dev.jspm.io/@bevry/file@1.3.0' | ||
import * as pkg from '//dev.jspm.io/@bevry/file@1.4.0' | ||
</script> | ||
@@ -75,0 +75,0 @@ ``` |
@@ -182,2 +182,8 @@ import { | ||
} catch (err: any) { | ||
if (err.code === 'ENOENT') { | ||
// if it doesn't exist, then we don't care | ||
// this may not seem necessary, however it is | ||
// testen would fail on @bevry/json otherwise | ||
return | ||
} | ||
throw new Errlop( | ||
@@ -193,2 +199,8 @@ `no write permission to delete the existing file: ${path}`, | ||
} catch (err: any) { | ||
if (err.code === 'ENOENT') { | ||
// if it didn't exist, then we don't care | ||
// this may not seem necessary, however it is | ||
// testen would fail on @bevry/json otherwise | ||
return | ||
} | ||
throw new Errlop( | ||
@@ -195,0 +207,0 @@ `failed to delete the existing and writable file: ${path}`, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56469
913