Releases: cgustav/MHandler
Releases · cgustav/MHandler
v0.7.0 npm release
v0.7.0 release notes
Message timestamps are now available !
const mhandler = require('miller-handler')
const Mhandler = new mhandler('en', {timestamp: true})
/*{
status: 'error',
code: 'E011',
name: 'SomeErrorName',
message: 'This is an error message!',
timestamp: 2019-05-19T08:07:26.007Z
}*/
v0.6.1 npm release
Added new errors, and documentation improved!:
- DuplicatedResource
- ResourceNotFound
- BadCredentials
- TokenExpired
- And More...
npm v0.3.1 package
News:
- Added 3 new errors: DuplicatedValue, DuplicatedField & EmptyParameters
- Message customization improved
First release
adding new errors and refactor two new errors were added: diplucatedValue() & duplicatedField(), moving getMessageDictionary() and getErrorCodeDictionary() to two independents modules.