Skip to content

fix(): macaddress.one() should return a Promise#31

Merged
scravy merged 1 commit intoscravy:masterfrom
micaelmbagira:fix/incorrect-promise-support
Apr 29, 2020
Merged

fix(): macaddress.one() should return a Promise#31
scravy merged 1 commit intoscravy:masterfrom
micaelmbagira:fix/incorrect-promise-support

Conversation

@micaelmbagira
Copy link
Copy Markdown
Contributor

The implementation of Promise support was incorrect. I recommend adding unit tests because this PR:

  • broke the TypeScript support (fixed here)
  • was incorrectly implemented
  • the app will break for previous versions of node, because Promise does not exist

.one() should return a Promise
.one('eth0), should return a Promise
.one(callback) should return void and use the callback
.one('eth0', callback) should return void and use the callback

@scravy scravy merged commit c5e09f8 into scravy:master Apr 29, 2020
@scravy
Copy link
Copy Markdown
Owner

scravy commented Apr 29, 2020

Thank you for the pull request! Gonna release as 0.4.2

@scravy
Copy link
Copy Markdown
Owner

scravy commented Apr 29, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants