Commit 318e2dea authored by Evgeniy Zaitsev's avatar Evgeniy Zaitsev
Browse files

v0.0.11

parent d86a12a6
const sha1 = require('sha1'); const sha1 = require('sha1');
const parse = require('co-body');
const serialize = require('../lib/serialize');
function * checkToken(next) { function * checkToken(next) {
const salt = this.checkHeader('x-lvis-salt').notBlank().value; const salt = this.checkHeader('x-lvis-salt').notBlank().value;
...@@ -11,7 +10,7 @@ function * checkToken(next) { ...@@ -11,7 +10,7 @@ function * checkToken(next) {
this.throwResponseErrorIfNeed(this.errors); this.throwResponseErrorIfNeed(this.errors);
const reqBody = serialize(this.request.body); const reqBody = yield parse.text(this.request);
const querystring = this.request.querystring ? '?' + this.request.querystring : ''; const querystring = this.request.querystring ? '?' + this.request.querystring : '';
this.logger.log(__filename, '\n', this.request.path, '\n', this.request.querystring, '\n', reqBody); this.logger.log(__filename, '\n', this.request.path, '\n', this.request.querystring, '\n', reqBody);
......
{ {
"name": "service-sdk", "name": "service-sdk",
"version": "0.0.10", "version": "0.0.11",
"private": true, "private": true,
"description": "Service SDK for LViS", "description": "Service SDK for LViS",
"keywords": [], "keywords": [],
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
}, },
"dependencies": { "dependencies": {
"bluebird": "^3.4.6", "bluebird": "^3.4.6",
"co-body": "^4.2.0",
"debug": "^2.2.0", "debug": "^2.2.0",
"koa": "^1.2.4", "koa": "^1.2.4",
"koa-bodyparser": "^2.2.0", "koa-bodyparser": "^2.2.0",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment