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

fetch-sparql-endpoint

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-sparql-endpoint - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

7

lib/SparqlEndpointFetcher.js

@@ -9,2 +9,3 @@ "use strict";

const sparqlxml_parse_1 = require("sparqlxml-parse");
const stringifyStream = require("stream-to-string");
// tslint:disable:no-var-requires

@@ -187,3 +188,7 @@ const n3 = require('n3');

const simpleUrl = /^[^?]*/u.exec(url)[0];
throw new Error('Invalid SPARQL endpoint (' + simpleUrl + ') response: ' + httpResponse.statusText);
let bodyString = 'empty response';
if (httpResponse.body) {
bodyString = await stringifyStream(responseStream);
}
throw new Error(`Invalid SPARQL endpoint response from ${simpleUrl} (HTTP status ${httpResponse.status}):\n${bodyString}`);
}

@@ -190,0 +195,0 @@ return [contentType, responseStream];

2

package.json
{
"name": "fetch-sparql-endpoint",
"version": "2.2.0",
"version": "2.3.0",
"description": "A simple, lightweight module to send queries to SPARQL endpoints and retrieve their results in a streaming fashion.",

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