app-store-scraper
app-store-scraper copied to clipboard
Function privacy returns "[Array]"
Description:
Store.privacy function is not returning words/phrases like "Email Address", "Phone Number" as shown in the provided example in Readme, now it returns "[Array]" under "dataCategories" and "purposes" sections (see example below).
Example code:
var store = require('app-store-scraper');
store.privacy({
id: 324684580,
})
.then(console.log)
.catch(console.log);
Error message:
{
managePrivacyChoicesUrl: null,
privacyTypes: [
{
privacyType: 'Data Used to Track You',
identifier: 'DATA_USED_TO_TRACK_YOU',
description: 'The following data may be used to track you across apps and websites owned by other companies:',
dataCategories: [Array],
purposes: []
},
{
privacyType: 'Data Linked to You',
identifier: 'DATA_LINKED_TO_YOU',
description: 'The following data, which may be collected and linked to your identity, may be used for the following purposes:',
dataCategories: [],
purposes: [Array]
}
]
}
Looks to me like this is just because of the console.log function? Try calling JSON.stringify first.