Comparing version 1.2.3 to 1.2.4
@@ -44,9 +44,10 @@ "use strict"; | ||
this.createConnection = require("./ws/client").createConnection; | ||
; | ||
} | ||
else if (url.startsWith("http")) { | ||
this.createConnection = require("./h2/client").createConnection; | ||
//this.createConnection = require("./h2/client").createConnection; | ||
this.createConnection = eval("require(\"./h2/client\").createConnection"); | ||
} | ||
else if (url.startsWith("grpc")) { | ||
this.createConnection = require("./grpc/client").createConnection; | ||
//this.createConnection = require("./grpc/client").createConnection; | ||
this.createConnection = eval("require(\"./grpc/client\").createConnection"); | ||
} | ||
@@ -53,0 +54,0 @@ else { |
{ | ||
"name": "wsgrpc", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "tsangpo", |
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
242319
66
5987
11
6