@comunica/bus-http
Advanced tools
Comparing version 1.20.1-alpha.e8638e880.0 to 1.21.1
@@ -20,3 +20,3 @@ /// <reference types="node" /> | ||
/** | ||
* Converts a WhatWG streams to Node streams if required. | ||
* Converts WhatWG streams to Node streams if required. | ||
* Returns the input in case the stream already is a Node stream. | ||
@@ -28,2 +28,8 @@ * @param {ReadableStream} body | ||
/** | ||
* Converts Node streams to WhatWG streams. | ||
* @param {NodeJS.ReadableStream} body | ||
* @returns {ReadableStream} | ||
*/ | ||
static toWebReadableStream(body: NodeJS.ReadableStream | null): ReadableStream; | ||
/** | ||
* Convert the given headers object into a raw hash. | ||
@@ -30,0 +36,0 @@ * @param headers A headers object. |
@@ -8,2 +8,3 @@ "use strict"; | ||
const toNodeReadable = require('web-streams-node').toNodeReadable; | ||
const toWebReadableStream = require('web-streams-node').toWebReadableStream; | ||
/** | ||
@@ -26,3 +27,3 @@ * A base actor for listening to HTTP events. | ||
/** | ||
* Converts a WhatWG streams to Node streams if required. | ||
* Converts WhatWG streams to Node streams if required. | ||
* Returns the input in case the stream already is a Node stream. | ||
@@ -36,2 +37,10 @@ * @param {ReadableStream} body | ||
/** | ||
* Converts Node streams to WhatWG streams. | ||
* @param {NodeJS.ReadableStream} body | ||
* @returns {ReadableStream} | ||
*/ | ||
static toWebReadableStream(body) { | ||
return toWebReadableStream(body); | ||
} | ||
/** | ||
* Convert the given headers object into a raw hash. | ||
@@ -38,0 +47,0 @@ * @param headers A headers object. |
{ | ||
"name": "@comunica/bus-http", | ||
"version": "1.20.1-alpha.e8638e880.0", | ||
"version": "1.21.1", | ||
"description": "A comunica bus for 'http' events.", | ||
@@ -37,3 +37,3 @@ "lsd:module": true, | ||
"dependencies": { | ||
"@comunica/context-entries": "^1.20.0", | ||
"@comunica/context-entries": "^1.21.1", | ||
"is-stream": "^2.0.0", | ||
@@ -43,3 +43,3 @@ "web-streams-node": "^0.4.0" | ||
"devDependencies": { | ||
"@comunica/core": "^1.20.1-alpha.e8638e880.0" | ||
"@comunica/core": "^1.21.1" | ||
}, | ||
@@ -65,4 +65,3 @@ "jest": { | ||
"validate": "npm ls" | ||
}, | ||
"gitHead": "e8638e880c762fd659ea781ba1ba2f5cb3e4ef2f" | ||
} | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
139
0
9049
10