1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 10:13:31 +00:00

Fix glob processing in npm. Ban single param parens (#257)

This commit is contained in:
Matt Gibson
2021-02-04 09:49:23 -06:00
committed by GitHub
parent a16d8f7de7
commit 58f40b0085
98 changed files with 275 additions and 271 deletions

View File

@@ -269,7 +269,7 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr
return enforcedOptions;
}
policies.forEach((currentPolicy) => {
policies.forEach(currentPolicy => {
if (!currentPolicy.enabled || currentPolicy.data == null) {
return;
}
@@ -471,7 +471,7 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr
return Promise.resolve([]);
}
const promises = history.map(async (item) => {
const promises = history.map(async item => {
const encrypted = await this.cryptoService.encrypt(item.password);
return new GeneratedPasswordHistory(encrypted.encryptedString, item.date);
});
@@ -484,7 +484,7 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr
return Promise.resolve([]);
}
const promises = history.map(async (item) => {
const promises = history.map(async item => {
const decrypted = await this.cryptoService.decryptToUtf8(new CipherString(item.password));
return new GeneratedPasswordHistory(decrypted, item.date);
});