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

v0.0.11

parent d86a12a6
const sha1 = require('sha1');
const serialize = require('../lib/serialize');
const parse = require('co-body');
function * checkToken(next) {
const salt = this.checkHeader('x-lvis-salt').notBlank().value;
......@@ -11,7 +10,7 @@ function * checkToken(next) {
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 : '';
this.logger.log(__filename, '\n', this.request.path, '\n', this.request.querystring, '\n', reqBody);
......
{
"name": "service-sdk",
"version": "0.0.10",
"version": "0.0.11",
"private": true,
"description": "Service SDK for LViS",
"keywords": [],
......@@ -12,6 +12,7 @@
},
"dependencies": {
"bluebird": "^3.4.6",
"co-body": "^4.2.0",
"debug": "^2.2.0",
"koa": "^1.2.4",
"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