@magic/error
Advanced tools
Comparing version 0.0.16 to 0.0.17
{ | ||
"name": "@magic/error", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"author": "Wizards & Witches", | ||
@@ -35,3 +35,3 @@ "description": "errors for @magic", | ||
"dependencies": { | ||
"@magic/types": "0.1.22" | ||
"@magic/types": "0.1.23" | ||
}, | ||
@@ -41,8 +41,8 @@ "devDependencies": { | ||
"@magic-modules/light-switch": "0.0.11", | ||
"@magic-modules/no-spy": "0.0.7", | ||
"@magic-modules/no-spy": "0.0.8", | ||
"@magic-modules/pre": "0.0.11", | ||
"@magic-themes/docs": "0.0.14", | ||
"@magic/core": "0.0.142", | ||
"@magic/format": "0.0.41", | ||
"@magic/test": "0.2.12" | ||
"@magic/core": "0.0.149", | ||
"@magic/format": "0.0.50", | ||
"@magic/test": "0.2.15" | ||
}, | ||
@@ -49,0 +49,0 @@ "files": [ |
@@ -25,2 +25,3 @@ # @magic/error | ||
### installation: | ||
```javascript | ||
@@ -31,2 +32,3 @@ npm install @magic/error | ||
### usage: | ||
```javascript | ||
@@ -64,2 +66,3 @@ import error from '@magic/error' | ||
#### error types | ||
errors can have types | ||
@@ -84,58 +87,79 @@ | ||
##### 0.0.1 | ||
first commit | ||
#### 0.0.2 | ||
* errors can be passed as first argument | ||
* error.name is unchanged, error.code gets transformed to start with E_ and be uppercased. | ||
* error.code for passed in errors is E_UNKNOWN. | ||
- errors can be passed as first argument | ||
- error.name is unchanged, error.code gets transformed to start with E\_ and be uppercased. | ||
- error.code for passed in errors is E_UNKNOWN. | ||
#### 0.0.3 | ||
* error type (third fn argument) can now be set, default is E to keep output the same. | ||
* error name (second fn argument) can now be a string with spaces. | ||
- error type (third fn argument) can now be set, default is E to keep output the same. | ||
- error name (second fn argument) can now be a string with spaces. | ||
e.code is e.type + e.name, but UPPER_SNAKE_CASED. | ||
* error stack cleanup improved. | ||
- error stack cleanup improved. | ||
#### 0.0.4 | ||
* err.msg is no === err.message | ||
* first argument can be an array of [message, name, type] | ||
- err.msg is no === err.message | ||
- first argument can be an array of [message, name, type] | ||
#### 0.0.5 | ||
* fix replacement of : in error name and error message to only replace the ones we want to replace | ||
- fix replacement of : in error name and error message to only replace the ones we want to replace | ||
#### 0.0.6 | ||
bump required node version to 14.2.0 | ||
#### 0.0.7 | ||
#### 0.0.7 | ||
update depdendencies | ||
#### 0.0.8 | ||
* bump required node version to 14.15.4 | ||
* update dependencies | ||
- bump required node version to 14.15.4 | ||
- update dependencies | ||
##### 0.0.9 | ||
update dependencies | ||
##### 0.0.10 | ||
update @magic/types to avoid circular dependency | ||
##### 0.0.11 | ||
* use @magic/types internally | ||
* update dependencies | ||
- use @magic/types internally | ||
- update dependencies | ||
##### 0.0.12 | ||
update dependencies | ||
##### 0.0.13 | ||
update dependencies | ||
##### 0.0.14 | ||
update dependencies | ||
##### 0.0.15 | ||
update dependencies | ||
##### 0.0.16 | ||
update dependencies | ||
##### 0.0.17 - unreleased | ||
##### 0.0.17 | ||
update dependencies | ||
##### 0.0.18 - unreleased | ||
... |
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
40793
162
+ Added@magic/types@0.1.23(transitive)
- Removed@magic/types@0.1.22(transitive)
Updated@magic/types@0.1.23