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

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.36 to 1.0.37

5

lib/models/data-point/DataPoint.js

@@ -9,3 +9,6 @@ "use strict";

var time = new Date(this.time);
return this.exchange.toLowerCase() + "_" + time.getFullYear() + "_" + time.getMonth() + "_" + time.getDay() + "_" + this.baseCurrency.toLowerCase() + ".csv";
var year = time.getFullYear().toString();
var month = time.getMonth().toString();
var day = time.getDay().toString();
return this.exchange.toLowerCase() + "_" + year + "_" + month + "_" + day + "_" + this.baseCurrency.toLowerCase() + ".csv";
};

@@ -12,0 +15,0 @@ DataPoint.prototype.symbolMatches = function (symbol) {

2

package.json
{
"name": "tso-data-models",
"version": "1.0.36",
"version": "1.0.37",
"description": "",

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

@@ -14,3 +14,6 @@ export class DataPoint {

const time: Date = new Date(this.time);
return `${this.exchange.toLowerCase()}_${time.getFullYear()}_${time.getMonth()}_${time.getDay()}_${this.baseCurrency.toLowerCase()}.csv`;
const year: string = time.getFullYear().toString();
const month: string = time.getMonth().toString();
const day: string = time.getDay().toString();
return `${this.exchange.toLowerCase()}_${year}_${month}_${day}_${this.baseCurrency.toLowerCase()}.csv`;
}

@@ -17,0 +20,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