@makano/rew 1.4.4 → 1.4.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -63,6 +63,10 @@ module.exports.prepareContext = function (
63
63
  ...custom_context,
64
64
  Usage
65
65
  };
66
+ globalEmitter.on('attach_name', (name, object) => {
67
+ context[name] = object;
68
+ });
69
+ globalEmitter.on('detach_name', (name) => delete context[name]);
66
70
  std.prototype = { ns: (cb) => {
67
71
  return new (class extends STDNS {
68
72
  constructor(){
@@ -243,11 +247,6 @@ module.exports.prepareContext = function (
243
247
  }
244
248
  }
245
249
 
246
- globalEmitter.on('attach_name', (name, object) => {
247
- context[name] = object;
248
- });
249
- globalEmitter.on('detach_name', (name) => delete context[name]);
250
-
251
250
  if(!context.app){
252
251
  straceLog('==> APP NOT FOUND');
253
252
  context.appPackage = (packageName) => context.app = { config: { manifest: { package: packageName } } }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makano/rew",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "A simple coffescript runtime and app manager",
5
5
  "main": "main.js",
6
6
  "directories": {