apacuana-sdk-core 0.7.0 → 0.8.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apacuana-sdk-core",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Core SDK para interacciones con las APIs de Apacuana.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -52,7 +52,6 @@ export const setConfig = (newConfig) => {
52
52
 
53
53
  export const getConfig = () => ({ ...config });
54
54
 
55
- export const cleanConfig = () => {
55
+ export const close = () => {
56
56
  config = { ...defaultConfig };
57
- console.log("Apacuana SDK: Configuración limpiada.");
58
57
  };
package/src/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { setConfig, getConfig, cleanConfig } from "./config/index";
1
+ import { setConfig, getConfig, close } from "./config/index";
2
2
  import { initHttpClient, setAuthToken } from "./utils/httpClient";
3
3
  import getCustomer from "./api/users";
4
4
  import { requestRevocation, getRevocationReasons } from "./api/revocations";
@@ -39,7 +39,7 @@ const apacuana = {
39
39
  throw error;
40
40
  }
41
41
  },
42
- close: () => cleanConfig(),
42
+ close: () => close(),
43
43
  getConfig,
44
44
  requestRevocation,
45
45
  getCertStatus,