@trenskow/api-error 2.5.44 → 2.5.46
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/index.js +2 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -283,7 +283,8 @@ class UpgradeRequired extends ApiError {
|
|
|
283
283
|
constructor(message, options) {
|
|
284
284
|
[ message, options ] = ApiError._correctArguments(message, options);
|
|
285
285
|
super(message || 'Upgrade is required.', Object.assign(options, {
|
|
286
|
-
name: 'upgrade-required'
|
|
286
|
+
name: 'upgrade-required',
|
|
287
|
+
statusCode: 426
|
|
287
288
|
}));
|
|
288
289
|
}
|
|
289
290
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trenskow/api-error",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.46",
|
|
4
4
|
"description": "A small collection of error objects that can be used for REST APIs.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@trenskow/stack": "^0.2.12"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@eslint/eslintrc": "^3.3.
|
|
30
|
+
"@eslint/eslintrc": "^3.3.3",
|
|
31
31
|
"@eslint/js": "^9.13.0",
|
|
32
32
|
"eslint": "^9.39.1",
|
|
33
33
|
"globals": "^16.5.0"
|