@expo/json-file
Advanced tools
Comparing version 8.2.30 to 8.2.31
@@ -26,3 +26,3 @@ "use strict"; | ||
const code_frame_1 = require("@babel/code-frame"); | ||
const fs_extra_1 = require("fs-extra"); | ||
const fs_1 = __importDefault(require("fs")); | ||
const json5_1 = __importDefault(require("json5")); | ||
@@ -107,3 +107,3 @@ const path_1 = __importDefault(require("path")); | ||
try { | ||
json = fs_extra_1.readFileSync(file, 'utf8'); | ||
json = fs_1.default.readFileSync(file, 'utf8'); | ||
} | ||
@@ -125,3 +125,3 @@ catch (error) { | ||
try { | ||
json = await fs_extra_1.readFile(file, 'utf8'); | ||
json = await fs_1.default.promises.readFile(file, 'utf8'); | ||
} | ||
@@ -178,3 +178,3 @@ catch (error) { | ||
if (options === null || options === void 0 ? void 0 : options.ensureDir) { | ||
await fs_extra_1.mkdirp(path_1.default.dirname(file)); | ||
await fs_1.default.promises.mkdir(path_1.default.dirname(file), { recursive: true }); | ||
} | ||
@@ -181,0 +181,0 @@ const space = _getOption(options, 'space'); |
{ | ||
"name": "@expo/json-file", | ||
"version": "8.2.30", | ||
"version": "8.2.31", | ||
"description": "A module for reading, writing, and manipulating JSON files", | ||
@@ -32,3 +32,2 @@ "main": "build/JsonFile.js", | ||
"@babel/code-frame": "~7.10.4", | ||
"fs-extra": "9.0.0", | ||
"json5": "^1.0.1", | ||
@@ -38,5 +37,4 @@ "write-file-atomic": "^2.3.0" | ||
"devDependencies": { | ||
"@expo/babel-preset-cli": "0.2.20", | ||
"@expo/babel-preset-cli": "0.2.21", | ||
"@types/babel__code-frame": "^7.0.1", | ||
"@types/fs-extra": "^9.0.1", | ||
"@types/json5": "^0.0.30", | ||
@@ -43,0 +41,0 @@ "@types/write-file-atomic": "^2.1.1", |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
37745
3
5
- Removedfs-extra@9.0.0
- Removedat-least-node@1.0.0(transitive)
- Removedfs-extra@9.0.0(transitive)
- Removedjsonfile@6.1.0(transitive)
- Removeduniversalify@1.0.02.0.1(transitive)