Skip to content

Commit ee73b24

Browse files
committed
refactor(5566): fix lint & tests v4
1 parent e0d01da commit ee73b24

File tree

18 files changed

+111
-58
lines changed

18 files changed

+111
-58
lines changed

lavamoat/browserify/beta/policy.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2275,7 +2275,8 @@
22752275
"URL": true,
22762276
"URLSearchParams": true,
22772277
"console": true,
2278-
"document.defaultView": true
2278+
"document.defaultView": true,
2279+
"history": true
22792280
}
22802281
},
22812282
"@rive-app/react-canvas>@rive-app/canvas": {
@@ -3785,6 +3786,11 @@
37853786
"define": true
37863787
}
37873788
},
3789+
"history": {
3790+
"globals": {
3791+
"history": true
3792+
}
3793+
},
37883794
"@toruslabs/eccrypto>elliptic>hmac-drbg": {
37893795
"packages": {
37903796
"ethers>@ethersproject/sha2>hash.js": true,

lavamoat/browserify/experimental/policy.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2275,7 +2275,8 @@
22752275
"URL": true,
22762276
"URLSearchParams": true,
22772277
"console": true,
2278-
"document.defaultView": true
2278+
"document.defaultView": true,
2279+
"history": true
22792280
}
22802281
},
22812282
"@rive-app/react-canvas>@rive-app/canvas": {
@@ -3785,6 +3786,11 @@
37853786
"define": true
37863787
}
37873788
},
3789+
"history": {
3790+
"globals": {
3791+
"history": true
3792+
}
3793+
},
37883794
"@toruslabs/eccrypto>elliptic>hmac-drbg": {
37893795
"packages": {
37903796
"ethers>@ethersproject/sha2>hash.js": true,

lavamoat/browserify/flask/policy.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2275,7 +2275,8 @@
22752275
"URL": true,
22762276
"URLSearchParams": true,
22772277
"console": true,
2278-
"document.defaultView": true
2278+
"document.defaultView": true,
2279+
"history": true
22792280
}
22802281
},
22812282
"@rive-app/react-canvas>@rive-app/canvas": {
@@ -3785,6 +3786,11 @@
37853786
"define": true
37863787
}
37873788
},
3789+
"history": {
3790+
"globals": {
3791+
"history": true
3792+
}
3793+
},
37883794
"@toruslabs/eccrypto>elliptic>hmac-drbg": {
37893795
"packages": {
37903796
"ethers>@ethersproject/sha2>hash.js": true,

lavamoat/browserify/main/policy.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2275,7 +2275,8 @@
22752275
"URL": true,
22762276
"URLSearchParams": true,
22772277
"console": true,
2278-
"document.defaultView": true
2278+
"document.defaultView": true,
2279+
"history": true
22792280
}
22802281
},
22812282
"@rive-app/react-canvas>@rive-app/canvas": {
@@ -3785,6 +3786,11 @@
37853786
"define": true
37863787
}
37873788
},
3789+
"history": {
3790+
"globals": {
3791+
"history": true
3792+
}
3793+
},
37883794
"@toruslabs/eccrypto>elliptic>hmac-drbg": {
37893795
"packages": {
37903796
"ethers>@ethersproject/sha2>hash.js": true,

lavamoat/browserify/policy-override.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
{
22
"resources": {
3+
"history": {
4+
"globals": {
5+
"history": true
6+
}
7+
},
38
"react-router-dom": {
49
"globals": {
510
"history": true
611
}
712
},
13+
"react-router-dom>@remix-run/router": {
14+
"globals": {
15+
"history": true
16+
}
17+
},
818
"@metamask/snaps-execution-environments": {
919
"packages": {
1020
"@metamask/post-message-stream": true,

lavamoat/build-system/policy.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1909,7 +1909,6 @@
19091909
"chokidar>anymatch": true,
19101910
"chokidar>braces": true,
19111911
"chokidar>fsevents": true,
1912-
"tsx>fsevents": true,
19131912
"eslint>glob-parent": true,
19141913
"chokidar>is-binary-path": true,
19151914
"del>is-glob": true,
@@ -3499,13 +3498,6 @@
34993498
"gulp-watch>chokidar>fsevents>node-pre-gyp": true
35003499
}
35013500
},
3502-
"tsx>fsevents": {
3503-
"globals": {
3504-
"console.assert": true,
3505-
"process.platform": true
3506-
},
3507-
"native": true
3508-
},
35093501
"string.prototype.matchall>es-abstract>function.prototype.name": {
35103502
"globals": {
35113503
"document": true
@@ -8910,4 +8902,4 @@
89108902
}
89118903
}
89128904
}
8913-
}
8905+
}

lavamoat/webpack/mv2/policy-override.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@
172172
"history": true
173173
}
174174
},
175+
"react-router-dom>@remix-run/router": {
176+
"globals": {
177+
"history": true
178+
}
179+
},
175180
"@metamask/multichain-network-controller": {
176181
"packages": {
177182
"@metamask/multichain-network-controller>@metamask/keyring-api": true

lavamoat/webpack/mv2/policy.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2350,7 +2350,8 @@
23502350
"URL": true,
23512351
"URLSearchParams": true,
23522352
"console": true,
2353-
"document.defaultView": true
2353+
"document.defaultView": true,
2354+
"history": true
23542355
}
23552356
},
23562357
"@rive-app/react-canvas>@rive-app/canvas": {
@@ -5042,7 +5043,7 @@
50425043
"addEventListener": true,
50435044
"confirm": true,
50445045
"document": true,
5045-
"history.scrollRestoration": true,
5046+
"history": true,
50465047
"location.href": true,
50475048
"removeEventListener": true,
50485049
"scrollTo": true,
@@ -6013,4 +6014,4 @@
60136014
}
60146015
}
60156016
}
6016-
}
6017+
}

lavamoat/webpack/mv3/policy-override.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@
172172
"history": true
173173
}
174174
},
175+
"react-router-dom>@remix-run/router": {
176+
"globals": {
177+
"history": true
178+
}
179+
},
175180
"@metamask/multichain-network-controller": {
176181
"packages": {
177182
"@metamask/multichain-network-controller>@metamask/keyring-api": true

lavamoat/webpack/mv3/policy.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,8 @@
13441344
"URL": true,
13451345
"URLSearchParams": true,
13461346
"console": true,
1347-
"document.defaultView": true
1347+
"document.defaultView": true,
1348+
"history": true
13481349
}
13491350
},
13501351
"@rive-app/react-canvas>@rive-app/canvas": {
@@ -3555,7 +3556,7 @@
35553556
"addEventListener": true,
35563557
"confirm": true,
35573558
"document": true,
3558-
"history.scrollRestoration": true,
3559+
"history": true,
35593560
"location.href": true,
35603561
"removeEventListener": true,
35613562
"scrollTo": true,
@@ -4373,4 +4374,4 @@
43734374
}
43744375
}
43754376
}
4376-
}
4377+
}

0 commit comments

Comments
 (0)