@triangular/password-checker 9.0.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -24
- package/esm2020/lib/password-checker-lib.directive.mjs +3 -3
- package/esm2020/lib/password-checker-lib.module.mjs +4 -4
- package/fesm2015/triangular-password-checker.mjs +7 -7
- package/fesm2020/triangular-password-checker.mjs +7 -7
- package/lib/password-checker-lib.directive.d.ts +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -7,17 +7,18 @@ Protect your users from re-using a password known to be hacked with this simple
|
|
|
7
7
|
If you just want to use the library to verify the passwords given by your users, follow the following 4 simple steps. For contributing, or building the library locally, see the section on [building](#building) the library.
|
|
8
8
|
|
|
9
9
|
Supported Angular Versions
|
|
10
|
-
| Angular Version | Password Checker Version
|
|
11
|
-
| ---------------- |
|
|
12
|
-
| 6.x |
|
|
13
|
-
| 7.x |
|
|
14
|
-
| 8.x |
|
|
15
|
-
| 9.x |
|
|
16
|
-
| 10.x |
|
|
17
|
-
| 11.x |
|
|
18
|
-
| 12.x |
|
|
19
|
-
| 13.x |
|
|
20
|
-
| 14.x |
|
|
10
|
+
| Angular Version | Password Checker Version |
|
|
11
|
+
| ---------------- | ------------------------- |
|
|
12
|
+
| 6.x | 1.0.0 |
|
|
13
|
+
| 7.x | 2.2.0 |
|
|
14
|
+
| 8.x | 3.0.0 |
|
|
15
|
+
| 9.x | 4.0.0 |
|
|
16
|
+
| 10.x | 5.0.0 |
|
|
17
|
+
| 11.x | 6.0.0 |
|
|
18
|
+
| 12.x | 7.0.0 |
|
|
19
|
+
| 13.x | 8.0.1 |
|
|
20
|
+
| 14.x | 9.0.0 |
|
|
21
|
+
| 15.x | 10.0.0 |
|
|
21
22
|
|
|
22
23
|
### Step 1: Install
|
|
23
24
|
|
|
@@ -165,19 +166,7 @@ Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduc
|
|
|
165
166
|
|
|
166
167
|
## Versioning
|
|
167
168
|
|
|
168
|
-
We use [SemVer](http://semver.org/) for versioning.
|
|
169
|
-
|
|
170
|
-
### Version History
|
|
171
|
-
|
|
172
|
-
- 1.0.0: Initial Release
|
|
173
|
-
- 2.2.0: Code Improvements and Angular 7.x
|
|
174
|
-
- 3.0.0: Angular 8.x
|
|
175
|
-
- 4.0.0: Angular 9.x
|
|
176
|
-
- 5.0.0: Angular 10.x
|
|
177
|
-
- 6.0.0: Angular 11.x
|
|
178
|
-
- 7.0.0: Angular 12.x
|
|
179
|
-
- 8.0.0: Angular 13.x
|
|
180
|
-
- 8.0.1: Upgrade rxjs to 7.4
|
|
169
|
+
We use [SemVer](http://semver.org/) for versioning.
|
|
181
170
|
|
|
182
171
|
## Authors
|
|
183
172
|
|
|
@@ -43,15 +43,15 @@ export class PasswordCheckerLibDirective {
|
|
|
43
43
|
: null));
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
PasswordCheckerLibDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
47
|
-
PasswordCheckerLibDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
46
|
+
PasswordCheckerLibDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PasswordCheckerLibDirective, deps: [{ token: i1.HttpClient }, { token: PasswordCheckerConfigValue, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
47
|
+
PasswordCheckerLibDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.1", type: PasswordCheckerLibDirective, selector: "[pwnedPasswordValidator][formControlName], [pwnedPasswordValidator][ngModel],[pwnedPasswordValidator][formControl]", inputs: { pwnedPasswordApi: "pwnedPasswordApi", pwnedPasswordMinimumOccurrenceForError: "pwnedPasswordMinimumOccurrenceForError", pwnedPasswordApiCallDebounceTime: "pwnedPasswordApiCallDebounceTime" }, providers: [
|
|
48
48
|
{
|
|
49
49
|
provide: NG_ASYNC_VALIDATORS,
|
|
50
50
|
useExisting: PasswordCheckerLibDirective,
|
|
51
51
|
multi: true,
|
|
52
52
|
},
|
|
53
53
|
], ngImport: i0 });
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PasswordCheckerLibDirective, decorators: [{
|
|
55
55
|
type: Directive,
|
|
56
56
|
args: [{
|
|
57
57
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -16,10 +16,10 @@ export class PasswordCheckerModule {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
PasswordCheckerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
20
|
-
PasswordCheckerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
21
|
-
PasswordCheckerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
19
|
+
PasswordCheckerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PasswordCheckerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
20
|
+
PasswordCheckerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: PasswordCheckerModule, declarations: [PasswordCheckerLibDirective], imports: [HttpClientModule], exports: [PasswordCheckerLibDirective] });
|
|
21
|
+
PasswordCheckerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PasswordCheckerModule, imports: [HttpClientModule] });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PasswordCheckerModule, decorators: [{
|
|
23
23
|
type: NgModule,
|
|
24
24
|
args: [{
|
|
25
25
|
declarations: [PasswordCheckerLibDirective],
|
|
@@ -46,15 +46,15 @@ class PasswordCheckerLibDirective {
|
|
|
46
46
|
: null));
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
PasswordCheckerLibDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
50
|
-
PasswordCheckerLibDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
49
|
+
PasswordCheckerLibDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PasswordCheckerLibDirective, deps: [{ token: i1.HttpClient }, { token: PasswordCheckerConfigValue, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
50
|
+
PasswordCheckerLibDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.1", type: PasswordCheckerLibDirective, selector: "[pwnedPasswordValidator][formControlName], [pwnedPasswordValidator][ngModel],[pwnedPasswordValidator][formControl]", inputs: { pwnedPasswordApi: "pwnedPasswordApi", pwnedPasswordMinimumOccurrenceForError: "pwnedPasswordMinimumOccurrenceForError", pwnedPasswordApiCallDebounceTime: "pwnedPasswordApiCallDebounceTime" }, providers: [
|
|
51
51
|
{
|
|
52
52
|
provide: NG_ASYNC_VALIDATORS,
|
|
53
53
|
useExisting: PasswordCheckerLibDirective,
|
|
54
54
|
multi: true,
|
|
55
55
|
},
|
|
56
56
|
], ngImport: i0 });
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PasswordCheckerLibDirective, decorators: [{
|
|
58
58
|
type: Directive,
|
|
59
59
|
args: [{
|
|
60
60
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -95,10 +95,10 @@ class PasswordCheckerModule {
|
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
PasswordCheckerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
99
|
-
PasswordCheckerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
100
|
-
PasswordCheckerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
98
|
+
PasswordCheckerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PasswordCheckerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
99
|
+
PasswordCheckerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: PasswordCheckerModule, declarations: [PasswordCheckerLibDirective], imports: [HttpClientModule], exports: [PasswordCheckerLibDirective] });
|
|
100
|
+
PasswordCheckerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PasswordCheckerModule, imports: [HttpClientModule] });
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PasswordCheckerModule, decorators: [{
|
|
102
102
|
type: NgModule,
|
|
103
103
|
args: [{
|
|
104
104
|
declarations: [PasswordCheckerLibDirective],
|
|
@@ -46,15 +46,15 @@ class PasswordCheckerLibDirective {
|
|
|
46
46
|
: null));
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
PasswordCheckerLibDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
50
|
-
PasswordCheckerLibDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
49
|
+
PasswordCheckerLibDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PasswordCheckerLibDirective, deps: [{ token: i1.HttpClient }, { token: PasswordCheckerConfigValue, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
50
|
+
PasswordCheckerLibDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.1", type: PasswordCheckerLibDirective, selector: "[pwnedPasswordValidator][formControlName], [pwnedPasswordValidator][ngModel],[pwnedPasswordValidator][formControl]", inputs: { pwnedPasswordApi: "pwnedPasswordApi", pwnedPasswordMinimumOccurrenceForError: "pwnedPasswordMinimumOccurrenceForError", pwnedPasswordApiCallDebounceTime: "pwnedPasswordApiCallDebounceTime" }, providers: [
|
|
51
51
|
{
|
|
52
52
|
provide: NG_ASYNC_VALIDATORS,
|
|
53
53
|
useExisting: PasswordCheckerLibDirective,
|
|
54
54
|
multi: true,
|
|
55
55
|
},
|
|
56
56
|
], ngImport: i0 });
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PasswordCheckerLibDirective, decorators: [{
|
|
58
58
|
type: Directive,
|
|
59
59
|
args: [{
|
|
60
60
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -93,10 +93,10 @@ class PasswordCheckerModule {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
PasswordCheckerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
97
|
-
PasswordCheckerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
98
|
-
PasswordCheckerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
99
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
96
|
+
PasswordCheckerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PasswordCheckerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
97
|
+
PasswordCheckerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: PasswordCheckerModule, declarations: [PasswordCheckerLibDirective], imports: [HttpClientModule], exports: [PasswordCheckerLibDirective] });
|
|
98
|
+
PasswordCheckerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PasswordCheckerModule, imports: [HttpClientModule] });
|
|
99
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PasswordCheckerModule, decorators: [{
|
|
100
100
|
type: NgModule,
|
|
101
101
|
args: [{
|
|
102
102
|
declarations: [PasswordCheckerLibDirective],
|
|
@@ -12,5 +12,5 @@ export declare class PasswordCheckerLibDirective implements AsyncValidator {
|
|
|
12
12
|
constructor(http: HttpClient, config: Partial<PasswordCheckerConfig>);
|
|
13
13
|
validate(control: AbstractControl): Observable<ValidationErrors | null>;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<PasswordCheckerLibDirective, [null, { optional: true; }]>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PasswordCheckerLibDirective, "[pwnedPasswordValidator][formControlName], [pwnedPasswordValidator][ngModel],[pwnedPasswordValidator][formControl]", never, { "pwnedPasswordApi": "pwnedPasswordApi"; "pwnedPasswordMinimumOccurrenceForError": "pwnedPasswordMinimumOccurrenceForError"; "pwnedPasswordApiCallDebounceTime": "pwnedPasswordApiCallDebounceTime"; }, {}, never, never, false>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PasswordCheckerLibDirective, "[pwnedPasswordValidator][formControlName], [pwnedPasswordValidator][ngModel],[pwnedPasswordValidator][formControl]", never, { "pwnedPasswordApi": "pwnedPasswordApi"; "pwnedPasswordMinimumOccurrenceForError": "pwnedPasswordMinimumOccurrenceForError"; "pwnedPasswordApiCallDebounceTime": "pwnedPasswordApiCallDebounceTime"; }, {}, never, never, false, never>;
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@triangular/password-checker",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
5
|
+
"@angular/common": "^15.0.0",
|
|
6
|
+
"@angular/core": "^15.0.0",
|
|
7
7
|
"crypto-js": "^4.1.1"
|
|
8
8
|
},
|
|
9
9
|
"homepage": "https://password.akehir.com",
|