Comparing version 0.6.1 to 0.6.2
{ | ||
"name": "knx.js", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -118,6 +118,6 @@ /** | ||
if (this.debug) | ||
console.log("[%s] Sending %s to %s.", this.ClassName, data, address); | ||
console.log("[%s] Sending %s to %s.", this.ClassName, JSON.stringify(data), JSON.stringify(address)); | ||
this.knxSender.Action(address, data); | ||
if (this.debug) | ||
console.log("[%s] Sent %s to %s.", this.ClassName, data, address); | ||
console.log("[%s] Sent %s to %s.", this.ClassName, JSON.stringify(data), JSON.stringify(address)); | ||
} | ||
@@ -132,6 +132,6 @@ | ||
if (this.debug) | ||
console.log("[%s] Sending request status to %s.", this.ClassName, address); | ||
console.log("[%s] Sending request status to %s.", this.ClassName, JSON.stringify(address)); | ||
this.knxSender.RequestStatus(address, callback); | ||
if (this.debug) | ||
console.log("[%s] Sent request status to %s.", this.ClassName, address); | ||
console.log("[%s] Sent request status to %s.", this.ClassName, JSON.stringify(address)); | ||
} | ||
@@ -138,0 +138,0 @@ |
@@ -184,3 +184,3 @@ /** | ||
return new Promise(function (fulfill, reject) { | ||
//console.log('delay for ' + time + 'ms'); | ||
console.log('delay for ' + time + 'ms'); | ||
setTimeout(fulfill, time); | ||
@@ -187,0 +187,0 @@ }); |
@@ -31,3 +31,3 @@ /** | ||
// +--------+--------+--------+--------+----------------+----------------+--------+----------------+ | ||
// 1 byte 1 byte 1 byte 1 byte 2 bytes 2 bytes 1 byte 2 bytes | ||
59// 1 byte 1 byte 1 byte 1 byte 2 bytes 2 bytes 1 byte 2 bytes | ||
// | ||
@@ -99,2 +99,4 @@ // Message Code = 0x11 - a L_Data.req primitive | ||
KnxHelper.WriteData(datagram, data, i); | ||
this.connection.debug && console.log('KnxSender.CreateActionDatagramCommon datagram[%s]', datagram.toString('hex')); | ||
debugger; | ||
return datagram; | ||
@@ -101,0 +103,0 @@ } |
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance 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
0
1
65683
17
1311