Skip to content

Commit

Permalink
fix init method crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
jaumard committed Sep 12, 2021
1 parent 06ad804 commit c3ab301
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ class Plugin {
*/
init() {
const driversInit = [];
for (const driver of this.drivers) {
driversInit.push(driver.init());
for (const driverName of Object.keys(this.drivers)) {
driversInit.push(this.drivers[driverName].init());
}
return Promise.all(driversInit);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "lisa-plugin",
"version": "0.1.0",
"version": "0.1.1",
"description": "Basic interface to implement / create L.I.S.A. plugins",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit c3ab301

Please sign in to comment.