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

@rjweb/utils

Package Overview
Dependencies
Maintainers
0
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rjweb/utils - npm Package Compare versions

Comparing version 1.12.23 to 1.12.24

6

lib/cjs/filesystem.js

@@ -118,4 +118,6 @@ "use strict";

if (options?.async ?? true) {
return new Promise(async (resolve) => {
const content = await fs.promises.readFile(file, "utf8");
return new Promise(async (resolve, reject) => {
const content = await fs.promises.readFile(file, "utf8").catch(reject);
if (content === void 0)
return;
return resolve(import__.string.env(content));

@@ -122,0 +124,0 @@ });

{
"name": "@rjweb/utils",
"version": "1.12.23",
"version": "1.12.24",
"description": "Easy and Lightweight Utilities",

@@ -5,0 +5,0 @@ "module": "lib/esm/index.js",

@@ -79,4 +79,6 @@ import * as fs from "fs";

if (options?.async ?? true) {
return new Promise(async (resolve) => {
const content = await fs.promises.readFile(file, "utf8");
return new Promise(async (resolve, reject) => {
const content = await fs.promises.readFile(file, "utf8").catch(reject);
if (content === void 0)
return;
return resolve(string.env(content));

@@ -83,0 +85,0 @@ });

{
"name": "@rjweb/utils",
"version": "1.12.23",
"version": "1.12.24",
"description": "Easy and Lightweight Utilities",

@@ -5,0 +5,0 @@ "module": "lib/esm/index.js",

{
"name": "@rjweb/utils",
"version": "1.12.23",
"version": "1.12.24",
"description": "Easy and Lightweight Utilities",

@@ -5,0 +5,0 @@ "module": "lib/esm/index.js",

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