Comparing version 0.6.0 to 0.7.2
@@ -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) |
@@ -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": [ |
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
61734
1355