Comparing version 2.4.2 to 2.4.3
@@ -6,3 +6,3 @@ import { Observable } from 'rxjs/Observable'; | ||
import 'rxjs/add/operator/delay'; | ||
import 'rxjs/add/operator/map'; | ||
import 'rxjs/add/operator/pluck'; | ||
import { SourcesClient } from './sources-client'; | ||
@@ -9,0 +9,0 @@ import { LocationsClient } from './locations-client'; |
@@ -8,3 +8,3 @@ "use strict"; | ||
require("rxjs/add/operator/delay"); | ||
require("rxjs/add/operator/map"); | ||
require("rxjs/add/operator/pluck"); | ||
var axios_1 = require("axios"); | ||
@@ -31,3 +31,3 @@ var sources_client_1 = require("./sources-client"); | ||
var url = this.host + '/types'; | ||
return Observable_1.Observable.fromPromise(axios_1.default.get(url)).map(function (res) { return res.data; }); | ||
return Observable_1.Observable.fromPromise(axios_1.default.get(url)).pluck('data'); | ||
}; | ||
@@ -41,3 +41,3 @@ /** | ||
var url = this.host + '/types/' + typeId; | ||
return Observable_1.Observable.fromPromise(axios_1.default.get(url)).map(function (res) { return res.data; }); | ||
return Observable_1.Observable.fromPromise(axios_1.default.get(url)).pluck('data'); | ||
}; | ||
@@ -51,3 +51,3 @@ /** | ||
var url = this.host + '/types/' + typeId + '/sources'; | ||
return Observable_1.Observable.fromPromise(axios_1.default.get(url)).map(function (res) { return res.data; }); | ||
return Observable_1.Observable.fromPromise(axios_1.default.get(url)).pluck('data'); | ||
}; | ||
@@ -60,3 +60,3 @@ /** | ||
var url = this.host + '/sources'; | ||
return Observable_1.Observable.fromPromise(axios_1.default.get(url)).map(function (res) { return res.data; }); | ||
return Observable_1.Observable.fromPromise(axios_1.default.get(url)).pluck('data'); | ||
}; | ||
@@ -70,3 +70,3 @@ /** | ||
var url = this.host + '/sources/' + sourceId; | ||
return Observable_1.Observable.fromPromise(axios_1.default.get(url)).map(function (res) { return res.data; }); | ||
return Observable_1.Observable.fromPromise(axios_1.default.get(url)).pluck('data'); | ||
}; | ||
@@ -88,4 +88,3 @@ /** | ||
return internal_utils_1.InternalUtils.getAsTemporalPage(url).delay(period) | ||
.expand(function (tpage) { return internal_utils_1.InternalUtils.getAsTemporalPage(_this.host + tpage.link.next).delay(period); }) | ||
.takeWhile(function (tpage) { return !!tpage.link.next; }); | ||
.expand(function (tpage) { return !!tpage.link.next ? internal_utils_1.InternalUtils.getAsTemporalPage(_this.host + tpage.link.next).delay(period) : Observable_1.Observable.empty(); }); | ||
}; | ||
@@ -104,3 +103,3 @@ /** | ||
.filter(function (page) { return Object.keys(page.data).length > 0; }) | ||
.map(function (page) { return page.data; }); | ||
.pluck('data'); | ||
}; | ||
@@ -123,4 +122,3 @@ /** | ||
return internal_utils_1.InternalUtils.getAsTemporalPage(url).delay(period) | ||
.expand(function (tpage) { return internal_utils_1.InternalUtils.getAsTemporalPage(_this.host + tpage.link.next).delay(period); }) | ||
.takeWhile(function (tpage) { return !!tpage.link.next; }); | ||
.expand(function (tpage) { return !!tpage.link.next ? internal_utils_1.InternalUtils.getAsTemporalPage(_this.host + tpage.link.next).delay(period) : Observable_1.Observable.empty(); }); | ||
}; | ||
@@ -141,3 +139,3 @@ /** | ||
.filter(function (page) { return Object.keys(page.data).length > 0; }) | ||
.map(function (page) { return page.data; }); | ||
.pluck('data'); | ||
}; | ||
@@ -174,2 +172,2 @@ /* Client creation methods */ | ||
exports.CotClient = CotClient; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY290LWNsaWVudC5qcyIsInNvdXJjZVJvb3QiOiJDOi9Vc2Vycy90ZHVwb250L1dvcmtzcGFjZXMvY290LWxpYi9saWIvIiwic291cmNlcyI6WyJjbGllbnRzL2NvdC1jbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw4Q0FBNkM7QUFDN0MsMkNBQXlDO0FBQ3pDLGtDQUFnQztBQUNoQyxtQ0FBaUM7QUFDakMsbUNBQWlDO0FBQ2pDLGlDQUErQjtBQUMvQiwrQkFBNkM7QUFFN0MsbURBQWlEO0FBQ2pELHV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MsSUFBSSxTQUFLLFNBQVMsTUFBRTtJQUN0RCxDQUFDO0lBRUQ7Ozs7O09BS0c7SUFDSCx5Q0FBcUIsR0FBckI7UUFBc0IsbUJBQXNCO2FBQXRCLFVBQXNCLEVBQXRCLHFCQUFzQixFQUF0QixJQUFzQjtZQUF0Qiw4QkFBc0I7O1FBQ3hDLE1BQU0sTUFBSyxrQ0FBZSxZQUFmLGtDQUFlLFdBQUMsSUFBSSxDQUFDLElBQUksU0FBSyxTQUFTLE1BQUU7SUFDeEQsQ0FBQztJQUNMLGdCQUFDO0FBQUQsQ0FBQyxBQXRKRCxJQXNKQztBQXRKWSw4QkFBUyJ9 |
import { Observable } from 'rxjs/Observable'; | ||
import 'rxjs/add/observable/empty'; | ||
import 'rxjs/add/observable/fromPromise'; | ||
import 'rxjs/add/observable/merge'; | ||
import 'rxjs/add/observable/of'; | ||
import 'rxjs/add/operator/catch'; | ||
import 'rxjs/add/operator/filter'; | ||
import 'rxjs/add/operator/map'; | ||
import 'rxjs/add/operator/sampleTime'; | ||
import 'rxjs/add/operator/switchMap'; | ||
import 'rxjs/add/operator/pluck'; | ||
import { TemporalPage, TemporalPageData } from '../types/temporal-page'; | ||
@@ -11,0 +10,0 @@ export declare class LocationsClient { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Observable_1 = require("rxjs/Observable"); | ||
require("rxjs/add/observable/empty"); | ||
require("rxjs/add/observable/fromPromise"); | ||
require("rxjs/add/observable/merge"); | ||
require("rxjs/add/observable/of"); | ||
require("rxjs/add/operator/catch"); | ||
require("rxjs/add/operator/filter"); | ||
require("rxjs/add/operator/map"); | ||
require("rxjs/add/operator/sampleTime"); | ||
require("rxjs/add/operator/switchMap"); | ||
require("rxjs/add/operator/pluck"); | ||
var internal_utils_1 = require("../internal-utils"); | ||
@@ -43,4 +42,3 @@ var LocationsClient = (function () { | ||
.merge.apply(Observable_1.Observable, urls.map(function (url) { return internal_utils_1.InternalUtils.getAsTemporalPage(url).delay(period) | ||
.expand(function (tpage) { return internal_utils_1.InternalUtils.getAsTemporalPage(_this.host + tpage.link.next).delay(period); }) | ||
.takeWhile(function (tpage) { return !!tpage.link.next; }); })); | ||
.expand(function (tpage) { return !!tpage.link.next ? internal_utils_1.InternalUtils.getAsTemporalPage(_this.host + tpage.link.next).delay(period) : Observable_1.Observable.empty(); }); })); | ||
}; | ||
@@ -60,3 +58,3 @@ /** | ||
.merge.apply(Observable_1.Observable, urls.map(function (url) { return internal_utils_1.InternalUtils.getCompleteInterval(url); })).filter(function (page) { return Object.keys(page.data).length > 0; }) | ||
.map(function (page) { return page.data; }); | ||
.pluck('data'); | ||
}; | ||
@@ -66,2 +64,2 @@ return LocationsClient; | ||
exports.LocationsClient = LocationsClient; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9jYXRpb25zLWNsaWVudC5qcyIsInNvdXJjZVJvb3QiOiJDOi9Vc2Vycy90ZHVwb250L1dvcmtzcGFjZXMvY290LWxpYi9saWIvIiwic291cmNlcyI6WyJjbGllbnRzL2xvY2F0aW9ucy1jbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw4Q0FBNkM7QUFDN0MsMkNBQXlDO0FBQ3pDLHFDQUFtQztBQUNuQyxrQ0FBZ0M7QUFDaEMsbUNBQWlDO0FBQ2pDLG9DQUFrQztBQUNsQyxpQ0FBK0I7QUFDL0Isd0NBQXNDO0FBQ3RDLHVDQUFxQztBQUlyQyxvREFBNEQ7QUFJNUQ7SUFJSTs7Ozs7T0FLRztJQUNILHlCQUFZLElBQVk7UUFBRSxtQkFBc0I7YUFBdEIsVUFBc0IsRUFBdEIscUJBQXNCLEVBQXRCLElBQXNCO1lBQXRCLGtDQUFzQjs7UUFDNUMsSUFBSSxDQUFDLElBQUksR0FBRyxJQUFJLENBQUM7UUFDakIsSUFBSSxDQUFDLFNBQVMsR0FBRyxTQUFTLENBQUM7SUFDL0IsQ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E1BQU0sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDLE1BQU0sR0FBRyxDQUFDLEVBQWpDLENBQWlDLENBQUM7YUFDakQsS0FBSyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBQ3ZCLENBQUM7SUFFTCxzQkFBQztBQUFELENBQUMsQUFsREQsSUFrREM7QUFsRFksMENBQWUifQ== |
import { Observable } from 'rxjs/Observable'; | ||
import 'rxjs/add/observable/empty'; | ||
import 'rxjs/add/observable/fromPromise'; | ||
import 'rxjs/add/observable/merge'; | ||
import 'rxjs/add/observable/of'; | ||
import 'rxjs/add/operator/catch'; | ||
import 'rxjs/add/operator/filter'; | ||
import 'rxjs/add/operator/map'; | ||
import 'rxjs/add/operator/sampleTime'; | ||
import 'rxjs/add/operator/switchMap'; | ||
import 'rxjs/add/operator/pluck'; | ||
import { TemporalPage, TemporalPageData } from '../types/temporal-page'; | ||
@@ -11,0 +10,0 @@ export declare class SourcesClient { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Observable_1 = require("rxjs/Observable"); | ||
require("rxjs/add/observable/empty"); | ||
require("rxjs/add/observable/fromPromise"); | ||
require("rxjs/add/observable/merge"); | ||
require("rxjs/add/observable/of"); | ||
require("rxjs/add/operator/catch"); | ||
require("rxjs/add/operator/filter"); | ||
require("rxjs/add/operator/map"); | ||
require("rxjs/add/operator/sampleTime"); | ||
require("rxjs/add/operator/switchMap"); | ||
require("rxjs/add/operator/pluck"); | ||
var internal_utils_1 = require("../internal-utils"); | ||
@@ -43,4 +42,3 @@ var SourcesClient = (function () { | ||
.merge.apply(Observable_1.Observable, urls.map(function (url) { return internal_utils_1.InternalUtils.getAsTemporalPage(url).delay(period) | ||
.expand(function (tpage) { return internal_utils_1.InternalUtils.getAsTemporalPage(_this.host + tpage.link.next).delay(period); }) | ||
.takeWhile(function (tpage) { return !!tpage.link.next; }); })); | ||
.expand(function (tpage) { return !!tpage.link.next ? internal_utils_1.InternalUtils.getAsTemporalPage(_this.host + tpage.link.next).delay(period) : Observable_1.Observable.empty(); }); })); | ||
}; | ||
@@ -59,3 +57,3 @@ /** | ||
.merge.apply(Observable_1.Observable, urls.map(function (url) { return internal_utils_1.InternalUtils.getCompleteInterval(url); })).filter(function (page) { return Object.keys(page.data).length > 0; }) | ||
.map(function (page) { return page.data; }); | ||
.pluck('data'); | ||
}; | ||
@@ -65,2 +63,2 @@ return SourcesClient; | ||
exports.SourcesClient = SourcesClient; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlcy1jbGllbnQuanMiLCJzb3VyY2VSb290IjoiQzovVXNlcnMvdGR1cG9udC9Xb3Jrc3BhY2VzL2NvdC1saWIvbGliLyIsInNvdXJjZXMiOlsiY2xpZW50cy9zb3VyY2VzLWNsaWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDhDQUE2QztBQUM3QywyQ0FBeUM7QUFDekMscUNBQW1DO0FBQ25DLGtDQUFnQztBQUNoQyxtQ0FBaUM7QUFDakMsb0NBQWtDO0FBQ2xDLGlDQUErQjtBQUMvQix3Q0FBc0M7QUFDdEMsdUNBQXFDO0FBSXJDLG9EQUE0RDtBQUk1RDtJQUlJOzs7OztPQUtHO0lBQ0gsdUJBQVksSUFBWTtRQUFFLG1CQUFzQjthQUF0QixVQUFzQixFQUF0QixxQkFBc0IsRUFBdEIsSUFBc0I7WUFBdEIsa0NBQXNCOztRQUM1QyxJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQztRQUNqQixJQUFJLENBQUMsU0FBUyxHQUFHLFNBQVMsQ0FBQztJQUMvQixDQUFDO0lBRUQ7Ozs7O09BS0c7SUFDSCxnQ0FBUSxHQUFSLFVBQVMsTUFBYyxFQUFFLElBQWE7UUFBdEMsaUJBWUM7UUFYRyxJQUFJLEtBQUssR0FBRyxFQUFFLENBQUM7UUFDZixFQUFFLENBQUMs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UksQ0FBQyxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUMsR0FBRyx1QkFBVSxDQUFDLEtBQUssRUFBRSxFQUE1RyxDQUE0RyxDQUFDLEVBRC9HLENBQytHLENBQ2pJLEVBQUU7SUFDWCxDQUFDO0lBRUQ7Ozs7O09BS0c7SUFDSCx1Q0FBZSxHQUFmLFVBQWdCLElBQVksRUFBRSxFQUFVO1FBQXhDLGlCQU9DO1FBTkcsSUFBSSxLQUFLLEdBQUcsUUFBUSxHQUFHLElBQUksR0FBRyxNQUFNLEdBQUcsRUFBRSxDQUFDO1FBQzFDLElBQUksSUFBSSxHQUFHLElBQUksQ0FBQyxTQUFTLENBQUMsR0FBRyxDQUFDLFVBQUEsRUFBRSxJQUFJLE9BQUEsS0FBSSxDQUFDLElBQUksR0FBRyxXQUFXLEdBQUcsRUFBRSxHQUFHLFNBQVMsR0FBRyxLQUFLLEVBQWhELENBQWdELENBQUMsQ0FBQztRQUN0RixNQUFNLENBQUMsdUJBQVU7YUFDWixLQUFLLE9BREgsdUJBQVUsRUFDSCxJQUFJLENBQUMsR0FBRyxDQUFDLFVBQUEsR0FBRyxJQUFJLE9BQUEsOEJBQU0sQ0FBQyxtQkFBbUIsQ0FBQyxHQUFHLENBQUMsRUFBL0IsQ0FBK0IsQ0FBQyxFQUN6RCxNQUFNLENBQUMsVUFBQSxJQUFJLElBQUksT0FBQSxNQUFNLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxNQUFNLEdBQUcsQ0FBQyxFQUFqQyxDQUFpQyxDQUFDO2FBQ2pELEtBQUssQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUN2QixDQUFDO0lBRUwsb0JBQUM7QUFBRCxDQUFDLEFBakRELElBaURDO0FBakRZLHNDQUFhIn0= |
import { AxiosResponse } from 'axios'; | ||
import { Observable } from 'rxjs/Observable'; | ||
import 'rxjs/add/observable/empty'; | ||
import 'rxjs/add/operator/do'; | ||
@@ -4,0 +5,0 @@ import 'rxjs/add/operator/expand'; |
@@ -5,2 +5,3 @@ "use strict"; | ||
var Observable_1 = require("rxjs/Observable"); | ||
require("rxjs/add/observable/empty"); | ||
require("rxjs/add/operator/do"); | ||
@@ -77,4 +78,3 @@ require("rxjs/add/operator/expand"); | ||
.do(function (tpage) { return last = tpage.link['last']; }) | ||
.expand(function (res) { return _this.expandTest(res, host, last); }) | ||
.takeWhile(function (tpage) { return !!tpage.link['next'] && (tpage.link['self'] !== last); }); | ||
.expand(function (res) { return _this.expandTest(res, host, last); }); | ||
}; | ||
@@ -87,6 +87,17 @@ /** | ||
InternalUtils.expandTest = function (tpage, host, last) { | ||
if (last && (last.indexOf('?') > 0) && (tpage.link['next'] === last.split('?')[0])) { | ||
if (!last) { | ||
// no last, stop expanding | ||
return Observable_1.Observable.empty(); | ||
} | ||
var myLast = last.indexOf('?') >= 0 ? last.split('?')[0] : last; | ||
if (myLast === tpage.link['next']) { | ||
// last equals next link | ||
return this.getAsTemporalPage(host + last); | ||
} | ||
else if (last === tpage.link['self']) { | ||
// this was the last request | ||
return Observable_1.Observable.empty(); | ||
} | ||
else { | ||
// last didn't match next yet | ||
return this.getAsTemporalPage(host + tpage.link['next']); | ||
@@ -98,2 +109,2 @@ } | ||
exports.InternalUtils = InternalUtils; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJuYWwtdXRpbHMuanMiLCJzb3VyY2VSb290IjoiQzovVXNlcnMvdGR1cG9udC9Xb3Jrc3BhY2VzL2NvdC1saWIvbGliLyIsInNvdXJjZXMiOlsiaW50ZXJuYWwtdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwrQkFBMEI7QUFFMUIsOENBQTZDO0FBQzdDLGdDQUE4QjtBQUM5QixvQ0FBa0M7QUFDbEMsdUNBQXFDO0FBS3JDO0lBQUE7SUF1RkEsQ0FBQztJQXRGRzs7Ozs7T0FLRztJQU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UFLLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQztZQUNoQyx3QkFBd0I7WUFDeEIsTUFBTSxDQUFDLElBQUksQ0FBQyxpQkFBaUIsQ0FBQyxJQUFJLEdBQUMsSUFBSSxDQUFDLENBQUM7UUFDN0MsQ0FBQztRQUNELElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQyxJQUFJLEtBQUssS0FBSyxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLENBQUM7WUFDbkMsNEJBQTRCO1lBQzVCLE1BQU0sQ0FBQyx1QkFBVSxDQUFDLEtBQUssRUFBRSxDQUFDO1FBQzlCLENBQUM7UUFDRCxJQUFJLENBQUMsQ0FBQztZQUNGLDZCQUE2QjtZQUM3QixNQUFNLENBQUMsSUFBSSxDQUFDLGlCQUFpQixDQUFDLElBQUksR0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUM7UUFDM0QsQ0FBQztJQUNMLENBQUM7SUFDTCxvQkFBQztBQUFELENBQUMsQUFsR0QsSUFrR0M7QUFsR1ksc0NBQWEifQ== |
{ | ||
"name": "cot-lib", | ||
"version": "2.4.2", | ||
"version": "2.4.3", | ||
"description": "Easily consume the City of Things platform data", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
924
85383