Socket
Socket
Sign inDemoInstall

neverbounce

Package Overview
Dependencies
1
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.3.0 to 4.4.0

2

package.json
{
"name": "neverbounce",
"version": "4.3.0",
"version": "4.4.0",
"description": "An API wrapper for the NeverBounce API",

@@ -5,0 +5,0 @@ "engines": {

@@ -31,5 +31,8 @@ 'use strict';

* @param historicalData
* @param allowManualReview
* @param callbackUrl
* @param callbackHeaders
* @returns {Promise.<*>}
*/
create(input, inputlocation, filename, runsample, autoparse, autostart, historicalData) {
create(input, inputlocation, filename, runsample, autoparse, autostart, historicalData, allowManualReview, callbackUrl, callbackHeaders) {
const data = {

@@ -42,2 +45,5 @@ 'input': input,

'auto_parse': autoparse || null,
'allow_manual_review': allowManualReview || null,
'callback_url' : callbackUrl || null,
'callback_headers': callbackHeaders || null,
};

@@ -81,5 +87,6 @@

* @param runsample
* @param allowManualReview
* @returns {Promise.<*>}
*/
start(jobid, runsample) {
start(jobid, runsample, allowManualReview) {
return this.request({

@@ -91,2 +98,3 @@ method: 'POST',

'run_sample': runsample || null,
'allow_manual_review': allowManualReview || null,
}).then(

@@ -93,0 +101,0 @@ (resp) => Promise.resolve(resp),

@@ -85,3 +85,3 @@ 'use strict';

NeverBounce.defaultConfig = {
apiVersion: 'v4',
apiVersion: 'v4.2',
apiKey: null,

@@ -88,0 +88,0 @@ timeout: 30000,

@@ -97,3 +97,3 @@ 'use strict';

government_host: 'government_host',
academic_host: 'acedemic_host', // API returns the misspelling, kept for backwards compat
academic_host: 'academic_host',
military_host: 'military_host',

@@ -125,2 +125,2 @@ international_host: 'international_host',

module.exports = VerificationObject;
module.exports = VerificationObject;

@@ -11,3 +11,3 @@ const chai = require('chai'),

const scope = nock('https://api.neverbounce.com')
.get('/v4/account/info');
.get('/v4.2/account/info');

@@ -36,2 +36,2 @@ // Create NeverBounce object

});
});
});

@@ -12,3 +12,3 @@ const chai = require('chai'),

const scope = nock('https://api.neverbounce.com')
.get('/v4/test');
.get('/v4.2/test');

@@ -15,0 +15,0 @@ // Create NeverBounce object

@@ -19,3 +19,3 @@ const chai = require('chai'),

it('should return the response', function () {
scope.get('/v4/jobs/search').reply(200, {
scope.get('/v4.2/jobs/search').reply(200, {
'status': 'success',

@@ -62,3 +62,3 @@ 'total_results': 1,

it('should return the response', function () {
scope.post('/v4/jobs/create').reply(200, {
scope.post('/v4.2/jobs/create').reply(200, {
'status': 'success',

@@ -76,3 +76,3 @@ 'job_id': 150970,

it('should return the response', function () {
scope.post('/v4/jobs/parse').reply(200, {
scope.post('/v4.2/jobs/parse').reply(200, {
'status': 'success',

@@ -90,3 +90,3 @@ 'queue_id': 'NB-PQ-59246392E9E5D',

it('should return the response', function () {
scope.post('/v4/jobs/start').reply(200, {
scope.post('/v4.2/jobs/start').reply(200, {
'status': 'success',

@@ -104,3 +104,3 @@ 'queue_id': 'NB-PQ-59246392E9E5D',

it('should return the response', function () {
scope.get('/v4/jobs/status').reply(200, {
scope.get('/v4.2/jobs/status').reply(200, {
'status': 'success',

@@ -137,3 +137,3 @@ 'id': 277461,

it('should return the response', function () {
scope.get('/v4/jobs/results').reply(200, {
scope.get('/v4.2/jobs/results').reply(200, {
'status': 'success',

@@ -242,3 +242,3 @@ 'total_results': 3,

it('should return the response', function () {
scope.get('/v4/jobs/download').reply(
scope.get('/v4.2/jobs/download').reply(
200,

@@ -259,3 +259,3 @@ 'id,email,name,email_status'

it('should return the response', function () {
scope.post('/v4/jobs/delete').reply(200, {
scope.post('/v4.2/jobs/delete').reply(200, {
'status': 'success',

@@ -280,2 +280,2 @@ 'execution_time': 388

});
});
});

@@ -14,3 +14,3 @@ const assert = require('chai').assert,

apiKey: 'xxx',
apiVersion: 'v4',
apiVersion: 'v4.2',
timeout: 100,

@@ -24,3 +24,3 @@ opts: {

assert.equal(nb0.getConfig().apiKey, 'xxx');
assert.equal(nb0.getConfig().apiVersion, 'v4');
assert.equal(nb0.getConfig().apiVersion, 'v4.2');
assert.deepEqual(nb0.getConfig().opts, {

@@ -56,4 +56,4 @@ acceptedType: 'application/json',

it('should be able to set API version after initialization', function () {
nb0.setApiVersion('v4');
assert.equal(nb0.getConfig().apiVersion, 'v4');
nb0.setApiVersion('v4.2');
assert.equal(nb0.getConfig().apiVersion, 'v4.2');
});

@@ -110,3 +110,3 @@ });

it('exposes verification result flag definitions', function() {
assert.equal(NeverBounce.result.flags.academic_host, 'acedemic_host'); // API returns misspelling, kept for backwards compat
assert.equal(NeverBounce.result.flags.academic_host, 'academic_host');
assert.containsAllKeys(NeverBounce.result.flags, [

@@ -113,0 +113,0 @@ 'has_dns',

@@ -11,3 +11,3 @@ const chai = require('chai'),

const scope = nock('https://api.neverbounce.com')
.post('/v4/poe/confirm');
.post('/v4.2/poe/confirm');

@@ -30,2 +30,2 @@ // Create NeverBounce object

});
});
});

@@ -12,3 +12,3 @@ const chai = require('chai'),

const scope = nock('https://api.neverbounce.com')
.get('/v4/single/check');
.get('/v4.2/single/check');

@@ -37,2 +37,2 @@ // Create NeverBounce object

});
});
});
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc