@makano/rew 1.3.7 → 1.3.8

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.
@@ -683,8 +683,8 @@ function compileRewStuff(content, options) {
683
683
  options.aliases = aliases;
684
684
  }
685
685
  // console.log(aliases);
686
- console.log(result);
687
- return "";
686
+ // console.log(result);
687
+ // return "";
688
688
  return result;
689
689
  }
690
690
 
@@ -79,6 +79,13 @@ module.exports.prepareContext = function (
79
79
  }, Main: (cb) => {
80
80
  if(cb?.main){
81
81
  cb.main._class = cb;
82
+ if(cb.prepare){
83
+ cb.prepare((object) => {
84
+ for(let i in object){
85
+ cb[i] = object[i];
86
+ }
87
+ });
88
+ }
82
89
  }
83
90
  return (['main', cb?.main ?? cb]);
84
91
  }, attach: (object) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makano/rew",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "A simple coffescript runtime and app manager",
5
5
  "main": "main.js",
6
6
  "directories": {