Skip to content

Commit

Permalink
chore(package): pull packages from adonis org
Browse files Browse the repository at this point in the history
adonis-sink is pulled from the org
  • Loading branch information
thetutlage committed Jun 22, 2017
1 parent 803e9d3 commit 953cb32
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 73 deletions.
96 changes: 27 additions & 69 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@
"node-exceptions": "^2.0.1"
},
"devDependencies": {
"adonis-sink": "git+https://github.com/adonisjs/adonis-sink.git#develop",
"@adonisjs/sink": "^1.0.8",
"coveralls": "^2.13.1",
"cz-conventional-changelog": "^2.0.0",
"japa": "^1.0.3",
"japa-cli": "^1.0.1",
"media-typer": "^0.3.0",
"node-req": "git+https://github.com/poppinss/node-req.git#develop",
"node-req": "^2.0.1",
"nyc": "^10.3.2",
"semver": "^5.3.0",
"standard": "^10.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/BodyParser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class BodyParser {
* @private
*/
_isType (request, types) {
return types.length && request.is(types)
return types && types.length && request.is(types)
}

/**
Expand Down
2 changes: 1 addition & 1 deletion test/unit/body-parser.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
const test = require('japa')
const path = require('path')
const Browser = require('zombie')
const { Config } = require('adonis-sink')
const { Config } = require('@adonisjs/sink')
const app = require('./app')
const BodyParser = require('../../src/BodyParser')
const supertest = require('supertest')
Expand Down

0 comments on commit 953cb32

Please sign in to comment.