Socket
Socket
Sign inDemoInstall

cryptomarket

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cryptomarket - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

8

lib/client.js

@@ -42,3 +42,5 @@ const CryptoJS = require('crypto-js');

let url = new URL(apiUrl + apiVersion + endpoint)
let query = new URLSearchParams(params).toString()
let rawQuery = new URLSearchParams(params)
rawQuery.sort()
let query = rawQuery.toString()

@@ -57,3 +59,3 @@ // build fetch options

// include query params to call
if (method === methodGet) url.search = query
if (method === methodGet || method === methodPut) url.search = query
else opts.body = query

@@ -84,3 +86,3 @@

if (query) {
if (httpMethod === methodGet) msg += "?"
if (httpMethod === methodGet || httpMethod === methodPut) msg += "?"
msg += query

@@ -87,0 +89,0 @@ }

{
"name": "cryptomarket",
"version": "1.0.5",
"version": "1.0.6",
"description": "The CryptoMarket for Node.js",

@@ -5,0 +5,0 @@ "homepage": "https://www.cryptomkt.com",

@@ -14,5 +14,4 @@ # CryptoMarket-javascript

[The api documentation](https://api.exchange.cryptomkt.com)
This sdk makes use of the [api version 2](https://api.exchange.cryptomkt.com/v2) of cryptomarket.
# Quick Start

@@ -19,0 +18,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