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

cot-lib

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cot-lib - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

7

dist/clients/cot-client.d.ts

@@ -53,2 +53,9 @@ import { Observable } from 'rxjs/Rx';

/**
* Returns only a single TemporalPage for the request.
* @param geohash {string} The geohash defining the location.
* @param typeId {string} The typeId of the *Type* of data to get.
* @param from {number=} The UNIX UTC timestamp from which to do the request. If not present the last data page will be requested.
*/
getTemporalPageIn(geohash: string, typeId: string, from?: number): Observable<TemporalPage>;
/**
* Continuously poll for the latest data of a *Source*, each **period** at a time.

@@ -55,0 +62,0 @@ * Each time the *next link* wil be followed, if no next link is present, the polling stops.

16

dist/clients/cot-client.js

@@ -80,2 +80,16 @@ "use strict";

/**
* Returns only a single TemporalPage for the request.
* @param geohash {string} The geohash defining the location.
* @param typeId {string} The typeId of the *Type* of data to get.
* @param from {number=} The UNIX UTC timestamp from which to do the request. If not present the last data page will be requested.
*/
getTemporalPageIn(geohash, typeId, from) {
let query = '';
if (from) {
query += '?from=' + from;
}
let url = this.host + '/locations/' + geohash + '/' + typeId + '/events' + query;
return internal_utils_1.InternalUtils.getAsTemporalPage(url);
}
/**
* Continuously poll for the latest data of a *Source*, each **period** at a time.

@@ -166,2 +180,2 @@ * Each time the *next link* wil be followed, if no next link is present, the polling stops.

exports.CotClient = CotClient;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY290LWNsaWVudC5qcyIsInNvdXJjZVJvb3QiOiJDOi9Vc2Vycy90ZHVwb250L1dvcmtzcGFjZXMvY290LWxpYi9saWIvIiwic291cmNlcyI6WyJjbGllbnRzL2NvdC1jbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxnQ0FBcUM7QUF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LEdBQUcsRUFBRSxDQUFDO1FBQzFDLElBQUksR0FBRyxHQUFHLElBQUksQ0FBQyxJQUFJLEdBQUcsYUFBYSxHQUFHLE9BQU8sR0FBRyxHQUFHLEdBQUcsTUFBTSxHQUFHLFNBQVMsR0FBRyxLQUFLLENBQUM7UUFDakYsTUFBTSxDQUFDLDhCQUFNLENBQUMsbUJBQW1CLENBQUMsR0FBRyxDQUFDO2FBQ2pDLE1BQU0sQ0FBQyxJQUFJLElBQUksTUFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsTUFBTSxHQUFHLENBQUMsQ0FBQzthQUNqRCxHQUFHLENBQUMsSUFBSSxJQUFJLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUNoQyxDQUFDO0lBRUQsNkJBQTZCO0lBRTdCOzs7OztPQUtHO0lBQ0gsbUJBQW1CLENBQUMsR0FBRyxTQUFtQjtRQUN0QyxNQUFNLENBQUMsSUFBSSw4QkFBYSxDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsR0FBRyxTQUFTLENBQUMsQ0FBQztJQUN0RCxDQUFDO0lBRUQ7Ozs7O09BS0c7SUFDSCxxQkFBcUIsQ0FBQyxHQUFHLFNBQW1CO1FBQ3hDLE1BQU0sQ0FBQyxJQUFJLGtDQUFlLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxHQUFHLFNBQVMsQ0FBQyxDQUFDO0lBQ3hELENBQUM7Q0FDSjtBQXJMRCw4QkFxTEMifQ==

2

package.json
{
"name": "cot-lib",
"version": "2.1.0",
"version": "2.2.0",
"description": "Easily consume the City of Things platform data",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -227,2 +227,5 @@ The City of Things client library will help you to connect to the City of Things backend. It uses the Web Linking RFC 5988 and interprets the Link header for you. This way you can let the library follow the next/prev/last pages for you.

### cotClient.getTemporalPageIn(geohash: *string*, typeId: *string*, from?: *number*): *Observable\<TemporalPage>*
Returns an Observable containing only a single TemporalPage holding the requested data (if any). The optional **from** argument is the UNIX UTC timestamp from which to do the request. If not present the last data will be returned.
### cotClient.pollData(sourceId: *string*, period: *number*, from?: *number*): *Observable\<TemporalPage>*

@@ -229,0 +232,0 @@ Continuously poll for data from a *Source* defined by a given **sourcId**. The **period** field is the time in milliseconds in between polling for new values. The optional **from** argument is the UNIX UTC timestamp from which to start polling. If not present the last data will be polled.

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