feature(main) rm crypto, zlib, url

This commit is contained in:
coderaiser 2014-08-21 03:43:08 -04:00
parent 6dbcac0752
commit 8efdcf379c
2 changed files with 4 additions and 9 deletions

View file

@ -10,7 +10,7 @@
SLASH,
ext,
path, zlib, url, CloudFunc, diffPatch,
zlib, CloudFunc, diffPatch, path,
Config = {
server : true,
@ -18,14 +18,11 @@
port : 80
};
/* Native Modules*/
exports.child_process = require('child_process'),
exports.path = path = require('path'),
exports.url = url = require('url'),
path = require('path'),
/* Constants */
exports.SLASH = SLASH = '/',
exports.SRVDIR = SRVDIR = __dirname + SLASH,
exports.LIBDIR = LIBDIR = path.normalize(SRVDIR + '../'),
exports.DIR = DIR = path.normalize(LIBDIR + '../'),
@ -42,8 +39,6 @@
/* we can not use librequare here */
exports.util = Util = require(LIBDIR + UTIL),
exports.zlib = zlib = mrequire('zlib'),
/* Main Information */
exports.modules = jsonrequire('modules');
exports.ext = ext = jsonrequire('ext');

View file

@ -15,7 +15,7 @@
var main = global.cloudcmd.main,
fs = require('fs'),
path = main.path,
path = require('path'),
crypto = require('crypto'),
Util = main.util,
CloudFunc = main.cloudfunc,