investira.sdk 2.4.2 → 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.
@@ -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.2",
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.2",
9
+ "raw": "investira.sdk@2.4.3",
10
10
  "escapedName": "investira.sdk",
11
- "rawSpec": "2.4.2",
11
+ "rawSpec": "2.4.3",
12
12
  "saveSpec": null,
13
- "fetchSpec": "2.4.2",
13
+ "fetchSpec": "2.4.3",
14
14
  "homepage": "https://investira.com.br/",
15
15
  "engines": {
16
16
  "node": ">=11.11.0 <=18.12",