pipedrive 13.3.0 → 13.3.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 CHANGED
@@ -8,6 +8,16 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## 13.3.1
12
+ ### Fixed
13
+ - Date formatting in responses in the following entities and their respective fields:
14
+ - **activities**: `due_date`
15
+ - **deals**: `expected_close_date`
16
+ - **leads**: `expected_close_date`
17
+ - **subscriptions**: `due_at`, `start_date`, `end_date`
18
+
19
+ Those fields will be formatted as "2020-07-13" instead of "2020-07-13T00:00:00.000Z" in the request response.
20
+
11
21
  ## 13.3.0
12
22
  ### Added
13
23
  - Added `GET /billing/subscriptions/addons` endpoint
package/dist/ApiClient.js CHANGED
@@ -1056,7 +1056,11 @@ var ApiClient = /*#__PURE__*/function () {
1056
1056
  return String(data);
1057
1057
 
1058
1058
  case 'Date':
1059
- return ApiClient.parseDate(String(data));
1059
+ if (typeof data === 'string') {
1060
+ return String(data);
1061
+ } else {
1062
+ return ApiClient.parseDate(String(data));
1063
+ }
1060
1064
 
1061
1065
  case 'Blob':
1062
1066
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "13.3.0",
3
+ "version": "13.3.1",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",