New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mendeley/api

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mendeley/api - npm Package Compare versions

Comparing version 5.0.4 to 6.0.0

3

lib/api/documents.js

@@ -194,3 +194,4 @@ 'use strict';

'Accept': MIME_TYPES.DOCUMENT
}
},
responseFilter: utils.paginationFilter
}),

@@ -197,0 +198,0 @@

{
"name": "@mendeley/api",
"version": "5.0.4",
"version": "6.0.0",
"description": "Mendeley API JavaScript SDK",

@@ -39,3 +39,3 @@ "directories": {

"karma": "^1.1.2",
"karma-chrome-launcher": "^1.0.1",
"karma-chrome-launcher": "^2.0.0",
"karma-coverage": "^1.1.1",

@@ -48,9 +48,10 @@ "karma-firefox-launcher": "^1.0.0",

"mversion": "^1.3.0",
"nyc": "^7.1.0",
"nyc": "^8.3.0",
"pre-commit": "^1.1.3",
"serial-jasmine": "^0.1.1",
"simple-oauth2": "^0.7.0",
"simple-oauth2": "^1.0.0",
"webpack": "^1.8.5"
},
"dependencies": {
"axios": "^0.13.1",
"axios": "^0.14.0",
"bluebird": "^3.4.0",

@@ -69,3 +70,7 @@ "form-urlencoded": "^1.4.1",

]
}
},
"pre-commit": [
"lint",
"test"
]
}

@@ -158,1 +158,19 @@ # UPGRADING

```
## Upgrading to v6.x
1. Pagination has been added to the `document.search` method. Now, the result looks like what calls to `list` methods would return.
```javascript
api.documents.search(searchParams)
.then(function (firstResultPage) {
console.info('I have ' + firstResultPage.total + 'search result items in total');
console.info('The items on the first page are ' + firstResultPage.items);
return firstResultPage.next();
})
.then(function (secondResultPage) {
console.info('Now I am on the next page')
});
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc