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

browser-module-sandbox

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-module-sandbox - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

8

index.js

@@ -96,6 +96,6 @@ var inherits = require('inherits')

// setTimeout is because iframes report inaccurate window.innerWidth/innerHeight, even after DOMContentLoaded!
var body = self.iframeBody +
'<script type="text/javascript"> setTimeout(function(){' +
script +
'}, 0)</script>'
var body = self.iframeBody +
'<script type="text/javascript" src="data:text/javascript;charset=UTF-8,'
+ encodeURIComponent('setTimeout(function(){' + script + '}, 0)')
+ '"></script>'
var html = { head: self.iframeHead + self.iframeStyle, body: body, script: script }

@@ -102,0 +102,0 @@ self.iframe.setHTML(html)

{
"name": "browser-module-sandbox",
"version": "1.3.4",
"version": "1.3.5",
"description": "uses browserify-cdn to run node code in an iframe",

@@ -16,5 +16,13 @@ "repository": {

},
"engines": {
"node": "0.8.x"
}
"bugs": {
"url": "https://github.com/maxogden/browser-module-sandbox/issues"
},
"homepage": "https://github.com/maxogden/browser-module-sandbox",
"main": "index.js",
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
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