node-red-admin
Advanced tools
Comparing version 0.1.3 to 0.1.5
{ | ||
"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
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
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
1792
79329
35
+ Addedabbrev@1.1.1(transitive)
+ Addedajv@6.12.6(transitive)
+ Addedaproba@1.2.0(transitive)
+ Addedare-we-there-yet@1.1.7(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbcrypt@3.0.8(transitive)
+ Addedbcryptjs@2.4.3(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedchownr@1.1.4(transitive)
+ Addedcli-table@0.3.11(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addedcolors@1.4.0(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconsole-control-strings@1.1.0(transitive)
+ Addeddebug@3.2.7(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addeddelegates@1.0.0(transitive)
+ Addeddetect-libc@1.0.3(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedfs-minipass@1.2.7(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedgauge@2.7.4(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhas-unicode@2.0.1(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedignore-walk@3.0.4(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedini@1.3.8(transitive)
+ Addedis-fullwidth-code-point@1.0.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedminipass@2.9.0(transitive)
+ Addedminizlib@1.3.3(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedms@2.1.3(transitive)
+ Addednan@2.14.0(transitive)
+ Addedneedle@2.9.1(transitive)
+ Addednode-pre-gyp@0.14.0(transitive)
+ Addednopt@4.0.3(transitive)
+ Addednpm-bundled@1.1.2(transitive)
+ Addednpm-normalize-package-bin@1.0.1(transitive)
+ Addednpm-packlist@1.4.8(transitive)
+ Addednpmlog@4.1.2(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedos-homedir@1.0.2(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedosenv@0.1.5(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedpsl@1.15.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedrc@1.2.8(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedsafe-buffer@5.1.25.2.1(transitive)
+ Addedsax@1.4.1(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedset-blocking@2.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedstring-width@1.0.2(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
+ Addedtar@4.4.19(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedwhen@3.7.8(transitive)
+ Addedwide-align@1.1.5(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedyallist@3.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedassert-plus@0.2.0(transitive)
- Removedasync@2.6.4(transitive)
- Removedaws-sign2@0.6.0(transitive)
- Removedbcrypt@0.8.7(transitive)
- Removedbcryptjs@2.3.0(transitive)
- Removedbindings@1.2.1(transitive)
- Removedbl@1.1.2(transitive)
- Removedboom@2.10.1(transitive)
- Removedcaseless@0.11.0(transitive)
- Removedchalk@1.1.3(transitive)
- Removedcli-table@0.3.1(transitive)
- Removedcolors@1.1.2(transitive)
- Removedcommander@2.20.3(transitive)
- Removedcryptiles@2.0.5(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedform-data@1.0.1(transitive)
- Removedgenerate-function@2.3.1(transitive)
- Removedgenerate-object-property@1.2.0(transitive)
- Removedhar-validator@2.0.6(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhawk@3.1.3(transitive)
- Removedhoek@2.16.3(transitive)
- Removedhttp-signature@1.1.1(transitive)
- Removedis-my-ip-valid@1.0.1(transitive)
- Removedis-my-json-valid@2.20.6(transitive)
- Removedis-property@1.0.2(transitive)
- Removedjsonpointer@5.0.1(transitive)
- Removedlodash@4.17.21(transitive)
- Removedminimist@1.2.0(transitive)
- Removednan@2.3.5(transitive)
- Removednode-uuid@1.4.8(transitive)
- Removedoauth-sign@0.8.2(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
- Removedprocess-nextick-args@1.0.7(transitive)
- Removedpunycode@1.4.1(transitive)
- Removedqs@6.2.4(transitive)
- Removedreadable-stream@2.0.6(transitive)
- Removedrequest@2.74.0(transitive)
- Removedsntp@1.0.9(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedstringstream@0.0.6(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedtough-cookie@2.3.4(transitive)
- Removedtunnel-agent@0.4.3(transitive)
- Removedwhen@3.7.7(transitive)
- Removedxtend@4.0.2(transitive)
Updatedbcryptjs@^2.4.3
Updatedcli-table@^0.3.1
Updatedcolors@^1.3.2
Updatedminimist@^1.2.0
Updatedread@^1.0.7
Updatedrequest@^2.88.0
Updatedwhen@^3.7.8