@riocrypto/common-server 1.0.561 → 1.0.562
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.
|
@@ -148,14 +148,6 @@ class KushkiClient {
|
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
const createKushkiClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
152
|
-
const KUSHKI_PRIVATE_MERCHANT_ID = yield secret_manager_client_1.secretManagerClient.getSecretValue("KUSHKI_PRIVATE_MERCHANT_ID");
|
|
153
|
-
if (!KUSHKI_PRIVATE_MERCHANT_ID) {
|
|
154
|
-
throw new Error("Unable to get KUSHKI_PRIVATE_MERCHANT_ID");
|
|
155
|
-
}
|
|
156
|
-
const kushkiClient = new KushkiClient(KUSHKI_PRIVATE_MERCHANT_ID, process.env.KUSHKI_ENV);
|
|
157
|
-
return kushkiClient;
|
|
158
|
-
});
|
|
159
151
|
const buildKushkiClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
160
152
|
const KUSHKI_PRIVATE_MERCHANT_ID = yield secret_manager_client_1.secretManagerClient.getSecretValue("KUSHKI_PRIVATE_MERCHANT_ID");
|
|
161
153
|
if (!KUSHKI_PRIVATE_MERCHANT_ID) {
|