felixge / felixge/node-sandboxed-module
Allow injection of modules that do not have corresponding files
Đang mở
- Ngôn ngữ chính
- JavaScript
- Star
- 343
- Fork
- 41
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hey,
In using this module was hoping to inject files that would be required dynamically, however I seem to be getting a file error when doing so.
I wrote an addition to add an option `ignoreMissing` to essentially allow the failing call to "require-like" to fail silently and fall back to the current key as the filename. Leaving the option with a default that preserves the current functionality.
I took a shot at adding a test for the option, adding "test-ignore-missing.js".
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.