
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@mentor-medier/alert-bar-content-source-block
Advanced tools
Fusion News Theme collections content API content source block
@wpmedia/collections-content-source-blockThis is the content source that feeds the alert-bar-block. While the alert bar itself will refresh 30 seconds by default, this content source will refresh the cached results every two minutes. This is to not overwhelm the content API with simultaneous refreshes for any less intervals.
content/v4/collections?content_alias=alert-bar&website=<arcSite>&from=0&size=1&published=trueExample ANS schema that will be returned from the content source:
{ _id: 'VTKOTRJXEVATHG7MELTPZ2RIBU',
type: 'collection',
version: '0.7.0',
canonical_website: 'the-sun',
content_elements:
[ { _id: '55FCWHR6SRCQ3OIJJKWPWUGTBM',
type: 'story',
version: '0.10.4',
canonical_url:
'/news/2020/01/30/august-may-feel-like-washingtons-hottest-month-but-its-not/',
headlines: [Object],
subheadlines: [Object],
description: [Object],
language: '',
label: [Object],
taxonomy: [Object],
promo_items: [Object],
distributor: [Object],
canonical_website: 'the-sun',
display_date: '2020-01-30T14:47:46.926Z',
credits: [Object],
subtype: 'right-rail-template',
websites: [Object],
publish_date: '2020-02-21T16:23:46.063Z' } ],
content_aliases: [ 'alert-bar' ],
owner: { id: 'corecomponents' },
revision: { branch: 'default', published: true },
last_updated_date: '1970-01-01T00:00:00.000Z',
created_date: '1970-01-01T00:00:00.000Z',
website: 'the-sun'
}
None
120This is optional. Please add an additional context that would be important to know in order to use this block.
FAQs
Fusion News Theme collections content API content source block
The npm package @mentor-medier/alert-bar-content-source-block receives a total of 0 weekly downloads. As such, @mentor-medier/alert-bar-content-source-block popularity was classified as not popular.
We found that @mentor-medier/alert-bar-content-source-block demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.