mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 02:03:39 +00:00
[PM-6146] generator history (#8497)
* introduce `GeneratorHistoryService` abstraction * implement generator history service with `LocalGeneratorHistoryService` * cache decrypted data using `ReplaySubject` instead of `DerivedState` * move Jsonification from `DataPacker` to `SecretClassifier` because the classifier is the only component that has full type information. The data packer still handles stringification.
This commit is contained in:
@@ -37,7 +37,7 @@ export class PaddedDataPacker extends DataPackerAbstraction {
|
||||
* with the frameSize.
|
||||
* @see {@link DataPackerAbstraction.unpack}
|
||||
*/
|
||||
pack<Secret>(value: Secret) {
|
||||
pack<Secret>(value: Jsonify<Secret>) {
|
||||
// encode the value
|
||||
const json = JSON.stringify(value);
|
||||
const b64 = Utils.fromUtf8ToB64(json);
|
||||
|
||||
Reference in New Issue
Block a user