@riocrypto/common-server 1.0.1068 → 1.0.1070

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.
@@ -1,11 +1,10 @@
1
- import { User } from "@riocrypto/common";
2
1
  declare class BitsoClient {
3
2
  private apiKey;
4
3
  private apiSecret;
5
4
  private env;
6
5
  private baseUrl;
7
6
  constructor(apiKey: string, apiSecret: string, env: "production" | "sandbox");
8
- createClabe(user: User): Promise<string>;
7
+ createClabe(): Promise<string>;
9
8
  private generateBitsoSignature;
10
9
  private getAuthenticatedHeaders;
11
10
  }
@@ -27,7 +27,7 @@ class BitsoClient {
27
27
  ? "https://www.bitso.com"
28
28
  : "https://stage.bitso.com";
29
29
  }
30
- createClabe(user) {
30
+ createClabe() {
31
31
  return __awaiter(this, void 0, void 0, function* () {
32
32
  const method = "POST";
33
33
  const requestPath = "/spei/v1/clabes"; // Change this to the API endpoint you're calling
@@ -69,8 +69,7 @@ const buildBistoClient = () => __awaiter(void 0, void 0, void 0, function* () {
69
69
  throw new common_1.SecretManagerError();
70
70
  }
71
71
  const env = process.env.RIO_ENV === common_1.RioEnv.Production ||
72
- process.env.RIO_ENV === common_1.RioEnv.Staging ||
73
- process.env.RIO_ENV === common_1.RioEnv.Development
72
+ process.env.RIO_ENV === common_1.RioEnv.Staging
74
73
  ? "production"
75
74
  : "sandbox";
76
75
  return new BitsoClient(BITSO_API_KEY, BITSO_API_SECRET, env);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1068",
3
+ "version": "1.0.1070",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "@aws-sdk/client-s3": "^3.297.0",
25
25
  "@everapi/currencyapi-js": "^1.0.6",
26
26
  "@google-cloud/storage": "^6.9.5",
27
- "@riocrypto/common": "^1.0.916",
27
+ "@riocrypto/common": "^1.0.917",
28
28
  "@types/express": "^4.17.13",
29
29
  "axios": "^0.27.2",
30
30
  "ccxt": "^3.0.30",