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.0.5 to 1.0.6

2

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

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

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

var resource = require('./resource');
var _ = require('lodash');

@@ -16,3 +17,13 @@ function requireEmail (options) {

})
.on('preFind', requireEmail);
.on('preFind', requireEmail)
.include({
flag: function(params, options){
return this.client.request(_.extend({
api: this._options.api,
method: 'post',
path: _.template('/people/<%= id %>/flag', this),
query: params || {}
}, options));
}
});

@@ -19,0 +30,0 @@ exports.PersonCompany = resource.create('PersonCompany', {

@@ -30,3 +30,8 @@ 'use strict';

.then(function (data) {
return new this(data);
return new this(
_.extend({}, data, {
_options: this._options,
client: this.client
})
);
})

@@ -52,3 +57,3 @@ .catch(isQueued, function () {

};
_.extend(Resource, new EventEmitter(), EventEmitter.prototype, ClearbitResource, createErrors(name), {

@@ -70,4 +75,9 @@ _name: name,

return this;
},
include: function (props) {
_.extend(Resource.prototype, props);
return this;
}
});
};
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