@remixproject/engine
Advanced tools
Comparing version 0.3.3-alpha to 0.3.3
export * from './lib/abstract'; | ||
export * from './lib/connector'; | ||
export * from './lib/engine'; | ||
export * from './lib/host'; | ||
export * from './lib/library'; | ||
export * from './lib/manager'; | ||
export * from './lib/view'; |
@@ -7,6 +7,4 @@ "use strict"; | ||
tslib_1.__exportStar(require("./lib/engine"), exports); | ||
tslib_1.__exportStar(require("./lib/host"), exports); | ||
tslib_1.__exportStar(require("./lib/library"), exports); | ||
tslib_1.__exportStar(require("./lib/manager"), exports); | ||
tslib_1.__exportStar(require("./lib/view"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -35,3 +35,4 @@ "use strict"; | ||
callPluginMethod(key, args) { | ||
const path = this.currentRequest && this.currentRequest.path; | ||
var _a; | ||
const path = (_a = this.currentRequest) === null || _a === void 0 ? void 0 : _a.path; | ||
const method = plugin_utils_1.getMethodPath(key, path); | ||
@@ -52,4 +53,8 @@ if (!(method in this)) { | ||
delete this.currentRequest; | ||
if (timedout) | ||
reject(`call to plugin has timed out ${this.profile.name} - ${method} - ${JSON.stringify(this.currentRequest)}`); | ||
if (timedout) { | ||
const { from } = this.currentRequest; | ||
const params = args.map(arg => JSON.stringify(arg)).join(', '); | ||
const error = `[TIMED OUT]: Call to method "${method}" from "${from}" to plugin "${this.profile.name}" has timed out with arguments ${params}."`; | ||
reject(error); | ||
} | ||
// Remove current request and call next | ||
@@ -60,3 +65,6 @@ this.requestQueue.shift(); | ||
}; | ||
const ref = setTimeout(() => { timedout = true, letcontinue(); }, this.options.queueTimeout || 10000); | ||
const ref = setTimeout(() => { | ||
timedout = true; | ||
letcontinue(); | ||
}, this.options.queueTimeout || 10000); | ||
try { | ||
@@ -63,0 +71,0 @@ const result = yield this.callPluginMethod(method, args); |
{ | ||
"name": "@remixproject/engine", | ||
"version": "0.3.3-alpha", | ||
"version": "0.3.3", | ||
"homepage": "https://github.com/ethereum/remix-plugin/tree/master/packages/engine/core#readme", | ||
@@ -27,6 +27,6 @@ "repository": { | ||
"dependencies": { | ||
"@remixproject/plugin-utils": "0.3.3-alpha", | ||
"@remixproject/plugin-api": "0.3.3-alpha" | ||
"@remixproject/plugin-utils": "0.3.3", | ||
"@remixproject/plugin-api": "0.3.3" | ||
}, | ||
"peerDependencies": {} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
91986
20
1337
+ Added@remixproject/plugin-api@0.3.3(transitive)
+ Added@remixproject/plugin-utils@0.3.3(transitive)
- Removed@remixproject/plugin-api@0.3.3-alpha(transitive)
- Removed@remixproject/plugin-utils@0.3.3-alpha(transitive)