emittery 0.9.1 → 0.9.2
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.
- package/index.js +4 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -192,6 +192,10 @@ class Emittery {
|
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
static get isDebugEnabled() {
|
|
195
|
+
if (typeof process !== 'object') {
|
|
196
|
+
return isGlobalDebugEnabled;
|
|
197
|
+
}
|
|
198
|
+
|
|
195
199
|
const {env} = process || {env: {}};
|
|
196
200
|
return env.DEBUG === 'emittery' || env.DEBUG === '*' || isGlobalDebugEnabled;
|
|
197
201
|
}
|