Socket
Socket
Sign inDemoInstall

@expo/json-file

Package Overview
Dependencies
Maintainers
14
Versions
96
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.1.5 to 8.1.6

build/JsonFile.js.flow

3

build/JsonFile.d.ts

@@ -7,2 +7,3 @@ export declare type JSONValue = boolean | number | string | null | JSONArray | JSONObject;

}
declare type Defined<T> = T extends undefined ? never : T;
declare type Options<TJSONObject extends JSONObject> = {

@@ -37,3 +38,3 @@ badJsonDefault?: TJSONObject;

writeAsync(object: TJSONObject, options?: Options<TJSONObject>): Promise<TJSONObject>;
getAsync<K extends keyof TJSONObject, TDefault extends TJSONObject[K] | null>(key: K, defaultValue: TDefault, options?: Options<TJSONObject>): Promise<TJSONObject[K] | TDefault>;
getAsync<K extends keyof TJSONObject, TDefault extends TJSONObject[K] | null>(key: K, defaultValue: TDefault, options?: Options<TJSONObject>): Promise<Defined<TJSONObject[K]> | TDefault>;
setAsync(key: string, value: unknown, options?: Options<TJSONObject>): Promise<TJSONObject>;

@@ -40,0 +41,0 @@ mergeAsync(sources: TJSONObject | Array<TJSONObject>, options?: Options<TJSONObject>): Promise<JSONObject>;

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

@@ -5,0 +5,0 @@ "main": "build/JsonFile.js",

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