Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@bbc/psammead-amp-geo
Advanced tools
The psammead-amp-geo
component is an <amp-geo>
element to be used for AMP pages. It has a defined set of ISO country groups that we set for our privacy and cookie banners on AMP pages.
npm install @bbc/psammead-amp-geo
Argument | Type | Required | Default | Example |
---|---|---|---|---|
No props. |
When using psammead-amp-geo
, you should firstly include this script in the head of the page:
<script
async
custom-element="amp-geo"
src="https://cdn.ampproject.org/v0/amp-geo-0.1.js"
/>
Then you can import the AmpGeo component & use it in conjunction with <amp-consent>
import AmpGeo from '@bbc/psammead-amp-geo';
const Wrapper = () => (
<>
<AmpGeo />
<amp-consent id="uniqueId" layout="nodisplay">
<script
type="application/json"
>
{
consents: {
'user-consent': {
promptIfUnknownForGeoGroup: 'eea',
promptUI: 'promptId',
},
},
}
</script>
</amp-consent>
</>
);
Use this component only on AMP pages when you need to have geo-location constrained to a specific list of countries in the EEA, also including Channel Islands and overseas territories.
The psammead-amp-geo
is an <amp-geo>
element.
Psammead is completely open source. We are grateful for any contributions, whether they be new components, bug fixes or general improvements. Please see our primary contributing guide which can be found at the root of the Psammead respository.
We welcome feedback and help on this work. By participating in this project, you agree to abide by the code of conduct. Please take a moment to read it.
Psammead is Apache 2.0 licensed.
FAQs
React component for AMP Geo
The npm package @bbc/psammead-amp-geo receives a total of 3 weekly downloads. As such, @bbc/psammead-amp-geo popularity was classified as not popular.
We found that @bbc/psammead-amp-geo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 39 open source maintainers 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.