Skip to content

Commit

Permalink
fix: add zwaveClient and require to driverFunction context (#1256)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed May 21, 2021
1 parent 2fc61ef commit 592e5aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ZwaveClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ class ZwaveClient extends EventEmitter {

const fn = new AsyncFunction('driver', code)

return fn(this.driver)
return fn.call({ zwaveClient: this, require }, this.driver)
}

/**
Expand Down

0 comments on commit 592e5aa

Please sign in to comment.