Socket
Socket
Sign inDemoInstall

@metamask/ppom-validator

Package Overview
Dependencies
Maintainers
12
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/ppom-validator - npm Package Compare versions

Comparing version 0.13.0 to 0.14.0

7

CHANGELOG.md

@@ -9,2 +9,6 @@ # Changelog

## [0.14.0]
### Changed
- Add code changes to handle memory corruption ([#105](https://github.com/MetaMask/ppom-validator/pull/105))
## [0.13.0]

@@ -95,3 +99,4 @@ ### Changed

[Unreleased]: https://github.com/MetaMask/ppom-validator/compare/v0.13.0...HEAD
[Unreleased]: https://github.com/MetaMask/ppom-validator/compare/v0.14.0...HEAD
[0.14.0]: https://github.com/MetaMask/ppom-validator/compare/v0.13.0...v0.14.0
[0.13.0]: https://github.com/MetaMask/ppom-validator/compare/v0.12.0...v0.13.0

@@ -98,0 +103,0 @@ [0.12.0]: https://github.com/MetaMask/ppom-validator/compare/v0.11.0...v0.12.0

15

dist/ppom-controller.js

@@ -222,3 +222,5 @@ "use strict";

if (__classPrivateFieldGet(this, _PPOMController_ppomInitError, "f")) {
throw Error(__classPrivateFieldGet(this, _PPOMController_ppomInitError, "f"));
const errorText = __classPrivateFieldGet(this, _PPOMController_ppomInitError, "f");
__classPrivateFieldSet(this, _PPOMController_ppomInitError, undefined, "f");
throw Error(errorText);
}

@@ -353,3 +355,3 @@ __classPrivateFieldSet(this, _PPOMController_providerRequests, 0, "f");

async function _PPOMController_reinitPPOMForNetworkIfRequired() {
if (__classPrivateFieldGet(this, _PPOMController_instances, "m", _PPOMController_isDataRequiredForCurrentChain).call(this)) {
if (__classPrivateFieldGet(this, _PPOMController_instances, "m", _PPOMController_isDataRequiredForCurrentChain).call(this) || __classPrivateFieldGet(this, _PPOMController_ppom, "f") === undefined) {
await __classPrivateFieldGet(this, _PPOMController_instances, "m", _PPOMController_getNewFilesForChain).call(this, __classPrivateFieldGet(this, _PPOMController_chainId, "f"));

@@ -402,3 +404,8 @@ }

if (__classPrivateFieldGet(this, _PPOMController_instances, "m", _PPOMController_checkFilePresentInStorage).call(this, storageMetadata, fileVersionInfo)) {
return await __classPrivateFieldGet(this, _PPOMController_storage, "f").readFile(fileVersionInfo.name, fileVersionInfo.chainId);
try {
return await __classPrivateFieldGet(this, _PPOMController_storage, "f").readFile(fileVersionInfo.name, fileVersionInfo.chainId);
}
catch (error) {
console.error(`Error in reading file: ${error.message}`);
}
}

@@ -599,3 +606,3 @@ // validate file path for valid characters

const eTagChanged = await __classPrivateFieldGet(this, _PPOMController_instances, "m", _PPOMController_checkIfVersionInfoETagChanged).call(this, url);
if (!eTagChanged) {
if (!eTagChanged && this.state.versionInfo?.length) {
return undefined;

@@ -602,0 +609,0 @@ }

{
"name": "@metamask/ppom-validator",
"version": "0.13.0",
"version": "0.14.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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc