investira.sdk 2.3.23 → 2.4.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/CHANGELOG.md CHANGED
@@ -545,3 +545,11 @@ O contrutor para a criação das mensagem foi alterado.
545
545
  # 2.3.23
546
546
 
547
547
  - [dates] scheduleToDate correção para dia da semana '0' .
548
+
549
+ # 2.3.24
550
+
551
+ - [validators] Otimização do isObject.
552
+
553
+ # 2.4.0
554
+
555
+ - Atualização do Axios
@@ -54,7 +54,10 @@ const validators = {
54
54
  * @returns {boolean}
55
55
  */
56
56
  isObject: toValidate => {
57
- return toValidate && validators.trueTypeOf(toValidate) === 'object' && toValidate.constructor === Object;
57
+ return (
58
+ toValidate && (toValidate.constructor === Object || Object.getPrototypeOf(toValidate) === Object.prototype)
59
+ );
60
+ // return toValidate && validators.trueTypeOf(toValidate) === 'object' && toValidate.constructor === Object;
58
61
  },
59
62
 
60
63
  /**
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "investira.sdk",
3
- "version": "2.3.23",
3
+ "version": "2.4.0",
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.23",
9
+ "raw": "investira.sdk@2.4.0",
10
10
  "escapedName": "investira.sdk",
11
- "rawSpec": "2.3.23",
11
+ "rawSpec": "2.4.0",
12
12
  "saveSpec": null,
13
- "fetchSpec": "2.3.23",
13
+ "fetchSpec": "2.4.0",
14
14
  "homepage": "https://investira.com.br/",
15
15
  "engines": {
16
16
  "node": ">=11.11.0 <=18.12",
@@ -35,7 +35,7 @@
35
35
  "_test": "nodemon ./_tests/test"
36
36
  },
37
37
  "dependencies": {
38
- "axios": "1.5.1",
38
+ "axios": "^1.6.8",
39
39
  "deep-diff": "1.0.2",
40
40
  "flatted": "3.2.9",
41
41
  "investira.data": "^1.3.8",