New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@halloverden/ngx-cookiebot

Package Overview
Dependencies
Maintainers
0
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@halloverden/ngx-cookiebot - npm Package Compare versions

Comparing version

to
5.0.0-rc.1

esm2022/lib/ngx-cookiebot.provider.mjs

12

lib/ngx-cookiebot.component.d.ts
import { ElementRef, OnInit } from '@angular/core';
import { NgxCookiebotConfig } from './ngx-cookiebot.config';
import * as i0 from "@angular/core";
export declare class NgxCookiebotComponent implements OnInit {
private _ngxCookiebotConfig;
#private;
ngxCookiebotElement: ElementRef;
/**
*
*/
constructor(_ngxCookiebotConfig: NgxCookiebotConfig);
/***
*
*/
ngOnInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxCookiebotComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NgxCookiebotComponent, "ngx-cookiebot-declaration", never, {}, {}, never, never, false, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NgxCookiebotComponent, "ngx-cookiebot-declaration", never, {}, {}, never, never, true, never>;
}

@@ -1,4 +0,1 @@

/**
*
*/
export declare abstract class NgxCookiebotConfig {

@@ -5,0 +2,0 @@ blockingMode: 'auto' | 'manual' | string;

import { NgxCookiebotService } from './ngx-cookiebot.service';
/**
*
*/
export declare function ngxCookiebotFactory(cookieBotService: NgxCookiebotService): () => Promise<void>;
export declare function ngxCookiebotFactory(cookiebotService: NgxCookiebotService): () => Promise<void>;
import { Observable } from 'rxjs';
import { NgxCookiebotConfig } from './ngx-cookiebot.config';
import * as i0 from "@angular/core";
export declare class NgxCookiebotService {
private cookiebotConfig;
private _platformId;
#private;
cookiebot: any;

@@ -15,43 +13,13 @@ onAccept$: Observable<any>;

onTagsExecuted$: Observable<any>;
private readonly _onAcceptCallback$;
onAcceptCallback$: Observable<void>;
private readonly _onDeclineCallback$;
onDeclineCallback$: Observable<void>;
private readonly _onDialogDisplayCallback$;
onDialogDisplayCallback$: Observable<void>;
private readonly _onDialogInitCallback$;
onDialogInitCallback$: Observable<void>;
private readonly _onLoadCallback$;
onLoadCallback$: Observable<void>;
private readonly _onServiceReady$;
onServiceReady$: Observable<boolean>;
private readonly _onTagsExecutedCallback$;
onTagsExecutedCallback$: Observable<void>;
private readonly _window;
/**
*
*/
constructor(cookiebotConfig: NgxCookiebotConfig, _platformId: object);
/**
*
*/
constructor();
init(): Promise<void>;
/**
*
*/
private _buildScriptTag;
/**
*
*/
private _setUpCallbacks;
/**
*
*/
private _setUpEventHandlers;
/**
*
*/
private _verifyConfig;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxCookiebotService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NgxCookiebotService>;
}
{
"name": "@halloverden/ngx-cookiebot",
"version": "4.0.0",
"version": "5.0.0-rc.1",
"description": "A simple Angular wrapper for the Cookiebot SDK",

@@ -33,4 +33,4 @@ "private": false,

"peerDependencies": {
"@angular/common": "^17.0.0",
"@angular/core": "^17.0.0"
"@angular/common": "^18.0.0",
"@angular/core": "^18.0.0"
},

@@ -37,0 +37,0 @@ "module": "fesm2022/halloverden-ngx-cookiebot.mjs",

@@ -1,4 +0,4 @@

export * from './lib/ngx-cookiebot.service';
export * from './lib/ngx-cookiebot.component';
export * from './lib/ngx-cookiebot.module';
export * from './lib/ngx-cookiebot.config';
export * from './lib/ngx-cookiebot.provider';
export * from './lib/ngx-cookiebot.service';

@@ -9,2 +9,3 @@ # NgxCookiebot

|---------|:---------------:|
| ^5.0.0 | ^18.0.0 |
| ^4.0.0 | ^17.0.0 |

@@ -66,11 +67,7 @@ | ^3.0.0 | ^16.0.0 |

```typescript
// app.module.ts
import { NgxCookiebotModule } from '@halloverden/ngx-cookiebot';
// app.config.ts
import { ngxCookiebotProvider } from '@halloverden/ngx-cookiebot';
import { CookiebotConfig } from '@config/cookiebot.config';
@NgModule({
imports: [
NgxCookiebotModule.forRoot(CookiebotConfig)
]
})
ngxCookiebotProvider(CookiebotConfig)
```

@@ -88,5 +85,5 @@

...
constructor(private _cookieBotService: NgxCookiebotService) {}
#cookiebotService = inject(NgxCookiebotService);
...
this._cookieBotService.onServiceReady$.pipe(
this.#cookiebotService.onServiceReady$.pipe(
filter((ready: boolean) => {

@@ -96,3 +93,3 @@ return ready;

).subscribe(() => {
// this._cookieBotService.cookiebot is available
// this.#cookiebotService.cookiebot is available
});

@@ -133,6 +130,6 @@ ...

...
this._cookieBotService.onConsentReady$.subscribe(
this.#cookiebotService.onConsentReady$.subscribe(
// Consent ready
console.log(this._cookieBotService.cookiebot.consent)
)
console.log(this.#cookiebotService.cookiebot.consent)
);
...

@@ -139,0 +136,0 @@ ```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet