@waves/js-test-env
Advanced tools
Comparing version 0.7.0-beta.8 to 0.7.0
14
index.js
@@ -1,8 +0,14 @@ | ||
const augment = require('./augment'); | ||
const augment = require('./augment').default; | ||
let global; | ||
try { | ||
global = Function('return this')(); | ||
} catch (e) { | ||
global = window; | ||
} | ||
augment(global); | ||
(global as any).env = { | ||
global.env = { | ||
API_BASE: 'https://nodes-testnet.wavesnodes.com', | ||
SEED: 'default seed', | ||
CHAIN_ID: 'T' | ||
CHAIN_ID: 'T', | ||
timeout: 20000 | ||
}; |
{ | ||
"name": "@waves/js-test-env", | ||
"version": "0.7.0-beta.8", | ||
"version": "0.7.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
23405
519
1