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

json-e

Package Overview
Dependencies
Maintainers
7
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-e - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

2

package.json
{
"name": "json-e",
"version": "4.0.0",
"version": "4.0.1",
"description": "json parameterization module inspired from json-parameterization",

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

@@ -0,1 +1,3 @@

/* eslint-disable */
const {Parser} = require('./parser');

@@ -9,3 +11,3 @@ const Tokenizer = require("../src/tokenizer");

isArray, isObject,
isTruthy, isFunction
isTruthy
} = require('./type-utils');

@@ -140,7 +142,3 @@ var addBuiltins = require('./builtins');

let result = render(template['$json'], context);
if (result.length === 0) {
throw new TemplateError(`$json returns undefined property because functions are not allowed in JSON`);
}
return stringify(result);
return stringify(render(template['$json'], context));
};

@@ -468,6 +466,4 @@

}
if (isFunction(result)) {
throw new TemplateError('$eval ' + template.$eval + ' doesn\'t get any arguments in template')
}
return result;
};

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