Socket
Socket
Sign inDemoInstall

defekt

Package Overview
Dependencies
0
Maintainers
5
Versions
49
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.3.2 to 7.3.3

.npmpackagejsonlintrc.json

4

build/lib/defekt.d.ts

@@ -1,6 +0,6 @@

import { ErrorConstructor } from './ErrorConstructor';
import { CustomErrorConstructor } from './CustomErrorConstructor';
declare const defekt: <TErrorCode extends string>({ code, defaultMessage }: {
code: TErrorCode;
defaultMessage?: string | undefined;
}) => ErrorConstructor<TErrorCode>;
}) => CustomErrorConstructor<TErrorCode>;
export { defekt };
import { CustomError } from './CustomError';
import { CustomErrorConstructor } from './CustomErrorConstructor';
import { defekt } from './defekt';
import { ErrorConstructor } from './ErrorConstructor';
import { isCustomError } from './isCustomError';

@@ -9,2 +9,2 @@ import { isError } from './isError';

export { CustomError, defekt, error, isCustomError, isError, isResult, value };
export type { ErrorConstructor, Result };
export type { CustomErrorConstructor, Result };
import { CustomError } from './CustomError';
import { ErrorConstructor } from './ErrorConstructor';
declare const isCustomError: <TErrorName extends string>(ex: any, errorType?: ErrorConstructor<TErrorName> | undefined) => ex is CustomError<TErrorName>;
import { CustomErrorConstructor } from './CustomErrorConstructor';
declare const isCustomError: <TErrorName extends string>(ex: any, errorType?: CustomErrorConstructor<TErrorName> | undefined) => ex is CustomError<TErrorName>;
export { isCustomError };

@@ -0,1 +1,8 @@

## [7.3.3](https://github.com/thenativeweb/defekt/compare/7.3.2...7.3.3) (2021-08-22)
### Bug Fixes
* bump path-parse from 1.0.6 to 1.0.7 ([#337](https://github.com/thenativeweb/defekt/issues/337)) ([8fe870d](https://github.com/thenativeweb/defekt/commit/8fe870db0973246a4573edc56e143c8a17e2f8e9))
## [7.3.2](https://github.com/thenativeweb/defekt/compare/7.3.1...7.3.2) (2021-07-23)

@@ -2,0 +9,0 @@

import { CustomError } from './CustomError';
import { ErrorConstructor } from './ErrorConstructor';
import { CustomErrorConstructor } from './CustomErrorConstructor';
import { formatErrorMessage } from './formatErrorMessage';

@@ -11,3 +11,3 @@

defaultMessage?: string;
}): ErrorConstructor<TErrorCode> {
}): CustomErrorConstructor<TErrorCode> {
return class extends CustomError<TErrorCode> {

@@ -14,0 +14,0 @@ public static code: TErrorCode = code;

import { CustomError } from './CustomError';
import { CustomErrorConstructor } from './CustomErrorConstructor';
import { defekt } from './defekt';
import { ErrorConstructor } from './ErrorConstructor';
import { isCustomError } from './isCustomError';

@@ -20,4 +20,4 @@ import { isError } from './isError';

export type {
ErrorConstructor,
CustomErrorConstructor,
Result
};
import { CustomError } from './CustomError';
import { ErrorConstructor } from './ErrorConstructor';
import { CustomErrorConstructor } from './CustomErrorConstructor';
import { isError } from './isError';

@@ -7,3 +7,3 @@

ex: any,
errorType?: ErrorConstructor<TErrorName>
errorType?: CustomErrorConstructor<TErrorName>
): ex is CustomError<TErrorName> {

@@ -10,0 +10,0 @@ return (

{
"name": "defekt",
"version": "7.3.2",
"version": "7.3.3",
"description": "defekt is custom errors made simple.",

@@ -31,2 +31,3 @@ "contributors": [

],
"private": false,
"main": "build/lib/index.js",

@@ -36,6 +37,7 @@ "types": "build/lib/index.d.ts",

"devDependencies": {
"assertthat": "6.3.7",
"roboter": "11.7.7",
"assertthat": "6.3.11",
"roboter": "12.1.2",
"semantic-release-configuration": "2.0.5"
},
"scripts": {},
"repository": {

@@ -42,0 +44,0 @@ "type": "git",

@@ -12,3 +12,9 @@ {

"target": "es2019"
}
},
"include": [
"./**/*.ts"
],
"exclude": [
"./build"
]
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc