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

jsexpr

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsexpr - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

5

lib/expression.js

@@ -84,3 +84,3 @@ const extend = require("extend");

function tokens(expr,method) {
method = method || "ceval";
method = EVALS[method || "ceval"];
if(expr=="${JSON}") return function(entry) {return JSON.stringify(entry,null,2)};

@@ -93,6 +93,7 @@

var t = expr.substring(0,idx);
var rtoken = token.replace(RX_RPL_TOKEN,"");
expr = expr.substring(idx+token.length);
list.push(t);
list.push(function(entry){
return EVALS[method](entry,token.replace(RX_RPL_TOKEN,""))
return method(entry,rtoken);
});

@@ -99,0 +100,0 @@ });

2

package.json
{
"name": "jsexpr",
"version": "0.5.1",
"version": "0.5.2",
"description": "String and JSON expression interpolator and evaluator. Interpolates or evaluates a string against a json object, or transforms an object into another based on a json template",

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

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