gdpr-guard
Advanced tools
Comparing version 2.4.0 to 2.4.1
{ | ||
"name": "gdpr-guard", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"author": "Voltra <ludwig.guerin.98@gmx.fr>", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/Voltra/gdpr-guard#readme", |
@@ -22,3 +22,3 @@ # gdpr-guard | ||
* [react-gdpr-guard](https://www.npmjs.com/package/react-gdpr-guard) A React library that provides a hooks-creating function to interact with your GdprManager, in a react-way | ||
* [angular-gdpr-guard](https://www.npmjs.com/package/ngx-gdpr-guard) An Angular library that exposes a module and service to interact with your GdprManager, in an Angular and RXjs way | ||
* [ngx-gdpr-guard](https://www.npmjs.com/package/ngx-gdpr-guard) An Angular library that exposes a module and service to interact with your GdprManager, in an Angular and RXjs way | ||
* [svelte-gdpr-guard](#) ***Coming Soon*** | ||
@@ -302,2 +302,26 @@ * [rx-gdpr-guard](#) ***Coming Soon*** | ||
## Decorator API | ||
This API allows you to [decorate](https://en.wikipedia.org/wiki/Decorator_pattern) the manager instance that is created or restored when using the Savior API. | ||
As such the Savior API has been extended/augmented with the following: | ||
```typescript | ||
type GdprManagerDecorator = (manager: GdprManager) => GdprManager; | ||
interface GdprSavior { | ||
decorate?: GdprManagerDecorator; | ||
} | ||
abstract class GdprSaviorAdapter implements GdprSavior { | ||
constructor(protected decorator: GdprManagerDecorator|undefined = undefined) {} | ||
public abstract restore(shouldUpdate?: boolean): Promise<GdprManager | null>; | ||
public abstract store(manager: GdprManagerRaw): Promise<boolean>; | ||
public abstract updateSharedManager(manager: GdprManager): Promise<void>; | ||
}; | ||
``` | ||
## Helpline | ||
@@ -304,0 +328,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
133678
329