Socket
Socket
Sign inDemoInstall

tso-data-models

Package Overview
Dependencies
49
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.122 to 1.0.123

6

lib/models/epoch/AssetSubmission.js

@@ -24,5 +24,7 @@ "use strict";

AssetSubmission.prototype.formatPrice = function () {
var _a;
console.log('111 ');
var str = this.price.toString();
var numArray = str.split('.');
console.log(this);
var str = (_a = this.price) === null || _a === void 0 ? void 0 : _a.toString();
var numArray = str === null || str === void 0 ? void 0 : str.split('.');
var beforeDecimal = numArray[0];

@@ -29,0 +31,0 @@ var afterDecimal = numArray[1];

{
"name": "tso-data-models",
"version": "1.0.122",
"version": "1.0.123",
"description": "",

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

@@ -34,4 +34,5 @@ import { BigNumber, ethers } from "ethers";

console.log('111 ')
const str = this.price.toString();
const numArray = str.split('.');
console.log(this)
const str = this.price?.toString();
const numArray = str?.split('.');
const beforeDecimal = numArray[0];

@@ -38,0 +39,0 @@ const afterDecimal = numArray[1];

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc