@begapp/sdk 1.0.9 → 1.1.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/client.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@begapp/sdk",
3
- "version": "1.0.9",
3
+ "version": "1.1.1",
4
4
  "description": "SDK para interactuar con el servicio de notificaciones de Bega App",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/src/client.js CHANGED
@@ -5,8 +5,8 @@ var claveSecreta = '';
5
5
 
6
6
  export function configurarSDKBegaApp({ apiKey, urlApi, secretKey }) {
7
7
  if (!apiKey) throw new Error("Debes proporcionar una API key");
8
- if (!url) throw new Error("Debes proporcionar la URL de la API Bega");
9
- if (!secret) throw new Error("Debes proporcionar la URL de la API Bega");
8
+ if (!urlApi) throw new Error("Debes proporcionar la URL de la API Bega");
9
+ if (!secretKey) throw new Error("Debes proporcionar la URL de la API Bega");
10
10
 
11
11
  claveSecreta = secretKey;
12
12