investira.sdk 2.4.26 → 2.4.27
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/lib/utils/arrays.js +7 -5
- package/lib/utils/formats.js +5 -2
- package/package.json +4 -4
package/lib/utils/arrays.js
CHANGED
|
@@ -172,13 +172,14 @@ const arrays = {
|
|
|
172
172
|
}
|
|
173
173
|
for (const xItem of xItens) {
|
|
174
174
|
//Força que valor seja uma string
|
|
175
|
-
const xTmp =
|
|
175
|
+
const xTmp = String(xItem).trim();
|
|
176
176
|
//Somente incluir itens não vázios
|
|
177
177
|
if (xTmp.length > 0) {
|
|
178
178
|
xArray.push(`${pPrefix}${xTmp}${pSuffix}`);
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
|
|
181
|
+
// Remove itens duplicados
|
|
182
|
+
return Array.from(new Set(xArray));
|
|
182
183
|
},
|
|
183
184
|
/**
|
|
184
185
|
* Remove itens duplicados de um array
|
|
@@ -191,9 +192,10 @@ const arrays = {
|
|
|
191
192
|
* @returns {Array} Novo array contendo apenas valores únicos
|
|
192
193
|
*/
|
|
193
194
|
removeDuplicated: pArray => {
|
|
194
|
-
|
|
195
|
-
return
|
|
196
|
-
}
|
|
195
|
+
if (!pArray) {
|
|
196
|
+
return [];
|
|
197
|
+
}
|
|
198
|
+
return Array.from(new Set(pArray));
|
|
197
199
|
},
|
|
198
200
|
/**
|
|
199
201
|
* Verifica se dois arrays são iguais
|
package/lib/utils/formats.js
CHANGED
|
@@ -293,15 +293,18 @@ const formats = {
|
|
|
293
293
|
'gmail.com',
|
|
294
294
|
'outlook.com',
|
|
295
295
|
'hotmail.com',
|
|
296
|
+
'live.com',
|
|
296
297
|
'icloud.com',
|
|
297
298
|
'me.com',
|
|
298
299
|
'zaz.com.br',
|
|
300
|
+
'bol.com.br',
|
|
299
301
|
'terra.com.br',
|
|
300
302
|
'ig.com.br',
|
|
301
303
|
'yahoo.com',
|
|
304
|
+
'msn.com',
|
|
305
|
+
'yahoo.com.br',
|
|
302
306
|
'globo.com',
|
|
303
|
-
'uol.com.br'
|
|
304
|
-
'yahoo.com.br'
|
|
307
|
+
'uol.com.br'
|
|
305
308
|
]);
|
|
306
309
|
|
|
307
310
|
const pvNorm = pStr => (pStr ?? '').toString().normalize('NFKC').trim().toLowerCase();
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "investira.sdk",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.27",
|
|
4
4
|
"author": "Investira",
|
|
5
5
|
"description": "Investira SDK",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"type": "commonjs",
|
|
8
8
|
"registry": true,
|
|
9
|
-
"raw": "investira.sdk@2.4.
|
|
9
|
+
"raw": "investira.sdk@2.4.27",
|
|
10
10
|
"escapedName": "investira.sdk",
|
|
11
|
-
"rawSpec": "2.4.
|
|
11
|
+
"rawSpec": "2.4.27",
|
|
12
12
|
"saveSpec": null,
|
|
13
|
-
"fetchSpec": "2.4.
|
|
13
|
+
"fetchSpec": "2.4.27",
|
|
14
14
|
"homepage": "https://investira.com.br/",
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=11.11.0 <=18.12",
|