Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clearbit

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clearbit - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "clearbit",
"version": "1.1.0",
"version": "1.1.1",
"description": "Client for Clearbit.co business intelligence APIs",

@@ -5,0 +5,0 @@ "main": "./src",

@@ -23,2 +23,3 @@ 'use strict';

this.Watchlist = require('./watchlist').Watchlist(this);
this.WatchlistCandidate = require('./watchlist').WatchlistCandidate(this);
this.WatchlistEntity = require('./watchlist').WatchlistEntity(this);

@@ -25,0 +26,0 @@ this.WatchlistIndividual = require('./watchlist').WatchlistIndividual(this);

@@ -43,2 +43,16 @@ 'use strict';

ClearbitResource.del = function (path, options) {
options = _.extend({
path: path,
method: 'delete'
}, this.options, options);
return this.client.request(options)
.bind(this)
.then(cast)
.catch(isUnknownRecord, function () {
throw new this.NotFoundError(this.name + ' not found');
});
};
exports.create = function (name, options) {

@@ -45,0 +59,0 @@ var Resource = function () {

@@ -31,1 +31,21 @@ 'use strict';

});
exports.WatchlistCandidate = resource.create('WatchlistCandidate', {
api: 'watchlist'
}).extend({
destroy: function(){
return this.constructor.del('/candidates/' + this.id);
}
}, {
all: function(options) {
return this.get('/candidates', options);
},
create: function(options) {
return this.post('/candidates', options);
},
find: function(id, options) {
return this.get('/candidates/' + id, options);
}
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc