@metamask/ppom-validator
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -9,2 +9,6 @@ # Changelog | ||
## [0.8.0] | ||
### Changed | ||
- Create copy of providerRequestsCount to avoid returning instance variable from PPOMController ([#72](https://github.com/MetaMask/ppom-validator/pull/72)) | ||
## [0.7.0] | ||
@@ -65,3 +69,4 @@ ### Changed | ||
[Unreleased]: https://github.com/MetaMask/ppom-validator/compare/v0.7.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/ppom-validator/compare/v0.8.0...HEAD | ||
[0.8.0]: https://github.com/MetaMask/ppom-validator/compare/v0.7.0...v0.8.0 | ||
[0.7.0]: https://github.com/MetaMask/ppom-validator/compare/v0.6.0...v0.7.0 | ||
@@ -68,0 +73,0 @@ [0.6.0]: https://github.com/MetaMask/ppom-validator/compare/v0.5.0...v0.6.0 |
@@ -219,3 +219,8 @@ "use strict"; | ||
const result = await callback(__classPrivateFieldGet(this, _PPOMController_ppom, "f")); | ||
return { ...result, providerRequestsCount: __classPrivateFieldGet(this, _PPOMController_providerRequestsCount, "f") }; | ||
return { | ||
...result, | ||
// we are destructuring the object below as this will be used outside the controller | ||
// we want to avoid possibility of outside code changing an instance variable. | ||
providerRequestsCount: { ...__classPrivateFieldGet(this, _PPOMController_providerRequestsCount, "f") }, | ||
}; | ||
}); | ||
@@ -222,0 +227,0 @@ } |
{ | ||
"name": "@metamask/ppom-validator", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "This module has code to integrate Blockaid PPOM with MetaMask", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/MetaMask/ppom-validator#readme", |
Sorry, the diff of this file is not supported yet
132247
1133