comic-vine-sdk 1.2.0 → 1.2.2
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/README.md +2 -4
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -34,8 +34,6 @@ There's a good change you may find an issue with the typings in the API response
|
|
|
34
34
|
|
|
35
35
|
## Roadmap
|
|
36
36
|
|
|
37
|
-
- Automatic Pagination
|
|
38
|
-
|
|
39
37
|
- Expandable responses
|
|
40
38
|
|
|
41
39
|
- Cached responses
|
|
@@ -213,7 +211,7 @@ const comicVine = new ComicVine('your-api-key-here');
|
|
|
213
211
|
|
|
214
212
|
The Comic Vine API provides offset based pagination, this is done by providing a `limit` and `offset` in the request. The `limit` is the number of items to be returned in one page and the offset is the number of items to skip.
|
|
215
213
|
|
|
216
|
-
To fetch a page with 50 results and then move to
|
|
214
|
+
To fetch a page with 50 results and then move to the next page:
|
|
217
215
|
|
|
218
216
|
```js
|
|
219
217
|
import ComicVine from 'comic-vine-sdk';
|
|
@@ -253,7 +251,7 @@ const comicVine = new ComicVine('your-api-key-here');
|
|
|
253
251
|
try {
|
|
254
252
|
const listOptions = {
|
|
255
253
|
filter: { name: 'The Boys' },
|
|
256
|
-
limit,
|
|
254
|
+
limit: 50,
|
|
257
255
|
};
|
|
258
256
|
|
|
259
257
|
let issueNames = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "comic-vine-sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "A JS/TS client for the Comic Vine API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"comic",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@semantic-release/changelog": "6.0.2",
|
|
53
|
+
"@semantic-release/git": "10.0.1",
|
|
53
54
|
"@types/clone-deep": "4.0.1",
|
|
54
55
|
"@types/jest": "29.1.1",
|
|
55
56
|
"@types/node": "16.11.59",
|