@comunica/actor-rdf-parse-jsonld
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -5,5 +5,4 @@ "use strict"; | ||
const bus_http_1 = require("@comunica/bus-http"); | ||
const stream_to_string_1 = require("@jeswr/stream-to-string"); | ||
const jsonld_context_parser_1 = require("jsonld-context-parser"); | ||
// Use require instead of import for default exports, to be compatible with variants of esModuleInterop in tsconfig. | ||
const stringifyStream = require("stream-to-string"); | ||
/** | ||
@@ -21,3 +20,3 @@ * A JSON-LD document loader that fetches over an HTTP bus using a given mediator. | ||
const response = await mediatorHttp.mediate({ input: url, init, context }); | ||
response.json = async () => JSON.parse(await stringifyStream(bus_http_1.ActorHttp.toNodeReadable(response.body))); | ||
response.json = async () => JSON.parse(await (0, stream_to_string_1.stringify)(bus_http_1.ActorHttp.toNodeReadable(response.body))); | ||
return response; | ||
@@ -24,0 +23,0 @@ }; |
{ | ||
"name": "@comunica/actor-rdf-parse-jsonld", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "A JSON-LD RDF Parse actor", | ||
@@ -38,12 +38,12 @@ "lsd:module": true, | ||
"dependencies": { | ||
"@comunica/bus-http": "^3.2.0", | ||
"@comunica/bus-rdf-parse": "^3.2.0", | ||
"@comunica/context-entries": "^3.2.0", | ||
"@comunica/core": "^3.2.0", | ||
"@comunica/types": "^3.2.0", | ||
"@comunica/bus-http": "^3.2.1", | ||
"@comunica/bus-rdf-parse": "^3.2.1", | ||
"@comunica/context-entries": "^3.2.1", | ||
"@comunica/core": "^3.2.1", | ||
"@comunica/types": "^3.2.1", | ||
"@jeswr/stream-to-string": "^2.0.0", | ||
"jsonld-context-parser": "^2.2.2", | ||
"jsonld-streaming-parser": "^3.0.1", | ||
"stream-to-string": "^1.2.0" | ||
"jsonld-streaming-parser": "^3.0.1" | ||
}, | ||
"gitHead": "87baf2afed021a254859e64b92f34d9b51c6a7db" | ||
"gitHead": "f558377c3cefbd1606c51ede80440b862e7dda4f" | ||
} |
Sorry, the diff of this file is not supported yet
33820
137
- Removedstream-to-string@^1.2.0
- Removedpromise-polyfill@1.1.6(transitive)
- Removedstream-to-string@1.2.1(transitive)
Updated@comunica/bus-http@^3.2.1
Updated@comunica/core@^3.2.1
Updated@comunica/types@^3.2.1