rtjscomp 0.8.5 → 0.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rtjscomp.js +4 -3
package/package.json
CHANGED
package/rtjscomp.js
CHANGED
|
@@ -939,12 +939,13 @@ file_keep_new(PATH_CONFIG + 'services.txt', data => (
|
|
|
939
939
|
));
|
|
940
940
|
|
|
941
941
|
await Promise.all([
|
|
942
|
-
file_keep_new(PATH_CONFIG + 'init.js', data => {
|
|
942
|
+
file_keep_new(PATH_CONFIG + 'init.js', async data => {
|
|
943
943
|
if (!data) return;
|
|
944
944
|
log('[deprecated] run global init script');
|
|
945
945
|
try {
|
|
946
|
-
|
|
947
|
-
|
|
946
|
+
await (
|
|
947
|
+
new AsyncFunction('require', data)
|
|
948
|
+
)(custom_require);
|
|
948
949
|
}
|
|
949
950
|
catch (err) {
|
|
950
951
|
log('[error] init.js: ' + err.message);
|