@ariary/ariary 2.0.5 → 2.0.6

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.
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ module.exports = __toCommonJS(src_exports);
27
27
  // src/http.ts
28
28
  async function request(method, endpoint, body) {
29
29
  const config2 = getConfig();
30
- const baseUrl = config2.baseUrl || "https://back.ariari.mg/payment/api";
30
+ const baseUrl = config2.baseUrl || "https://back.ariari.mg";
31
31
  const url = `${baseUrl}${endpoint}`;
32
32
  const response = await fetch(url, {
33
33
  method,
@@ -161,7 +161,7 @@ var Ariari = {
161
161
  config = {
162
162
  secretId: cfg.secretId,
163
163
  projectId: cfg.projectId,
164
- baseUrl: cfg.baseUrl || "https://back.ariari.mg/payment/api-docs"
164
+ baseUrl: cfg.baseUrl || "https://back.ariari.mg"
165
165
  };
166
166
  },
167
167
  payment: paymentService,
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/http.ts
2
2
  async function request(method, endpoint, body) {
3
3
  const config2 = getConfig();
4
- const baseUrl = config2.baseUrl || "https://back.ariari.mg/payment/api";
4
+ const baseUrl = config2.baseUrl || "https://back.ariari.mg";
5
5
  const url = `${baseUrl}${endpoint}`;
6
6
  const response = await fetch(url, {
7
7
  method,
@@ -135,7 +135,7 @@ var Ariari = {
135
135
  config = {
136
136
  secretId: cfg.secretId,
137
137
  projectId: cfg.projectId,
138
- baseUrl: cfg.baseUrl || "https://back.ariari.mg/payment/api-docs"
138
+ baseUrl: cfg.baseUrl || "https://back.ariari.mg"
139
139
  };
140
140
  },
141
141
  payment: paymentService,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ariary/ariary",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "SDK officiel pour l'API de paiement Ariary",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",