Comparing version 1.0.1 to 2.0.0
@@ -20,4 +20,2 @@ "use strict"; | ||
var _safeEval = _interopRequireDefault(require("safe-eval")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -245,3 +243,3 @@ | ||
var result = function result() { | ||
var f = (0, _safeEval.default)("(".concat(source, ")")); | ||
var f = eval("(".concat(source, ")")); | ||
f.apply(void 0, arguments); | ||
@@ -248,0 +246,0 @@ }; |
{ | ||
"name": "telejson", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -9,3 +9,2 @@ import { window, document } from 'global'; | ||
import get from 'lodash.get'; | ||
import safeEval from 'safe-eval'; | ||
@@ -206,3 +205,3 @@ const removeCodeComments = code => { | ||
const result = (...args) => { | ||
const f = safeEval(`(${source})`); | ||
const f = eval(`(${source})`); | ||
f(...args); | ||
@@ -209,0 +208,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents 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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
207920
564
4