fetch-sparql-endpoint
Advanced tools
Comparing version 1.3.0 to 1.3.1
#!/usr/bin/env node | ||
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
const fs_1 = require("fs"); | ||
@@ -30,3 +37,3 @@ const minimist = require("minimist"); | ||
function getQuery() { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (args._.length > 1) { | ||
@@ -33,0 +40,0 @@ return args._[1]; |
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
<a name="1.3.1"></a> | ||
## [1.3.1](https://github.com/rubensworks/fetch-sparql-endpoint.js/compare/v1.3.0...v1.3.1) - 2018-09-05 | ||
### Fixes | ||
- [Remove tslib dependency](https://github.com/rubensworks/fetch-sparql-endpoint.js/commit/b5805407ac842fdf12d148d9794a82b7be4b34b6) | ||
<a name="1.3.0"></a> | ||
@@ -5,0 +10,0 @@ ## [1.3.0](https://github.com/rubensworks/fetch-sparql-endpoint.js/compare/v1.2.0...v1.3.0) - 2018-08-23 |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./lib/SparqlEndpointFetcher"), exports); | ||
__export(require("./lib/SparqlEndpointFetcher")); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
require("isomorphic-fetch"); | ||
@@ -52,3 +59,3 @@ const sparqljs_1 = require("sparqljs"); | ||
fetchBindings(endpoint, query) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const [contentType, responseStream] = yield this | ||
@@ -70,3 +77,3 @@ .fetchRawStream(endpoint, query, SparqlEndpointFetcher.CONTENTTYPE_SPARQL); | ||
fetchAsk(endpoint, query) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const [contentType, responseStream] = yield this | ||
@@ -88,3 +95,3 @@ .fetchRawStream(endpoint, query, SparqlEndpointFetcher.CONTENTTYPE_SPARQL); | ||
fetchTriples(endpoint, query) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const rawStream = (yield this.fetchRawStream(endpoint, query, SparqlEndpointFetcher.CONTENTTYPE_TURTLE))[1]; | ||
@@ -105,3 +112,3 @@ return rawStream.pipe(new n3.StreamParser({ format: SparqlEndpointFetcher.CONTENTTYPE_TURTLE })); | ||
fetchRawStream(endpoint, query, acceptHeader) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const url = endpoint + '?query=' + encodeURIComponent(query); | ||
@@ -108,0 +115,0 @@ // Initiate request |
{ | ||
"name": "fetch-sparql-endpoint", | ||
"version": "1.3.0", | ||
"version": "1.3.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": [ |
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
24251
322