Comparing version 0.3.0-beta1 to 0.3.0-beta2
@@ -33,13 +33,18 @@ import { Lazy } from "fp-ts/function"; | ||
*/ | ||
readonly errors?: ReadonlyArray<{ | ||
/** | ||
* The key of a field that has failed. Typically corresponds to the `name` of an <input>-field. | ||
*/ | ||
readonly key?: string; | ||
/** | ||
* A message explaining what is wrong with the field with the key | ||
*/ | ||
readonly message: string; | ||
}>; | ||
readonly errors?: ReadonlyArray<ErrorDetails>; | ||
} | ||
/** | ||
* This object contains more information about the error. This can either be messages from the Java-backend, | ||
* or in cases in the 400 error range, it can be keys that doesn't validate, and a message. | ||
*/ | ||
export interface ErrorDetails { | ||
/** | ||
* The key of a field that has failed. Typically corresponds to the `name` of an <input>-field. | ||
*/ | ||
readonly key?: string; | ||
/** | ||
* A message explaining what is wrong with the field with the key | ||
*/ | ||
readonly message: string; | ||
} | ||
export declare function isEnonicError(value: unknown): value is EnonicError; | ||
@@ -46,0 +51,0 @@ export declare const badRequestError: EnonicError; |
{ | ||
"name": "enonic-fp", | ||
"version": "0.3.0-beta1", | ||
"version": "0.3.0-beta2", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "description": "Functional programming helpers for Enonic XP", |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
96968
1923
0