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

erb

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

erb - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

10

lib/erb/runOpalScript.js
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

2

package.json
{
"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",

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