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.4 to 1.2.5

2

package.json
{
"name": "better-eval",
"version": "1.2.4",
"version": "1.2.5",
"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",

@@ -66,13 +66,14 @@ # 🔧 better-eval

- global
- process
- module
- require
- document
- window
- Window
- eval
- Function
- `global`
- `process`
- `module`
- `require`
- `document`
- `window`
- `Window`
- `eval`
- `Function`
Here is how they will be handled:
```js

@@ -82,2 +83,8 @@ betterEval("`Sum is ${eval('1+1')}`", { eval }); // eval is null!

Nested variables (in development):
```js
betterEval("triedtohack.eval(1+1)", { triedtohack: { eval } }); // triedtohack.eval is null;
```
## Configuring the VM

@@ -89,4 +96,3 @@

betterEval(
"1+1",
{},
"1+1", {},
{

@@ -103,2 +109,2 @@ fileName: "counting",

better-eval is [MIT-licensed](LICENSE) open-source software created by Bharadwaj Duggaraju.
**better-eval** is [MIT-licensed](LICENSE) open-source software created by Bharadwaj Duggaraju.
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