@riocrypto/common-server 1.0.1167 → 1.0.1169

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.
@@ -72,5 +72,5 @@ declare class BitsoClient {
72
72
  getMakerFee(crypto: Crypto): Promise<number>;
73
73
  signRequest(requestConfig: AxiosRequestConfig): AxiosRequestConfig;
74
74
  }
75
- export declare const buildBistoClient: () => Promise<BitsoClient>;
75
+ export declare const buildBitsoClient: () => Promise<BitsoClient>;
76
76
  export {};
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.buildBistoClient = void 0;
15
+ exports.buildBitsoClient = void 0;
16
16
  const secret_manager_client_1 = require("./secret-manager-client");
17
17
  const axios_1 = __importDefault(require("axios"));
18
18
  const common_1 = require("@riocrypto/common");
@@ -258,7 +258,7 @@ class BitsoClient {
258
258
  return requestConfig;
259
259
  }
260
260
  }
261
- const buildBistoClient = () => __awaiter(void 0, void 0, void 0, function* () {
261
+ const buildBitsoClient = () => __awaiter(void 0, void 0, void 0, function* () {
262
262
  // Retrieve secrets asynchronously
263
263
  const BITSO_API_KEY = yield secret_manager_client_1.secretManagerClient.getSecretValue("BITSO_API_KEY");
264
264
  if (!BITSO_API_KEY) {
@@ -275,4 +275,4 @@ const buildBistoClient = () => __awaiter(void 0, void 0, void 0, function* () {
275
275
  : "sandbox";
276
276
  return new BitsoClient(BITSO_API_KEY, BITSO_API_SECRET, env);
277
277
  });
278
- exports.buildBistoClient = buildBistoClient;
278
+ exports.buildBitsoClient = buildBitsoClient;
@@ -37,6 +37,7 @@ const getOrder = (req, res, next, mongoose, onlyBankOrders) => __awaiter(void 0,
37
37
  common_1.Processor.SPEI,
38
38
  common_1.Processor.SWIFT,
39
39
  common_1.Processor.SPID,
40
+ common_1.Processor.Bitso,
40
41
  ].includes(order.processor)) {
41
42
  req.order = order;
42
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1167",
3
+ "version": "1.0.1169",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "@aws-sdk/client-s3": "^3.297.0",
27
27
  "@everapi/currencyapi-js": "^1.0.6",
28
28
  "@google-cloud/storage": "^6.9.5",
29
- "@riocrypto/common": "^1.0.1041",
29
+ "@riocrypto/common": "^1.0.1043",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^0.27.2",
32
32
  "ccxt": "^3.0.30",