@blackglory/errors
Advanced tools
Comparing version 0.1.5 to 1.0.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [1.0.0](https://github.com/BlackGlory/errors/compare/v0.1.5...v1.0.0) (2021-02-03) | ||
### Features | ||
* add ExpectedError ([fdf18a3](https://github.com/BlackGlory/errors/commit/fdf18a36ee9b6688a9ba81a343f02fdde84517b9)) | ||
### [0.1.5](https://github.com/BlackGlory/errors/compare/v0.1.4...v0.1.5) (2021-02-03) | ||
@@ -7,0 +14,0 @@ |
@@ -13,2 +13,5 @@ (function (global, factory) { | ||
class ExpectedError extends CustomError { | ||
} | ||
function normalize(err) { | ||
@@ -24,2 +27,3 @@ var _a; | ||
exports.CustomError = CustomError; | ||
exports.ExpectedError = ExpectedError; | ||
exports.normalize = normalize; | ||
@@ -26,0 +30,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).Errors={})}(this,(function(e){"use strict";class n extends Error{get name(){return this.constructor.name}}e.CustomError=n,e.normalize=function(e){var n;return{name:e.name,message:e.message,stack:null!==(n=e.stack)&&void 0!==n?n:null}},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Errors={})}(this,(function(e){"use strict";class t extends Error{get name(){return this.constructor.name}}e.CustomError=t,e.ExpectedError=class extends t{},e.normalize=function(e){var t;return{name:e.name,message:e.message,stack:null!==(t=e.stack)&&void 0!==t?t:null}},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.umd.min.js.map |
@@ -13,2 +13,5 @@ (function (global, factory) { | ||
class ExpectedError extends CustomError { | ||
} | ||
function normalize(err) { | ||
@@ -24,2 +27,3 @@ var _a; | ||
exports.CustomError = CustomError; | ||
exports.ExpectedError = ExpectedError; | ||
exports.normalize = normalize; | ||
@@ -26,0 +30,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).Errors={})}(this,(function(e){"use strict";class n extends Error{get name(){return this.constructor.name}}e.CustomError=n,e.normalize=function(e){var n;return{name:e.name,message:e.message,stack:null!==(n=e.stack)&&void 0!==n?n:null}},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Errors={})}(this,(function(e){"use strict";class t extends Error{get name(){return this.constructor.name}}e.CustomError=t,e.ExpectedError=class extends t{},e.normalize=function(e){var t;return{name:e.name,message:e.message,stack:null!==(t=e.stack)&&void 0!==t?t:null}},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.umd.min.js.map |
export * from './custom-error'; | ||
export * from './expected-error'; | ||
export * from './normalize'; |
@@ -14,3 +14,4 @@ "use strict"; | ||
__exportStar(require("./custom-error"), exports); | ||
__exportStar(require("./expected-error"), exports); | ||
__exportStar(require("./normalize"), exports); | ||
//# sourceMappingURL=index.js.map |
export * from './custom-error'; | ||
export * from './expected-error'; | ||
export * from './normalize'; |
@@ -14,3 +14,4 @@ "use strict"; | ||
__exportStar(require("./custom-error"), exports); | ||
__exportStar(require("./expected-error"), exports); | ||
__exportStar(require("./normalize"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@blackglory/errors", | ||
"version": "0.1.5", | ||
"description": "Custom errors", | ||
"version": "1.0.0", | ||
"description": "Common errors", | ||
"files": [ | ||
@@ -6,0 +6,0 @@ "lib", |
@@ -30,6 +30,11 @@ # errors | ||
```ts | ||
class CustomError extends Error {} | ||
``` | ||
### ExpectedError | ||
```ts | ||
class ExpectedError extends CustomError {} | ||
``` | ||
### normalize | ||
@@ -36,0 +41,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
24067
44
214
1
44