@newsteam/cosmos
Advanced tools
Comparing version
@@ -31,2 +31,6 @@ import type { Request, RequestOptions, Response } from "../request"; | ||
subSection?: string; | ||
/** | ||
* Publication third section. | ||
*/ | ||
thirdsection?: string; | ||
}, options?: RequestOptions): Promise<Response<PartialArticle[]>>; | ||
@@ -33,0 +37,0 @@ } |
@@ -13,5 +13,7 @@ "use strict"; | ||
const defaults = { | ||
next: this.options.next.revalidate.getPopularArticles === undefined ? undefined : { | ||
revalidate: this.options.next.revalidate.getPopularArticles, | ||
}, | ||
next: this.options.next.revalidate.getPopularArticles === undefined | ||
? undefined | ||
: { | ||
revalidate: this.options.next.revalidate.getPopularArticles, | ||
}, | ||
}; | ||
@@ -18,0 +20,0 @@ return this.request.fetch({ |
@@ -177,2 +177,6 @@ import type { Request, RequestOptions, Response } from "../request"; | ||
/** | ||
* filter articles based on third section | ||
*/ | ||
thirdsection?: string; | ||
/** | ||
* if False and workflow is being used, page 1 will not respect limit | ||
@@ -179,0 +183,0 @@ */ |
@@ -13,5 +13,7 @@ "use strict"; | ||
const defaults = { | ||
next: this.options.next.revalidate.get === undefined ? undefined : { | ||
revalidate: this.options.next.revalidate.get, | ||
}, | ||
next: this.options.next.revalidate.get === undefined | ||
? undefined | ||
: { | ||
revalidate: this.options.next.revalidate.get, | ||
}, | ||
}; | ||
@@ -29,5 +31,7 @@ return this.request.fetch({ | ||
const defaults = { | ||
next: this.options.next.revalidate.get === undefined ? undefined : { | ||
revalidate: this.options.next.revalidate.get, | ||
}, | ||
next: this.options.next.revalidate.get === undefined | ||
? undefined | ||
: { | ||
revalidate: this.options.next.revalidate.get, | ||
}, | ||
}; | ||
@@ -45,5 +49,7 @@ return this.request.fetch({ | ||
const defaults = { | ||
next: this.options.next.revalidate.getAll === undefined ? undefined : { | ||
revalidate: this.options.next.revalidate.getAll, | ||
}, | ||
next: this.options.next.revalidate.getAll === undefined | ||
? undefined | ||
: { | ||
revalidate: this.options.next.revalidate.getAll, | ||
}, | ||
}; | ||
@@ -50,0 +56,0 @@ return this.request.fetch({ |
@@ -31,2 +31,6 @@ import type { Request, RequestOptions, Response } from "../request"; | ||
subSection?: string; | ||
/** | ||
* Publication third section. | ||
*/ | ||
thirdsection?: string; | ||
}, options?: RequestOptions): Promise<Response<PartialArticle[]>>; | ||
@@ -33,0 +37,0 @@ } |
@@ -10,5 +10,7 @@ export class AnalyticsModule { | ||
const defaults = { | ||
next: this.options.next.revalidate.getPopularArticles === undefined ? undefined : { | ||
revalidate: this.options.next.revalidate.getPopularArticles, | ||
}, | ||
next: this.options.next.revalidate.getPopularArticles === undefined | ||
? undefined | ||
: { | ||
revalidate: this.options.next.revalidate.getPopularArticles, | ||
}, | ||
}; | ||
@@ -15,0 +17,0 @@ return this.request.fetch({ |
@@ -177,2 +177,6 @@ import type { Request, RequestOptions, Response } from "../request"; | ||
/** | ||
* filter articles based on third section | ||
*/ | ||
thirdsection?: string; | ||
/** | ||
* if False and workflow is being used, page 1 will not respect limit | ||
@@ -179,0 +183,0 @@ */ |
@@ -10,5 +10,7 @@ export class ArticlesModule { | ||
const defaults = { | ||
next: this.options.next.revalidate.get === undefined ? undefined : { | ||
revalidate: this.options.next.revalidate.get, | ||
}, | ||
next: this.options.next.revalidate.get === undefined | ||
? undefined | ||
: { | ||
revalidate: this.options.next.revalidate.get, | ||
}, | ||
}; | ||
@@ -26,5 +28,7 @@ return this.request.fetch({ | ||
const defaults = { | ||
next: this.options.next.revalidate.get === undefined ? undefined : { | ||
revalidate: this.options.next.revalidate.get, | ||
}, | ||
next: this.options.next.revalidate.get === undefined | ||
? undefined | ||
: { | ||
revalidate: this.options.next.revalidate.get, | ||
}, | ||
}; | ||
@@ -42,5 +46,7 @@ return this.request.fetch({ | ||
const defaults = { | ||
next: this.options.next.revalidate.getAll === undefined ? undefined : { | ||
revalidate: this.options.next.revalidate.getAll, | ||
}, | ||
next: this.options.next.revalidate.getAll === undefined | ||
? undefined | ||
: { | ||
revalidate: this.options.next.revalidate.getAll, | ||
}, | ||
}; | ||
@@ -47,0 +53,0 @@ return this.request.fetch({ |
{ | ||
"name": "@newsteam/cosmos", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"author": "newsteam.io", | ||
@@ -5,0 +5,0 @@ "license": "ISC", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
403232
0.22%8347
0.38%