Comparing version 4.0.0 to 5.0.0
@@ -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 @@ |
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
9725
14
124