@searchspring/snap-event-manager 0.25.1 → 0.27.0
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.
|
@@ -63,7 +63,7 @@ var MiddlewareManager = /** @class */ (function () {
|
|
|
63
63
|
var cancelling;
|
|
64
64
|
return __generator(this, function (_a) {
|
|
65
65
|
switch (_a.label) {
|
|
66
|
-
case 0: return [4 /*yield*/, runFunctionsWithAbortWrapper(context, this.functions)];
|
|
66
|
+
case 0: return [4 /*yield*/, runFunctionsWithAbortWrapper(context || {}, this.functions)];
|
|
67
67
|
case 1:
|
|
68
68
|
cancelling = _a.sent();
|
|
69
69
|
if (cancelling == true) {
|
|
@@ -15,7 +15,7 @@ export class MiddlewareManager {
|
|
|
15
15
|
this.functions = [];
|
|
16
16
|
}
|
|
17
17
|
async dispatch(context) {
|
|
18
|
-
const cancelling = await runFunctionsWithAbortWrapper(context, this.functions);
|
|
18
|
+
const cancelling = await runFunctionsWithAbortWrapper(context || {}, this.functions);
|
|
19
19
|
if (cancelling == true) {
|
|
20
20
|
throw new Error('cancelled');
|
|
21
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@searchspring/snap-event-manager",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Snap Event Manager",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"files": [
|
|
24
24
|
"dist/**/*"
|
|
25
25
|
],
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "4cdee561f907c31990f78ba001b2c5bc29fe2b40"
|
|
27
27
|
}
|