@codefeathers/jsont
Advanced tools
Comparing version 0.0.5 to 0.0.6
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 @@ }; |
{ | ||
"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 @@ |
5229
6
117