Skip to content

Commit

Permalink
chore(package): update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffijoe committed Nov 11, 2017
1 parent 2241cd1 commit 11a64ae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,11 @@ router.get('/todos', api('find'))

# Awesome Usage

**As of `awilix-koa@1.0.0`**, we ship with `koa-router` bindings for [`awilix-router-core`](https://github.com/jeffijoe/awilix-router-core)!
**As of `awilix-koa@1.0.0`**, we ship with `koa-router` bindings for [`awilix-router-core`][awilix-router-core]!
This is cool because now your routing setup can be streamlined with first-class Awilix support!

The Awilix-based router comes in 2 flavors: **a builder** and **ESNext decorators**.


**`routes/todos-api.js`** - demos the builder pattern

```js
Expand Down Expand Up @@ -162,6 +161,8 @@ app.use(loadControllers('routes/*.js', { cwd: __dirname }))
app.listen(3000)
```

Please see the [`awilix-router-core`][awilix-router-core] docs for information about the full API.

# Why do I need it?

You can certainly use Awilix with Koa without this library, but follow along and you might see why it's useful.
Expand Down Expand Up @@ -373,3 +374,6 @@ The package exports everything from `awilix-router-core` as well as the followin
# Author

Jeff Hansen - [@Jeffijoe](https://twitter.com/Jeffijoe)


[awilix-router-core]: https://github.com/jeffijoe/awilix-router-core
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"homepage": "https://github.com/jeffijoe/awilix-koa#readme",
"dependencies": {
"awilix-router-core": "^1.2.0",
"awilix-router-core": "^1.2.3",
"koa-compose": "^4.0.0",
"koa-router": "^7.2.1",
"tslib": "^1.8.0"
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ asynckit@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"

awilix-router-core@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/awilix-router-core/-/awilix-router-core-1.2.0.tgz#04c2473d96d57e2ca2fb84b63f98e4014fc30218"
awilix-router-core@^1.2.3:
version "1.2.3"
resolved "https://registry.yarnpkg.com/awilix-router-core/-/awilix-router-core-1.2.3.tgz#4b9f6b8b213be0ff5a6aa41b64bcd68fc8ad7a51"
dependencies:
glob "^7.1.2"
tslib "^1.8.0"
Expand Down

0 comments on commit 11a64ae

Please sign in to comment.