This is an example project showing how v 1.0.0 of sandboxed-module
and v.3.0.2 of graceful-fs
collide.
Note that the tests fail with ENOENT, no such file or directory 'path/to/this/project/constants'
on line 262 of sandboxed_module.js
Causes:
graceful-fs
: on line 2 of polyfil.js:require('constants')
graceful-fs
: does not includeconstants
in package.json dependenciessandboxed-module
: loads all filenames resolved previouslysandboxed-module
: resolves dependency filenames, but does not validate the file exists
Result:
ENOENT, no such file or directory '/path/to/this/project/constants'
on line 262 of sandboxed_module.js
Note that sandboxed-module
v 0.3.0 doesn't error in this way.
Note that graceful-fs
has required the missing constants
package since
the beginning.