
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
dn-cookiebar
Advanced tools
Add a cookiebar to your project, very easy when vue and vueX is already loaded.
yarn add dn-cookiebar or npm install dn-cookiebar
Add the file node_modules/cookiebar/dist/dn-cookiebar.css to your styling or use your own styles.
Add the cookiebar component to your app. And make sure it uses the VueX store!
'use strict';
import Cookiebar from 'dn-cookiebar';
new Vue({
'el': '#container',
components: {
Cookiebar,
},
});
The component uses slots to define the content.
<cookiebar>
<h2 slot="header">
Cookies gebruik
</h2>
<p slot="message">
XXX wil u een goed werkende website aanbieden. Om dit te kunnen doen, plaatsen we cookies op uw computer.
</p>
<span slot="acceptText">
Ja, ik accepteer cookies
</span>
<span slot="denyText">
Nee, liever niet
</span>
</cookiebar>
Register the vueX module in your store.
'use strict';
import VueX from 'vuex';
import { store as cookiesStore } from 'dn-cookiebar';
export default new VueX.Store({
modules: {
cookiesStore,
},
});
Use the following getters from this module to read the status.
accepteddenieddismissedThe component also throws an event when the user chooses to accept or deny the cookies.
acceptdenyThe events are also exported from the module as:
EVENT_ACCEPTEVENT_DENY<cookiebar
v-on:accept="onAccept"
v-on:deny="onDeny"
></cookiebar>
The following cookies are set by this component:
cookie-disabled: 0cookie-disabled: 1cookie-dismissed: 1Below, there's a code example for the inclusion of this component.
<template>
<div>
<cookiebar>
<h2 slot="header">
Toestemming voor opslaan cookies
</h2>
<p slot="message">
XXX wil u een goed werkende website aanbieden. Om dit te kunnen doen, plaatsen we cookies op uw computer.
</p>
<span slot="acceptText">
Ja, ik accepteer cookies
</span>
<span slot="denyText">
Nee, liever niet
</span>
</cookiebar>
</div>
</template>
For questions, contact Ezra Pool at ezra@digitalnatives.nl
FAQs
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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.