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

defekt

Package Overview
Dependencies
Maintainers
3
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

defekt - npm Package Compare versions

Comparing version 5.2.0 to 5.2.1

8

build/lib/defekt.d.ts
import { ErrorConstructors } from './ErrorConstructors';
declare const defekt: <TErrorDefinition extends {
[key: string]: {
code?: string | undefined;
};
}>(errorDefinitions: TErrorDefinition) => ErrorConstructors<TErrorDefinition>;
declare const defekt: <TErrorDefinition extends Record<string, {
code?: string | undefined;
}>>(errorDefinitions: TErrorDefinition) => ErrorConstructors<TErrorDefinition>;
export { defekt };

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

## [5.2.1](https://github.com/thenativeweb/defekt/compare/5.2.0...5.2.1) (2020-10-28)
### Bug Fixes
* Update dependencies. ([#191](https://github.com/thenativeweb/defekt/issues/191)) ([ee3a227](https://github.com/thenativeweb/defekt/commit/ee3a227b5a627c844782f5a543e766c53cce496d))
# [5.2.0](https://github.com/thenativeweb/defekt/compare/5.1.0...5.2.0) (2020-10-13)

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

@@ -5,5 +5,4 @@ import { CustomError } from './CustomError';

const defekt = function <TErrorDefinition extends {
[ key: string ]: { code?: string };
}> (errorDefinitions: TErrorDefinition): ErrorConstructors<TErrorDefinition> {
const defekt = function <TErrorDefinition extends Record<string, { code?: string }>>
(errorDefinitions: TErrorDefinition): ErrorConstructors<TErrorDefinition> {
const errors: Partial<ErrorConstructors<TErrorDefinition>> = {};

@@ -10,0 +9,0 @@

{
"name": "defekt",
"version": "5.2.0",
"version": "5.2.1",
"description": "defekt is custom errors made simple.",

@@ -30,4 +30,4 @@ "contributors": [

"assertthat": "5.2.1",
"roboter": "11.3.12",
"semantic-release-configuration": "1.0.21"
"roboter": "11.4.3",
"semantic-release-configuration": "1.0.23"
},

@@ -34,0 +34,0 @@ "repository": {

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