app-store-scraper icon indicating copy to clipboard operation
app-store-scraper copied to clipboard

Function privacy returns "[Array]"

Open xxccm opened this issue 4 years ago • 2 comments

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]
    }
  ]
}

xxccm avatar Jul 01 '21 22:07 xxccm

Looks to me like this is just because of the console.log function? Try calling JSON.stringify first.

kasnder avatar May 18 '22 09:05 kasnder