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

node-red-admin

Package Overview
Dependencies
Maintainers
1
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.1.3 to 0.1.5

40

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

@@ -15,26 +15,30 @@ "homepage": "http://nodered.org",

"contributors": [
{"name": "Nick O'Leary"},
{"name": "Anna Thomas"}
{
"name": "Nick O'Leary"
},
{
"name": "Anna Thomas"
}
],
"preferGlobal": "true",
"dependencies": {
"bcryptjs": "2.3.0",
"cli-table": "0.3.1",
"colors": "1.1.2",
"minimist": "1.2.0",
"read": "1.0.7",
"request": "2.74.0",
"when": "3.7.7"
"bcryptjs": "^2.4.3",
"cli-table": "^0.3.1",
"colors": "^1.3.2",
"minimist": "^1.2.0",
"read": "^1.0.7",
"request": "^2.88.0",
"when": "^3.7.8"
},
"devDependencies": {
"grunt": "1.0.1",
"grunt-cli": "1.2.0",
"grunt-contrib-jshint": "1.0.0",
"grunt-simple-mocha": "0.4.1",
"mocha": "2.3.4",
"should": "6.0.3",
"sinon": "1.17.5"
"grunt": "^1.0.3",
"grunt-cli": "^1.3.2",
"grunt-contrib-jshint": "^2.0.0",
"grunt-simple-mocha": "^0.4.1",
"mocha": "^5.2.0",
"should": "^13.2.3",
"sinon": "^1.17.7"
},
"optionalDependencies": {
"bcrypt":"0.8.7"
"bcrypt": "^3.0.1"
},

@@ -41,0 +45,0 @@ "bin": {

@@ -49,3 +49,3 @@ /**

});
it('logs in user', function(done) {

@@ -55,4 +55,4 @@ var requestStub = sinon.stub(request,"request");

requestStub.onCall(1).returns(when.resolve({access_token:"12345"}));
command({},result).then(function() {

@@ -66,14 +66,14 @@ requestStub.calledTwice.should.be.true;

});
config.tokens.calledTwice.should.be.true;
should(config.tokens.args[0][0]).not.exist;
should.not.exist(config.tokens.args[0][0]);
config.tokens.args[1][0].should.eql({access_token:"12345"});
/Logged in/.test(result.log.args[0][0]).should.be.true;
done();
}).otherwise(done);
});
it('handles unsupported login type', function(done) {

@@ -107,4 +107,4 @@ var requestStub = sinon.stub(request,"request");

config.tokens.calledOnce.should.be.true;
should(config.tokens.args[0][0]).not.exist;
should.not.exist(config.tokens.args[0][0]);
result.log.called.should.be.false;

@@ -116,3 +116,3 @@ result.warn.called.should.be.true;

});
it('handles unexpected error', function(done) {

@@ -123,3 +123,3 @@ var requestStub = sinon.stub(request,"request");

config.tokens.calledOnce.should.be.true;
should(config.tokens.args[0][0]).not.exist;
should.not.exist(config.tokens.args[0][0]);
result.log.called.should.be.false;

@@ -131,4 +131,4 @@ result.warn.called.should.be.true;

});
});
});

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