@makano/rew 1.4.4 → 1.4.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -139,6 +139,10 @@ module.exports.prepareContext = function (
|
|
139
139
|
})
|
140
140
|
context.std = std;
|
141
141
|
}
|
142
|
+
globalEmitter.on('attach_name', (name, object) => {
|
143
|
+
context[name] = object;
|
144
|
+
});
|
145
|
+
globalEmitter.on('detach_name', (name) => delete context[name]);
|
142
146
|
if (!context.process)
|
143
147
|
context.process = {
|
144
148
|
argv: options.argv || process.argv,
|
@@ -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 } } }
|