Comparing version 1.3.1 to 1.3.2
var vm = require('vm') | ||
var context = vm.createContext({ | ||
Buffer: Buffer | ||
}) | ||
function runOpalScript (timeout, opalScript) { | ||
var context = { | ||
Buffer: Buffer | ||
} | ||
try { | ||
vm.runInNewContext(opalScript, context, { | ||
var script = new vm.Script(opalScript); | ||
script.runInContext(context, { | ||
timeout: timeout, | ||
@@ -10,0 +12,0 @@ displayErrors: false |
{ | ||
"name": "erb", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Compile a given Embedded RuBy (ERB) template using variables and functions defined in given a JavaScript object", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4883699
70146