diff --git a/README.md b/README.md
index 3bdd407..063d27f 100644
--- a/README.md
+++ b/README.md
@@ -39,12 +39,7 @@ import { Component } from "@angular/core";
@Component({
selector: "my-app",
- template: ``,
+ template: ``,
})
export class MyApp {
sendCaptchaResponse(captchaResponse: string) {
@@ -68,21 +63,13 @@ You can then use the ngModel, formControl or formControlName directives on the c
### Reactive Form Example
```html
-
+
```
### Template Driven Form Example
```html
-
+
```
The component is read-only, meaning that you should not update the control with a custom value. Updating the control value will reset the component
diff --git a/package.json b/package.json
index eddd0eb..513e06f 100644
--- a/package.json
+++ b/package.json
@@ -43,7 +43,7 @@
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.0.0",
"ng-packagr": "^14.2.0",
- "prettier": "^2.7.1",
+ "prettier": "^3.0.3",
"typescript": "~4.7.2"
}
}
diff --git a/projects/ngx-turnstile-demo/src/index.html b/projects/ngx-turnstile-demo/src/index.html
index f1ec86f..1aef93b 100644
--- a/projects/ngx-turnstile-demo/src/index.html
+++ b/projects/ngx-turnstile-demo/src/index.html
@@ -1,4 +1,4 @@
-
+
diff --git a/projects/ngx-turnstile-demo/src/test.ts b/projects/ngx-turnstile-demo/src/test.ts
index dcb08e4..6052e24 100644
--- a/projects/ngx-turnstile-demo/src/test.ts
+++ b/projects/ngx-turnstile-demo/src/test.ts
@@ -11,7 +11,7 @@ declare const require: {
context(
path: string,
deep?: boolean,
- filter?: RegExp
+ filter?: RegExp,
): {
(id: string): T;
keys(): string[];
@@ -21,7 +21,7 @@ declare const require: {
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
- platformBrowserDynamicTesting()
+ platformBrowserDynamicTesting(),
);
// Then we find all the tests.
diff --git a/projects/ngx-turnstile/README.md b/projects/ngx-turnstile/README.md
index 127d71b..3e44b87 100644
--- a/projects/ngx-turnstile/README.md
+++ b/projects/ngx-turnstile/README.md
@@ -39,12 +39,7 @@ import { Component } from "@angular/core";
@Component({
selector: "my-app",
- template: ``,
+ template: ``,
})
export class MyApp {
sendCaptchaResponse(captchaResponse: string) {
diff --git a/projects/ngx-turnstile/src/lib/ngx-turnstile.component.ts b/projects/ngx-turnstile/src/lib/ngx-turnstile.component.ts
index b795540..d90ce9c 100644
--- a/projects/ngx-turnstile/src/lib/ngx-turnstile.component.ts
+++ b/projects/ngx-turnstile/src/lib/ngx-turnstile.component.ts
@@ -16,11 +16,11 @@ declare global {
turnstile: {
render: (
idOrContainer: string | HTMLElement,
- options: TurnstileOptions
+ options: TurnstileOptions,
) => string;
reset: (widgetIdOrContainer: string | HTMLElement) => void;
getResponse: (
- widgetIdOrContainer: string | HTMLElement
+ widgetIdOrContainer: string | HTMLElement,
) => string | undefined;
remove: (widgetIdOrContainer: string | HTMLElement) => void;
};
@@ -50,7 +50,7 @@ export class NgxTurnstileComponent implements AfterViewInit, OnDestroy {
constructor(
private elementRef: ElementRef,
- private zone: NgZone
+ private zone: NgZone,
) {}
private _getCloudflareTurnstileUrl(): string {
@@ -86,7 +86,7 @@ export class NgxTurnstileComponent implements AfterViewInit, OnDestroy {
this.widgetId = window.turnstile.render(
this.elementRef.nativeElement,
- turnstileOptions
+ turnstileOptions,
);
};
diff --git a/projects/ngx-turnstile/src/test.ts b/projects/ngx-turnstile/src/test.ts
index 192d59a..68fdda6 100644
--- a/projects/ngx-turnstile/src/test.ts
+++ b/projects/ngx-turnstile/src/test.ts
@@ -12,7 +12,7 @@ declare const require: {
context(
path: string,
deep?: boolean,
- filter?: RegExp
+ filter?: RegExp,
): {
(id: string): T;
keys(): string[];
@@ -22,7 +22,7 @@ declare const require: {
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
- platformBrowserDynamicTesting()
+ platformBrowserDynamicTesting(),
);
// Then we find all the tests.
diff --git a/yarn.lock b/yarn.lock
index 91b4215..287cebd 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -5893,10 +5893,10 @@ prelude-ls@^1.2.1:
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
-prettier@^2.7.1:
- version "2.7.1"
- resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64"
- integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==
+prettier@^3.0.3:
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643"
+ integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==
pretty-bytes@^5.3.0:
version "5.6.0"