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 5.0.4 to 5.0.5

13

dist/clients/cot-client.d.ts
import { Observable } from 'rxjs/Observable';
import { AxiosInstance } from 'axios';
import { Type, Source, ExpandedSource, Metric } from '../types';
import { Source, ExpandedSource, Metric } from '../types';
import { DataClient } from './data-client';

@@ -17,13 +17,2 @@ import { LayerClient } from './layer-client';

/**
* Returns all available types as an array of *Type* objects.
* @returns An Observable containg a *Type* array.
*/
getTypes(): Observable<Type[]>;
/**
* Returns the metadata of a type as a Type object.
* @param typeId {string} The id of the Type to get the metadata from.
* @returns An Observable containing a *Type* object.
*/
getType(typeId: string): Observable<Type>;
/**
* Returns all available sources as an array of Source objects

@@ -30,0 +19,0 @@ * @returns An Observable containing a Source array.

36

dist/clients/cot-client.js

@@ -28,20 +28,20 @@ "use strict";

}
// /**
// * Returns all available types as an array of *Type* objects.
// * @returns An Observable containg a *Type* array.
// */
// getTypes(): Observable<Type[]> {
// let url = this.host + '/types';
// return Observable.fromPromise(this.ax.get(url)).pluck('data');
// }
// /**
// * Returns the metadata of a type as a Type object.
// * @param typeId {string} The id of the Type to get the metadata from.
// * @returns An Observable containing a *Type* object.
// */
// getType(typeId: string): Observable<Type> {
// let url = this.host + '/types/' + typeId;
// return Observable.fromPromise(this.ax.get(url)).pluck('data');
// }
/**
* Returns all available types as an array of *Type* objects.
* @returns An Observable containg a *Type* array.
*/
CotClient.prototype.getTypes = function () {
var url = this.host + '/types';
return Observable_1.Observable.fromPromise(this.ax.get(url)).pluck('data');
};
/**
* Returns the metadata of a type as a Type object.
* @param typeId {string} The id of the Type to get the metadata from.
* @returns An Observable containing a *Type* object.
*/
CotClient.prototype.getType = function (typeId) {
var url = this.host + '/types/' + typeId;
return Observable_1.Observable.fromPromise(this.ax.get(url)).pluck('data');
};
/**
* Returns all available sources as an array of Source objects

@@ -128,2 +128,2 @@ * @returns An Observable containing a Source array.

;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY290LWNsaWVudC5qcyIsInNvdXJjZVJvb3QiOiJDOi9Vc2Vycy90ZHVwb250L1dvcmtzcGFjZXMvY290LWxpYi9saWIvIiwic291cmNlcyI6WyJjbGllbnRzL2NvdC1jbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw4Q0FBNkM7QUFDN0MsK0JBQWdGO0FBRWhGLG1EQUFpRDtBQUNqRCx1REFBcUQ7QUFJckQsK0NBQTZDO0FBRTdDO0lBS0k7Ozs7T0FJRztJQUNILG1CQUFZLElBQVksRUFBRSxXQUFrQztRQVBwRCxxQkFBZ0IsR0FBVyxDQUFDLENBQUMsQ0FBQztRQVFsQyxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQztZQUNyQixJQUFJLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFDLEVBQUUsSUFBSSxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztRQUMzQyxDQUFDO1FBQ0QsSUFBSSxDQUFDLElBQUksR0FBRyxJQUFJLENBQUM7UUFDakIsRUFBRSxDQUFDLENBQUMsV0FBVyxDQUFDLENBQUMsQ0FBQztZQUNkLElBQUksR0FBRyxHQUFHLEVBQUUsSUFBSSxFQUFFLFdBQVcsRUFBRSxDQUFDO1lBQ2hDLElBQUksQ0FBQyxFQUFFLEdBQUcsZUFBSyxDQUFDLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUNoQyxDQUFDO1FBQ0QsSUFBSSxDQUFDLENBQUM7WUFDRixJQUFJLENBQUMsRUFBRSxHQUFHLGVBQUssQ0FBQyxNQUFNLEV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FBRSxTQUFLLFNBQVMsTUFBRTtJQUNqRSxDQUFDO0lBRUQ7OztPQUdHO0lBQ0gsOEJBQVUsR0FBVixVQUFXLE1BQWM7UUFDckIsTUFBTSxDQUFDLElBQUksMEJBQVcsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBQyxFQUFFLEVBQUUsTUFBTSxDQUFDLENBQUM7SUFDdkQsQ0FBQztJQUNMLGdCQUFDO0FBQUQsQ0FBQyxBQXhIRCxJQXdIQztBQXhIWSw4QkFBUztBQTZIckIsQ0FBQyJ9

@@ -21,5 +21,4 @@ "use strict";

getHour: function (hourTS) {
var day = util_1.Util.Time.getDayStr(hourTS);
var hour = util_1.Util.Time.getHourStr(hourTS);
var url = internal_utils_1.url(that.host, 'layers', that.cityId, metric, day, hour);
var hourStr = util_1.Util.Time.getHourStr(hourTS);
var url = internal_utils_1.url(that.host, 'layers', that.cityId, metric, hourStr);
return internal_utils_1.InternalUtils.getAsTemporalPage(url, that.ax);

@@ -89,2 +88,2 @@ },

exports.LayerClient = LayerClient;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5ZXItY2xpZW50LmpzIiwic291cmNlUm9vdCI6IkM6L1VzZXJzL3RkdXBvbnQvV29ya3NwYWNlcy9jb3QtbGliL2xpYi8iLCJzb3VyY2VzIjpbImNsaWVudHMvbGF5ZXItY2xpZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsOENBQTZDO0FBQzdDLCtCQUEwQjtBQUcxQixnQ0FBK0I7QUFFL0Isb0RBQXlFO0FBRXpFO0lBS0kscUJBQVksSUFBWSxFQUFFLGFBQTRCLEVBQUUsTUFBYztRQUNsRSxJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQztRQUNqQixJQUFJLENBQUMsRUFBRSxHQUFHLGFBQWEsSUFBSSxlQUFLLENBQUMsTUFBTSxFQUFFLENBQUM7UUFDMUMsSUF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": "dist/index.js",

@@ -213,7 +213,7 @@ # City of Things Client Library

### cotClient.getTypes(): *Observable\<Type[]>*
<!-- ### cotClient.getTypes(): *Observable\<Type[]>*
Returns an Observable containing an array with all available *Type* objects.
### cotClient.getType(typeId: *string*): *Observable\<Type>*
Returns an Observable containing *Type* information of the *Type* with the given typeId.
Returns an Observable containing *Type* information of the *Type* with the given typeId. -->

@@ -302,3 +302,3 @@ ### cotClient.getSources(): *Observable\<Source[]>*

### Util.Time.timestamp(year: *number*, month: *number*, day *= 1*, hours *= 0*, minutes *= 0*, seconds *= 0*, milliseconds *= 0*): *number*
Returns the unix (UTC) timestamp for the given date parameters. The arguments are considered to be in UTC time.
Returns the unix (UTC) timestamp (in milliseconds!) for the given date parameters. The arguments are considered to be in UTC time.

@@ -316,9 +316,9 @@ Argument | Optional | Description

### Util.Time.getDayStr(timestamp: *number*): *string*
Returns the string representation that can be used in the REST api urls. (eg. 20171205 for December 5, 2017)
Returns the string representation that can be used in the REST api urls. (eg. 20171205 for December 5, 2017) (timestamp argument is in milliseconds!)
### Util.Time.getHourStr(timestamp: *number*): *string*
Returns the string representation that can be used in the REST api urls. (eg. 20171205/13 for December 5, 2017 at 1pm)
Returns the string representation that can be used in the REST api urls. (eg. 20171205/13 for December 5, 2017 at 1pm) (timestamp argument is in milliseconds!)
### Util.Time.getWeekdaysTS(year: *number*, month: *number*): *number*[][]
Returns an array of 7 string arrays (mon-sun). Each array contains the UTC timestamps for each instance of that weekday in the month.
Returns an array of 7 string arrays (mon-sun). Each array contains the UTC timestamps (in milliseconds!) for each instance of that weekday in the month.

@@ -325,0 +325,0 @@ ## How to

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