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

lego-bigpipe

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lego-bigpipe - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

9

index.js
'use strict';
var vm = require('vm');
var ejs = require('ejs');

@@ -34,6 +33,6 @@ var tpl = {

if (data.source && data.data) {
var sandbox = {module: {}};
var code = 'var exports=module.exports={};' + data.data;
vm.runInNewContext(code, sandbox);
pagelet.html = ejs.render(data.source, {locals: sandbox.module.exports});
var module = {exports: {}};
/*jshint evil: true */
(new Function('module', data.data))(module);
pagelet.html = ejs.render(data.source, {locals: module.exports});
} else if (data.source) {

@@ -40,0 +39,0 @@ pagelet.html = data.source;

{
"name": "lego-bigpipe",
"version": "0.1.5",
"version": "0.1.6",
"description": "a bigpipe builder for scrat-lego",

@@ -5,0 +5,0 @@ "license": "MIT",

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