Socket
Socket
Sign inDemoInstall

tso-data-models

Package Overview
Dependencies
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tso-data-models - npm Package Compare versions

Comparing version 1.0.28 to 1.0.29

3

lib/models/data-point/DataPoint.d.ts

@@ -8,2 +8,5 @@ export declare class DataPoint {

constructor();
symbolMatches(symbol: string): boolean;
dpTimestampIsBefore(timestamp: number): boolean;
dpTimestampIsAfter(timestamp: number): boolean;
}

@@ -10,0 +13,0 @@ export default DataPoint;

@@ -7,2 +7,11 @@ "use strict";

}
DataPoint.prototype.symbolMatches = function (symbol) {
return this.baseCurrency === symbol.toUpperCase();
};
DataPoint.prototype.dpTimestampIsBefore = function (timestamp) {
return this.time <= timestamp;
};
DataPoint.prototype.dpTimestampIsAfter = function (timestamp) {
return this.time >= timestamp;
};
return DataPoint;

@@ -9,0 +18,0 @@ }());

2

package.json
{
"name": "tso-data-models",
"version": "1.0.28",
"version": "1.0.29",
"description": "",

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

@@ -10,2 +10,15 @@ export class DataPoint {

}
symbolMatches(symbol: string): boolean {
return this.baseCurrency === symbol.toUpperCase();
}
dpTimestampIsBefore(timestamp: number): boolean {
return this.time <= timestamp;
}
dpTimestampIsAfter(timestamp: number): boolean {
return this.time >= timestamp;
}
}

@@ -12,0 +25,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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