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

@elevenyellow.com/switchain-api-client

Package Overview
Dependencies
Maintainers
7
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elevenyellow.com/switchain-api-client - npm Package Compare versions

Comparing version 3.4.0 to 3.5.0

2

package.json
{
"name": "@elevenyellow.com/switchain-api-client",
"version": "3.4.0",
"version": "3.5.0",
"description": "client module to access switchains's api",

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

@@ -83,6 +83,15 @@ const fetch = require('isomorphic-unfetch')

refundAddress,
pair,
fromAmount,
toAmount
pair
}
if (fromAmount) {
body.fromAmount = fromAmount
} else if (toAmount) {
body.toAmount = toAmount
} else {
throw Error(
'switchainApiClient.postOrder.error.requiredFromAmountOrToAmountField'
)
}
if (signature) body.signature = signature

@@ -89,0 +98,0 @@

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