Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sparqljson-parse

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sparqljson-parse - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

5

lib/SparqlJsonParser.d.ts

@@ -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 @@ /**

4

lib/SparqlJsonParser.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc