mqlight-dev
Advanced tools
Comparing version 2.0.2016111400 to 2.0.2017050800
{ | ||
"name": "mqlight-dev", | ||
"version": "2.0.2016111400", | ||
"version": "2.0.2017050800", | ||
"description": "IBM MQ Light Client Module", | ||
@@ -28,5 +28,6 @@ "author": "IBM MQ Light <mqlight@uk.ibm.com>", | ||
}, | ||
"bundledDependencies": [ "amqp10" ], | ||
"dependencies": { | ||
"amqp10": "^3.3.1", | ||
"amqp10-link-cache": "^1.1.0", | ||
"amqp10": "3.5.3-mqlight", | ||
"amqp10-link-cache": "1.2.2", | ||
"debug": "^2.2.0", | ||
@@ -33,0 +34,0 @@ "moment": "~2.14.1", |
@@ -22,10 +22,2 @@ # node-mqlight | ||
The following are the currently supported platform architectures: | ||
* 64-bit or 32-bit runtime on Windows (x64 or x86) | ||
* 64-bit runtime on Linux (x64) | ||
* 64-bit runtime on Mac OS X (x64) | ||
You will receive an error if you attempt to use any other combination. | ||
### Usage | ||
@@ -612,4 +604,9 @@ | ||
### 2.0.2017042000 | ||
* Bugfix for issues around delivery confirmation and link credit policies. | ||
### 2.0.2016102601 | ||
* Support for Node.js 6.x.x engine. | ||
* Complete rewrite of the client to use a pure JavaScript implementation of the | ||
@@ -620,6 +617,2 @@ AMQP 1.0 protocol. Hence we no longer require compilation of a native addon | ||
### 1.0.2016071802 | ||
* Support for Node.js 6.x.x engine. | ||
### 1.0.2016061711 | ||
@@ -626,0 +619,0 @@ |
@@ -27,2 +27,5 @@ /* %Z% %W% %I% %E% %U% */ | ||
var mqlightServiceName = 'mqlight' | ||
var messageHubServiceName = 'messagehub'; | ||
// The URL to use when connecting to the MQ Light server | ||
@@ -187,15 +190,20 @@ var serviceURL = 'amqp://localhost'; | ||
var services = JSON.parse(process.env.VCAP_SERVICES); | ||
if (services.mqlight) { | ||
options.user = services.mqlight[0].credentials.username; | ||
options.password = services.mqlight[0].credentials.password; | ||
options.service = services.mqlight[0].credentials.connectionLookupURI; | ||
if (verbose) { | ||
console.log('Username: ' + options.user); | ||
console.log('Password: ' + options.user); | ||
console.log('LookupURI: ' + options.service); | ||
for (var key in services) { | ||
if (key.lastIndexOf(mqlightServiceName, 0) === 0) { | ||
var mqlightService = services[key][0]; | ||
options.service = mqlightService.credentials.nonTLSConnectionLookupURI; | ||
options.user = mqlightService.credentials.username; | ||
options.password = mqlightService.credentials.password; | ||
} else if (key.lastIndexOf(messageHubServiceName, 0) === 0) { | ||
var messageHubService = services[key][0]; | ||
options.service = messageHubService.credentials.mqlight_lookup_url; | ||
options.user = messageHubService.credentials.user; | ||
options.password = messageHubService.credentials.password; | ||
} | ||
} else { | ||
throw new Error('Running in IBM Bluemix but not bound to an instance ' + | ||
"of the 'mqlight' service."); | ||
} | ||
if (!options.hasOwnProperty('service') || | ||
!options.hasOwnProperty('user') || | ||
!options.hasOwnProperty('password')) { | ||
throw 'Error - Check that app is bound to service'; | ||
} | ||
result = true; | ||
@@ -202,0 +210,0 @@ } else if (verbose) { |
@@ -444,3 +444,3 @@ /* %Z% %W% %I% %E% %U% */ | ||
// 'callback called when stopped'); | ||
test.notDeepEqual(err, undefined, 'not undefined so err set'); | ||
test.notEqual(err, undefined, 'not undefined so err set'); | ||
test.equal(client._queuedSends.length, 0, 'no queued sends left'); | ||
@@ -447,0 +447,0 @@ stubproton.sender.send = savedSendFunction; |
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 16 instances in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
1364443
136
23741
1
698
79
9
- Removedamqp10@3.6.0(transitive)
- Removedbl@1.2.3(transitive)
- Removedbuffer-builder@0.2.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removednode-int64@0.4.0(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedstately.js@1.3.0(transitive)
Updatedamqp10@3.5.3-mqlight
Updatedamqp10-link-cache@1.2.2