investira.sdk 2.3.4 → 2.3.5

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/CHANGELOG.md CHANGED
@@ -466,3 +466,11 @@ O contrutor para a criação das mensagem foi alterado.
466
466
  # 2.3.3
467
467
 
468
468
  - [strings] Otimização da função toTitleCase
469
+
470
+ # 2.3.4
471
+
472
+ - Atualização de dependência
473
+
474
+ # 2.3.5
475
+
476
+ - [numbers] Verifica texto 'null' ou 'undefined' na função toNumber
@@ -58,7 +58,7 @@ const formats = {
58
58
  },
59
59
 
60
60
  /**
61
- * Retorna o número simplificado com 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'
61
+ * Retorna o número simplificado com 'mil', 'mi', 'bi', 'tri', 'quatri', 'quint', 'sext'
62
62
  *
63
63
  * @param {number} pValue Elemento a ser verificado
64
64
  * @param {number} [pDecimalPlaces=0] Quantidade de casas decimais
@@ -70,7 +70,7 @@ const formats = {
70
70
  },
71
71
 
72
72
  /**
73
- * Retorna o número simplificado com 'mil', 'mi', 'bi', 'tri', 'quatri', 'quint', 'sext'
73
+ * Retorna o número simplificado com 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'
74
74
  *
75
75
  * @param {number} pValue Elemento a ser verificado
76
76
  * @param {number} [pDecimalPlaces=0] Quantidade de casas decimais
@@ -63,7 +63,7 @@ const numbers = {
63
63
  if (isNumber(pValue)) {
64
64
  return pValue;
65
65
  }
66
- if (isString(pValue)) {
66
+ if (isString(pValue) && pValue !== 'null' && pValue !== 'undefined') {
67
67
  pValue = pValue.trim();
68
68
  if (pValue !== '') {
69
69
  if (pDecimalPointIsComma) {
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "investira.sdk",
3
- "version": "2.3.4",
3
+ "version": "2.3.5",
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.3.4",
9
+ "raw": "investira.sdk@2.3.5",
10
10
  "escapedName": "investira.sdk",
11
- "rawSpec": "2.3.4",
11
+ "rawSpec": "2.3.5",
12
12
  "saveSpec": null,
13
- "fetchSpec": "2.3.4",
13
+ "fetchSpec": "2.3.5",
14
14
  "homepage": "https://investira.com.br/",
15
15
  "engines": {
16
16
  "node": ">=11.11.0 <=18.12",