@zerobounce/zero-bounce-sdk 1.0.0 → 1.1.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/README.md CHANGED
@@ -250,6 +250,33 @@ try {
250
250
  console.error(error);
251
251
  }
252
252
  ```
253
+ - ##### Email finder - Test a variety of patterns and combinations in real time until it identifies a valid business email.
254
+
255
+ ```javascript
256
+ // Parameters
257
+ // ----------
258
+ // domain: String
259
+ // The email domain for which to find the email format.
260
+ // first_name: String or null (Optional)
261
+ // The first name of the person whose email format is being searched.
262
+ // middle_name: String or null (Optional)
263
+ // The middle name of the person whose email format is being searched.
264
+ // last_name: String or null (Optional)
265
+ // The last name of the person whose email format is being searched.
266
+
267
+ const payload = {
268
+ domain: "<DOMAIN>",
269
+ first_name: "<FIRST_NAME>",
270
+ middle_name: "<MIDDLE_NAME>",
271
+ last_name: "<LAST_NAME>"
272
+ }
273
+
274
+ try {
275
+ const response = await zeroBounce.guessFormat(payload);
276
+ } catch (error) {
277
+ console.error(error);
278
+ }
279
+ ```
253
280
 
254
281
  **Any of the following email addresses can be used for testing the API, no credits are charged for these test email addresses:**
255
282
 
@@ -299,7 +326,7 @@ You should see an output like this
299
326
 
300
327
  ```bash
301
328
  Test Suites: 1 passed, 1 total
302
- Tests: 54 passed, 54 total
329
+ Tests: 58 passed, 58 total
303
330
  Snapshots: 0 total
304
331
  Time: 2.596 s, estimated 3 s
305
332
  Ran all test suites.
@@ -0,0 +1,330 @@
1
+ #### INSTALLATION
2
+
3
+ ```bash
4
+ npm install @zerobounce/zero-bounce-sdk
5
+ ```
6
+
7
+ #### USAGE
8
+
9
+ Add the script
10
+
11
+ ```HTML
12
+ <script src="<PATH_TO_SCRIPT/zeroBounceSDK.js"></script>
13
+ ```
14
+
15
+ ```HTML
16
+ <script>
17
+ const zeroBounce = new ZeroBounceSDK();
18
+ </script>
19
+ ```
20
+
21
+ OR
22
+
23
+ Add npm module
24
+
25
+ ```javascript
26
+ const ZeroBounceSDK = require('@zerobounce/zero-bounce-sdk')
27
+
28
+ const zeroBounce = new ZeroBounceSDK();
29
+ ```
30
+
31
+ Initialize the sdk with your api key:
32
+
33
+ ```javascript
34
+ zeroBounce.init("<YOUR_API_KEY>");
35
+ ```
36
+
37
+ NOTE: all the methods are asynchronous they have to be used with async / await or .then.catch
38
+
39
+ #### Examples
40
+
41
+ Then you can use any of the SDK methods, for example:
42
+
43
+ - ####### Check how many credits you have left on your account
44
+
45
+ ```javascript
46
+ try {
47
+ const response = await zeroBounce.getCredits();
48
+ } catch (error) {
49
+ console.error(error);
50
+ }
51
+ ```
52
+
53
+ - ####### Validate an email address
54
+
55
+ ```javascript
56
+ const email = "<EMAIL_ADDRESS>"; // The email address you want to validate
57
+ const ip_address = "127.0.0.1"; // The IP Address the email signed up from (Optional)
58
+
59
+ try {
60
+ const response = await zeroBounce.validateEmail(email, ip_address);
61
+ } catch (error) {
62
+ console.error(error);
63
+ }
64
+ ```
65
+
66
+ - ####### Get api usage from a start date to an end date
67
+
68
+ ```javascript
69
+ const startDate = "2018-01-01"; // The start date of when you want to view API usage
70
+ const endDate = "2023-12-12"; // The end date of when you want to view API usage
71
+
72
+ try {
73
+ const response = await zeroBounce.getApiUsage(startDate, endDate);
74
+ } catch (error) {
75
+ console.error(error);
76
+ }
77
+ ```
78
+
79
+ - ####### Validate a list of emails
80
+
81
+ ```javascript
82
+ const emailBatch = [
83
+ { email_address: "<EMAIL_ADDRESS>" },
84
+ { email_address: "<EMAIL_ADDRESS>" },
85
+ ]; // an array containing a list of email objects {email_address: "example@example.com"}
86
+
87
+ try {
88
+ const response = await zeroBounce.validateBatch(emailBatch);
89
+ } catch (error) {
90
+ console.error(error);
91
+ }
92
+ ```
93
+
94
+ - ####### Get data about an email activity
95
+
96
+ ```javascript
97
+ const email = "<EMAIL_ADDRESS>"; // The email address you want to get the activity for
98
+
99
+ try {
100
+ const response = await zeroBounce.getEmailActivity(email);
101
+ } catch (error) {
102
+ console.error(error);
103
+ }
104
+ ```
105
+
106
+ - ####### Send a csv file containing email addresses to be validated
107
+
108
+ ```javascript
109
+ // Parameters
110
+ // ----------
111
+ // file: File
112
+ // The csv or txt file to be submitted.
113
+ // email_address_column: number
114
+ // The column index of the email address in the file. Index starts from 1.
115
+ // return_url: str or null (Optional)
116
+ // The URL will be used to call back when the validation is completed.
117
+ // first_name_column: number or null (Optional)
118
+ // The column index of the first name column.
119
+ // last_name_column: number or null (Optional)
120
+ // The column index of the last name column.
121
+ // gender_column: number or null (Optional)
122
+ // The column index of the gender column.
123
+ // ip_address_column: number or null (Optional)
124
+ // The IP Address the email signed up from.
125
+ // has_header_row: Boolean (Optional)
126
+ // If the first row from the submitted file is a header row.
127
+ // remove_duplicate: Boolean (Optional)
128
+ // If you want the system to remove duplicate emails.
129
+ const payload = {
130
+ file: "<FILE>",
131
+ email_address_column: "<NUMBER_OF_COLUMN>", //example 3
132
+ return_url: "<RETURN_URL>", // (Optional)
133
+ first_name_column: "<NUMBER_OF_COLUMN>", //example 3 (Optional)
134
+ last_name_column: "<NUMBER_OF_COLUMN>", //example 3 (Optional)
135
+ gender_column: "<NUMBER_OF_COLUMN>", //example 3 (Optional)
136
+ ip_address_column: "<NUMBER_OF_COLUMN>", //example 3 (Optional)
137
+ has_header_row: true / false, // (Optional)
138
+ remove_duplicate: true / false, // (Optional)
139
+ };
140
+
141
+ try {
142
+ const response = await zeroBounce.sendFile(payload);
143
+ } catch (error) {
144
+ console.error(error);
145
+ }
146
+ ```
147
+
148
+ - ####### Send a csv file containing email addresses to get the scoring of the emails
149
+
150
+ ```javascript
151
+ // Parameters
152
+ // ----------
153
+ // file: File
154
+ // The csv or txt file to be submitted.
155
+ // email_address_column: number
156
+ // The column index of the email address in the file. Index starts from 1.
157
+ // return_url: str or null (Optional)
158
+ // The URL will be used to call back when the validation is completed.
159
+ // has_header_row: Boolean (Optional)
160
+ // If the first row from the submitted file is a header row.
161
+ // remove_duplicate: Boolean (Optional)
162
+ // If you want the system to remove duplicate emails.
163
+ const payload = {
164
+ file: "<FILE>",
165
+ email_address_column: "<NUMBER_OF_COLUMN>", //example 3
166
+ return_url: "<RETURN_URL>", // (Optional)
167
+ has_header_row: true / false,
168
+ remove_duplicate: true / false, // (Optional)
169
+ };
170
+
171
+ try {
172
+ const response = await zeroBounce.sendScoringFile(payload);
173
+ } catch (error) {
174
+ console.error(error);
175
+ }
176
+ ```
177
+
178
+ - ####### The completion status of a previously sent file
179
+
180
+ ```javascript
181
+ const fileId = "<FILE_ID>"; // The id of a previously sent file
182
+
183
+ try {
184
+ const response = await zeroBounce.getFileStatus(fileId);
185
+ } catch (error) {
186
+ console.error(error);
187
+ }
188
+ ```
189
+
190
+ - ####### The completion status of a previously sent scoring file
191
+
192
+ ```javascript
193
+ const fileId = "<FILE_ID>"; // The id of a previously sent file
194
+
195
+ try {
196
+ const response = await zeroBounce.getScoringFileStatus(fileId);
197
+ } catch (error) {
198
+ console.error(error);
199
+ }
200
+ ```
201
+
202
+ - ####### Get the file with the validated data
203
+
204
+ ```javascript
205
+ const fileId = "<FILE_ID>"; // The id of a previously sent file
206
+
207
+ try {
208
+ const response = await zeroBounce.getFile(fileId);
209
+ } catch (error) {
210
+ console.error(error);
211
+ }
212
+ ```
213
+
214
+ - ####### Get the file with the scoring data
215
+
216
+ ```javascript
217
+ const fileId = "<FILE_ID>"; // The id of a previously sent file
218
+
219
+ try {
220
+ const response = await zeroBounce.getScoringFile(fileId);
221
+ } catch (error) {
222
+ console.error(error);
223
+ }
224
+ ```
225
+
226
+ - ####### Delete the file with the validated data
227
+
228
+ ```javascript
229
+ const fileId = "<FILE_ID>"; // The id of a previously sent file
230
+
231
+ try {
232
+ const response = await zeroBounce.deleteFile(fileId);
233
+ } catch (error) {
234
+ console.error(error);
235
+ }
236
+ ```
237
+
238
+ - ####### Delete the file with the scoring data
239
+
240
+ ```javascript
241
+ const fileId = "<FILE_ID>"; // The id of a previously sent file
242
+
243
+ try {
244
+ const response = await zeroBounce.deleteScoringFile(fileId);
245
+ } catch (error) {
246
+ console.error(error);
247
+ }
248
+ ```
249
+
250
+ - ####### Email finder - Test a variety of patterns and combinations in real time until it identifies a valid business email.
251
+
252
+ ```javascript
253
+ // Parameters
254
+ // ----------
255
+ // domain: String
256
+ // The email domain for which to find the email format.
257
+ // first_name: String or null (Optional)
258
+ // The first name of the person whose email format is being searched.
259
+ // middle_name: String or null (Optional)
260
+ // The middle name of the person whose email format is being searched.
261
+ // last_name: String or null (Optional)
262
+ // The last name of the person whose email format is being searched.
263
+
264
+ const payload = {
265
+ domain: "<DOMAIN>",
266
+ first_name: "<FIRST_NAME>",
267
+ middle_name: "<MIDDLE_NAME>",
268
+ last_name: "<LAST_NAME>"
269
+ }
270
+
271
+ try {
272
+ const response = await zeroBounce.guessFormat(payload);
273
+ } catch (error) {
274
+ console.error(error);
275
+ }
276
+ ```
277
+
278
+ **Any of the following email addresses can be used for testing the API, no credits are charged for these test email addresses:**
279
+
280
+ - disposable@example.com
281
+ - invalid@example.com
282
+ - valid@example.com
283
+ - toxic@example.com
284
+ - donotmail@example.com
285
+ - spamtrap@example.com
286
+ - abuse@example.com
287
+ - unknown@example.com
288
+ - catch_all@example.com
289
+ - antispam_system@example.com
290
+ - does_not_accept_mail@example.com
291
+ - exception_occurred@example.com
292
+ - failed_smtp_connection@example.com
293
+ - failed_syntax_check@example.com
294
+ - forcible_disconnect@example.com
295
+ - global_suppression@example.com
296
+ - greylisted@example.com
297
+ - leading_period_removed@example.com
298
+ - mail_server_did_not_respond@example.com
299
+ - mail_server_temporary_error@example.com
300
+ - mailbox_quota_exceeded@example.com
301
+ - mailbox_not_found@example.com
302
+ - no_dns_entries@example.com
303
+ - possible_trap@example.com
304
+ - possible_typo@example.com
305
+ - role_based@example.com
306
+ - timeout_exceeded@example.com
307
+ - unroutable_ip_address@example.com
308
+ - free_email@example.com
309
+
310
+ **You can use this IP to test the GEO Location in the API.**
311
+
312
+ - 99.110.204.1
313
+
314
+ #### Development
315
+
316
+ After checking out the repo run tests
317
+
318
+ ```bash
319
+ npm test
320
+ ```
321
+
322
+ You should see an output like this
323
+
324
+ ```bash
325
+ Test Suites: 1 passed, 1 total
326
+ Tests: 54 passed, 54 total
327
+ Snapshots: 0 total
328
+ Time: 2.596 s, estimated 3 s
329
+ Ran all test suites.
330
+ ```
@@ -0,0 +1,306 @@
1
+ #### INSTALACIÓN
2
+
3
+ ```bash
4
+ npm install zero-bounce-sdk
5
+ ```
6
+
7
+ #### USO
8
+
9
+ Agregue el script
10
+
11
+ ```HTML
12
+ <script src="<RUTA_AL_SCRIPT/zeroBounceSDK.js"></script>
13
+ ```
14
+
15
+ ```HTML
16
+ <script>
17
+ const zeroBounce = new ZeroBounceSDK();
18
+ </script>
19
+ ```
20
+
21
+ O
22
+
23
+ Agregue el módulo npm
24
+
25
+ ```javascript
26
+ const ZeroBounceSDK = require('zero-bounce-sdk')
27
+
28
+ const zeroBounce = new ZeroBounceSDK();
29
+ ```
30
+
31
+ Inicialice el SDK con su clave de API:
32
+
33
+ ```javascript
34
+ zeroBounce.init("<SU_CLAVE_DE_API>");
35
+ ```
36
+
37
+ NOTA: todos los métodos son asíncronos y deben usarse con async / await o .then.catch.
38
+
39
+ #### Ejemplos
40
+
41
+ Luego puede utilizar cualquiera de los métodos del SDK, por ejemplo:
42
+
43
+ - ####### Verificar cuántos créditos le quedan en su cuenta
44
+
45
+ ```javascript
46
+ try {
47
+ const response = await zeroBounce.getCredits();
48
+ } catch (error) {
49
+ console.error(error);
50
+ }
51
+ ```
52
+
53
+ - ####### Validar una dirección de correo electrónico
54
+
55
+ ```javascript
56
+ const email = "<DIRECCIÓN_DE_CORREO_ELECTRÓNICO>"; // La dirección de correo electrónico que desea validar
57
+ const ip_address = "127.0.0.1"; // La dirección IP desde la cual se registró el correo electrónico (opcional)
58
+
59
+ try {
60
+ const response = await zeroBounce.validateEmail(email, ip_address);
61
+ } catch (error) {
62
+ console.error(error);
63
+ }
64
+ ```
65
+
66
+ - ####### Obtener el uso de la API desde una fecha de inicio hasta una fecha de finalización
67
+
68
+ ```javascript
69
+ const startDate = "2018-01-01"; // La fecha de inicio de cuando desea ver el uso de la API
70
+ const endDate = "2023-12-12"; // La fecha de finalización de cuando desea ver el uso de la API
71
+
72
+ try {
73
+ const response = await zeroBounce.getApiUsage(startDate, endDate);
74
+ } catch (error) {
75
+ console.error(error);
76
+ }
77
+ ```
78
+
79
+ - ####### Validar una lista de direcciones de correo electrónico
80
+
81
+ ```javascript
82
+ const emailBatch = [
83
+ { email_address: "<DIRECCIÓN_DE_CORREO_ELECTRÓNICO>" },
84
+ { email_address: "<DIRECCIÓN_DE_CORREO_ELECTRÓNICO>" },
85
+ ]; // un array que contiene una lista de objetos de correo electrónico {email_address: "ejemplo@ejemplo.com"}
86
+
87
+ try {
88
+ const response = await zeroBounce.validateBatch(emailBatch);
89
+ } catch (error) {
90
+ console.error(error);
91
+ }
92
+ ```
93
+
94
+ - ####### Obtener datos sobre la actividad de un correo electrónico
95
+
96
+ ```javascript
97
+ const email = "<DIRECCIÓN_DE_CORREO_ELECTRÓNICO>"; // La dirección de correo electrónico de la que desea obtener la actividad
98
+
99
+ try {
100
+ const response = await zeroBounce.getEmailActivity(email);
101
+ } catch (error) {
102
+ console.error(error);
103
+ }
104
+ ```
105
+
106
+ - ####### Enviar un archivo CSV que contenga direcciones de correo electrónico para validar
107
+
108
+ ```javascript
109
+ // Parámetros
110
+ // ----------
111
+ // file: File
112
+ // El archivo CSV o TXT que se enviará.
113
+ // email_address_column: number
114
+ // El índice de columna de la dirección de correo electrónico en el archivo. El índice comienza en 1.
115
+ // return_url: str o null (Opcional)
116
+ // La URL se utilizará para llamar de vuelta cuando
117
+
118
+ se complete la validación.
119
+ // first_name_column: number o null (Opcional)
120
+ // El índice de columna del nombre en el archivo.
121
+ // last_name_column: number o null (Opcional)
122
+ // El índice de columna del apellido en el archivo.
123
+ // gender_column: number o null (Opcional)
124
+ // El índice de columna del género en el archivo.
125
+ // ip_address_column: number o null (Opcional)
126
+ // La dirección IP desde la cual se registró el correo electrónico.
127
+ // has_header_row: Boolean (Opcional)
128
+ // Si la primera fila del archivo enviado es una fila de encabezado.
129
+ // remove_duplicate: Boolean (Opcional)
130
+ // Si desea que el sistema elimine los correos electrónicos duplicados.
131
+ const payload = {
132
+ file: "<ARCHIVO>",
133
+ email_address_column: "<NÚMERO_DE_COLUMNA>", // por ejemplo, 3
134
+ return_url: "<URL_DE_RETORNO>", // (Opcional)
135
+ first_name_column: "<NÚMERO_DE_COLUMNA>", // por ejemplo, 3 (Opcional)
136
+ last_name_column: "<NÚMERO_DE_COLUMNA>", // por ejemplo, 3 (Opcional)
137
+ gender_column: "<NÚMERO_DE_COLUMNA>", // por ejemplo, 3 (Opcional)
138
+ ip_address_column: "<NÚMERO_DE_COLUMNA>", // por ejemplo, 3 (Opcional)
139
+ has_header_row: true / false, // (Opcional)
140
+ remove_duplicate: true / false, // (Opcional)
141
+ };
142
+
143
+ try {
144
+ const response = await zeroBounce.sendFile(payload);
145
+ } catch (error) {
146
+ console.error(error);
147
+ }
148
+ ```
149
+
150
+ - ####### Enviar un archivo CSV que contenga direcciones de correo electrónico para obtener la puntuación de los correos electrónicos
151
+
152
+ ```javascript
153
+ // Parámetros
154
+ // ----------
155
+ // file: File
156
+ // El archivo CSV o TXT que se enviará.
157
+ // email_address_column: number
158
+ // El índice de columna de la dirección de correo electrónico en el archivo. El índice comienza en 1.
159
+ // return_url: str o null (Opcional)
160
+ // La URL se utilizará para llamar de vuelta cuando se complete la validación.
161
+ // has_header_row: Boolean (Opcional)
162
+ // Si la primera fila del archivo enviado es una fila de encabezado.
163
+ // remove_duplicate: Boolean (Opcional)
164
+ // Si desea que el sistema elimine los correos electrónicos duplicados.
165
+ const payload = {
166
+ file: "<ARCHIVO>",
167
+ email_address_column: "<NÚMERO_DE_COLUMNA>", // por ejemplo, 3
168
+ return_url: "<URL_DE_RETORNO>", // (Opcional)
169
+ has_header_row: true / false,
170
+ remove_duplicate: true / false, // (Opcional)
171
+ };
172
+
173
+ try {
174
+ const response = await zeroBounce.sendScoringFile(payload);
175
+ } catch (error) {
176
+ console.error(error);
177
+ }
178
+ ```
179
+
180
+ - ####### El estado de finalización de un archivo enviado anteriormente
181
+
182
+ ```javascript
183
+ const fileId = "<ID_DE_ARCHIVO>"; // El ID de un archivo enviado anteriormente
184
+
185
+ try {
186
+ const response = await zeroBounce.getFileStatus(fileId);
187
+ } catch (error) {
188
+ console.error(error);
189
+ }
190
+ ```
191
+
192
+ - ####### El estado de finalización de un archivo de puntuación enviado anteriormente
193
+
194
+ ```javascript
195
+ const fileId = "<ID_DE_ARCHIVO>"; // El ID de un archivo enviado anteriormente
196
+
197
+
198
+
199
+ try {
200
+ const response = await zeroBounce.getScoringFileStatus(fileId);
201
+ } catch (error) {
202
+ console.error(error);
203
+ }
204
+ ```
205
+
206
+ - ####### Obtener el archivo con los datos validados
207
+
208
+ ```javascript
209
+ const fileId = "<ID_DE_ARCHIVO>"; // El ID de un archivo enviado anteriormente
210
+
211
+ try {
212
+ const response = await zeroBounce.getFile(fileId);
213
+ } catch (error) {
214
+ console.error(error);
215
+ }
216
+ ```
217
+
218
+ - ####### Obtener el archivo con los datos de puntuación
219
+
220
+ ```javascript
221
+ const fileId = "<ID_DE_ARCHIVO>"; // El ID de un archivo enviado anteriormente
222
+
223
+ try {
224
+ const response = await zeroBounce.getScoringFile(fileId);
225
+ } catch (error) {
226
+ console.error(error);
227
+ }
228
+ ```
229
+
230
+ - ####### Eliminar el archivo con los datos validados
231
+
232
+ ```javascript
233
+ const fileId = "<ID_DE_ARCHIVO>"; // El ID de un archivo enviado anteriormente
234
+
235
+ try {
236
+ const response = await zeroBounce.deleteFile(fileId);
237
+ } catch (error) {
238
+ console.error(error);
239
+ }
240
+ ```
241
+
242
+ - ####### Eliminar el archivo con los datos de puntuación
243
+
244
+ ```javascript
245
+ const fileId = "<ID_DE_ARCHIVO>"; // El ID de un archivo enviado anteriormente
246
+
247
+ try {
248
+ const response = await zeroBounce.deleteScoringFile(fileId);
249
+ } catch (error) {
250
+ console.error(error);
251
+ }
252
+ ```
253
+
254
+ **Puede utilizar cualquiera de las siguientes direcciones de correo electrónico para probar la API, no se cobran créditos por estas direcciones de correo electrónico de prueba:**
255
+
256
+ - disposable@example.com
257
+ - invalid@example.com
258
+ - valid@example.com
259
+ - toxic@example.com
260
+ - donotmail@example.com
261
+ - spamtrap@example.com
262
+ - abuse@example.com
263
+ - unknown@example.com
264
+ - catch_all@example.com
265
+ - antispam_system@example.com
266
+ - does_not_accept_mail@example.com
267
+ - exception_occurred@example.com
268
+ - failed_smtp_connection@example.com
269
+ - failed_syntax_check@example.com
270
+ - forcible_disconnect@example.com
271
+ - global_suppression@example.com
272
+ - greylisted@example.com
273
+ - leading_period_removed@example.com
274
+ - mail_server_did_not_respond@example.com
275
+ - mail_server_temporary_error@example.com
276
+ - mailbox_quota_exceeded@example.com
277
+ - mailbox_not_found@example.com
278
+ - no_dns_entries@example.com
279
+ - possible_trap@example.com
280
+ - possible_typo@example.com
281
+ - role_based@example.com
282
+ - timeout_exceeded@example.com
283
+ - unroutable_ip_address@example.com
284
+ - free_email@example.com
285
+
286
+ **Puede utilizar esta dirección IP para probar la ubicación geográfica en la API.**
287
+
288
+ - 99.110.204.1
289
+
290
+ #### Desarrollo
291
+
292
+ Después de verificar el repositorio, ejecute las pruebas
293
+
294
+ ```bash
295
+ npm test
296
+ ```
297
+
298
+ Debería ver una salida como esta
299
+
300
+ ```bash
301
+ Test Suites: 1 passed, 1 total
302
+ Tests: 54 passed, 54 total
303
+ Snapshots: 0 total
304
+ Time: 2.596 s, estimated 3 s
305
+ Ran all test suites.
306
+ ```
package/jest.config.js CHANGED
@@ -1,5 +1,6 @@
1
1
  module.exports = {
2
- transform: {
3
- "^.+\\.(js|jsx)$": "babel-jest",
4
- }
5
- };
2
+ transform: {
3
+ "^.+\\.(js|jsx)$": "babel-jest",
4
+ },
5
+ testEnvironment: "jsdom",
6
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerobounce/zero-bounce-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "This SDK contains methods for interacting easily with ZeroBounce API. More information about ZeroBounce you can find in the official documentation.",
5
5
  "main": "dist/zeroBounceSDK.js",
6
6
  "scripts": {
@@ -22,7 +22,9 @@
22
22
  "@babel/preset-env": "^7.21.4",
23
23
  "babel-jest": "^29.5.0",
24
24
  "jest": "^29.5.0",
25
+ "jest-environment-jsdom": "^29.6.4",
25
26
  "webpack": "^5.78.0",
26
- "webpack-cli": "^5.0.1"
27
+ "webpack-cli": "^5.0.1",
28
+ "whatwg-fetch": "^3.6.18"
27
29
  }
28
30
  }