@b9g/http-errors 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@b9g/http-errors",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Standard HTTP error classes with native cause support and automatic serialization",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"http",
|
|
@@ -12,6 +12,11 @@
|
|
|
12
12
|
"functional",
|
|
13
13
|
"shovel"
|
|
14
14
|
],
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/bikeshaving/shovel.git",
|
|
18
|
+
"directory": "packages/http-errors"
|
|
19
|
+
},
|
|
15
20
|
"dependencies": {},
|
|
16
21
|
"devDependencies": {
|
|
17
22
|
"@b9g/libuild": "^0.1.18"
|
package/src/index.js
CHANGED
|
@@ -44,7 +44,7 @@ var STATUS_CODE_DEFAULTS = {
|
|
|
44
44
|
510: "Not Extended",
|
|
45
45
|
511: "Network Authentication Required"
|
|
46
46
|
};
|
|
47
|
-
var HTTP_ERROR =
|
|
47
|
+
var HTTP_ERROR = Symbol.for("shovel.http-error");
|
|
48
48
|
var HTTPError = class extends Error {
|
|
49
49
|
status;
|
|
50
50
|
expose;
|