egg-errors
Advanced tools
Comparing version 2.3.1 to 2.3.2
{ | ||
"name": "egg-errors", | ||
"version": "2.3.1", | ||
"description": "", | ||
"version": "2.3.2", | ||
"description": "egg-errors provide two kinds of errors that is Error and Exception.", | ||
"scripts": { | ||
"contributor": "git-contributor", | ||
"test": "egg-bin test --typescript", | ||
@@ -10,3 +11,2 @@ "cov": "egg-bin cov --typescript", | ||
"ci": "npm run lint && npm run cov && npm run tsc", | ||
"autod": "autod", | ||
"prepublishOnly": "npm run tsc", | ||
@@ -25,10 +25,8 @@ "lint": "eslint . --ext .ts" | ||
"@types/node": "^7.0.12", | ||
"autod": "^3.0.1", | ||
"autod-egg": "^1.1.0", | ||
"dedent": "^0.7.0", | ||
"egg-bin": "^4.9.0", | ||
"egg-ci": "^1.8.0", | ||
"egg-mock": "^4.0.1", | ||
"eslint": "^6", | ||
"eslint-config-egg": "^9.0.0", | ||
"git-contributor": "^1.0.10", | ||
"statuses": "^1.5.0", | ||
@@ -41,7 +39,2 @@ "toidentifier": "^1.0.0", | ||
}, | ||
"ci": { | ||
"type": "github", | ||
"version": "8, 10, 12, 14, 16", | ||
"license": true | ||
}, | ||
"repository": { | ||
@@ -51,2 +44,5 @@ "type": "git", | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/eggjs/egg/issues" | ||
}, | ||
"eslintIgnore": [ | ||
@@ -53,0 +49,0 @@ "coverage" |
# egg-errors | ||
[![NPM version][npm-image]][npm-url] | ||
[![build status][travis-image]][travis-url] | ||
[![Node.js CI](https://github.com/eggjs/egg-errors/actions/workflows/nodejs.yml/badge.svg)](https://github.com/eggjs/egg-errors/actions/workflows/nodejs.yml) | ||
[![Test coverage][codecov-image]][codecov-url] | ||
[![David deps][david-image]][david-url] | ||
[![Known Vulnerabilities][snyk-image]][snyk-url] | ||
@@ -11,8 +11,4 @@ [![npm download][download-image]][download-url] | ||
[npm-url]: https://npmjs.org/package/egg-errors | ||
[travis-image]: https://img.shields.io/travis/eggjs/egg-errors.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/eggjs/egg-errors | ||
[codecov-image]: https://codecov.io/gh/eggjs/egg-errors/branch/master/graph/badge.svg | ||
[codecov-url]: https://codecov.io/gh/eggjs/egg-errors | ||
[david-image]: https://img.shields.io/david/eggjs/egg-errors.svg?style=flat-square | ||
[david-url]: https://david-dm.org/eggjs/egg-errors | ||
[snyk-image]: https://snyk.io/test/npm/egg-errors/badge.svg?style=flat-square | ||
@@ -23,3 +19,3 @@ [snyk-url]: https://snyk.io/test/npm/egg-errors | ||
Errors for Egg.js. | ||
Errors for [Egg.js](https://eggjs.org) | ||
@@ -158,3 +154,3 @@ egg-errors provide two kinds of errors that is Error and Exception. | ||
// => | ||
framework.EggMysqlError: error message [https://eggjs.org/zh-cn/faq/EGG_MYSQL/01] | ||
framework.EggMysqlError: error message [ https://eggjs.org/zh-cn/faq/EGG_MYSQL/01 ] | ||
``` | ||
@@ -193,3 +189,3 @@ | ||
// => message format like this | ||
framework.EggMysqlError: error message [https://eggjs.org/zh-cn/faq/EGG_MYSQL/01] | ||
framework.EggMysqlError: error message [ https://eggjs.org/zh-cn/faq/EGG_MYSQL/01 ] | ||
...stack | ||
@@ -211,3 +207,3 @@ ... | ||
// => | ||
framework.EggMysqlError: error message [http://www.custom.com/faq/EGG_MYSQL/01] | ||
framework.EggMysqlError: error message [ http://www.custom.com/faq/EGG_MYSQL/01 ] | ||
... | ||
@@ -231,3 +227,3 @@ ``` | ||
const err = FrameworkErrorFormater.formatError(new EggMysqlError('error message', '01')); | ||
console.log(err.message); // error message [https://eggjs.org/zh-cn/faq/EGG_MYSQL/01] | ||
console.log(err.message); // error message [ https://eggjs.org/zh-cn/faq/EGG_MYSQL/01 ] | ||
``` | ||
@@ -259,1 +255,12 @@ | ||
[MIT](LICENSE) | ||
<!-- GITCONTRIBUTOR_START --> | ||
## Contributors | ||
|[<img src="https://avatars.githubusercontent.com/u/360661?v=4" width="100px;"/><br/><sub><b>popomore</b></sub>](https://github.com/popomore)<br/>|[<img src="https://avatars.githubusercontent.com/u/2160731?v=4" width="100px;"/><br/><sub><b>mansonchor</b></sub>](https://github.com/mansonchor)<br/>|[<img src="https://avatars.githubusercontent.com/u/156269?v=4" width="100px;"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|[<img src="https://avatars.githubusercontent.com/u/12657964?v=4" width="100px;"/><br/><sub><b>beliefgp</b></sub>](https://github.com/beliefgp)<br/>|[<img src="https://avatars.githubusercontent.com/u/19644997?v=4" width="100px;"/><br/><sub><b>sm2017</b></sub>](https://github.com/sm2017)<br/>| | ||
| :---: | :---: | :---: | :---: | :---: | | ||
This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Tue Feb 22 2022 11:32:47 GMT+0800`. | ||
<!-- GITCONTRIBUTOR_END --> |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
11
0
260
93008
111
1