podcast-index-api
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -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) | ||
}, | ||
} | ||
} |
{ | ||
"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') | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24312
490