@riocrypto/common-server 1.0.1092 → 1.0.1094

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.
@@ -24,7 +24,7 @@ class BitsoClient {
24
24
  this.env = env;
25
25
  this.baseUrl =
26
26
  env === "production"
27
- ? "https://www.bitso.com"
27
+ ? "https://api.bitso.com"
28
28
  : "https://stage.bitso.com";
29
29
  }
30
30
  createClabe() {
@@ -91,7 +91,7 @@ class BitsoClient {
91
91
  numeric_ref: "",
92
92
  notes_ref: concept,
93
93
  rfc: rfc || "XAXX010101000",
94
- origin_id: Math.floor(Math.random() * 10001),
94
+ origin_id: Math.floor(Math.random() * 9999),
95
95
  },
96
96
  };
97
97
  const signedRequestConfig = this.signRequest(requestConfig);
@@ -132,7 +132,8 @@ const buildBistoClient = () => __awaiter(void 0, void 0, void 0, function* () {
132
132
  throw new common_1.SecretManagerError();
133
133
  }
134
134
  const env = process.env.RIO_ENV === common_1.RioEnv.Production ||
135
- process.env.RIO_ENV === common_1.RioEnv.Staging
135
+ process.env.RIO_ENV === common_1.RioEnv.Staging ||
136
+ process.env.RIO_ENV === common_1.RioEnv.Development
136
137
  ? "production"
137
138
  : "sandbox";
138
139
  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.1092",
3
+ "version": "1.0.1094",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",