-
Notifications
You must be signed in to change notification settings - Fork 18
Implement sync() methods #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
android.js
Outdated
|
||
return result; | ||
const get = family => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
care to rename these to async
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no problem at all.
index.js
Outdated
@@ -11,9 +11,16 @@ if ([ | |||
"sunos", | |||
"win32" | |||
].indexOf(platform) !== -1) { | |||
module.exports.v4 = () => require(`./${platform}`).v4(); | |||
module.exports.v6 = () => require(`./${platform}`).v6(); | |||
const fams = require(`./${platform}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very minor, but i'd prefer families
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do
give me about 30 minutes to switch back to this and i'll make those updates for you |
win32.js
Outdated
return result; | ||
}; | ||
|
||
const wmic = family => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, just rename to async
.
LGTM once those things are renamed. |
@silverwind just remembered - |
Lowercase |
@silverwind should be all set. happy to make additional changes if you spot anything |
Thanks, I'll update docs and then push a release. |
* MAKEFILE should use local eslint * implement sync() methods * get -> promise rename * fams -> families rename
This facilitates the re-addition of sync methods to
internal-ip
, citing this issue there. All platforms for both families have been assigned sync methods usingexeca.sync
. Tests were updated to also consider sync methods and run locally on OSX and Ubuntu with success.This change is necessary in order for
internal-ip
and other consumers ofdefault-gateway
to implement synchronous methods. I followed the patterns established in the source but let me know if you'd like to see any semantic changes.