@expo/json-file
Advanced tools
Comparing version 8.1.4 to 8.1.5
@@ -5,3 +5,3 @@ export declare type JSONValue = boolean | number | string | null | JSONArray | JSONObject; | ||
export interface JSONObject { | ||
[key: string]: JSONValue; | ||
[key: string]: JSONValue | undefined; | ||
} | ||
@@ -37,3 +37,3 @@ declare type Options<TJSONObject extends JSONObject> = { | ||
writeAsync(object: TJSONObject, options?: Options<TJSONObject>): Promise<TJSONObject>; | ||
getAsync<K extends keyof TJSONObject, DefaultValue>(key: K, defaultValue: DefaultValue, options?: Options<TJSONObject>): Promise<TJSONObject[K] | DefaultValue>; | ||
getAsync<K extends keyof TJSONObject, TDefault extends TJSONObject[K] | null>(key: K, defaultValue: TDefault, options?: Options<TJSONObject>): Promise<TJSONObject[K] | TDefault>; | ||
setAsync(key: string, value: unknown, options?: Options<TJSONObject>): Promise<TJSONObject>; | ||
@@ -40,0 +40,0 @@ mergeAsync(sources: TJSONObject | Array<TJSONObject>, options?: Options<TJSONObject>): Promise<JSONObject>; |
{ | ||
"name": "@expo/json-file", | ||
"version": "8.1.4", | ||
"version": "8.1.5", | ||
"description": "A module for reading, writing, and manipulating JSON files", | ||
@@ -40,3 +40,3 @@ "main": "build/JsonFile.js", | ||
"devDependencies": { | ||
"@expo/babel-preset-cli": "^0.1.1", | ||
"@expo/babel-preset-cli": "^0.1.2", | ||
"@types/babel__code-frame": "^7.0.1", | ||
@@ -43,0 +43,0 @@ "@types/fs-extra": "^7.0.0", |
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
33331
10