arena-js icon indicating copy to clipboard operation
arena-js copied to clipboard

Fix to createBlock function + Add /me endpoint

Open absentees opened this issue 3 years ago • 0 comments

Using the createBlock as documented in the README would throw an exception as passing a string through would break the regex.

I added a small check to see whether the parameter was an object first, if not it will create one and use the regex.

The README may need some updating too as you can pass in an object with title, description etc and that will work as is.

Edit: Added an additional function to facilitate the /me API endpoint

absentees avatar Sep 18 '21 06:09 absentees