Comparing version 1.0.1 to 1.0.2
@@ -148,2 +148,3 @@ // Bluecat client command line tool | ||
console.log('npm install failed: ' + error); | ||
console.log('Please try bluecat config again'); | ||
} else { | ||
@@ -150,0 +151,0 @@ console.log('\n================================================================'); |
exports.ServiceSync = require('./service.gen.sync'); | ||
exports.ServiceAsync = require('./service.gen.async'); | ||
exports.Api = require('./service.api'); | ||
exports.version = '1.0.1'; | ||
exports.version = '1.0.2'; |
@@ -8,5 +8,3 @@ /*jshint loopfunc: true */ | ||
var Request = require('request').defaults({ | ||
strictSSL: false | ||
}); | ||
var Request = require('request'); | ||
@@ -16,3 +14,4 @@ var internals = {}; | ||
internals.Service = function(servJson, host, options) { | ||
if (host === undefined) { | ||
options = options || {}; | ||
if (!host) { | ||
throw new Error('Missing host when trying to create services...'); | ||
@@ -27,6 +26,7 @@ } | ||
// respect options passed in when object is created | ||
if (options) { | ||
options = Hoek.merge(options, {jar: this.jar}); | ||
Request = Request.defaults(options); | ||
} | ||
options = Hoek.merge(options, { | ||
strictSSL: false, | ||
jar: this.jar | ||
}); | ||
Request = Request.defaults(options); | ||
@@ -33,0 +33,0 @@ return this.buildServices(servJson); |
{ | ||
"name": "bluecat", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": "ccy <ccy.chenchaoyi@gmail.com>", | ||
@@ -27,3 +27,3 @@ "description": "Library for building HTTP requests, good for generic REST API Test Framework", | ||
"hoek": "^2.16.3", | ||
"inquirer": "^0.11.0", | ||
"inquirer": "^0.11.2", | ||
"path": "^0.12.7", | ||
@@ -43,4 +43,4 @@ "promise": "^7.1.1", | ||
"grunt-contrib-jshint": "^0.11.3", | ||
"grunt-jscs": "^2.5.0" | ||
"grunt-jscs": "^2.6.0" | ||
} | ||
} |
32090
698
Updatedinquirer@^0.11.2