Skip to content

Commit

Permalink
🔖(@koex/onerror): bumped version 0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
whatwewant committed Dec 11, 2018
1 parent 684aa5e commit 4ceaa73
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 20 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# koa-onerror
# onerror

[![NPM version](https://img.shields.io/npm/v/@zcorky/koa-onerror.svg?style=flat)](https://www.npmjs.com/package/@zcorky/koa-onerror)
[![Coverage Status](https://img.shields.io/coveralls/zcorky/koa-onerror.svg?style=flat)](https://coveralls.io/r/zcorky/koa-onerror)
[![Dependencies](https://david-dm.org/@zcorky/koa-onerror/status.svg)](https://david-dm.org/@zcorky/koa-onerror)
[![Build Status](https://travis-ci.com/zcorky/koa-onerror.svg?branch=master)](https://travis-ci.com/zcorky/koa-onerror)
![license](https://img.shields.io/github/license/zcorky/koa-onerror.svg)
[![issues](https://img.shields.io/github/issues/zcorky/koa-onerror.svg)](https://github.com/zcorky/koa-onerror/issues)
[![NPM version](https://img.shields.io/npm/v/@koex/onerror.svg?style=flat)](https://www.npmjs.com/package/@koex/onerror)
[![Coverage Status](https://img.shields.io/coveralls/koexjs/onerror.svg?style=flat)](https://coveralls.io/r/koexjs/onerror)
[![Dependencies](https://img.shields.io/david/koexjs/onerror.svg)](https://github.com/koexjs/onerror)
[![Build Status](https://travis-ci.com/koexjs/onerror.svg?branch=master)](https://travis-ci.com/koexjs/onerror)
![license](https://img.shields.io/github/license/koexjs/onerror.svg)
[![issues](https://img.shields.io/github/issues/koexjs/onerror.svg)](https://github.com/koexjs/onerror/issues)

> Simple OnError for Koa
> onerror for koa extend.
### Install

```
$ npm install @zcorky/koa-onerror
$ npm install @koex/onerror
```

### Usage

```javascript
// See more in test
import onerror from '@zcorky/koa-onerror';
import onerror from '@koex/onerror';

import * as Koa from 'koa';
const app = new Koa();
Expand All @@ -39,4 +39,5 @@ app.listen(8000, '0.0.0.0', () => {
```

### Related
* [koa](https://github.com/koajs/koa)
* [rsshub/onerror](https://github.com/DIYgod/RSSHub/blob/master/middleware/onerror.js)
20 changes: 12 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@zcorky/koa-onerror",
"version": "0.0.2",
"description": "simple router for koa",
"name": "@koex/onerror",
"version": "0.0.1",
"description": "onerror for koa extend",
"main": "lib/index.js",
"module": "lib/index.js",
"repository": "https://github.com/zcorky/koa-onerror",
"repository": "https://github.com/koexjs/onerror",
"author": "Zero",
"license": "MIT",
"scripts": {
Expand All @@ -20,21 +20,20 @@
"@types/mocha": "^5.2.5",
"@types/ms": "^0.7.30",
"@types/node": "^10.9.4",
"@types/sinon": "^5.0.2",
"@zcorky/delay": "^1.0.1",
"@zcorky/koa-router": "^0.0.4",
"@zcorky/koa-validate": "^0.0.1",
"@koex/router": "^0.0.1",
"@koex/validate": "^0.0.1",
"chai": "^4.1.2",
"chai-spies": "^1.0.0",
"coveralls": "^3.0.2",
"global": "^4.3.2",
"husky": "^1.2.0",
"koa": "^2.6.2",
"koa-body": "^4.0.4",
"mocha": "^5.2.0",
"nyc": "^13.1.0",
"rimraf": "^2.6.2",
"should": "^13.2.3",
"sinon": "^6.3.4",
"source-map-support": "^0.5.9",
"supertest": "^3.3.0",
"ts-node": "^7.0.1",
Expand All @@ -46,6 +45,11 @@
"files": [
"lib/"
],
"husky": {
"hooks": {
"pre-commit": "npm test"
}
},
"nyc": {
"check-coverage": true,
"include": [
Expand Down
4 changes: 2 additions & 2 deletions test/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as Koa from 'koa';
import * as request from 'supertest';
import * as bodyParser from 'koa-body';
import validate from '@zcorky/koa-validate';
import { get, post } from '@zcorky/koa-router';
import validate from '@koex/validate';
import { get, post } from '@koex/router';
import 'should';

import onerror from '../src';
Expand Down

0 comments on commit 4ceaa73

Please sign in to comment.