sparqljson-parse
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -10,2 +10,3 @@ /// <reference types="node" /> | ||
private readonly prefixVariableQuestionMark?; | ||
private readonly suppressMissingStreamResultsError; | ||
constructor(settings?: ISettings); | ||
@@ -61,2 +62,6 @@ /** | ||
prefixVariableQuestionMark?: boolean; | ||
/** | ||
* If the error about missing results in a result stream should be suppressed. | ||
*/ | ||
suppressMissingStreamResultsError?: boolean; | ||
} | ||
@@ -63,0 +68,0 @@ /** |
@@ -14,5 +14,7 @@ "use strict"; | ||
constructor(settings) { | ||
var _a; | ||
settings = settings || {}; | ||
this.dataFactory = settings.dataFactory || new rdf_data_factory_1.DataFactory(); | ||
this.prefixVariableQuestionMark = !!settings.prefixVariableQuestionMark; | ||
this.suppressMissingStreamResultsError = (_a = settings.suppressMissingStreamResultsError) !== null && _a !== void 0 ? _a : true; | ||
} | ||
@@ -60,3 +62,3 @@ /** | ||
.on("end", _ => { | ||
if (!resultsFound) { | ||
if (!resultsFound && !this.suppressMissingStreamResultsError) { | ||
resultStream.emit("error", new Error("No valid SPARQL query results were found.")); | ||
@@ -63,0 +65,0 @@ } |
{ | ||
"name": "sparqljson-parse", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Parses SPARQL JSON query results", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
19754
265