cde-toolbelt
Advanced tools
Comparing version 1.0.28 to 1.0.29
var colors = require('colors'); | ||
var Table = require('cli-table'); | ||
@@ -9,3 +10,5 @@ var AppCommand = require('./commands/AppCommand.js').AppCommand; | ||
var UnregisterCommand = require('./commands/UnregisterCommand.js').UnregisterCommand; | ||
var InterfacesCommand = require('./commands/InterfacesCommand.js').InterfacesCommand; | ||
var CDEManager = function () { | ||
@@ -58,2 +61,8 @@ this._config = null; | ||
className = ShareCommand; | ||
if (!!!args[3]) { | ||
console.error('You should pass username to share environment'.red); | ||
process.exit(); | ||
} | ||
options = { | ||
@@ -69,2 +78,8 @@ user: args[3] | ||
className = ShareCommand; | ||
if (!!!args[3]) { | ||
console.error('You should pass username to unshare environment'.red); | ||
process.exit(); | ||
} | ||
options = { | ||
@@ -78,5 +93,38 @@ opt: 'remove', | ||
className = RegisterCommand; | ||
var service = null; | ||
var interface = null; | ||
if (!!!args[3]) { | ||
console.error('Service name is required for register'.red); | ||
process.exit(); | ||
} | ||
if (!!!args[4]) { | ||
console.error('Hostname/address is required for register'.red); | ||
process.exit(); | ||
} | ||
if (!!!args[5]) { | ||
console.error('Port is required for register'.red); | ||
process.exit(); | ||
} | ||
/* We expect address (args[3]) in format: ([a-z0-9]{1,})+.any_service.onetapi.pl | ||
* For example: | ||
* anyinterface.test.onetapi.pl | ||
* anyinterface.plugin.test.onetapi.pl | ||
* | ||
* We'll extract interface and service name from it | ||
*/ | ||
var addr = args[3]; | ||
var addrLength = 0; | ||
addr = addr.split('.'); | ||
addrLength = addr.length; | ||
// we expect address in format: ([a-z]{1,})+.any_service.onetapi.pl | ||
service = [addr[addrLength-3], addr[addrLength-2], addr[addrLength - 1]].join('.'); | ||
interface = args[3].replace('.' + service, ''); | ||
options = { | ||
mode: 'manual', | ||
service: args[3], | ||
interfaces: [interface], | ||
service: service, | ||
host: args[4], | ||
@@ -89,2 +137,8 @@ port: args[5] | ||
className = UnregisterCommand; | ||
if (!!!args[3]) { | ||
console.error('Service name is required for unregister'.red); | ||
process.exit(); | ||
} | ||
options = { | ||
@@ -95,2 +149,7 @@ service: args[3] | ||
case 'interfaces': | ||
className = InterfacesCommand; | ||
options = {}; | ||
break; | ||
default: | ||
@@ -172,3 +231,2 @@ this.showHelp(); | ||
var that = this; | ||
if (this._childProcesses.length <= 0) { | ||
@@ -194,3 +252,2 @@ // console.info(colors.yellow('Child processes killed')); | ||
CDEManager.prototype._cleanupProcess = function (proc, callback) { | ||
this._unregisterAllInterfaces(proc.interfaces, proc.service, function (err, success) { | ||
@@ -241,2 +298,30 @@ if (err) { | ||
CDEManager.prototype.showHelp = function () { | ||
var consoleWidth = process.stdout.columns; | ||
var commandW = 32; | ||
var descW = consoleWidth - commandW - 3; | ||
var helpTable = new Table( | ||
{ | ||
head: [colors.green("command"), colors.green("description")], colWidths: [commandW, descW], | ||
style: { | ||
'padding-left': 1, | ||
'padding-right': 1, | ||
head: ['bold'], | ||
border: ['gray'], | ||
compact : true | ||
}}); | ||
helpTable.push( | ||
{ 'help': 'shows this help' }, | ||
{ 'install': 'installs dependencies from app.yaml or package.json' }, | ||
{ 'update': 'updates all core apps in environment to the newest version'}, | ||
{ 'app start':'registers and runs up an app located in the ' + colors.bold('current') + ' directory'}, | ||
{ 'share [user]':'adds permissions to log in to your env for specified user'}, | ||
{ 'unshare [user]' : 'removes specified users availability to log in'}, | ||
{ 'register [service][host][port]' : 'manually registers service and port on the router'}, | ||
{ 'unregister [service]' : 'manually unregisters service on the router'}, | ||
{ 'interfaces': 'displays registered sergices'} | ||
); | ||
console.log(colors.yellow('\nCDE Application Manager')); | ||
@@ -246,13 +331,7 @@ console.log(colors.green('Usage:').bold); | ||
console.log(colors.green('Available commands:').bold); | ||
console.log('help \t\t\t\t shows this help'); | ||
console.log('install \t\t\t installs dependencies from app.yaml or package.json'); | ||
console.log('update \t\t\t\t updates all core apps in environment to the newest version'); | ||
console.log('app start \t\t\t registers and runs up an app located in the ' + colors.bold('current') + ' directory'); | ||
console.log('app start [directory] \t\t registers and runs up an app located in the ' + colors.bold('specified') + ' directory'); | ||
console.log('share [user] \t\t\t adds permissions to log in to your env for specified user'); | ||
console.log('unshare [user] \t\t\t removes specified users availability to log in'); | ||
console.log('register [service] [host] [port] \t manually registers service and port on the router'); | ||
console.log('unregister [service] \t\t manually unregisters service on the router\n\n'); | ||
console.log(helpTable.toString()); | ||
console.log(); | ||
}; | ||
exports.CDEManager = CDEManager; |
@@ -71,13 +71,6 @@ var fs = require('fs'); | ||
AppCommand.prototype.__handleResultOfGetRandomPort = function (err, port) { | ||
var that = this; | ||
if (err) { | ||
return this._callback(err); | ||
} | ||
//try to start app | ||
this._runProcess(port, function (port, output) { | ||
// print child's process output | ||
console.info(output) | ||
}); | ||
// it should never happen (it's after validation) | ||
@@ -109,5 +102,19 @@ if (!this._config || !this._config.hasOwnProperty('interfaces')) { | ||
// if it started, register it in router | ||
// try to register interface in router | ||
var register = new RegisterCommand(); | ||
register.init(options, this._callback); | ||
register.init(options, function(err, data) { | ||
if (err) { | ||
console.error('Register error', err); | ||
return that._callback(err); | ||
} | ||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
// try to start app only if app interface is free to use | ||
// you cannot register two apps for the same inteface | ||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
that._runProcess(port, function (port, output) { | ||
// print child's process output | ||
console.info(output) | ||
}); | ||
that._callback(); | ||
}); | ||
register.execute(); | ||
@@ -120,3 +127,2 @@ }; | ||
} | ||
}; | ||
@@ -165,2 +171,3 @@ | ||
AppCommand.prototype._runProcess = function (port) { | ||
@@ -182,3 +189,3 @@ var that = this; | ||
childProcess, | ||
Object.keys(this._config.interfaces), | ||
this._config.interfaces, | ||
this._config.servicename + '.onetapi.pl', | ||
@@ -185,0 +192,0 @@ port |
@@ -14,3 +14,3 @@ var request = require('request'); | ||
this._callback = callback; | ||
this._interfaces = options.interfaces; | ||
this._interfaces = JSON.parse(JSON.stringify(options.interfaces)); | ||
this._service = options.service; | ||
@@ -27,23 +27,12 @@ this._host = options.host; | ||
// manual registration | ||
if (this._mode && this._mode == 'manual') { | ||
this._registerInterface(this._service, function (err, success) { | ||
if (err) { | ||
return that._callback(err); | ||
} | ||
// registration launched using 'app start' | ||
this._registerInterfaces(this._interfaces, function (err, success) { | ||
if (err) { | ||
return that._callback(err); | ||
} | ||
return that._callback(null, success); | ||
}); | ||
} else { | ||
// registration launched using 'app start' | ||
this._registerInterfaces(this._interfaces, function (err, success) { | ||
if (err) { | ||
return that._callback(err); | ||
} | ||
return that._callback(null, success); | ||
}); | ||
return that._callback(null, success); | ||
}); | ||
} | ||
}; | ||
@@ -70,3 +59,3 @@ | ||
console.info('\tRegistering interface %s.%s on port %s', interface, this._service, this._host, this._port); | ||
var obj = { | ||
@@ -80,9 +69,5 @@ uri: this.getRouterUrl() + '/api/service', | ||
} | ||
if (this._mode && this._mode == 'manual') { | ||
obj.body = 'service=' + this._service + '&host=' + this._host + '&port=' + this._port; | ||
} else { | ||
obj.body = 'service=' + interface + '.' + this._service + '&host=' + this._host + '&port=' + this._port; | ||
} | ||
obj.body = 'service=' + interface + '.' + this._service + '&host=' + this._host + '&port=' + this._port; | ||
request(obj, function (err, resp) { | ||
@@ -93,2 +78,11 @@ if (err) { | ||
try { | ||
var responseData = JSON.parse(resp.body); | ||
if (responseData.error) { | ||
return callback(responseData.error.message); | ||
} | ||
} catch (e) { | ||
return callback(e); | ||
} | ||
return callback(null); | ||
@@ -95,0 +89,0 @@ }); |
@@ -19,3 +19,3 @@ var request = require('request'); | ||
console.info('\tUnregistering interface %s ', this._service); | ||
request({ | ||
@@ -22,0 +22,0 @@ uri: this.getRouterUrl() + '/api/service/' + that._service, |
{ | ||
"name": "cde-toolbelt", | ||
"version": "1.0.28", | ||
"version": "1.0.29", | ||
"dependencies": { | ||
"cli-table": { | ||
"version": "0.3.1", | ||
"from": "cli-table@0.3.1", | ||
"resolved": "http://registry.npmjs.org/cli-table/-/cli-table-0.3.1.tgz" | ||
}, | ||
"colors": { | ||
"version": "1.0.3", | ||
"from": "colors@1.0.3", | ||
"resolved": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz" | ||
"resolved": "http://registry.npmjs.org/colors/-/colors-1.0.3.tgz" | ||
}, | ||
@@ -13,3 +18,3 @@ "exec-sync": { | ||
"from": "exec-sync@0.1.6", | ||
"resolved": "https://registry.npmjs.org/exec-sync/-/exec-sync-0.1.6.tgz", | ||
"resolved": "http://registry.npmjs.org/exec-sync/-/exec-sync-0.1.6.tgz", | ||
"dependencies": { | ||
@@ -19,3 +24,3 @@ "ffi": { | ||
"from": "ffi@1.2.5", | ||
"resolved": "https://registry.npmjs.org/ffi/-/ffi-1.2.5.tgz", | ||
"resolved": "http://registry.npmjs.org/ffi/-/ffi-1.2.5.tgz", | ||
"dependencies": { | ||
@@ -30,3 +35,3 @@ "bindings": { | ||
"from": "debug@*", | ||
"resolved": "https://registry.npmjs.org/debug/-/debug-2.1.3.tgz", | ||
"resolved": "http://registry.npmjs.org/debug/-/debug-2.1.3.tgz", | ||
"dependencies": { | ||
@@ -36,3 +41,3 @@ "ms": { | ||
"from": "ms@0.7.0", | ||
"resolved": "https://registry.npmjs.org/ms/-/ms-0.7.0.tgz" | ||
"resolved": "http://registry.npmjs.org/ms/-/ms-0.7.0.tgz" | ||
} | ||
@@ -44,3 +49,3 @@ } | ||
"from": "ref@*", | ||
"resolved": "https://registry.npmjs.org/ref/-/ref-1.0.1.tgz", | ||
"resolved": "http://registry.npmjs.org/ref/-/ref-1.0.1.tgz", | ||
"dependencies": { | ||
@@ -50,3 +55,3 @@ "nan": { | ||
"from": "nan@>=1.7.0 <1.8.0", | ||
"resolved": "https://registry.npmjs.org/nan/-/nan-1.7.0.tgz" | ||
"resolved": "http://registry.npmjs.org/nan/-/nan-1.7.0.tgz" | ||
} | ||
@@ -58,3 +63,3 @@ } | ||
"from": "ref-struct@*", | ||
"resolved": "https://registry.npmjs.org/ref-struct/-/ref-struct-1.0.1.tgz" | ||
"resolved": "http://registry.npmjs.org/ref-struct/-/ref-struct-1.0.1.tgz" | ||
} | ||
@@ -68,3 +73,3 @@ } | ||
"from": "js-yaml@3.2.7", | ||
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.2.7.tgz", | ||
"resolved": "http://registry.npmjs.org/js-yaml/-/js-yaml-3.2.7.tgz", | ||
"dependencies": { | ||
@@ -74,3 +79,3 @@ "argparse": { | ||
"from": "argparse@>=1.0.0 <1.1.0", | ||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.2.tgz", | ||
"resolved": "http://registry.npmjs.org/argparse/-/argparse-1.0.2.tgz", | ||
"dependencies": { | ||
@@ -80,3 +85,3 @@ "lodash": { | ||
"from": "lodash@>=3.2.0 <4.0.0", | ||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-3.7.0.tgz" | ||
"resolved": "http://registry.npmjs.org/lodash/-/lodash-3.7.0.tgz" | ||
}, | ||
@@ -86,3 +91,3 @@ "sprintf-js": { | ||
"from": "sprintf-js@>=1.0.2 <1.1.0", | ||
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.2.tgz" | ||
"resolved": "http://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.2.tgz" | ||
} | ||
@@ -94,3 +99,3 @@ } | ||
"from": "esprima@>=2.0.0 <2.1.0", | ||
"resolved": "https://registry.npmjs.org/esprima/-/esprima-2.0.0.tgz" | ||
"resolved": "http://registry.npmjs.org/esprima/-/esprima-2.0.0.tgz" | ||
} | ||
@@ -102,3 +107,3 @@ } | ||
"from": "netutil@0.0.2", | ||
"resolved": "https://registry.npmjs.org/netutil/-/netutil-0.0.2.tgz" | ||
"resolved": "http://registry.npmjs.org/netutil/-/netutil-0.0.2.tgz" | ||
}, | ||
@@ -108,3 +113,3 @@ "request": { | ||
"from": "request@2.54.0", | ||
"resolved": "https://registry.npmjs.org/request/-/request-2.54.0.tgz", | ||
"resolved": "http://registry.npmjs.org/request/-/request-2.54.0.tgz", | ||
"dependencies": { | ||
@@ -114,3 +119,3 @@ "bl": { | ||
"from": "bl@>=0.9.0 <0.10.0", | ||
"resolved": "https://registry.npmjs.org/bl/-/bl-0.9.4.tgz", | ||
"resolved": "http://registry.npmjs.org/bl/-/bl-0.9.4.tgz", | ||
"dependencies": { | ||
@@ -149,3 +154,3 @@ "readable-stream": { | ||
"from": "caseless@>=0.9.0 <0.10.0", | ||
"resolved": "https://registry.npmjs.org/caseless/-/caseless-0.9.0.tgz" | ||
"resolved": "http://registry.npmjs.org/caseless/-/caseless-0.9.0.tgz" | ||
}, | ||
@@ -155,3 +160,3 @@ "forever-agent": { | ||
"from": "forever-agent@>=0.6.0 <0.7.0", | ||
"resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz" | ||
"resolved": "http://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz" | ||
}, | ||
@@ -161,3 +166,3 @@ "form-data": { | ||
"from": "form-data@>=0.2.0 <0.3.0", | ||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-0.2.0.tgz", | ||
"resolved": "http://registry.npmjs.org/form-data/-/form-data-0.2.0.tgz", | ||
"dependencies": { | ||
@@ -167,3 +172,3 @@ "async": { | ||
"from": "async@>=0.9.0 <0.10.0", | ||
"resolved": "https://registry.npmjs.org/async/-/async-0.9.0.tgz" | ||
"resolved": "http://registry.npmjs.org/async/-/async-0.9.0.tgz" | ||
} | ||
@@ -175,3 +180,3 @@ } | ||
"from": "json-stringify-safe@>=5.0.0 <5.1.0", | ||
"resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.0.tgz" | ||
"resolved": "http://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.0.tgz" | ||
}, | ||
@@ -181,3 +186,3 @@ "mime-types": { | ||
"from": "mime-types@>=2.0.1 <2.1.0", | ||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.0.10.tgz", | ||
"resolved": "http://registry.npmjs.org/mime-types/-/mime-types-2.0.10.tgz", | ||
"dependencies": { | ||
@@ -187,3 +192,3 @@ "mime-db": { | ||
"from": "mime-db@>=1.8.0 <1.9.0", | ||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.8.0.tgz" | ||
"resolved": "http://registry.npmjs.org/mime-db/-/mime-db-1.8.0.tgz" | ||
} | ||
@@ -195,3 +200,3 @@ } | ||
"from": "node-uuid@>=1.4.0 <1.5.0", | ||
"resolved": "https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.3.tgz" | ||
"resolved": "http://registry.npmjs.org/node-uuid/-/node-uuid-1.4.3.tgz" | ||
}, | ||
@@ -201,3 +206,3 @@ "qs": { | ||
"from": "qs@>=2.4.0 <2.5.0", | ||
"resolved": "https://registry.npmjs.org/qs/-/qs-2.4.1.tgz" | ||
"resolved": "http://registry.npmjs.org/qs/-/qs-2.4.1.tgz" | ||
}, | ||
@@ -207,8 +212,8 @@ "tunnel-agent": { | ||
"from": "tunnel-agent@>=0.4.0 <0.5.0", | ||
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.0.tgz" | ||
"resolved": "http://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.0.tgz" | ||
}, | ||
"tough-cookie": { | ||
"version": "0.12.1", | ||
"version": "1.0.0", | ||
"from": "tough-cookie@>=0.12.0", | ||
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-0.12.1.tgz", | ||
"resolved": "http://registry.npmjs.org/tough-cookie/-/tough-cookie-1.0.0.tgz", | ||
"dependencies": { | ||
@@ -218,3 +223,3 @@ "punycode": { | ||
"from": "punycode@>=0.2.0", | ||
"resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz" | ||
"resolved": "http://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz" | ||
} | ||
@@ -226,3 +231,3 @@ } | ||
"from": "http-signature@>=0.10.0 <0.11.0", | ||
"resolved": "https://registry.npmjs.org/http-signature/-/http-signature-0.10.1.tgz", | ||
"resolved": "http://registry.npmjs.org/http-signature/-/http-signature-0.10.1.tgz", | ||
"dependencies": { | ||
@@ -232,3 +237,3 @@ "assert-plus": { | ||
"from": "assert-plus@>=0.1.5 <0.2.0", | ||
"resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.1.5.tgz" | ||
"resolved": "http://registry.npmjs.org/assert-plus/-/assert-plus-0.1.5.tgz" | ||
}, | ||
@@ -238,3 +243,3 @@ "asn1": { | ||
"from": "asn1@0.1.11", | ||
"resolved": "https://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz" | ||
"resolved": "http://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz" | ||
}, | ||
@@ -244,3 +249,3 @@ "ctype": { | ||
"from": "ctype@0.5.3", | ||
"resolved": "https://registry.npmjs.org/ctype/-/ctype-0.5.3.tgz" | ||
"resolved": "http://registry.npmjs.org/ctype/-/ctype-0.5.3.tgz" | ||
} | ||
@@ -252,3 +257,3 @@ } | ||
"from": "oauth-sign@>=0.6.0 <0.7.0", | ||
"resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.6.0.tgz" | ||
"resolved": "http://registry.npmjs.org/oauth-sign/-/oauth-sign-0.6.0.tgz" | ||
}, | ||
@@ -258,3 +263,3 @@ "hawk": { | ||
"from": "hawk@>=2.3.0 <2.4.0", | ||
"resolved": "https://registry.npmjs.org/hawk/-/hawk-2.3.1.tgz", | ||
"resolved": "http://registry.npmjs.org/hawk/-/hawk-2.3.1.tgz", | ||
"dependencies": { | ||
@@ -264,3 +269,3 @@ "hoek": { | ||
"from": "hoek@>=2.0.0 <3.0.0", | ||
"resolved": "https://registry.npmjs.org/hoek/-/hoek-2.12.0.tgz" | ||
"resolved": "http://registry.npmjs.org/hoek/-/hoek-2.12.0.tgz" | ||
}, | ||
@@ -270,3 +275,3 @@ "boom": { | ||
"from": "boom@>=2.0.0 <3.0.0", | ||
"resolved": "https://registry.npmjs.org/boom/-/boom-2.7.1.tgz" | ||
"resolved": "http://registry.npmjs.org/boom/-/boom-2.7.1.tgz" | ||
}, | ||
@@ -276,3 +281,3 @@ "cryptiles": { | ||
"from": "cryptiles@>=2.0.0 <3.0.0", | ||
"resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.4.tgz" | ||
"resolved": "http://registry.npmjs.org/cryptiles/-/cryptiles-2.0.4.tgz" | ||
}, | ||
@@ -282,3 +287,3 @@ "sntp": { | ||
"from": "sntp@>=1.0.0 <2.0.0", | ||
"resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz" | ||
"resolved": "http://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz" | ||
} | ||
@@ -290,3 +295,3 @@ } | ||
"from": "aws-sign2@>=0.5.0 <0.6.0", | ||
"resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.5.0.tgz" | ||
"resolved": "http://registry.npmjs.org/aws-sign2/-/aws-sign2-0.5.0.tgz" | ||
}, | ||
@@ -296,3 +301,3 @@ "stringstream": { | ||
"from": "stringstream@>=0.0.4 <0.1.0", | ||
"resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.4.tgz" | ||
"resolved": "http://registry.npmjs.org/stringstream/-/stringstream-0.0.4.tgz" | ||
}, | ||
@@ -302,3 +307,3 @@ "combined-stream": { | ||
"from": "combined-stream@>=0.0.5 <0.1.0", | ||
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-0.0.7.tgz", | ||
"resolved": "http://registry.npmjs.org/combined-stream/-/combined-stream-0.0.7.tgz", | ||
"dependencies": { | ||
@@ -308,3 +313,3 @@ "delayed-stream": { | ||
"from": "delayed-stream@0.0.5", | ||
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz" | ||
"resolved": "http://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz" | ||
} | ||
@@ -316,3 +321,3 @@ } | ||
"from": "isstream@>=0.1.1 <0.2.0", | ||
"resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz" | ||
"resolved": "http://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz" | ||
}, | ||
@@ -322,8 +327,8 @@ "har-validator": { | ||
"from": "har-validator@>=1.4.0 <2.0.0", | ||
"resolved": "https://registry.npmjs.org/har-validator/-/har-validator-1.6.1.tgz", | ||
"resolved": "http://registry.npmjs.org/har-validator/-/har-validator-1.6.1.tgz", | ||
"dependencies": { | ||
"bluebird": { | ||
"version": "2.9.24", | ||
"version": "2.9.25", | ||
"from": "bluebird@>=2.9.21 <3.0.0", | ||
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-2.9.24.tgz" | ||
"resolved": "http://registry.npmjs.org/bluebird/-/bluebird-2.9.25.tgz" | ||
}, | ||
@@ -333,3 +338,3 @@ "chalk": { | ||
"from": "chalk@>=1.0.0 <2.0.0", | ||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-1.0.0.tgz", | ||
"resolved": "http://registry.npmjs.org/chalk/-/chalk-1.0.0.tgz", | ||
"dependencies": { | ||
@@ -339,3 +344,3 @@ "ansi-styles": { | ||
"from": "ansi-styles@>=2.0.1 <3.0.0", | ||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.0.1.tgz" | ||
"resolved": "http://registry.npmjs.org/ansi-styles/-/ansi-styles-2.0.1.tgz" | ||
}, | ||
@@ -345,3 +350,3 @@ "escape-string-regexp": { | ||
"from": "escape-string-regexp@>=1.0.2 <2.0.0", | ||
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.3.tgz" | ||
"resolved": "http://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.3.tgz" | ||
}, | ||
@@ -351,3 +356,3 @@ "has-ansi": { | ||
"from": "has-ansi@>=1.0.3 <2.0.0", | ||
"resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-1.0.3.tgz", | ||
"resolved": "http://registry.npmjs.org/has-ansi/-/has-ansi-1.0.3.tgz", | ||
"dependencies": { | ||
@@ -357,3 +362,3 @@ "ansi-regex": { | ||
"from": "ansi-regex@>=1.0.0 <2.0.0", | ||
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-1.1.1.tgz" | ||
"resolved": "http://registry.npmjs.org/ansi-regex/-/ansi-regex-1.1.1.tgz" | ||
}, | ||
@@ -363,3 +368,3 @@ "get-stdin": { | ||
"from": "get-stdin@>=4.0.1 <5.0.0", | ||
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz" | ||
"resolved": "http://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz" | ||
} | ||
@@ -371,3 +376,3 @@ } | ||
"from": "strip-ansi@>=2.0.1 <3.0.0", | ||
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-2.0.1.tgz", | ||
"resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-2.0.1.tgz", | ||
"dependencies": { | ||
@@ -377,3 +382,3 @@ "ansi-regex": { | ||
"from": "ansi-regex@>=1.0.0 <2.0.0", | ||
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-1.1.1.tgz" | ||
"resolved": "http://registry.npmjs.org/ansi-regex/-/ansi-regex-1.1.1.tgz" | ||
} | ||
@@ -385,3 +390,3 @@ } | ||
"from": "supports-color@>=1.3.0 <2.0.0", | ||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-1.3.1.tgz" | ||
"resolved": "http://registry.npmjs.org/supports-color/-/supports-color-1.3.1.tgz" | ||
} | ||
@@ -391,5 +396,5 @@ } | ||
"commander": { | ||
"version": "2.8.0", | ||
"version": "2.8.1", | ||
"from": "commander@>=2.7.1 <3.0.0", | ||
"resolved": "https://registry.npmjs.org/commander/-/commander-2.8.0.tgz", | ||
"resolved": "http://registry.npmjs.org/commander/-/commander-2.8.1.tgz", | ||
"dependencies": { | ||
@@ -399,3 +404,3 @@ "graceful-readlink": { | ||
"from": "graceful-readlink@>=1.0.0", | ||
"resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz" | ||
"resolved": "http://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz" | ||
} | ||
@@ -407,3 +412,3 @@ } | ||
"from": "is-my-json-valid@>=2.10.0 <3.0.0", | ||
"resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.10.1.tgz", | ||
"resolved": "http://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.10.1.tgz", | ||
"dependencies": { | ||
@@ -413,3 +418,3 @@ "generate-function": { | ||
"from": "generate-function@>=2.0.0 <3.0.0", | ||
"resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.0.0.tgz" | ||
"resolved": "http://registry.npmjs.org/generate-function/-/generate-function-2.0.0.tgz" | ||
}, | ||
@@ -419,3 +424,3 @@ "generate-object-property": { | ||
"from": "generate-object-property@>=1.1.0 <2.0.0", | ||
"resolved": "https://registry.npmjs.org/generate-object-property/-/generate-object-property-1.1.1.tgz", | ||
"resolved": "http://registry.npmjs.org/generate-object-property/-/generate-object-property-1.1.1.tgz", | ||
"dependencies": { | ||
@@ -425,3 +430,3 @@ "is-property": { | ||
"from": "is-property@>=1.0.0 <2.0.0", | ||
"resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz" | ||
"resolved": "http://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz" | ||
} | ||
@@ -433,3 +438,3 @@ } | ||
"from": "jsonpointer@>=1.1.0 <2.0.0", | ||
"resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-1.1.0.tgz" | ||
"resolved": "http://registry.npmjs.org/jsonpointer/-/jsonpointer-1.1.0.tgz" | ||
}, | ||
@@ -439,3 +444,3 @@ "xtend": { | ||
"from": "xtend@>=4.0.0 <5.0.0", | ||
"resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.0.tgz" | ||
"resolved": "http://registry.npmjs.org/xtend/-/xtend-4.0.0.tgz" | ||
} | ||
@@ -451,5 +456,5 @@ } | ||
"from": "rewire@1.1.2", | ||
"resolved": "https://registry.npmjs.org/rewire/-/rewire-1.1.2.tgz" | ||
"resolved": "http://registry.npmjs.org/rewire/-/rewire-1.1.2.tgz" | ||
} | ||
} | ||
} |
{ | ||
"name": "cde-toolbelt", | ||
"description": "Project starter for CDE apps", | ||
"version": "1.0.28", | ||
"version": "1.0.29", | ||
"contributors": [ | ||
"Kamil Rokosz <lax@lax.net.pl>", | ||
"Slawomir Janecki <janecki@gmail.com>" | ||
"Slawomir Janecki <janecki@gmail.com>", | ||
"Jakub Kubica <jakub.kubica@gmail.com>" | ||
], | ||
"dependencies": { | ||
"colors": "1.0.3", | ||
"cli-table": "0.3.1", | ||
"js-yaml": "3.2.7", | ||
@@ -12,0 +14,0 @@ "netutil": "0.0.2", |
57629
16
1429
7
+ Addedcli-table@0.3.1
+ Addedcli-table@0.3.1(transitive)