Open
Description
This commit (line 36 in retrieve.js) breaks the extract call is giving the following error when executing in a browser such as Chrome:
Uncaught (in promise) ReferenceError: Buffer is not defined at __WEBPACK_DEFAULT_EXPORT__ (retrieve.js:58:1) at async extract

The reason is that Buffer object is only available in a Node environment, not in a browser library.
You either want to rewrite it to not depend on that Node Buffer class or rewrite the line something like:
const text = (buffer && Buffer) ? Buffer.from(buffer).toString().trim() : ''
Metadata
Metadata
Assignees
Labels
No labels