@riocrypto/common-server 1.0.1081 → 1.0.1082

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,15 +73,22 @@ class BitsoClient {
73
73
  signRequest(requestConfig) {
74
74
  var _a;
75
75
  const url = new URL(requestConfig.url || "");
76
+ console.log("url", url);
76
77
  const requestPath = url.pathname + (url.search || "");
78
+ console.log("requestPath", requestPath);
77
79
  const payload = requestConfig.data || "";
80
+ console.log("payload", payload);
78
81
  const nonce = new Date().getTime().toString();
82
+ console.log("nonce", nonce);
79
83
  const data = nonce +
80
84
  (((_a = requestConfig.method) === null || _a === void 0 ? void 0 : _a.toUpperCase()) || "") +
81
85
  requestPath +
82
86
  payload;
87
+ console.log("data", data);
83
88
  const signature = crypto_js_1.default.HmacSHA256(data, this.apiSecret).toString(crypto_js_1.default.enc.Hex);
89
+ console.log("signature", signature);
84
90
  const authHeader = `Bitso ${this.apiKey}:${nonce}:${signature}`;
91
+ console.log("authHeader", authHeader);
85
92
  if (!requestConfig.headers) {
86
93
  requestConfig.headers = {};
87
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1081",
3
+ "version": "1.0.1082",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",