hookable 5.2.1 → 5.2.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/dist/index.cjs CHANGED
@@ -166,10 +166,7 @@ class Hookable {
166
166
  if (this._after) {
167
167
  callEachWith(this._after, event);
168
168
  }
169
- if (result instanceof Promise) {
170
- return result;
171
- }
172
- return Promise.resolve(result);
169
+ return result;
173
170
  }
174
171
  beforeEach(fn) {
175
172
  this._before = this._before || [];
package/dist/index.mjs CHANGED
@@ -162,10 +162,7 @@ class Hookable {
162
162
  if (this._after) {
163
163
  callEachWith(this._after, event);
164
164
  }
165
- if (result instanceof Promise) {
166
- return result;
167
- }
168
- return Promise.resolve(result);
165
+ return result;
169
166
  }
170
167
  beforeEach(fn) {
171
168
  this._before = this._before || [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hookable",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
4
4
  "description": "Awaitable hook system",
5
5
  "keywords": [
6
6
  "hook",