Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
fix: remove limit of plugin arguments types
Browse files Browse the repository at this point in the history
  • Loading branch information
amazing-gao committed Jan 29, 2018
1 parent 34eb4fb commit 4129a68
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "koa-oai-router",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"main": "lib",
"scripts": {
"clean": "rm -rf coverage lib",
Expand Down
1 change: 0 additions & 1 deletion src/plugin.js
Expand Up @@ -17,7 +17,6 @@ class Plugin {
assert(_.isString(name), 'name must be string.');
assert(_.isString(field) || (_.isArray(field) && _.every(field, _.isString)), 'field must be string or [string].');
assert(_.isFunction(middlewareWrapper), 'middlewareWrapper must be function.');
assert(_.isObject(middlewareArgs) || _.isUndefined(middlewareArgs), 'middlewareWrapper must be object.');

this.name = name;
this.field = field;
Expand Down

0 comments on commit 4129a68

Please sign in to comment.