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

Handle error case; remove deprecation warnings. #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mgree
Copy link

@mgree mgree commented Jan 27, 2022

Sometimes wp:postmeta is undefined---the first commit adds some checks to ensure those cases are handled gracefully. (They crashed before.)

I've also added a second commit that changes calls to new Buffer(... some ArrayBuffer ...) to Buffer.from(...), as the former is deprecated. Sorry for conflating the two---I'd be happy to split up the commits if that's easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant