New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eval-formula

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eval-formula - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

grammar.js

@@ -102,2 +102,4 @@ // Generated automatically by nearley, version 2.15.1

{"name": "N", "symbols": ["N$string$13", "_", "P"], "postprocess": function(d) {return d[2].dp(0, 3); }},
{"name": "N$string$14", "symbols": [{"literal":"r"}, {"literal":"o"}, {"literal":"u"}, {"literal":"n"}, {"literal":"d"}], "postprocess": function joiner(d) {return d.join('');}},
{"name": "N", "symbols": ["N$string$14", "_", "P"], "postprocess": function(d) {return d[2].dp(0, 6); }},
{"name": "float", "symbols": ["int", {"literal":"."}, "int"], "postprocess": function(d) {return new BigNumber(d[0] + d[1] + d[2])}},

@@ -104,0 +106,0 @@ {"name": "float", "symbols": ["int"], "postprocess": function(d) {return new BigNumber(d[0])}},

@@ -211,2 +211,6 @@ var evalFormula = require('./index');

t.deepEqual(evalFormula('floor(2.5)').eq(2), true);
});
test('round 2.5', t => {
t.deepEqual(evalFormula('round(2.9)').eq(3), true);
});

2

package.json
{
"name": "eval-formula",
"version": "1.0.1",
"version": "1.0.2",
"dependencies": {

@@ -5,0 +5,0 @@ "bignumber.js": "^8.0.1",

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