Skip to content

Handle error case; remove deprecation warnings.#2

Open
mgree wants to merge 5 commits into
Swizec:masterfrom
mgree:master
Open

Handle error case; remove deprecation warnings.#2
mgree wants to merge 5 commits into
Swizec:masterfrom
mgree:master

Conversation

@mgree

@mgree mgree commented Jan 27, 2022

Copy link
Copy Markdown

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

Development

Successfully merging this pull request may close these issues.

1 participant