enonic-wizardry
Advanced tools
Comparing version 0.3.6 to 0.3.7
{ | ||
"name": "enonic-wizardry", | ||
"sideEffects": false, | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "Functional utility library for Enonic XP", | ||
@@ -29,3 +29,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"enonic-fp": "^0.3.3", | ||
"enonic-fp": "^0.3.4", | ||
"enonic-types": "^0.1.4", | ||
@@ -32,0 +32,0 @@ "fp-ts": "^2.8.6", |
import { Reporter } from "io-ts/lib/Reporter"; | ||
import { ErrorDetail } from "enonic-fp/errors"; | ||
import { LocalizeParams } from "enonic-types/i18n"; | ||
import { LocalizeWithPrefixParams } from "enonic-fp/controller"; | ||
export interface GetErrorDetailReporterParams { | ||
readonly i18nPrefix?: string; | ||
readonly localizeParams?: LocalizeParams; | ||
readonly localizeParams?: LocalizeWithPrefixParams; | ||
} | ||
export declare function getErrorDetailReporter(params?: GetErrorDetailReporterParams): Reporter<Array<ErrorDetail>>; |
@@ -34,4 +34,4 @@ "use strict"; | ||
function getMessageKeys(key, fieldIsEmpty, params) { | ||
var _a; | ||
var i18nPrefix = (_a = params.i18nPrefix) !== null && _a !== void 0 ? _a : "errors"; | ||
var _a, _b; | ||
var i18nPrefix = (_b = (_a = params.localizeParams) === null || _a === void 0 ? void 0 : _a.i18nPrefix) !== null && _b !== void 0 ? _b : "errors"; | ||
var keyedMessageKeys = [ | ||
@@ -38,0 +38,0 @@ i18nPrefix + ".bad-request-error." + key, |
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
22743
353
Updatedenonic-fp@^0.3.4