Socket
Socket
Sign inDemoInstall

@expo/json-file

Package Overview
Dependencies
5
Maintainers
20
Versions
91
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.2.19 to 8.2.20

3

build/JsonFile.js

@@ -9,3 +9,2 @@ "use strict";

const get_1 = __importDefault(require("lodash/get"));
const has_1 = __importDefault(require("lodash/has"));
const set_1 = __importDefault(require("lodash/set"));

@@ -143,3 +142,3 @@ const json5_1 = __importDefault(require("json5"));

const object = await readAsync(file, options);
if (defaultValue === undefined && !has_1.default(object, key)) {
if (defaultValue === undefined && !(key in object)) {
throw new JsonFileError_1.default(`No value at key path "${key}" in JSON object from: ${file}`);

@@ -146,0 +145,0 @@ }

{
"name": "@expo/json-file",
"version": "8.2.19",
"version": "8.2.20",
"description": "A module for reading, writing, and manipulating JSON files",

@@ -35,3 +35,2 @@ "main": "build/JsonFile.js",

"lodash": "^4.17.15",
"util.promisify": "^1.0.0",
"write-file-atomic": "^2.3.0"

@@ -38,0 +37,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc