release 6.4.1

This commit is contained in:
Rick van Lieshout 2021-09-23 19:16:15 +02:00
parent c2f92ec130
commit 9a0c974b2a
3 changed files with 17 additions and 3 deletions

14
build/index.d.ts vendored
View File

@ -4,6 +4,7 @@ import Cookies from "js-cookie";
export interface CookieConsentProps {
location?: "top" | "bottom" | "none";
sameSite?: "strict" | "lax" | "none";
visible?: "hidden" | "show" | "byCookieValue";
cookieSecurity?: boolean;
style?: object;
buttonStyle?: object;
@ -53,4 +54,17 @@ export default class CookieConsent extends React.Component<CookieConsentProps, {
*/
export function getCookieConsentValue(name?: string): string;
/**
* Reset the consent cookie
* Remove the cookie on browser in order to allow user to change their consent
* @param {*} name optional name of the cookie
*/
export function resetCookieConsentValue(name?: string);
/**
* Get the legacy cookie name by the regular cookie name
* @param {string} name of cookie to get
*/
export function getLegacyCookieName(name: string);
export { Cookies };

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{
"name": "react-cookie-consent",
"version": "6.4.0",
"version": "6.4.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "6.4.0",
"version": "6.4.1",
"license": "MIT",
"dependencies": {
"js-cookie": "^2.2.1",

View File

@ -4,7 +4,7 @@
"name": "Rick van Lieshout",
"email": "info@rickvanlieshout.com"
},
"version": "6.4.0",
"version": "6.4.1",
"description": "A small, simple and customizable cookie consent bar for use in React applications.",
"main": "build/index.js",
"types": "build/index.d.ts",