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.125 to 1.0.127

1

lib/models/epoch/AssetSubmission.d.ts

@@ -11,4 +11,3 @@ export declare class AssetSubmission {

formatPrice(): void;
isInt(n: any): boolean;
}
//# sourceMappingURL=AssetSubmission.d.ts.map

8

lib/models/epoch/AssetSubmission.js

@@ -33,3 +33,5 @@ "use strict";

var rightSide;
if (this.isInt(this.price)) {
if (this.price === 0) {
}
else if (Number.isInteger(this.price)) {
this.price = parseInt(this.price + "00000");

@@ -39,3 +41,2 @@ }

if ((afterDecimal === null || afterDecimal === void 0 ? void 0 : afterDecimal.length) > 5) {
console.log('666 ');
rightSide = afterDecimal === null || afterDecimal === void 0 ? void 0 : afterDecimal.substring(0, 5);

@@ -56,5 +57,2 @@ }

};
AssetSubmission.prototype.isInt = function (n) {
return n % 1 === 0;
};
return AssetSubmission;

@@ -61,0 +59,0 @@ }());

{
"name": "tso-data-models",
"version": "1.0.125",
"version": "1.0.127",
"description": "",

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

@@ -41,9 +41,9 @@ import { BigNumber, ethers } from "ethers";

let rightSide;
if (this.isInt(this.price)) {
if (this.price === 0) {
} else if (Number.isInteger(this.price)) {
this.price = parseInt(`${this.price}00000`);
} else {
if (afterDecimal?.length > 5) {
console.log('666 ')
rightSide = afterDecimal?.substring(0, 5);

@@ -63,5 +63,3 @@ } else if (afterDecimal.length < 5) {

isInt(n) {
return n % 1 === 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