Update wifi.js to still include networks with missing security mode on macos #964
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
wifiNetworks
will on return a subset of networks if one of the networks in the list returned by the macos command does not have a security mode.Before, only 11 of 19 get processed:
![CleanShot 2025-01-28 at 17 08 01 2@2x](https://private-user-images.githubusercontent.com/4964315/407422668-f9c831aa-f30e-4e26-bc32-3cf546e42183.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNjU3MTUsIm5iZiI6MTczOTE2NTQxNSwicGF0aCI6Ii80OTY0MzE1LzQwNzQyMjY2OC1mOWM4MzFhYS1mMzBlLTRlMjYtYmMzMi0zY2Y1NDZlNDIxODMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTBUMDUzMDE1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzQ1MGY1MDg2MDMyYzIzMTRjNWJkYjAxNzI5NTk3ZWQ5NmU5YzlhNWZkODgxMWE5MmI2NWFmNmM2Njc1ZDlhZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.4fLIJvhI0W4CGi1mJtZz80Y1G7dUWfgCB_Yp6l1MTmM)
![CleanShot 2025-01-28 at 17 20 24@2x](https://private-user-images.githubusercontent.com/4964315/407422703-88ea35b9-e207-482d-ad67-bad953faf3e7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNjU3MTUsIm5iZiI6MTczOTE2NTQxNSwicGF0aCI6Ii80OTY0MzE1LzQwNzQyMjcwMy04OGVhMzViOS1lMjA3LTQ4MmQtYWQ2Ny1iYWQ5NTNmYWYzZTcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTBUMDUzMDE1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGE3ZDhiMTlmMzk4M2Y5N2JiNTM1MDUyNjYxMjJiMmYzZWIzOTE3Njk1MGZmNDBiYjkzNjRiNjM2MGY4Nzk0YSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.FyFeulMYpafvuBaBHtwcn865R9xL1gMJF0EJED2SRm8)
After, 19 of 19 get processed: