@avensio/cookie-consent
Advanced tools
Comparing version 0.2.12 to 0.2.13
{ | ||
"name": "@avensio/cookie-consent", | ||
"version": "0.2.12", | ||
"version": "0.2.13", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -24,9 +24,8 @@ # Cookie Consent | ||
### Functions | ||
* `Consents.set(categoryId: number, cookieId: number, value: boolean): void` | ||
Set a consent. | ||
Prints a message to the console when the Cookie isn't existing | ||
* `Consents.set(categoryId: number, cookieId: number, value: boolean): void` | ||
Set a consent | ||
* `Consents.get(categoryId: number, cookieId: number): boolean` | ||
Receive the current consent for a Cookie. | ||
Returns `undefined` if a Cookie isn't existing. | ||
* `Consents.clear()`: remove the Consents from the `localStorage`, delete the Cookie and call all `onDenied()` functions | ||
Receive the current consent for a Cookie | ||
* `Consents.clear()` | ||
Remove the Consents from the `localStorage`, delete the Cookie and call all `onDenied()` functions | ||
## Component properties | ||
@@ -33,0 +32,0 @@ ```typescript |
556398
173