Open mmattel opened 11 months ago
I think it comes from https://github.com/browserify/http-browserify Having said that, are you using https://github.com/asciidoctor/asciidoctor-kroki/blob/master/dist/browser/asciidoctor-kroki.js in a Node environment? This file should only be used in a browser environment.
Using node v16.13.2
I started to get error messages when running
yarn serve
:(node:428317) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
There are 5 occurrences of
._headers
in the final build ofasciidoctor-kroki.js
.Doing some research, a possible fix can be done by replacing:
._headers
with.getHeaders()