extism/js-sdk

Document API drift. PluginOutput text() method not found

Closed this issue · 0 comments

/Users/ben/dylibso/hello-from/hello-in-js/index.js:33
    message = (await p.call('hello', message)).text()
TypeError: (intermediate value).text is not a function
    at main (/Users/ben/dylibso/hello-from/hello-in-js/index.js:33:48)

The docs say there is a text() method on the PluginOutput but it's no longer there. I think the docs should be updated to string(). may need to be updated on https://extism.org as well