@remixproject/engine
Advanced tools
Comparing version
@@ -45,6 +45,2 @@ "use strict"; | ||
return new Promise((resolve, reject) => { | ||
// @todo() profiles should be manage by the plugin manager | ||
// if (!this.profile.methods || !this.profile.methods.includes(method)) { | ||
// reject(new Error(`Method ${method} is not exposed by ${this.profile.name}`)) | ||
// } | ||
// Add a new request to the queue | ||
@@ -55,5 +51,5 @@ this.requestQueue.push(() => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const letcontinue = () => { | ||
delete this.currentRequest; | ||
if (timedout) | ||
reject(`call to plugin has timed out ${this.profile.name} - ${method} - ${JSON.stringify(this.currentRequest)}`); | ||
delete this.currentRequest; | ||
// Remove current request and call next | ||
@@ -67,5 +63,5 @@ this.requestQueue.shift(); | ||
const result = yield this.callPluginMethod(method, args); | ||
delete this.currentRequest; | ||
if (timedout) | ||
return; | ||
delete this.currentRequest; | ||
resolve(result); | ||
@@ -72,0 +68,0 @@ } |
@@ -40,3 +40,4 @@ "use strict"; | ||
get requestFrom() { | ||
return this.currentRequest ? this.currentRequest.from : 'manager'; | ||
var _a; | ||
return ((_a = this.currentRequest) === null || _a === void 0 ? void 0 : _a.from) || 'manager'; | ||
} | ||
@@ -43,0 +44,0 @@ /** Run engine activation. Implemented by Engine */ |
{ | ||
"name": "@remixproject/engine", | ||
"version": "0.3.2", | ||
"version": "0.3.3-alpha", | ||
"homepage": "https://github.com/ethereum/remix-plugin/tree/master/packages/engine/core#readme", | ||
@@ -27,6 +27,6 @@ "repository": { | ||
"dependencies": { | ||
"@remixproject/plugin-utils": "0.3.2", | ||
"@remixproject/plugin-api": "0.3.2" | ||
"@remixproject/plugin-utils": "0.3.3-alpha", | ||
"@remixproject/plugin-api": "0.3.3-alpha" | ||
}, | ||
"peerDependencies": {} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
95502
-0.3%1402
-0.21%+ Added
+ Added
- Removed
- Removed