immurl icon indicating copy to clipboard operation
immurl copied to clipboard

Make isomorphic, support Node.js

Open tom-sherman opened this issue 3 years ago • 1 comments

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.

tom-sherman avatar Apr 30 '21 21:04 tom-sherman

This may be fixed in Node 18 where Headers et al are available globally.

tom-sherman avatar Jan 22 '23 13:01 tom-sherman