@studyportals/fawkes 8.0.2-2 → 8.0.2-4

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.
@@ -17,10 +17,10 @@ export class MinimumAmountOfResultsRule {
17
17
  throw new DependencyMissingError('SearchApiClient');
18
18
  }
19
19
  const count = await this.searchApiClient.getCount(filterKeyValues);
20
- if (Object.keys(filterKeyValues).includes(FilterKey.DURATION) && Object.keys(filterKeyValues).length === 1) {
20
+ if (filterKeyValues.has(FilterKey.DURATION)) {
21
21
  const filterKey = FilterKey.DURATION;
22
22
  const filterValue = filterKeyValues.get(filterKey);
23
- console.log(`DEBUG: Duration filter applied alone, filter: ${filterValue} found results: ${count}`); // eslint-disable-line no-console
23
+ console.log(`DEBUG: Duration filter applied alone, filter key: ${filterKey}, filter value: ${filterValue} found results: ${count}`); // eslint-disable-line no-console
24
24
  }
25
25
  return count >= (pageNumber - 1) * this.maximumPageSize + this.minimumResultsCount;
26
26
  }
@@ -3,7 +3,6 @@ export class BaseSitemapUrlGeneratorManager {
3
3
  async generateUrls() {
4
4
  const map = new Map();
5
5
  for (const policy of this.policies) {
6
- console.debug(`Generating sitemap urls for policy: ${policy.filterCombination}`); // eslint-disable-line no-console
7
6
  const filterCombination = policy.filterCombination;
8
7
  const urls = await policy.generateSitemapUrls();
9
8
  console.debug(`Generated ${urls.length} urls for policy: ${filterCombination}`); // eslint-disable-line no-console
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/fawkes",
3
- "version": "8.0.2-2",
3
+ "version": "8.0.2-4",
4
4
  "description": "A package to centralize SEO related logic for SBLP and Sitemap Generator.",
5
5
  "files": [
6
6
  "./dist"