Advanced vm/sandbox for Node.js
Fixes
https://github.com/patriksimek/vm2/commit/cfa3fc6f81be05ce9ed08a79a406ebe3b61ead3e: Fix resolver issue.
New Features
https://github.com/patriksimek/vm2/commit/dd81ff616ff528de5dc7a1cf2939de3d3701539d: Add resolver API to create a shared resolver for multiple NodeVM
instances allowing to cache scripts and increase sandbox startup times.
https://github.com/patriksimek/vm2/commit/4d662e34d369b920943eee139ef60fb557666a43: Allow to pass a function to require.context
which is called with the filename allowing to specify the context pre file. (Thanks to @blakebyrnes)
Fixes
https://github.com/patriksimek/vm2/commit/d88105f99752305c5b8a77b63ddee3ec86912daf: Fix issue leaking host array through Proxy
. (Thanks to @arkark (Takeshi Kaneko) of GMO Cybersecurity by Ierae, Inc.)
https://github.com/patriksimek/vm2/commit/5206ba25afd86ef547a2c9d48d46ca7a9e6ec238: Fix issue with inspect
being writeable. (Thanks to @arkark (Takeshi Kaneko) of GMO Cybersecurity by Ierae, Inc.)
Fixes
https://github.com/patriksimek/vm2/commit/4b22e87b102d97d45d112a0931dba1aef7eea049: Fix issue in catch block protection. (Thanks to Xion (SeungHyun Lee) of KAIST Hacking Lab.) https://github.com/patriksimek/vm2/commit/f3db4dee4d76b19869df05ba7880d638a880edd5: Fix issue with host exceptions thrown in async functions leaking though the Promise.
Fixes
https://github.com/patriksimek/vm2/commit/24c724daa7c09f003e556d7cd1c7a8381cb985d7: Fix issue in transformer issue by reworking replacement logic. (Thanky to Xion (SeungHyun Lee) of KAIST Hacking Lab.)
Fixes
https://github.com/patriksimek/vm2/commit/d534e5785f38307b70d3aac1945260a261a94d50: Ensure no host objects are passed through to Error.prepareStackTrace
. (Thanky to Seongil Wi from KAIST WSP Lab)
Fixes
https://github.com/patriksimek/vm2/commit/fe3ab68832a0df066092b0b6dcee7c7f92c6a5da: Support conditional export resolution with custom resolver (thanks to nick-klaviyo).
Fixes
https://github.com/patriksimek/vm2/commit/1c365f7b834801dcd846eb80e5d44724e66348ae: Fix typescript error in index.d.ts
.
New Features
https://github.com/patriksimek/vm2/commit/81f625d55b587564a5533b30797c10872fa2d3e1: Add file system API.
Fixes
https://github.com/patriksimek/vm2/commit/442feea3525a0fe3628f08157c05a930f078e96d: Fix parsing error with object pattern in catch clause.
New Features
https://github.com/patriksimek/vm2/commit/58478a58c6f4af3c54faf4117ed5ab72d2cc8cd5: Add option require.strict
to allow to load required modules in non strict mode.
Fixes
https://github.com/patriksimek/vm2/commit/d9a7f3cc995d3d861e1380eafb886cb3c5e2b873: Security fix.
New Features
61d240f69cc02974be27c7582fee2defd0e6c7a8: Add uptime
to process
.
Fixes
e3e573fdc99a98a9c7db026e4c40474eb78cab4a: Security fix.
245da82dcdfa67031e065fd7c7a7348b5e21f2b8: Fix inspect showProxy
.