Skip to content

Commit

Permalink
🛠️ Automate: Build and Package changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebonsignori committed Aug 5, 2023
1 parent d108c41 commit fca4179
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion dist/action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -200664,8 +200664,11 @@ function fixResponseChunkedTransferBadEnding(request, errorCallback) {

if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) {
response.once('close', function (hadError) {
// tests for socket presence, as in some situations the
// the 'socket' event is not triggered for the request
// (happens in deno), avoids `TypeError`
// if a data listener is still present we didn't end cleanly
const hasDataListener = socket.listenerCount('data') > 0;
const hasDataListener = socket && socket.listenerCount('data') > 0;

if (hasDataListener && !hadError) {
const err = new Error('Premature close');
Expand Down
2 changes: 1 addition & 1 deletion dist/action/index.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/local/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -204866,8 +204866,11 @@ function fixResponseChunkedTransferBadEnding(request, errorCallback) {

if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) {
response.once('close', function (hadError) {
// tests for socket presence, as in some situations the
// the 'socket' event is not triggered for the request
// (happens in deno), avoids `TypeError`
// if a data listener is still present we didn't end cleanly
const hasDataListener = socket.listenerCount('data') > 0;
const hasDataListener = socket && socket.listenerCount('data') > 0;

if (hasDataListener && !hadError) {
const err = new Error('Premature close');
Expand Down
2 changes: 1 addition & 1 deletion dist/local/index.js.map

Large diffs are not rendered by default.

0 comments on commit fca4179

Please sign in to comment.