pipedrive 13.1.2 → 13.1.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
@@ -7,6 +7,9 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e
7
7
  For public Changelog covering all changes done to Pipedrive’s API, webhooks and app extensions platforms, see [public Changelog](https://pipedrive.readme.io/docs/changelog) with discussion area in [Developers Community](https://devcommunity.pipedrive.com/c/documentation/changelog/19).
8
8
 
9
9
  ## [Unreleased]
10
+ ## 13.1.3
11
+ ### Fixed
12
+ - Fix replaceCamelCaseObj is not defined reference issue in ApiClient
10
13
 
11
14
  ## 13.1.2
12
15
  ### Fixed
package/dist/ApiClient.js CHANGED
@@ -669,7 +669,7 @@ var ApiClient = /*#__PURE__*/function () {
669
669
  }, _callee, this, [[20, 26]]);
670
670
  }));
671
671
 
672
- function callApi(_x2, _x3, _x4, _x5, _x6, _x7, _x8, _x9, _x10, _x11, _x12, _x13) {
672
+ function callApi(_x, _x2, _x3, _x4, _x5, _x6, _x7, _x8, _x9, _x10, _x11, _x12) {
673
673
  return _callApi.apply(this, arguments);
674
674
  }
675
675
 
@@ -681,17 +681,9 @@ var ApiClient = /*#__PURE__*/function () {
681
681
 
682
682
  }, {
683
683
  key: "replaceCamelCaseObj",
684
- value: function (_replaceCamelCaseObj) {
685
- function replaceCamelCaseObj(_x) {
686
- return _replaceCamelCaseObj.apply(this, arguments);
687
- }
688
-
689
- replaceCamelCaseObj.toString = function () {
690
- return _replaceCamelCaseObj.toString();
691
- };
684
+ value: function replaceCamelCaseObj(obj) {
685
+ var _this3 = this;
692
686
 
693
- return replaceCamelCaseObj;
694
- }(function (obj) {
695
687
  var snakeCased = {};
696
688
 
697
689
  for (var key in obj) {
@@ -699,9 +691,9 @@ var ApiClient = /*#__PURE__*/function () {
699
691
  var isArray = Array.isArray(keyValue);
700
692
  var isObject = (0, _typeof2["default"])(keyValue) === 'object' && !isArray;
701
693
  if (isArray) keyValue = keyValue.map(function (kv) {
702
- return (0, _typeof2["default"])(kv) === 'object' ? replaceCamelCaseObj(kv) : kv;
694
+ return (0, _typeof2["default"])(kv) === 'object' ? _this3.replaceCamelCaseObj(kv) : kv;
703
695
  });
704
- snakeCased[(0, _lodash.snakeCase)(key)] = isObject ? replaceCamelCaseObj(keyValue) : keyValue;
696
+ snakeCased[(0, _lodash.snakeCase)(key)] = isObject ? this.replaceCamelCaseObj(keyValue) : keyValue;
705
697
  }
706
698
 
707
699
  return snakeCased;
@@ -710,7 +702,7 @@ var ApiClient = /*#__PURE__*/function () {
710
702
  * Checks whether the API supports oauth2 type authorization.
711
703
  * @returns {Boolean} Whether oauth2 type authorization is supported by the API.
712
704
  */
713
- )
705
+
714
706
  }, {
715
707
  key: "isOauth2Supported",
716
708
  value: function isOauth2Supported() {
@@ -834,7 +826,7 @@ var ApiClient = /*#__PURE__*/function () {
834
826
  }, _callee2, this, [[10, 18]]);
835
827
  }));
836
828
 
837
- function authorize(_x14) {
829
+ function authorize(_x13) {
838
830
  return _authorize.apply(this, arguments);
839
831
  }
840
832
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "13.1.2",
3
+ "version": "13.1.3",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",