New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nimiq/fastspot-api

Package Overview
Dependencies
Maintainers
8
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nimiq/fastspot-api - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

8

dist/helpers.js

@@ -30,3 +30,5 @@ import { SwapAsset, } from './types';

fee: coinsToUnits(asset, from.fundingNetworkFee.total, true),
feePerUnit: coinsToUnits(asset, from.fundingNetworkFee.perUnit, true),
...(from.fundingNetworkFee.perUnit ? {
feePerUnit: coinsToUnits(asset, from.fundingNetworkFee.perUnit, true),
} : {}),
serviceNetworkFee: coinsToUnits(asset, from.finalizeNetworkFee.total, true),

@@ -42,3 +44,5 @@ serviceEscrowFee: coinsToUnits(asset, from.operatingNetworkFee.total, true),

fee: coinsToUnits(asset, to.finalizeNetworkFee.total, true),
feePerUnit: coinsToUnits(asset, to.finalizeNetworkFee.perUnit, true),
...(to.finalizeNetworkFee.perUnit ? {
feePerUnit: coinsToUnits(asset, to.finalizeNetworkFee.perUnit, true),
} : {}),
serviceNetworkFee: coinsToUnits(asset, to.fundingNetworkFee.total, true),

@@ -45,0 +49,0 @@ serviceEscrowFee: coinsToUnits(asset, to.operatingNetworkFee.total, true),

@@ -27,3 +27,3 @@ export declare enum SwapAsset {

export declare type FastspotFee = {
perUnit: string;
perUnit?: string;
total: string;

@@ -37,3 +37,3 @@ totalIsIncluded: boolean;

fundingNetworkFee: FastspotFee;
operatingNetworkFee: Omit<FastspotFee, 'perUnit'>;
operatingNetworkFee: FastspotFee;
finalizeNetworkFee: FastspotFee;

@@ -126,3 +126,3 @@ };

fee: number;
feePerUnit: number;
feePerUnit?: number;
serviceNetworkFee: number;

@@ -129,0 +129,0 @@ serviceEscrowFee: number;

{
"name": "@nimiq/fastspot-api",
"version": "1.2.0",
"version": "1.2.1",
"description": "Typescript library to interact with the Fastspot API",

@@ -5,0 +5,0 @@ "repository": "git@github.com:nimiq/fastspot-api.git",

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