@rarible/estimate-middleware
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -14,3 +14,3 @@ "use strict"; | ||
if (force === void 0) { force = false; } | ||
return (0, json_rpc_engine_1.createAsyncMiddleware)(function (req, _, next) { return (0, tslib_1.__awaiter)(_this, void 0, void 0, function () { | ||
return (0, json_rpc_engine_1.createAsyncMiddleware)(function (req, resp, next) { return (0, tslib_1.__awaiter)(_this, void 0, void 0, function () { | ||
var params, response, error_1; | ||
@@ -20,2 +20,7 @@ return (0, tslib_1.__generator)(this, function (_a) { | ||
case 0: | ||
if (req.method === "eth_subscribe") { | ||
resp.id = req.id; | ||
resp.error = { "code": -32000, "message": "notifications not supported" }; | ||
return [2 /*return*/]; | ||
} | ||
if (!(req.method === "eth_sendTransaction")) return [3 /*break*/, 5]; | ||
@@ -36,4 +41,5 @@ _a.label = 1; | ||
return [3 /*break*/, 5]; | ||
case 5: | ||
next(); | ||
case 5: return [4 /*yield*/, next()]; | ||
case 6: | ||
_a.sent(); | ||
return [2 /*return*/]; | ||
@@ -40,0 +46,0 @@ } |
{ | ||
"name": "@rarible/estimate-middleware", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"keywords": [ | ||
@@ -38,3 +38,3 @@ "rarible", | ||
}, | ||
"gitHead": "f348ad7153d2adc4ce9d573aa1f381e164685dfa" | ||
"gitHead": "1ac74e0b72b52381f8da1d4c90095243babeae61" | ||
} |
Sorry, the diff of this file is not supported yet
29275
133