Socket
Socket
Sign inDemoInstall

podcast-index-api

Package Overview
Dependencies
30
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.7 to 1.1.8

6

index.js

@@ -7,2 +7,3 @@ const got = require('got')

// https://api.podcastindex.org/developer_docs
// updated: https://podcastindex-org.github.io/docs-api/
//

@@ -26,2 +27,3 @@

const PATH_RECENT_NEWFEEDS = 'recent/newfeeds'
const PATH_STATS_CURRENT = 'stats/current'

@@ -178,3 +180,7 @@ const qs = (o) => '?' + querystring.stringify(o)

},
statsCurrent: async () => {
const response = await api(PATH_STATS_CURRENT)
return withResponse(response)
},
}
}

2

package.json
{
"name": "podcast-index-api",
"version": "1.1.7",
"version": "1.1.8",
"description": "JS lib for the Podcast Index API",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -50,7 +50,7 @@ jest.setTimeout(10000)

it('Add feed by URL', async () => {
const results = await api.addByFeedUrl(FEED_URL)
expect.assertions(1)
expect(results.status).toEqual('true')
})
// it('Add feed by URL', async () => {
// const results = await api.addByFeedUrl(FEED_URL)
// expect.assertions(1)
// expect(results.status).toEqual('true')
// })

@@ -189,1 +189,8 @@ // it('Add feed by iTunes ID', async () => {

})
it('Stats Current', async () => {
expect.assertions(2)
const results = await api.statsCurrent()
expect(results).toHaveProperty('status', 'true')
expect(results.stats).toHaveProperty('feedCountTotal')
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc