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

defekt

Package Overview
Dependencies
Maintainers
5
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 4.0.0 to 5.0.0

3

build/lib/defekt.d.ts

@@ -0,1 +1,2 @@

import { CustomError } from './CustomError';
import { ErrorConstructors } from './ErrorConstructors';

@@ -7,2 +8,2 @@ declare const defekt: <TErrorDefinition extends {

}>(errorDefinitions: TErrorDefinition) => ErrorConstructors<TErrorDefinition>;
export default defekt;
export { defekt, CustomError };

@@ -29,2 +29,2 @@ "use strict";

};
exports.default = defekt;
exports.defekt = defekt;

@@ -51,2 +51,2 @@ import { CustomError } from './CustomError';

export default defekt;
export { defekt, CustomError };
{
"name": "defekt",
"version": "4.0.0",
"version": "5.0.0",
"description": "defekt is custom errors made simple.",

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

],
"main": "build/lib/index.js",
"types": "build/lib/index.d.ts",
"main": "build/lib/defekt.js",
"types": "build/lib/defekt.d.ts",
"dependencies": {

@@ -30,4 +30,4 @@ "humanize-string": "2.1.0"

"devDependencies": {
"assertthat": "4.0.2",
"roboter": "9.0.4"
"assertthat": "5.0.1",
"roboter": "9.2.0"
},

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

@@ -28,3 +28,3 @@ # defekt

```javascript
const defekt = require('defekt').default;
const { defekt } = require('defekt');
```

@@ -35,3 +35,3 @@

```typescript
import defekt from 'defekt';
import { defekt } from 'defekt';
```

@@ -38,0 +38,0 @@

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