Socket
Socket
Sign inDemoInstall

clang

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clang - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

1

lib/clang.js

@@ -40,2 +40,3 @@ var _ = require('lodash');

} else {
callback = methodName;
return setImmediate(function() {

@@ -42,0 +43,0 @@ callback(new Error('request takes 3 arguments: methodName, args (object) and callback function'));

6

package.json
{
"name": "clang",
"version": "0.2.2",
"version": "0.2.3",
"description": "Node.js api wrapper for Clang's SOAP api",

@@ -25,4 +25,4 @@ "author": "Christiaan Westerbeek <chris@devotis.nl>",

"devDependencies": {
"mocha": "2.3.x",
"should": "7.1.x"
"mocha": "^2.3.4",
"should": "^7.1.1"
},

@@ -29,0 +29,0 @@ "directories": {

@@ -19,3 +19,3 @@ var should = require('should');

describe('Request signature', function() {
it('Request without methodName and arguments should throw an error', function(done) {
it('Request without methodName and arguments should callback with an error', function(done) {
clang.request(function(err, result) {

@@ -27,2 +27,9 @@ (!!err).should.be.equal(true);

});
it('Request without uuid in arguments should callback with an error', function(done) {
clang.request('someMethod', function(err, result) {
(!!err).should.be.equal(true);
done();
});
});
});
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