pipedrive 13.2.0 → 13.2.1
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 +4 -0
- package/dist/ApiClient.js +7 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,10 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## 13.2.1
|
|
12
|
+
### Fixed
|
|
13
|
+
- Fixed wrong field name normalization for custom fields keys
|
|
14
|
+
|
|
11
15
|
## 13.2.0
|
|
12
16
|
### Changed
|
|
13
17
|
- Deprecate /v1/mailbox/mailMessages/{id} & /v1/mailbox/mailThreads/{id} response data property write_flag
|
package/dist/ApiClient.js
CHANGED
|
@@ -690,10 +690,16 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
690
690
|
var keyValue = obj[key];
|
|
691
691
|
var isArray = Array.isArray(keyValue);
|
|
692
692
|
var isObject = (0, _typeof2["default"])(keyValue) === 'object' && !isArray;
|
|
693
|
+
var isHash = /^[a-f0-9]{40}$/i.test(key);
|
|
693
694
|
if (isArray) keyValue = keyValue.map(function (kv) {
|
|
694
695
|
return (0, _typeof2["default"])(kv) === 'object' ? _this3.replaceCamelCaseObj(kv) : kv;
|
|
695
696
|
});
|
|
696
|
-
|
|
697
|
+
|
|
698
|
+
if (isHash) {
|
|
699
|
+
snakeCased[key] = isObject ? key : keyValue;
|
|
700
|
+
} else {
|
|
701
|
+
snakeCased[(0, _lodash.snakeCase)(key)] = isObject ? this.replaceCamelCaseObj(keyValue) : keyValue;
|
|
702
|
+
}
|
|
697
703
|
}
|
|
698
704
|
|
|
699
705
|
return snakeCased;
|