@makano/rew 1.3.7 → 1.3.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -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": {