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

baset-vm

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baset-vm - npm Package Compare versions

Comparing version 0.6.0 to 0.7.2

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

<a name="0.7.2"></a>
## [0.7.2](https://github.com/Igmat/baset/compare/v0.7.1...v0.7.2) (2018-02-12)
### Bug Fixes
* **vm:** allow usage of native modules in vm ([5d17b49](https://github.com/Igmat/baset/commit/5d17b49))
<a name="0.6.0"></a>

@@ -8,0 +19,0 @@ # [0.6.0](https://github.com/Igmat/baset/compare/v0.5.1...v0.6.0) (2018-02-08)

8

dist/sandbox.js

@@ -31,4 +31,6 @@ const {Script} = host.require('vm');

},
[".node"](module, filename) {
if (vm.options.require.context === 'sandbox') throw new VMError('Native modules can be required only with context set to \'host\'.');
[".node"](module, filename) {
// we need to skip this check in order to work with `canvas-prebuilt` package
// FIXME: find better workaround
// if (vm.options.require.context === 'sandbox') throw new VMError('Native modules can be required only with context set to \'host\'.');

@@ -181,3 +183,3 @@ try {

const _prepareRequire = function(current_dirname) {
const _require = function(modulename) {
const _require = function (modulename) {
if (vm.options.nesting && modulename === 'vm2') return {VM: Contextify.readonly(host.VM), NodeVM: Contextify.readonly(host.NodeVM)};

@@ -184,0 +186,0 @@ if (!vm.options.require) throw new VMError(`Access denied to require '${modulename}'`, "EDENIED");

{
"name": "baset-vm",
"version": "0.6.0",
"version": "0.7.2",
"description": "VM package for BaseT project.",

@@ -5,0 +5,0 @@ "keywords": [

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