Comparing version 1.2.1 to 1.2.3
var Client = require('../src').Client; | ||
var clearbit = new Client(); | ||
clearbit.Prospector.search({domain: 'clearbit.com'}) | ||
clearbit.Prospector.search({domain: 'clearbit.com', titles: ['CEO']}) | ||
.then(function (results) { | ||
@@ -11,6 +11,3 @@ console.log('Results:', results); | ||
}); | ||
}) | ||
.catch(function (err) { | ||
console.error(err); | ||
}); | ||
{ | ||
"name": "clearbit", | ||
"version": "1.2.1", | ||
"version": "1.2.3", | ||
"description": "Client for Clearbit.co business intelligence APIs", | ||
@@ -27,4 +27,4 @@ "main": "./src", | ||
"create-error": "0.3", | ||
"needle": "0.7.10", | ||
"lodash": "2" | ||
"needle": "1.1.0", | ||
"lodash": "4.15.0" | ||
}, | ||
@@ -41,3 +41,3 @@ "devDependencies": { | ||
"mocha": "1", | ||
"nock": "0.42", | ||
"nock": "8.0.0", | ||
"sinon": "1", | ||
@@ -44,0 +44,0 @@ "yargs": "1" |
@@ -10,2 +10,3 @@ 'use strict'; | ||
var needle = Promise.promisifyAll(require('needle')); | ||
var stringify = require('./querystring').build; | ||
var pkg = require('../package.json'); | ||
@@ -25,2 +26,4 @@ | ||
this.Prospector = require('./prospector').Prospector(this); | ||
this.Reveal = require('./reveal').Reveal(this); | ||
this.Risk = require('./risk').Risk(this); | ||
this.Watchlist = require('./watchlist').Watchlist(this); | ||
@@ -57,2 +60,8 @@ this.WatchlistCandidate = require('./watchlist').WatchlistCandidate(this); | ||
ClearbitClient.prototype.query = function (object) { | ||
if ( !object ) return; | ||
return stringify(object); | ||
}; | ||
ClearbitClient.prototype.request = function (options) { | ||
@@ -59,0 +68,0 @@ options = _.defaults(options, { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20465
22
490
+ Addeddebug@2.6.9(transitive)
+ Addedlodash@4.15.0(transitive)
+ Addedms@2.0.0(transitive)
+ Addedneedle@1.1.0(transitive)
- Removedlodash@2.4.2(transitive)
- Removedneedle@0.7.10(transitive)
Updatedlodash@4.15.0
Updatedneedle@1.1.0