investira.sdk 2.4.1 → 2.4.3

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
@@ -553,3 +553,11 @@ O contrutor para a criação das mensagem foi alterado.
553
553
  # 2.4.0
554
554
 
555
555
  - Atualização do Axios
556
+
557
+ # 2.4.1
558
+
559
+ - Atualização do investira.data
560
+
561
+ # 2.4.2
562
+
563
+ - Atualização do investira.data
@@ -20,7 +20,11 @@ const validators = {
20
20
  * @return {boolean} Se é nulo
21
21
  */
22
22
  isNull: toValidate => {
23
- return toValidate === null || validators.isUndefined(toValidate);
23
+ return (
24
+ toValidate === null ||
25
+ validators.isUndefined(toValidate) ||
26
+ String(toValidate).toLocaleLowerCase() === 'null'
27
+ );
24
28
  },
25
29
 
26
30
  /**
@@ -104,7 +108,9 @@ const validators = {
104
108
  if (toValidate === undefined) {
105
109
  return true;
106
110
  }
107
- return validators.trueTypeOf(toValidate) === 'undefined';
111
+ return (
112
+ validators.trueTypeOf(toValidate) === 'undefined' || String(toValidate).toLocaleLowerCase() === 'undefined'
113
+ );
108
114
  },
109
115
 
110
116
  /**
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "investira.sdk",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
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.1",
9
+ "raw": "investira.sdk@2.4.3",
10
10
  "escapedName": "investira.sdk",
11
- "rawSpec": "2.4.1",
11
+ "rawSpec": "2.4.3",
12
12
  "saveSpec": null,
13
- "fetchSpec": "2.4.1",
13
+ "fetchSpec": "2.4.3",
14
14
  "homepage": "https://investira.com.br/",
15
15
  "engines": {
16
16
  "node": ">=11.11.0 <=18.12",
@@ -38,7 +38,7 @@
38
38
  "axios": "^1.6.8",
39
39
  "deep-diff": "1.0.2",
40
40
  "flatted": "3.2.9",
41
- "investira.data": "^1.3.10",
41
+ "investira.data": "^1.3.11",
42
42
  "moment": "^2.30.1"
43
43
  },
44
44
  "devDependencies": {