Socket
Socket
Sign inDemoInstall

@expo/json-file

Package Overview
Dependencies
Maintainers
24
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expo/json-file - npm Package Compare versions

Comparing version 8.2.30 to 8.2.31

8

build/JsonFile.js

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

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