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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user