@rjweb/utils
Advanced tools
Comparing version 1.12.23 to 1.12.24
@@ -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", |
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
191376
6411