immurl
immurl copied to clipboard
Make isomorphic, support Node.js
For some reason this is not plug and play, likely due to inconsistencies between node-fetch
and global fetch included in typescript.
Also, Headers are not available globally so passing anything other than an instances of Headers to the constructor of ImmutableHeaders throws an error as the internal Headers object cannot be created.
This may be fixed in Node 18 where Headers et al are available globally.