cryptomarket
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
113359
2615
1
155