better-eval
Advanced tools
Comparing version 1.2.9 to 1.3.0
{ | ||
"name": "better-eval", | ||
"version": "1.2.9", | ||
"version": "1.3.0", | ||
"description": "🔧 An alternative to the 'eval' function in JavaScript that is faster, easier/better to use, and has less security issues.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -5,3 +5,3 @@ # <img src="https://raw.githubusercontent.com/bharadwajduggaraju/better-eval/master/.github/assets/logo.png" alt="better-eval logo" /> | ||
*The eval function is a **crutch**, lacking any form of security and customizability. Other implementations are **inadequate** - ranging from being abandonded to overcomplicated, and there isn't a all-in-one package.* **better-eval** offers a solution, providing a **modern** alternative to the eval function with all the **bells and whistles** out of the box. | ||
*The eval function **sucks**, lacking any form of security and customizability. Other implementations are **inadequate** - ranging from being abandonded to overcomplicated.* **better-eval** offers a solution, providing a **modern** alternative to the eval function with all the **bells and whistles** out of the box. | ||
@@ -8,0 +8,0 @@ |
@@ -17,6 +17,2 @@ /** | ||
if (!item) return; | ||
// no fn | ||
if (typeof Object.getPrototypeOf(item).constructor === "function") { | ||
Object.getPrototypeOf(item).constructor = undefined; | ||
} | ||
// no constructor fn | ||
@@ -23,0 +19,0 @@ if (typeof item.constructor === "function") { |
9449
111