Socket
Socket
Sign inDemoInstall

better-eval

Package Overview
Dependencies
0
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.9 to 1.3.0

2

package.json
{
"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") {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc