Collection of libs: http exceptions, dsn-parser...
MIT License
Bot releases are visible (Hide)
Published by belgattitude over 1 year ago
5cbc564
Thanks @belgattitude! - Fix releasePublished by belgattitude over 1 year ago
cf186a4
Thanks @belgattitude! - Initial and experimental json-api helpersPublished by belgattitude over 1 year ago
#468 e78d112
Thanks @belgattitude! - Add @httpx/dsn-parser package
Moving @soluble/cache-interop to the
@httpx org.
Published by belgattitude over 1 year ago
#467 99d6881
Thanks @belgattitude! - Add syncpack to align package.json fields
#465 245ed6b
Thanks @belgattitude! - Dev dependencies updated to latest
Published by belgattitude over 1 year ago
42cdf63
Thanks @belgattitude! - Minor perf by extracting regexp into an hoisted varPublished by belgattitude over 1 year ago
#402 6b945d3
Thanks @belgattitude! - Add field error validation support for 422 HttpUnprocessableEntity
Example:
import { HttpUnprocessableEntity } from '@httpx/exception';
const e422 = new HttpUnprocessableEntity({
errors: [
{
message: 'Invalid email',
path: 'email',
code: 'invalid_email',
},
{
message: 'Invalid address',
path: ['addresses', 0, 'line1'],
code: 'empty_string',
},
],
});
console.log(e422.errors);
f4c2780
Thanks @belgattitude! - Fix cyclic type import and use latest rollup to buildPublished by belgattitude over 1 year ago
67321bc
Thanks @belgattitude! - Fix missing serializer export for commonjs (esm worked)Published by belgattitude over 1 year ago
7ccae63
Thanks @belgattitude! - No changes, just the build with latest rollup/babelPublished by belgattitude almost 2 years ago
#31 167c216
Thanks @belgattitude! - Support ValidationError in HttpBadRequest
In some circumstances you might find useful to append the validation errors to
HttpBadRequest
. Here's a quick example:
const e400 = new HttpBadRequest({
errors: [
{
message: 'Invalid email',
path: 'email',
code: 'invalid_email',
},
{
message: 'Invalid address',
path: ['addresses', 0, 'line1'],
code: 'empty_string',
},
],
});
console.log(e400.errors);
Published by belgattitude almost 2 years ago
3ddb181
Thanks @belgattitude! - Increase legacy browsers usage (+ include latest babel upstream fixes)Published by belgattitude almost 2 years ago
be9dd3f
Thanks @belgattitude! - Missing npm description fieldPublished by belgattitude almost 2 years ago
6f94a9f
Thanks @belgattitude! - Fix releasePublished by belgattitude almost 2 years ago
#5 b51c863
Thanks @belgattitude! - Rename package to @httpx/exception
The @belgattitude/http-exception
package have been renamed to @httpx/exception
.