# knockout-validations-error-handler

> To be used with knockout-validations-extender, it simply adds manual errors into observables.

Latest version **0.0.2** (published 2015-07-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install knockout-validations-error-handler
pnpm add knockout-validations-error-handler
yarn add knockout-validations-error-handler
bun add knockout-validations-error-handler
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2015-07-10 |
| First published | 2015-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+7 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lucas Schmidt |
| Maintainers | lucastschmidt |
| Keywords | knockout, validations, error, handler |

## Links

- npm: https://www.npmjs.com/package/knockout-validations-error-handler
- Repository: https://github.com/lucastschmidt/knockout-validations-error-handler
- Issues: https://github.com/lucastschmidt/knockout-validations-error-handler/issues
- npm.io page: https://npm.io/package/knockout-validations-error-handler

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^3.0.0
- [pathval](https://npm.io/package/pathval.md) ^0.1.1
- [knockout](https://npm.io/package/knockout.md) ^3.2.0

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2015-07-10
- 0.0.1 — 2015-01-27

## README

# knockout validations error handler

A small function that will grab given errors and insert into an observable that uses extender *knockout-validations-extender*.

Uses feature _manualErrors_ from that extender.

# Params
- errors
  + array of error object (has path, has message). Eg:
  `` {"path": "consumer.id", message: "notNull"} ``
- givenObservable
  + observable that extends *knockout-validations-extender*
- [translateMessage]
  + function that receives a key, can return a translation of a message

# Change log
- 0.0.2
-- fixed when accessing array paths, eg: consumers[0].id

---
_Source: https://npm.io/package/knockout-validations-error-handler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
