Skip to content

Commit

Permalink
Merge branch 'release/2.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
codenirvana committed Jul 12, 2022
2 parents e7a6b3f + 37edd5a commit 78bae16
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.1.1:
date: 2022-07-12
fixed bugs:
- Removed global bridge access in `bridge.once` listener

2.1.0:
date: 2022-07-11
new features:
Expand Down
7 changes: 4 additions & 3 deletions lib/bridge-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ module.exports = function (bootCode) {
},
once: function (name, listener) {
bridge.on(name, function fn () {
bridge.off(name, fn);
listener.apply(this, arguments);
const self = this;
self.on(name, function fn () {
self.off(name, fn);
listener.apply(self, arguments);
});
},
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uvm",
"version": "2.1.0",
"version": "2.1.1",
"description": "Universal Virtual Machine for Node and Browser",
"author": "Postman Inc.",
"license": "Apache-2.0",
Expand Down

0 comments on commit 78bae16

Please sign in to comment.