@comunica/bus-http
Advanced tools
Comparing version 1.4.0 to 1.5.1
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import { Actor, IAction, IActorArgs, IActorOutput, IActorTest } from "@comunica/core"; | ||
@@ -16,2 +17,9 @@ /** | ||
constructor(args: IActorArgs<IActionHttp, IActorTest, IActorHttpOutput>); | ||
/** | ||
* Converts a WhatWG streams to Node streams if required. | ||
* Returns the input in case the stream already is a Node stream. | ||
* @param {ReadableStream} body | ||
* @returns {NodeJS.ReadableStream} | ||
*/ | ||
static toNodeReadable(body: ReadableStream): NodeJS.ReadableStream; | ||
} | ||
@@ -18,0 +26,0 @@ /** |
@@ -20,4 +20,13 @@ "use strict"; | ||
} | ||
/** | ||
* Converts a WhatWG streams to Node streams if required. | ||
* Returns the input in case the stream already is a Node stream. | ||
* @param {ReadableStream} body | ||
* @returns {NodeJS.ReadableStream} | ||
*/ | ||
static toNodeReadable(body) { | ||
return require('is-stream')(body) ? body : require('node-web-streams').toNodeReadable(body); | ||
} | ||
} | ||
exports.ActorHttp = ActorHttp; | ||
//# sourceMappingURL=ActorHttp.js.map |
{ | ||
"name": "@comunica/bus-http", | ||
"version": "1.4.0", | ||
"version": "1.5.1", | ||
"description": "A comunica bus for 'http' events.", | ||
@@ -39,2 +39,6 @@ "lsd:module": "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http", | ||
}, | ||
"dependencies": { | ||
"is-stream": "^1.1.0", | ||
"node-web-streams": "^0.2.2" | ||
}, | ||
"devDependencies": { | ||
@@ -48,3 +52,3 @@ "@comunica/core": "^1.4.0" | ||
}, | ||
"gitHead": "6a50d602495031e69912eb17988b5c8dc5152300" | ||
"gitHead": "b110603cec2c1e2d1c9a8c2725542a526acf6c8a" | ||
} |
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
7174
73
3
+ Addedis-stream@^1.1.0
+ Addednode-web-streams@^0.2.2
+ Addedis-stream@1.1.0(transitive)
+ Addednode-web-streams@0.2.2(transitive)