Changes between Version 18 and Version 19 of Ticket #7360


Ignore:
Timestamp:
05/18/2019 01:42:09 PM (5 months ago)
Author:
mjethani
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7360 – Description

    v18 v19  
    77Expose API for accessing information contained within subscriptions.xml from outside Core 
    88 
    9 Introduce a new `recommendations({types} = {})` generator function in a new file `lib/recommendations.js` that yields the subscriptions in `data/subscriptions.json`. The first and only parameter represents the match criteria: if `types` is not `undefined`, it must be an array containing values like `"ads"`, `"circumvention"`, etc., and the function should yield only those entries that have a matching type. 
     9Introduce a new `*recommendations()` generator function in a new file `lib/recommendations.js` that yields `Recommendation` objects based on `data/subscriptions.json`. 
    1010 
    1111Also add a `test/recommendations.js`.