@expo/json-file
Advanced tools
Comparing version 8.1.5 to 8.1.6
@@ -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
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
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
41996
12
331