Skip to content

Commit

Permalink
correction friedrith#29
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault Friedrich committed Dec 20, 2017
1 parent c808869 commit ecaed8f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
The following is a set of guidelines for contributing to node-wifi.

1. Fork `node-wifi` repository
2. Post an issue to propose your feature/improvement. It will be very useful to know if you idea has a chance to be accepted
2. Post an issue to propose your feature/improvement. It will be very useful to know if your idea has a chance to be accepted
3. Implement your feature
4. Test your feature
5. Create pull request for dev branch

And please try to consider your development for windows, linux and macOS platforms at the same time
because having a module compatible with all platforms is the main concern of `node-wifi`.


**May the force be with you !!**
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
node-wifi
===================

**I am looking for maintainers who could help me to handle all improvements and bug fixes about this project because the hardware/os dependencies make it quite hard to test.**

![node-wifi](https://raw.githubusercontent.com/friedrith/assets/master/node-wifi/logo.png)

The node-wifi module allows mac, windows and linux users to interact with surrounding wifi networks through various methods.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-wifi",
"version": "2.0.1",
"version": "2.0.2",
"description": "NodeJS tool to manage wifi",
"bin": {
"wifi": "bin/wifi.js"
Expand Down
3 changes: 1 addition & 2 deletions src/mac-current-connections.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ function getCurrentConnections(config, callback) {
}

module.exports = function (config) {

return function(callback) {
if (callback) {
getCurrentConnections(callback);
getCurrentConnections(config, callback);
} else {
return new Promise(function (resolve, reject) {
getCurrentConnections(config, function (err, currentConnections) {
Expand Down

0 comments on commit ecaed8f

Please sign in to comment.