@riocrypto/common-server 1.0.1703 → 1.0.1705
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.
|
@@ -21,7 +21,7 @@ const uuid_1 = require("uuid");
|
|
|
21
21
|
class BridgeClient {
|
|
22
22
|
constructor(apiKey) {
|
|
23
23
|
this.apiKey = apiKey;
|
|
24
|
-
if ([common_1.RioEnv.
|
|
24
|
+
if ([common_1.RioEnv.Production, common_1.RioEnv.Staging].includes(process.env.RIO_ENV)) {
|
|
25
25
|
this.baseUrl = "https://api.bridge.xyz";
|
|
26
26
|
}
|
|
27
27
|
else {
|
|
@@ -30,9 +30,6 @@ class BridgeClient {
|
|
|
30
30
|
}
|
|
31
31
|
createKYCLink(fullName, email, userType) {
|
|
32
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
if ([common_1.RioEnv.Sandbox, common_1.RioEnv.Local].includes(process.env.RIO_ENV)) {
|
|
34
|
-
throw new Error("Bridge KYC links are disabled in sandbox mode.");
|
|
35
|
-
}
|
|
36
33
|
const { data } = yield axios_with_logging_1.default.post(`${this.baseUrl}/v0/kyc_links`, {
|
|
37
34
|
full_name: fullName,
|
|
38
35
|
email,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1705",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@google-cloud/secret-manager": "^5.3.0",
|
|
27
27
|
"@google-cloud/storage": "^6.9.5",
|
|
28
28
|
"@hyperdx/node-opentelemetry": "^0.4.2",
|
|
29
|
-
"@riocrypto/common": "^1.0.
|
|
29
|
+
"@riocrypto/common": "^1.0.1499",
|
|
30
30
|
"@types/express": "^4.17.13",
|
|
31
31
|
"axios": "^1.6.0",
|
|
32
32
|
"crypto-js": "^4.2.0",
|