@expo/json-file
Advanced tools
Comparing version 8.2.1 to 8.2.2
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -93,5 +94,6 @@ }); | ||
_getOptions(options) { | ||
return Object.assign({}, this.options, options); | ||
return Object.assign(Object.assign({}, this.options), options); | ||
} | ||
} | ||
exports.default = JsonFile; | ||
JsonFile.read = read; | ||
@@ -107,3 +109,2 @@ JsonFile.readAsync = readAsync; | ||
JsonFile.rewriteAsync = rewriteAsync; | ||
exports.default = JsonFile; | ||
function read(file, options) { | ||
@@ -110,0 +111,0 @@ let json; |
{ | ||
"name": "@expo/json-file", | ||
"version": "8.2.1", | ||
"version": "8.2.2", | ||
"description": "A module for reading, writing, and manipulating JSON files", | ||
@@ -40,3 +40,3 @@ "main": "build/JsonFile.js", | ||
"devDependencies": { | ||
"@expo/babel-preset-cli": "^0.2.1", | ||
"@expo/babel-preset-cli": "^0.2.2", | ||
"@types/babel__code-frame": "^7.0.1", | ||
@@ -50,4 +50,3 @@ "@types/fs-extra": "^7.0.0", | ||
"jest": "^24.8.0", | ||
"prettier": "^1.7.4", | ||
"typescript": "3.4.5" | ||
"prettier": "^1.7.4" | ||
}, | ||
@@ -54,0 +53,0 @@ "publishConfig": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
45583
10
12
369
1