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

@codefeathers/jsont

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codefeathers/jsont - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

.npmignore

10

index.js

@@ -11,4 +11,8 @@ const safeeval = require('safe-eval');

const esc = r`(?<!\\)`;
/* Removed temporarily because of no support on node<6.
See: https://github.com/codefeathers/jsont/issues/1 */
// const esc = r`(?<!\\)`;
const esc = '';
const t = {};

@@ -70,3 +74,5 @@ t['1m'] = 1000 * 60;

js: (str) => safeeval(str.replace(/(?<!\\)\\/, ''), {}),
/* Inline JS support is removed.
See: https://github.com/codefeathers/jsont/issues/1
js: (str) => safeeval(str.replace(XRegExp(esc + ''), ''), {}), */

@@ -73,0 +79,0 @@ };

2

package.json
{
"name": "@codefeathers/jsont",
"version": "0.0.5",
"version": "0.0.6",
"private": false,

@@ -5,0 +5,0 @@ "description": "Powerful JSON Templating when you need it",

@@ -11,3 +11,3 @@ const JSONT = require('.');

"oid": "$[oid:5b639cef06c208f42ee09bfe]",
"thing:": "$[js:(() => [ 4 \])()]"
"inlineJS:": "$[js:(() => [ 4 \])()]"
}`;

@@ -14,0 +14,0 @@

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