Open b5414 opened 2 years ago
tiny-json-http/dist.js:912:24
if (options.timeout) {
opts.timeout = timeout; /// this is the bug. This should be options.timeout
}
src code
https://github.com/brianleroux/tiny-json-http/blob/main/_write.js#L44
Hi, there is a simple example with the latest version of the tiny package
Unfortunately it returns
err: 'timeout is not defined'
and only the external trycatch works, instead of the promised one