Skip to content
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

Ignore double underscore properties #216

Merged
merged 2 commits into from
Jul 15, 2022
Merged

Ignore double underscore properties #216

merged 2 commits into from
Jul 15, 2022

Conversation

diffness
Copy link
Contributor

Fix #213 by ignoring __ items in getDeviceIds and getCommandIds.

@aarons22
Copy link
Owner

Thanks @diffness! I think the npm tests are failing for the repo because of an outdated package. I'll have to get that fixed first before this gets merged

@diffness
Copy link
Contributor Author

Thanks @aarons22! Let me know if you need anything more from me.

FYI, I've updated the PR to filter out any "all underscore" property, just in case they decide to add ___ in the future. 😄

Fix startup errors #213 by ignoring __ items in getDeviceIds and getCommandIds.
Update filtering in `getDeviceIds` and `getCommandIds` to ignore any property whose name is entirely underscores. While it's probably unlikely a future Bond API update would add a triple underscore property (`___`), writing it this way instead of restricting to `_` and `__` seems more futureproof.
Copy link
Owner

@aarons22 aarons22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@aarons22 aarons22 merged commit 5e01a4b into aarons22:main Jul 15, 2022
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.

404 and TypeError during startup from request to devices/__
2 participants