Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bevry/file

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bevry/file - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

12

edition-browsers/index.js

@@ -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 @@ }

6

package.json
{
"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

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