Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eval5

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eval5 - npm Package Compare versions

Comparing version 1.0.1 to 1.0.3

24

esm/interpreter/index.js

@@ -626,9 +626,19 @@ import _construct from "@babel/runtime/helpers/construct";

//fix: [,,,1,2]
var items = node.elements.map(function (element) {
return _this7.createClosure(element);
return element ? _this7.createClosure(element) : element;
});
return function () {
return items.map(function (item) {
return item();
});
var len = items.length;
var result = Array(len);
for (var i = 0; i < len; i++) {
var item = items[i];
if (item) {
result[i] = item();
}
}
return result;
};

@@ -775,3 +785,4 @@ };

},
configurable: false,
writable: true,
configurable: true,
enumerable: false

@@ -783,3 +794,4 @@ });

},
configurable: false,
writable: true,
configurable: true,
enumerable: false

@@ -786,0 +798,0 @@ });

@@ -638,9 +638,19 @@ "use strict";

//fix: [,,,1,2]
var items = node.elements.map(function (element) {
return _this7.createClosure(element);
return element ? _this7.createClosure(element) : element;
});
return function () {
return items.map(function (item) {
return item();
});
var len = items.length;
var result = Array(len);
for (var i = 0; i < len; i++) {
var item = items[i];
if (item) {
result[i] = item();
}
}
return result;
};

@@ -787,3 +797,4 @@ };

},
configurable: false,
writable: true,
configurable: true,
enumerable: false

@@ -795,3 +806,4 @@ });

},
configurable: false,
writable: true,
configurable: true,
enumerable: false

@@ -798,0 +810,0 @@ });

{
"name": "eval5",
"version": "1.0.1",
"version": "1.0.3",
"description": "A JavaScript interpreter written in JavaScript",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc