@comunica/bus-http
Advanced tools
Comparing version 1.22.0 to 1.22.1
@@ -6,4 +6,4 @@ "use strict"; | ||
const core_1 = require("@comunica/core"); | ||
const readable_web_to_node_stream_1 = require("readable-web-to-node-stream"); | ||
const isStream = require('is-stream'); | ||
const toNodeReadable = require('web-streams-node').toNodeReadable; | ||
const toWebReadableStream = require('web-streams-node').toWebReadableStream; | ||
@@ -33,3 +33,5 @@ /** | ||
static toNodeReadable(body) { | ||
return isStream(body) ? body : toNodeReadable(body); | ||
return isStream(body) || body === null ? | ||
body : | ||
new readable_web_to_node_stream_1.ReadableWebToNodeStream(body); | ||
} | ||
@@ -36,0 +38,0 @@ /** |
{ | ||
"name": "@comunica/bus-http", | ||
"version": "1.22.0", | ||
"version": "1.22.1", | ||
"description": "A comunica bus for 'http' events.", | ||
@@ -38,3 +38,5 @@ "lsd:module": true, | ||
"@comunica/context-entries": "^1.22.0", | ||
"@types/readable-stream": "^2.3.11", | ||
"is-stream": "^2.0.0", | ||
"readable-web-to-node-stream": "^3.0.2", | ||
"web-streams-node": "^0.4.0" | ||
@@ -65,3 +67,3 @@ }, | ||
}, | ||
"gitHead": "0a249ba341022eb2f1b9922fcf549a9564671d9f" | ||
"gitHead": "d9adc4e150de2bc4037fff369a9c62d9032b44bc" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10430
141
6
+ Added@types/readable-stream@2.3.15(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedreadable-web-to-node-stream@3.0.2(transitive)
+ Addedsafe-buffer@5.1.25.2.1(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedutil-deprecate@1.0.2(transitive)