sparqljson-parse
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -29,4 +29,7 @@ "use strict"; | ||
parseJsonResultsStream(sparqlResponseStream) { | ||
return sparqlResponseStream.pipe(require('JSONStream').parse('results.bindings.*')) | ||
sparqlResponseStream.on('error', (error) => resultStream.emit('error', error)); | ||
const resultStream = sparqlResponseStream | ||
.pipe(require('JSONStream').parse('results.bindings.*')) | ||
.pipe(new SparqlJsonBindingsTransformer_1.SparqlJsonBindingsTransformer(this)); | ||
return resultStream; | ||
} | ||
@@ -86,2 +89,3 @@ /** | ||
return new Promise((resolve, reject) => { | ||
sparqlResponseStream.on('error', reject); | ||
sparqlResponseStream.pipe(require('JSONStream').parse('boolean')) | ||
@@ -88,0 +92,0 @@ .on('data', resolve) |
{ | ||
"name": "sparqljson-parse", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Parses SPARQL JSON query results", | ||
@@ -62,3 +62,4 @@ "keywords": [ | ||
], | ||
"collectCoverage": true | ||
"collectCoverage": true, | ||
"testEnvironment": "node" | ||
}, | ||
@@ -65,0 +66,0 @@ "scripts": { |
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
15167
191