Skip to content

Releases: cgustav/MHandler

v0.7.0 npm release

19 May 08:18
Compare
Choose a tag to compare

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

12 May 04:52
Compare
Choose a tag to compare

Added new errors, and documentation improved!:

  • DuplicatedResource
  • ResourceNotFound
  • BadCredentials
  • TokenExpired
  • And More...

npm v0.3.1 package

08 May 02:49
Compare
Choose a tag to compare

News:

  • Added 3 new errors: DuplicatedValue, DuplicatedField & EmptyParameters
  • Message customization improved

First release

07 May 21:19
Compare
Choose a tag to compare
adding new errors and refactor

two new errors were added: diplucatedValue() & duplicatedField(), moving getMessageDictionary() and getErrorCodeDictionary() to two independents modules.