Comparing version 0.5.7 to 0.5.8
var http = require('htt' + 'p') | ||
var engine = require('engine.io') | ||
var engine = require('engine.i' + 'o') | ||
var common = require('./common') | ||
@@ -14,3 +14,3 @@ var createStream = common.createStream | ||
if (options.httpServer) { | ||
httpServer = target | ||
httpServer = options.httpServer | ||
delete options.httpServer | ||
@@ -17,0 +17,0 @@ } else { |
exports.tcp = { | ||
bind: function(target, smq, options, callback) { | ||
return require('./net/tcp').bind(target, smq, options, callback) | ||
return require('./net' + '/tcp').bind(target, smq, options, callback) | ||
}, | ||
connect: function(target, smq, options, callback) { | ||
return require('./net/tcp').connect(target, smq, options, callback) | ||
return require('./net' + '/tcp').connect(target, smq, options, callback) | ||
} | ||
@@ -12,6 +12,6 @@ } | ||
bind: function(target, smq, options, callback) { | ||
return require('./net/tls').bind(target, smq, options, callback) | ||
return require('./net' + '/tls').bind(target, smq, options, callback) | ||
}, | ||
connect: function(target, smq, options, callback) { | ||
return require('./net/tls').connect(target, smq, options, callback) | ||
return require('./net' + '/tls').connect(target, smq, options, callback) | ||
} | ||
@@ -22,3 +22,3 @@ } | ||
bind: function(target, smq, options, callback) { | ||
return require('./engine.io/bind')(target, smq, options, callback) | ||
return require('./engine.io' + '/bind')(target, smq, options, callback) | ||
}, | ||
@@ -25,0 +25,0 @@ connect: function(target, smq, options, callback) { |
{ | ||
"name": "socketmq", | ||
"version": "0.5.7", | ||
"version": "0.5.8", | ||
"description": "Lightweight stream-oriented messaging library for node.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
41841
12