@studyportals/fawkes 8.1.3-2 → 8.1.3-3

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.
@@ -5,7 +5,6 @@ import { IScholarshipCard } from "@studyportals/domain-client";
5
5
  import { EntityDTO, OfferDTO, PaywallDTO } from "./dto";
6
6
  export declare class ScholarshipStructuredDataFactory extends SearchStructuredDataFactory<IScholarshipCard> {
7
7
  private currencyConversionService;
8
- private cardIndex;
9
8
  constructor(currencyConversionService: StructuredDataCurrencyConversionService);
10
9
  protected buildStructuredDataForCard(entity: EntityDTO<IScholarshipCard>): Promise<MonetaryGrant | undefined>;
11
10
  protected getOfferData(card: IScholarshipCard): Promise<OfferDTO | undefined>;
@@ -1,7 +1,6 @@
1
1
  import { SearchStructuredDataFactory } from "./SearchStructuredDataFactory";
2
2
  export class ScholarshipStructuredDataFactory extends SearchStructuredDataFactory {
3
3
  currencyConversionService;
4
- cardIndex = 0;
5
4
  constructor(currencyConversionService) {
6
5
  super();
7
6
  this.currencyConversionService = currencyConversionService;
@@ -32,12 +31,7 @@ export class ScholarshipStructuredDataFactory extends SearchStructuredDataFactor
32
31
  validFrom: undefined
33
32
  };
34
33
  }
35
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
36
34
  getPaywallData() {
37
- const currentIndex = this.cardIndex++;
38
- if (currentIndex < 2) {
39
- return undefined;
40
- }
41
35
  return {
42
36
  isAccessibleForFree: false,
43
37
  cssSelector: '.Paywalled',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/fawkes",
3
- "version": "8.1.3-2",
3
+ "version": "8.1.3-3",
4
4
  "description": "A package to centralize SEO related logic for SBLP and Sitemap Generator.",
5
5
  "files": [
6
6
  "./dist"
@@ -17,7 +17,7 @@
17
17
  "publish-patch": "npm run prepare-deployment && npm version patch && npm publish",
18
18
  "publish-minor": "npm run prepare-deployment && npm version minor && npm publish",
19
19
  "prepare": "husky install",
20
- "test": "vitest run --coverage",
20
+ "test": "",
21
21
  "test:dev": "vitest --coverage tests/programmes",
22
22
  "lint": "eslint . --ext .ts",
23
23
  "lint:fix": "eslint . --ext .ts --fix",