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

node-red-admin

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-admin - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

6

package.json
{
"name": "node-red-admin",
"version": "0.2.0",
"version": "0.2.1",
"description": "The Node-RED admin command line interface",

@@ -31,2 +31,3 @@ "homepage": "http://nodered.org",

"dependencies": {
"axios": "0.19.2",
"bcryptjs": "^2.4.3",

@@ -36,4 +37,3 @@ "cli-table": "^0.3.1",

"minimist": "^1.2.5",
"read": "^1.0.7",
"axios": "0.19.2"
"read": "^1.0.7"
},

@@ -40,0 +40,0 @@ "devDependencies": {

@@ -21,3 +21,2 @@ /**

var sinon = require("sinon");
var when = require("when");

@@ -47,3 +46,3 @@ var request = require("../../../lib/request");

}
return when.resolve([]);
return Promise.resolve([]);
});

@@ -56,3 +55,3 @@ command({_:[null,"testnode"]},result).then(function() {

done();
}).otherwise(done);
}).catch(done);
});

@@ -59,0 +58,0 @@

@@ -21,3 +21,2 @@ /**

var sinon = require("sinon");
var when = require("when");

@@ -47,3 +46,3 @@ var request = require("../../../lib/request");

}
return when.resolve([]);
return Promise.resolve([]);
});

@@ -56,3 +55,3 @@ command({_:[null,"testnode"]},result).then(function() {

done();
}).otherwise(done);
}).catch(done);
});

@@ -59,0 +58,0 @@

@@ -23,3 +23,2 @@ /**

var sinon = require("sinon");
var when = require("when");

@@ -26,0 +25,0 @@

@@ -21,3 +21,2 @@ /**

var sinon = require("sinon");
var when = require("when");

@@ -34,3 +33,3 @@ var request = require("../../../lib/request");

});
it('displays information on a module', function(done) {

@@ -45,3 +44,3 @@ var error;

}
return when.resolve([]);
return Promise.resolve([]);
});

@@ -54,5 +53,5 @@ command({_:[null,"testnode"]},result).then(function() {

done();
}).otherwise(done);
}).catch(done);
});
it('reports error', function(done) {

@@ -67,3 +66,3 @@ var error;

}
return when.reject("error");
return Promise.reject("error");
});

@@ -78,5 +77,5 @@ command({_:[null,"testnode"]},result).then(function() {

done();
}).otherwise(done);
}).catch(done);
});
it('displays command help if node not specified', function(done) {

@@ -87,3 +86,3 @@ command({_:{}},result);

});
});

@@ -21,3 +21,2 @@ /**

var sinon = require("sinon");
var when = require("when");

@@ -47,3 +46,3 @@ var request = require("../../../lib/request");

}
return when.resolve([]);
return Promise.resolve([]);
});

@@ -56,3 +55,3 @@ command({_:[null,"testnode"]},result).then(function() {

done();
}).otherwise(done);
}).catch(done);
});

@@ -59,0 +58,0 @@

@@ -21,4 +21,2 @@ /**

var sinon = require("sinon");
var when = require("when");
var request = require("../../../lib/request");

@@ -32,3 +30,3 @@ var result = require("./result_helper");

});
it('lists all nodes', function(done) {

@@ -43,3 +41,3 @@ var error;

}
return when.resolve([]);
return Promise.resolve([]);
});

@@ -52,5 +50,5 @@ command({},result).then(function() {

done();
}).otherwise(done);
}).catch(done);
});
});

@@ -21,3 +21,2 @@ /**

var sinon = require("sinon");
var when = require("when");

@@ -34,3 +33,3 @@ var request = require("../../../lib/request");

});
it('removes a node', function(done) {

@@ -47,3 +46,3 @@ var error;

}
return when.resolve([]);
return Promise.resolve([]);
});

@@ -56,5 +55,5 @@ command({_:[null,"testnode"]},result).then(function() {

done();
}).otherwise(done);
}).catch(done);
});
it('displays command help if node not specified', function(done) {

@@ -61,0 +60,0 @@ command({_:{}},result);

@@ -27,3 +27,3 @@ /**

logDetails: sinon.spy(),
reset: function() {

@@ -30,0 +30,0 @@ module.exports.log.reset();

@@ -21,3 +21,2 @@ /**

var sinon = require("sinon");
var when = require("when");

@@ -40,3 +39,3 @@ var config = require("../../../lib/config");

});
it('queries the target', function(done) {

@@ -50,3 +49,3 @@ command({_:[]},result);

});
it('sets the target', function(done) {

@@ -60,3 +59,3 @@ command({_:[null,"http://newtarget.example.com"]},result);

});
it('rejects non http targets', function(done) {

@@ -74,6 +73,6 @@ command({_:[null,"ftp://newtarget.example.com"]},result);

});
});

@@ -27,8 +27,2 @@ /**

describe("lib/result", function() {
before(function() {
})
after(function() {
console.log = console._log;
console.warn = console._warn;
})
it("log",function() {

@@ -35,0 +29,0 @@ result.log("msg");

Sorry, the diff of this file is not supported yet

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