Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blackglory/errors

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blackglory/errors - npm Package Compare versions

Comparing version 0.1.5 to 1.0.0

lib/es2015/expected-error.d.ts

7

CHANGELOG.md

@@ -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 @@

4

dist/es2015/index.umd.js

@@ -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 @@

2

dist/es2015/index.umd.min.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc