mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(cloudcmd) pipe-io -> pullout
This commit is contained in:
parent
bbdb5a72da
commit
704d33d956
4 changed files with 6 additions and 8 deletions
|
|
@ -9,7 +9,7 @@ var DIR_SERVER = __dirname + '/',
|
|||
exit = require(DIR_SERVER + 'exit'),
|
||||
CloudFunc = require(DIR_LIB + 'cloudfunc'),
|
||||
|
||||
pipe = require('pipe-io'),
|
||||
pullout = require('pullout/legacy'),
|
||||
ponse = require('ponse'),
|
||||
jonny = require('jonny'),
|
||||
readjson = require('readjson'),
|
||||
|
|
@ -152,7 +152,7 @@ function patch(req, res, callback) {
|
|||
cache : false
|
||||
};
|
||||
|
||||
pipe.getBody(req, function(error, body) {
|
||||
pullout(req, 'string', function(error, body) {
|
||||
var data = '',
|
||||
json = jonny.parse(body) || {};
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ var DIR = './',
|
|||
fs = require('fs'),
|
||||
|
||||
root = require(DIR + 'root'),
|
||||
pipe = require('pipe-io'),
|
||||
pullout = require('pullout/legacy'),
|
||||
ponse = require('ponse'),
|
||||
markdown = require('markdown-it')();
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ module.exports = function(name, request, callback) {
|
|||
break;
|
||||
|
||||
case 'PUT':
|
||||
pipe.getBody(request, function(error, data) {
|
||||
pullout(request, 'string', function(error, data) {
|
||||
if (error)
|
||||
callback(error);
|
||||
else
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ var DIR = './',
|
|||
jaguar = require('jaguar'),
|
||||
|
||||
flop = require('flop'),
|
||||
pipe = require('pipe-io'),
|
||||
pullout = require('pullout/legacy'),
|
||||
ponse = require('ponse'),
|
||||
rendy = require('rendy'),
|
||||
copymitter = require('copymitter'),
|
||||
|
|
@ -99,7 +99,7 @@ function sendData(params, callback) {
|
|||
break;
|
||||
|
||||
case 'PUT':
|
||||
pipe.getBody(p.request, function(error, body) {
|
||||
pullout(p.request, 'string', function(error, body) {
|
||||
if (error)
|
||||
callback(error);
|
||||
else
|
||||
|
|
|
|||
|
|
@ -112,7 +112,6 @@
|
|||
"opn": "^4.0.1",
|
||||
"os-homedir": "^1.0.0",
|
||||
"package-json": "^2.3.0",
|
||||
"pipe-io": "^1.2.0",
|
||||
"ponse": "^1.4.0",
|
||||
"pullout": "^1.0.1",
|
||||
"readjson": "^1.1.0",
|
||||
|
|
@ -138,7 +137,6 @@
|
|||
"nsp": "^2.2.1",
|
||||
"nyc": "^8.1.0",
|
||||
"place": "^1.1.4",
|
||||
"pullout": "^1.0.1",
|
||||
"recess": "^1.1.9",
|
||||
"redrun": "^5.0.0",
|
||||
"request": "^2.76.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue