1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

Update policies

policy updates

Remove fast-json-patch exclusion

run lavamoat:auto
This commit is contained in:
PeterYinusa 2023-01-05 20:27:06 +00:00 committed by Dan J Miller
parent 5672f24c9f
commit 53604b14dd
7 changed files with 14 additions and 53 deletions

10
.iyarc
View File

@ -1,12 +1,2 @@
# improved-yarn-audit advisory exclusions
GHSA-257v-vj4p-3w2h
# yarn npm audit reports on a fast-json-patch version < 3.1.1 but due to patch
# resolution, the only version of fast-json-patch that we use is 3.1.1. We also
# have 2.2.1 installed but it is a dev only dependency. The "violation" reports
# smart-transacton-controller as the culprit but if you run
# `yarn info -A -R dependents fast-json-patch` you can see that only 2.2.1 and
# 3.3.1 are installed and that smart-transaction-controller resolves to the
# patched version of 3.3.1. We can remove this once the
# smart-transaction-controller updates its dependency.
GHSA-8gh8-hqwg-xf34

View File

@ -1306,14 +1306,6 @@
"define": true
}
},
"@metamask/smart-transactions-controller>fast-json-patch": {
"globals": {
"addEventListener": true,
"clearTimeout": true,
"removeEventListener": true,
"setTimeout": true
}
},
"@metamask/snap-controllers>nanoid": {
"globals": {
"crypto.getRandomValues": true

View File

@ -1551,14 +1551,6 @@
"define": true
}
},
"@metamask/smart-transactions-controller>fast-json-patch": {
"globals": {
"addEventListener": true,
"clearTimeout": true,
"removeEventListener": true,
"setTimeout": true
}
},
"@metamask/snap-controllers": {
"globals": {
"URL": true,

View File

@ -1306,14 +1306,6 @@
"define": true
}
},
"@metamask/smart-transactions-controller>fast-json-patch": {
"globals": {
"addEventListener": true,
"clearTimeout": true,
"removeEventListener": true,
"setTimeout": true
}
},
"@metamask/snap-controllers>nanoid": {
"globals": {
"crypto.getRandomValues": true

View File

@ -1,13 +0,0 @@
diff --git a/node_modules/@metamask/smart-transactions-controller/node_modules/fast-json-patch/commonjs/helpers.js b/node_modules/@metamask/smart-transactions-controller/node_modules/fast-json-patch/commonjs/helpers.js
index 0ac28b4..d048c0a 100644
--- a/node_modules/@metamask/smart-transactions-controller/node_modules/fast-json-patch/commonjs/helpers.js
+++ b/node_modules/@metamask/smart-transactions-controller/node_modules/fast-json-patch/commonjs/helpers.js
@@ -21,7 +21,7 @@ var _hasOwnProperty = Object.prototype.hasOwnProperty;
function hasOwnProperty(obj, key) {
return _hasOwnProperty.call(obj, key);
}
-exports.hasOwnProperty = hasOwnProperty;
+Object.defineProperty(exports, "hasOwnProperty", { value: hasOwnProperty });
function _objectKeys(obj) {
if (Array.isArray(obj)) {
var keys = new Array(obj.length);

View File

@ -0,0 +1,13 @@
diff --git a/node_modules/fast-json-patch/commonjs/helpers.js b/node_modules/fast-json-patch/commonjs/helpers.js
index 5f2350e..8894686 100644
--- a/node_modules/fast-json-patch/commonjs/helpers.js
+++ b/node_modules/fast-json-patch/commonjs/helpers.js
@@ -21,7 +21,7 @@ var _hasOwnProperty = Object.prototype.hasOwnProperty;
function hasOwnProperty(obj, key) {
return _hasOwnProperty.call(obj, key);
}
-exports.hasOwnProperty = hasOwnProperty;
+Object.defineProperty(exports, "hasOwnProperty", { value: hasOwnProperty });
function _objectKeys(obj) {
if (Array.isArray(obj)) {
var keys_1 = new Array(obj.length);

View File

@ -12119,12 +12119,7 @@ fast-json-patch@^2.0.6:
dependencies:
fast-deep-equal "^2.0.1"
fast-json-patch@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/fast-json-patch/-/fast-json-patch-3.1.0.tgz#ec8cd9b9c4c564250ec8b9140ef7a55f70acaee6"
integrity sha512-IhpytlsVTRndz0hU5t0/MGzS/etxLlfrpG5V5M9mVbuj9TrJLWaMfsox9REM5rkuGX0T+5qjpe8XA1o0gZ42nA==
fast-json-patch@^3.1.1:
fast-json-patch@^3.1.0, fast-json-patch@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/fast-json-patch/-/fast-json-patch-3.1.1.tgz#85064ea1b1ebf97a3f7ad01e23f9337e72c66947"
integrity sha512-vf6IHUX2SBcA+5/+4883dsIjpBTqmfBjmYiWK1savxQmFk4JfBMLa7ynTYOs1Rolp/T1betJxHiGD3g1Mn8lUQ==