digitalbazaar / jsonld.js

A JSON-LD Processor and API implementation in JavaScript
https://json-ld.org/
Other
1.66k stars 195 forks source link

when i call jsonld.toRDF (et al) in node.js, the process exits #546

Closed gobengo closed 9 months ago

gobengo commented 9 months ago

Summary:

Questions

Reduced Test Case:

gobengo commented 9 months ago

Ah, it works when I use the builtin promises interface instead of the errback interface, so maybe there is just some small bug in the errback adapter.

const rdf = await jsonld.toRDF(doc)

works

gobengo commented 9 months ago

I had followed the API from this old gist I found https://gist.github.com/bshambaugh/7488b14106fdd2ac4a08f49c47979d46 But I now realize that that API is no longer documented as supported based on the README here.