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.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emittery",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "Simple and modern async event emitter",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/emittery",