custom module: expose process global
This commit is contained in:
parent
e44e5e48c7
commit
1d6794e6af
3 changed files with 13 additions and 5 deletions
14
CHANGELOG.md
14
CHANGELOG.md
|
|
@ -1,6 +1,12 @@
|
|||
# Changelog
|
||||
|
||||
# 1.8.10
|
||||
## next
|
||||
|
||||
- custom module
|
||||
- expose `process` global
|
||||
|
||||
|
||||
## 1.8.10
|
||||
|
||||
- bug fixes
|
||||
- modal: issues with children's visibility
|
||||
|
|
@ -14,9 +20,9 @@
|
|||
- add `setFocus` function to focus an input widget programmatically
|
||||
|
||||
- misc
|
||||
- add `usePercents` client option
|
||||
- add `usePercents` client option
|
||||
|
||||
# 1.8.9
|
||||
## 1.8.9
|
||||
|
||||
- bug fixes
|
||||
- script: issue when using the `options` argument in `set()` (options leaked to subsequent set() calls in the script)
|
||||
|
|
@ -24,7 +30,7 @@
|
|||
- multixy: spring behavior not working until all points are released
|
||||
- custom module: prevent require() from reading submodules files each time and instead return the object in memory
|
||||
|
||||
# 1.8.8
|
||||
## 1.8.8
|
||||
|
||||
- launcher
|
||||
- add file browser button for the `theme` option and fix parsing path containing spaces if only one theme is set
|
||||
|
|
|
|||
|
|
@ -136,6 +136,7 @@ This function can be used to load native node modules or locally installed modul
|
|||
- `clearInterval`
|
||||
- `__dirname`
|
||||
- `__filename`
|
||||
- `process`
|
||||
|
||||
----
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,8 @@ class CustomModule {
|
|||
setInterval: this.setInterval.bind(this),
|
||||
clearInterval: this.clearInterval.bind(this),
|
||||
require: this.require.bind(this),
|
||||
nativeRequire: require
|
||||
nativeRequire: require,
|
||||
process: process
|
||||
}
|
||||
|
||||
if (!this.submodule && !modulePathExtended) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue