tso-data-models
Advanced tools
Comparing version 1.0.28 to 1.0.29
@@ -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 @@ }()); |
{ | ||
"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
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
57685
852