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 3.2.0 to 3.2.1

13

lib/SparqlEndpointFetcher.js

@@ -36,3 +36,3 @@ "use strict";

};
this.timeout = args.timeout || 5000;
this.timeout = args.timeout;
}

@@ -179,7 +179,10 @@ /**

async handleFetchCall(url, init, options = {}) {
const controller = new abort_controller_1.default();
init.signal = controller.signal;
const id = setTimeout(() => controller.abort(), this.timeout);
let timeoutId;
if (this.timeout) {
const controller = new abort_controller_1.default();
init.signal = controller.signal;
timeoutId = setTimeout(() => controller.abort(), this.timeout);
}
const httpResponse = await (this.fetchCb || fetch)(url, init);
clearTimeout(id);
clearTimeout(timeoutId);
let responseStream;

@@ -186,0 +189,0 @@ // Handle response body

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

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

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