@tryghost/errors 1.1.0 → 1.1.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/lib/errors.js +8 -0
- package/package.json +2 -2
package/lib/errors.js
CHANGED
|
@@ -332,6 +332,14 @@ const ghostErrors = {
|
|
|
332
332
|
hideStack: true
|
|
333
333
|
}, options));
|
|
334
334
|
}
|
|
335
|
+
},
|
|
336
|
+
ConflictError: class ConflictError extends GhostError {
|
|
337
|
+
constructor(options) {
|
|
338
|
+
super(merge({
|
|
339
|
+
errorType: 'ConflictError',
|
|
340
|
+
statusCode: 409
|
|
341
|
+
}, options));
|
|
342
|
+
}
|
|
335
343
|
}
|
|
336
344
|
};
|
|
337
345
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/errors",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"repository": "https://github.com/TryGhost/Utils/tree/main/packages/errors",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"lodash": "^4.17.21",
|
|
29
29
|
"uuid": "^8.3.2"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "deb1552864a7da3430e0f0854ff013b5d0aa4a0c"
|
|
32
32
|
}
|