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

@waves/data-entities

Package Overview
Dependencies
Maintainers
9
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waves/data-entities - npm Package Compare versions

Comparing version 1.5.3 to 1.6.0

2

dist/entities/Money.d.ts

@@ -29,2 +29,4 @@ import { Asset } from './Asset';

gte(money: Money): boolean;
safeSub(money: Money): Money;
toNonNegative(): Money;
cloneWithCoins(coins: TMoneyInput): Money;

@@ -31,0 +33,0 @@ cloneWithTokens(tokens: TMoneyInput): Money;

@@ -75,2 +75,14 @@ "use strict";

};
Money.prototype.safeSub = function (money) {
if (this.asset.id === money.asset.id) {
return this.sub(money);
}
return this;
};
Money.prototype.toNonNegative = function () {
if (this.getTokens().lt(0)) {
return this.cloneWithTokens(0);
}
return this;
};
// @todo coins refactor

@@ -77,0 +89,0 @@ Money.prototype.cloneWithCoins = function (coins) {

@@ -172,2 +172,14 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.dataEntities = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){

};
Money.prototype.safeSub = function (money) {
if (this.asset.id === money.asset.id) {
return this.sub(money);
}
return this;
};
Money.prototype.toNonNegative = function () {
if (this.getTokens().lt(0)) {
return this.cloneWithTokens(0);
}
return this;
};
// @todo coins refactor

@@ -174,0 +186,0 @@ Money.prototype.cloneWithCoins = function (coins) {

2

package.json
{
"name": "@waves/data-entities",
"description": "Waves data types",
"version": "1.5.3",
"version": "1.6.0",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "private": false,

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