Comparing version
{ | ||
"name": "load-act", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -63,8 +63,2 @@ import axios from 'axios'; | ||
data = window.dataConfig[this.key]; | ||
} else if (typeof this.data === 'string') { | ||
try { | ||
data = require(this.data); | ||
} catch (error) { | ||
console.log(error); | ||
} | ||
} | ||
@@ -75,3 +69,3 @@ return data; | ||
this._initScript(); | ||
if (this.data instanceof Array && this.data.length > 0) this._sortConfigData(); | ||
this._sortConfigData(); | ||
this._loadJson(); | ||
@@ -78,0 +72,0 @@ this._loadCss(); |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
1
-50%6752
-3.03%193
-3.02%