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

canduit

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canduit - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

1

canduit.js

@@ -25,2 +25,3 @@ var crypto = require('crypto');

this.cert = opts.cert;
this.token = opts.token;

@@ -27,0 +28,0 @@ this.configFile = opts.configFile ||

2

package.json
{
"name": "canduit",
"version": "1.1.1",
"version": "1.1.2",
"description": "Node.js Phabricator Conduit API client",

@@ -5,0 +5,0 @@ "main": "canduit.js",

@@ -59,2 +59,20 @@ var test = require('tape');

function makeUserRequest(t) {
return function (err, canduit) {
t.error(err);
canduit.exec('user.query', {
usernames: ['aleksey']
}, shouldCallBack(t));
};
}
function makeErroneousRequest(t) {
return function (err, canduit) {
t.error(err);
canduit.exec('error', {
data: ['test']
}, shouldReportClientError(t));
};
}
test('creating canduit instance without parameters', function (t) {

@@ -105,8 +123,3 @@ t.doesNotThrow(function () {

configFile: fixtures.configFile
}, function (err, canduit) {
t.error(err);
canduit.exec('user.query', {
usernames: ['aleksey']
}, shouldCallBack(t));
});
}, makeUserRequest(t));
});

@@ -122,8 +135,3 @@

configFile: fixtures.configFile
}, function (err, canduit) {
t.error(err);
canduit.exec('error', {
data: ['test']
}, shouldReportClientError(t));
});
}, makeErroneousRequest(t));
});

@@ -161,8 +169,3 @@

configFile: fixtures.tokenConfigFile
}, function (err, canduit) {
t.error(err);
canduit.exec('user.query', {
usernames: ['aleksey']
}, shouldCallBack(t));
});
}, makeUserRequest(t));
});

@@ -207,8 +210,3 @@

configFile: fixtures.tokenConfigFile
}, function (err, canduit) {
t.error(err);
canduit.exec('error', {
data: ['test']
}, shouldReportClientError(t));
});
}, makeErroneousRequest(t));
});

@@ -215,0 +213,0 @@

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