fetch-sparql-endpoint
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -5,3 +5,2 @@ "use strict"; | ||
require("cross-fetch/polyfill"); | ||
const abort_controller_1 = require("abort-controller"); | ||
const sparqljs_1 = require("sparqljs"); | ||
@@ -11,3 +10,3 @@ const sparqljson_parse_1 = require("sparqljson-parse"); | ||
const stringifyStream = require("stream-to-string"); | ||
const readable_web_to_node_stream_1 = require("readable-web-to-node-stream"); | ||
const readable_web_to_node_stream_1 = require("@smessie/readable-web-to-node-stream"); | ||
// tslint:disable:no-var-requires | ||
@@ -130,3 +129,4 @@ const n3 = require('n3'); | ||
async fetchUpdate(endpoint, query) { | ||
const abortController = new abort_controller_1.default(); | ||
const AbortController = globalThis.AbortController || await Promise.resolve().then(() => require('abort-controller')); | ||
const abortController = new AbortController(); | ||
const defaultHeadersRaw = {}; | ||
@@ -186,3 +186,3 @@ this.defaultHeaders.forEach((value, key) => { | ||
if (this.timeout) { | ||
const controller = new abort_controller_1.default(); | ||
const controller = new AbortController(); | ||
init.signal = controller.signal; | ||
@@ -189,0 +189,0 @@ timeoutId = setTimeout(() => controller.abort(), this.timeout); |
{ | ||
"name": "fetch-sparql-endpoint", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "A simple, lightweight module to send queries to SPARQL endpoints and retrieve their results in a streaming fashion.", | ||
@@ -51,3 +51,3 @@ "keywords": [ | ||
"rdf-string": "^1.6.0", | ||
"readable-web-to-node-stream": "^3.0.2", | ||
"@smessie/readable-web-to-node-stream": "^3.0.3", | ||
"sparqljs": "^3.1.2", | ||
@@ -59,3 +59,3 @@ "sparqljson-parse": "^2.2.0", | ||
"devDependencies": { | ||
"@types/jest": "^28.0.0", | ||
"@types/jest": "^29.5.4", | ||
"@types/minimist": "^1.2.0", | ||
@@ -65,3 +65,3 @@ "@types/n3": "^1.10.3", | ||
"coveralls": "^3.0.0", | ||
"jest": "^28.0.1", | ||
"jest": "^29.7.0", | ||
"jest-rdf": "^1.7.0", | ||
@@ -72,3 +72,3 @@ "manual-git-changelog": "^1.0.0", | ||
"streamify-string": "^1.0.1", | ||
"ts-jest": "^28.0.1", | ||
"ts-jest": "^29.1.1", | ||
"ts-loader": "^9.3.1", | ||
@@ -78,14 +78,15 @@ "tslint": "^6.0.0", | ||
"typescript": "^5.0.0", | ||
"web-streams-node": "^0.4.0", | ||
"readable-stream-node-to-web": "^1.0.1", | ||
"webpack": "^5.73.0", | ||
"webpack-cli": "^4.10.0" | ||
"webpack-cli": "^5.0.0", | ||
"web-streams-ponyfill": "^1.4.2" | ||
}, | ||
"jest": { | ||
"globals": { | ||
"ts-jest": { | ||
"tsconfig": "test/tsconfig.json" | ||
} | ||
}, | ||
"transform": { | ||
"^.+\\.ts$": "ts-jest" | ||
"^.+\\.ts$": [ | ||
"ts-jest", | ||
{ | ||
"tsconfig": "test/tsconfig.json" | ||
} | ||
] | ||
}, | ||
@@ -92,0 +93,0 @@ "transformIgnorePatterns": [ |
Sorry, the diff of this file is not supported yet
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
56381
20
+ Added@smessie/readable-web-to-node-stream@3.0.3(transitive)
- Removedreadable-web-to-node-stream@^3.0.2
- Removedinherits@2.0.4(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedreadable-web-to-node-stream@3.0.2(transitive)
- Removedutil-deprecate@1.0.2(transitive)