@makano/rew 1.4.5 → 1.4.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -63,10 +63,6 @@ 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]);
|
70
66
|
std.prototype = { ns: (cb) => {
|
71
67
|
return new (class extends STDNS {
|
72
68
|
constructor(){
|
@@ -143,6 +139,10 @@ module.exports.prepareContext = function (
|
|
143
139
|
})
|
144
140
|
context.std = std;
|
145
141
|
}
|
142
|
+
globalEmitter.on('attach_name', (name, object) => {
|
143
|
+
context[name] = object;
|
144
|
+
});
|
145
|
+
globalEmitter.on('detach_name', (name) => delete context[name]);
|
146
146
|
if (!context.process)
|
147
147
|
context.process = {
|
148
148
|
argv: options.argv || process.argv,
|