Comparing version 1.1.1 to 1.1.2
@@ -25,2 +25,3 @@ var crypto = require('crypto'); | ||
this.cert = opts.cert; | ||
this.token = opts.token; | ||
@@ -27,0 +28,0 @@ this.configFile = opts.configFile || |
{ | ||
"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 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
16381
399
1