Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@envato/cookie-consent
Advanced tools
Changelog
[2.0.1] - 2021-05-12
dist
directory before building, which prevents old build files from being packedReadme
The npm package for cookie consent helpers. These functions are tighly coupled to using the cookiebot api at the moment.
npm install @envato/cookie-consent --save
# or using `yarn`
yarn add @envato/cookie-consent
import { Consent, consented, deferRun } from '@envato/cookie-consent'
// Check for consent inline (note that on the initial page load this function may return false)
if (consented(Consent.statistics)) {
// Do something..
}
// Manually parse and check the consent type in the CookieConsent cookie
checkCookieConsent(Cookies.get('CookieConsent'), Consent.statistics)
// Run function after consent
deferRun(() => {
doSomething()
}, Consent.marketing)
// Types of consent we support:
Consent.marketing
Consent.statistics
Consent.preferences
Consent.necessary
There is a cookiebot.css
in the module, you can include it to partially override the default Cookiebot style.
The file clsFixSnippet.ts
contains a code snippet that fixes a CLS issue caused by the cookiebot dialog. It's being exported as a string. When including the code in your app, make sure it runs before the main cookiebot code.
Run
npm version (patch/minor/major)
npm publish
FAQs
Some helper functions to deal with cookie-consent
The npm package @envato/cookie-consent receives a total of 545 weekly downloads. As such, @envato/cookie-consent popularity was classified as not popular.
We found that @envato/cookie-consent 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.