pipedrive 27.1.1 → 27.2.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.
Files changed (2) hide show
  1. package/README.md +5 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -49,10 +49,12 @@ app.listen(PORT, () => {
49
49
 
50
50
  app.get("/", async (req, res) => {
51
51
  const dealsApi = new DealsApi(apiConfig);
52
- const response = await dealsApi.getDeals();
53
- const { data: deals } = response;
52
+ const responseAllDeals = await dealsApi.getDeals();
53
+ const { data: deals } = responseAllDeals;
54
+ const responseOneDeal = await dealsApi.getDeal({ id: 1 });
55
+ const { data: deal } = responseOneDeal;
54
56
 
55
- res.send(deals);
57
+ res.send({ deals, deal });
56
58
  });
57
59
  ```
58
60
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "27.1.1",
3
+ "version": "27.2.0",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "homepage": "https://developers.pipedrive.com",
@@ -35,7 +35,7 @@
35
35
  "fs": false
36
36
  },
37
37
  "dependencies": {
38
- "axios": "^1.3.3",
38
+ "axios": "^1.9.0",
39
39
  "qs": "^6.11.0"
40
40
  },
41
41
  "devDependencies": {