Skip to content

Commit 5579927

Browse files
committed
Update LavaMoat policy (#3106)
This updates the LavaMoat build policy, following the dependency changes in #3096.
1 parent 3c5a085 commit 5579927

File tree

1 file changed

+121
-98
lines changed
  • packages/snaps-execution-environments/lavamoat/build-system

1 file changed

+121
-98
lines changed

packages/snaps-execution-environments/lavamoat/build-system/policy.json

Lines changed: 121 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@
157157
"path.basename": true,
158158
"path.dirname": true,
159159
"path.join": true,
160+
"path.relative": true,
160161
"path.resolve": true
161162
},
162163
"globals": {
@@ -511,10 +512,10 @@
511512
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-annotate-as-pure": true,
512513
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-optimise-call-expression": true,
513514
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-replace-supers": true,
515+
"@babel/preset-env>@babel/plugin-transform-classes>globals": true,
514516
"depcheck>@babel/traverse>@babel/helper-environment-visitor": true,
515517
"depcheck>@babel/traverse>@babel/helper-function-name": true,
516-
"depcheck>@babel/traverse>@babel/helper-split-export-declaration": true,
517-
"depcheck>@babel/traverse>globals": true
518+
"depcheck>@babel/traverse>@babel/helper-split-export-declaration": true
518519
}
519520
},
520521
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-annotate-as-pure": {
@@ -1010,10 +1011,10 @@
10101011
"packages": {
10111012
"@lavamoat/lavapack>combine-source-map": true,
10121013
"@lavamoat/lavapack>convert-source-map": true,
1014+
"@lavamoat/lavapack>espree": true,
10131015
"@lavamoat/lavapack>through2": true,
10141016
"@lavamoat/lavapack>umd": true,
10151017
"browserify>JSONStream": true,
1016-
"eslint>espree": true,
10171018
"lavamoat>json-stable-stringify": true,
10181019
"lavamoat>lavamoat-core": true,
10191020
"readable-stream": true
@@ -1059,6 +1060,13 @@
10591060
"value": true
10601061
}
10611062
},
1063+
"@lavamoat/lavapack>espree": {
1064+
"packages": {
1065+
"@lavamoat/lavapack>espree>eslint-visitor-keys": true,
1066+
"eslint>espree>acorn-jsx": true,
1067+
"terser>acorn": true
1068+
}
1069+
},
10621070
"@lavamoat/lavapack>through2": {
10631071
"packages": {
10641072
"readable-stream": true
@@ -1118,7 +1126,7 @@
11181126
},
11191127
"packages": {
11201128
"babel-plugin-tsconfig-paths-module-resolver>babel-plugin-module-resolver": true,
1121-
"eslint-plugin-import>tsconfig-paths": true
1129+
"babel-plugin-tsconfig-paths-module-resolver>tsconfig-paths": true
11221130
}
11231131
},
11241132
"babel-plugin-tsconfig-paths-module-resolver>babel-plugin-module-resolver": {
@@ -1199,6 +1207,38 @@
11991207
"fs.accessSync": true
12001208
}
12011209
},
1210+
"babel-plugin-tsconfig-paths-module-resolver>tsconfig-paths": {
1211+
"builtin": {
1212+
"fs.existsSync": true,
1213+
"fs.lstatSync": true,
1214+
"fs.readFile": true,
1215+
"fs.readFileSync": true,
1216+
"fs.stat": true,
1217+
"fs.statSync": true,
1218+
"module._resolveFilename": true,
1219+
"module.builtinModules": true,
1220+
"path.dirname": true,
1221+
"path.isAbsolute": true,
1222+
"path.join": true,
1223+
"path.resolve": true
1224+
},
1225+
"globals": {
1226+
"console.warn": true,
1227+
"process.argv.slice": true,
1228+
"process.cwd": true,
1229+
"process.env": true
1230+
},
1231+
"packages": {
1232+
"babel-plugin-tsconfig-paths-module-resolver>tsconfig-paths>json5": true,
1233+
"babel-plugin-tsconfig-paths-module-resolver>tsconfig-paths>strip-bom": true,
1234+
"browserify>subarg>minimist": true
1235+
}
1236+
},
1237+
"babel-plugin-tsconfig-paths-module-resolver>tsconfig-paths>json5": {
1238+
"globals": {
1239+
"console.warn": true
1240+
}
1241+
},
12021242
"babelify": {
12031243
"builtin": {
12041244
"path.extname": true,
@@ -1869,7 +1909,7 @@
18691909
},
18701910
"browserify>util>is-typed-array>gopd": {
18711911
"packages": {
1872-
"eslint-plugin-import>array-includes>get-intrinsic": true
1912+
"lavamoat>json-stable-stringify>call-bind>get-intrinsic": true
18731913
}
18741914
},
18751915
"depcheck>@babel/traverse": {
@@ -1910,7 +1950,12 @@
19101950
"process.versions": true
19111951
},
19121952
"packages": {
1913-
"browserify>has": true
1953+
"depcheck>is-core-module>hasown": true
1954+
}
1955+
},
1956+
"depcheck>is-core-module>hasown": {
1957+
"packages": {
1958+
"browserify>has>function-bind": true
19141959
}
19151960
},
19161961
"depcheck>json5": {
@@ -1963,62 +2008,6 @@
19632008
"process": true
19642009
}
19652010
},
1966-
"eslint-plugin-import>array-includes>get-intrinsic": {
1967-
"globals": {
1968-
"AggregateError": true,
1969-
"FinalizationRegistry": true,
1970-
"WeakRef": true
1971-
},
1972-
"packages": {
1973-
"browserify>has>function-bind": true,
1974-
"eslint-plugin-import>array-includes>get-intrinsic>has-proto": true,
1975-
"eslint-plugin-import>array-includes>get-intrinsic>hasown": true,
1976-
"eslint-plugin-import>object.values>es-abstract>has-symbols": true,
1977-
"lavamoat>json-stable-stringify>call-bind>es-errors": true
1978-
}
1979-
},
1980-
"eslint-plugin-import>array-includes>get-intrinsic>hasown": {
1981-
"packages": {
1982-
"browserify>has>function-bind": true
1983-
}
1984-
},
1985-
"eslint-plugin-import>object.values>es-abstract>has-property-descriptors": {
1986-
"packages": {
1987-
"lavamoat>json-stable-stringify>call-bind>es-define-property": true
1988-
}
1989-
},
1990-
"eslint-plugin-import>tsconfig-paths": {
1991-
"builtin": {
1992-
"fs.existsSync": true,
1993-
"fs.lstatSync": true,
1994-
"fs.readFile": true,
1995-
"fs.readFileSync": true,
1996-
"fs.stat": true,
1997-
"fs.statSync": true,
1998-
"module._resolveFilename": true,
1999-
"module.builtinModules": true,
2000-
"path.dirname": true,
2001-
"path.isAbsolute": true,
2002-
"path.join": true,
2003-
"path.resolve": true
2004-
},
2005-
"globals": {
2006-
"console.warn": true,
2007-
"process.argv.slice": true,
2008-
"process.cwd": true,
2009-
"process.env": true
2010-
},
2011-
"packages": {
2012-
"browserify>subarg>minimist": true,
2013-
"eslint-plugin-import>tsconfig-paths>json5": true,
2014-
"eslint-plugin-import>tsconfig-paths>strip-bom": true
2015-
}
2016-
},
2017-
"eslint-plugin-import>tsconfig-paths>json5": {
2018-
"globals": {
2019-
"console.warn": true
2020-
}
2021-
},
20222011
"eslint>chalk>ansi-styles": {
20232012
"packages": {
20242013
"eslint>chalk>ansi-styles>color-convert": true
@@ -2048,13 +2037,6 @@
20482037
"eslint>debug>ms": true
20492038
}
20502039
},
2051-
"eslint>espree": {
2052-
"packages": {
2053-
"eslint>eslint-visitor-keys": true,
2054-
"eslint>espree>acorn-jsx": true,
2055-
"terser>acorn": true
2056-
}
2057-
},
20582040
"eslint>espree>acorn-jsx": {
20592041
"packages": {
20602042
"terser>acorn": true
@@ -2067,16 +2049,16 @@
20672049
"util.promisify": true
20682050
}
20692051
},
2070-
"eslint>strip-ansi": {
2071-
"packages": {
2072-
"eslint>strip-ansi>ansi-regex": true
2073-
}
2074-
},
20752052
"istanbul-lib-report>supports-color>has-flag": {
20762053
"globals": {
20772054
"process.argv": true
20782055
}
20792056
},
2057+
"jest>@jest/core>strip-ansi": {
2058+
"packages": {
2059+
"@types/jest>pretty-format>ansi-regex": true
2060+
}
2061+
},
20802062
"lavamoat-browserify": {
20812063
"builtin": {
20822064
"fs.existsSync": true,
@@ -2153,7 +2135,41 @@
21532135
"node:path.relative": true
21542136
},
21552137
"packages": {
2156-
"depcheck>resolve": true
2138+
"lavamoat>@lavamoat/aa>resolve": true
2139+
}
2140+
},
2141+
"lavamoat>@lavamoat/aa>resolve": {
2142+
"builtin": {
2143+
"fs.readFile": true,
2144+
"fs.readFileSync": true,
2145+
"fs.realpath": true,
2146+
"fs.realpathSync": true,
2147+
"fs.stat": true,
2148+
"fs.statSync": true,
2149+
"os.homedir": true,
2150+
"path.dirname": true,
2151+
"path.join": true,
2152+
"path.parse": true,
2153+
"path.relative": true,
2154+
"path.resolve": true
2155+
},
2156+
"globals": {
2157+
"process.env.HOME": true,
2158+
"process.env.HOMEDRIVE": true,
2159+
"process.env.HOMEPATH": true,
2160+
"process.env.LNAME": true,
2161+
"process.env.LOGNAME": true,
2162+
"process.env.USER": true,
2163+
"process.env.USERNAME": true,
2164+
"process.env.USERPROFILE": true,
2165+
"process.getuid": true,
2166+
"process.nextTick": true,
2167+
"process.platform": true,
2168+
"process.versions.pnp": true
2169+
},
2170+
"packages": {
2171+
"depcheck>is-core-module": true,
2172+
"depcheck>resolve>path-parse": true
21572173
}
21582174
},
21592175
"lavamoat>json-stable-stringify": {
@@ -2167,24 +2183,38 @@
21672183
"lavamoat>json-stable-stringify>call-bind": {
21682184
"packages": {
21692185
"browserify>has>function-bind": true,
2170-
"eslint-plugin-import>array-includes>get-intrinsic": true,
21712186
"lavamoat>json-stable-stringify>call-bind>es-define-property": true,
21722187
"lavamoat>json-stable-stringify>call-bind>es-errors": true,
2188+
"lavamoat>json-stable-stringify>call-bind>get-intrinsic": true,
21732189
"lavamoat>json-stable-stringify>call-bind>set-function-length": true
21742190
}
21752191
},
21762192
"lavamoat>json-stable-stringify>call-bind>es-define-property": {
21772193
"packages": {
2178-
"eslint-plugin-import>array-includes>get-intrinsic": true
2194+
"lavamoat>json-stable-stringify>call-bind>get-intrinsic": true
2195+
}
2196+
},
2197+
"lavamoat>json-stable-stringify>call-bind>get-intrinsic": {
2198+
"globals": {
2199+
"AggregateError": true,
2200+
"FinalizationRegistry": true,
2201+
"WeakRef": true
2202+
},
2203+
"packages": {
2204+
"browserify>has>function-bind": true,
2205+
"depcheck>is-core-module>hasown": true,
2206+
"lavamoat>json-stable-stringify>call-bind>es-errors": true,
2207+
"lavamoat>json-stable-stringify>call-bind>get-intrinsic>has-proto": true,
2208+
"lavamoat>json-stable-stringify>call-bind>get-intrinsic>has-symbols": true
21792209
}
21802210
},
21812211
"lavamoat>json-stable-stringify>call-bind>set-function-length": {
21822212
"packages": {
21832213
"browserify>util>is-typed-array>gopd": true,
2184-
"eslint-plugin-import>array-includes>get-intrinsic": true,
2185-
"eslint-plugin-import>object.values>es-abstract>has-property-descriptors": true,
21862214
"lavamoat>json-stable-stringify>call-bind>es-errors": true,
2187-
"lavamoat>json-stable-stringify>call-bind>set-function-length>define-data-property": true
2215+
"lavamoat>json-stable-stringify>call-bind>get-intrinsic": true,
2216+
"lavamoat>json-stable-stringify>call-bind>set-function-length>define-data-property": true,
2217+
"lavamoat>json-stable-stringify>call-bind>set-function-length>has-property-descriptors": true
21882218
}
21892219
},
21902220
"lavamoat>json-stable-stringify>call-bind>set-function-length>define-data-property": {
@@ -2194,6 +2224,11 @@
21942224
"lavamoat>json-stable-stringify>call-bind>es-errors": true
21952225
}
21962226
},
2227+
"lavamoat>json-stable-stringify>call-bind>set-function-length>has-property-descriptors": {
2228+
"packages": {
2229+
"lavamoat>json-stable-stringify>call-bind>es-define-property": true
2230+
}
2231+
},
21972232
"lavamoat>lavamoat-core": {
21982233
"builtin": {
21992234
"events": true,
@@ -2369,22 +2404,15 @@
23692404
"define": true
23702405
},
23712406
"packages": {
2372-
"terser>@jridgewell/source-map>@jridgewell/trace-mapping>@jridgewell/resolve-uri": true,
2373-
"terser>@jridgewell/source-map>@jridgewell/trace-mapping>@jridgewell/sourcemap-codec": true
2407+
"terser>@jridgewell/source-map>@jridgewell/gen-mapping>@jridgewell/sourcemap-codec": true,
2408+
"terser>@jridgewell/source-map>@jridgewell/trace-mapping>@jridgewell/resolve-uri": true
23742409
}
23752410
},
23762411
"terser>@jridgewell/source-map>@jridgewell/trace-mapping>@jridgewell/resolve-uri": {
23772412
"globals": {
23782413
"define": true
23792414
}
23802415
},
2381-
"terser>@jridgewell/source-map>@jridgewell/trace-mapping>@jridgewell/sourcemap-codec": {
2382-
"globals": {
2383-
"Buffer": true,
2384-
"TextDecoder": true,
2385-
"define": true
2386-
}
2387-
},
23882416
"terser>acorn": {
23892417
"globals": {
23902418
"console": true,
@@ -2397,13 +2425,8 @@
23972425
}
23982426
},
23992427
"vite>postcss>picocolors": {
2400-
"builtin": {
2401-
"tty.isatty": true
2402-
},
24032428
"globals": {
2404-
"process.argv.includes": true,
2405-
"process.env": true,
2406-
"process.platform": true
2429+
"process": true
24072430
}
24082431
},
24092432
"yargs": {
@@ -2436,15 +2459,15 @@
24362459
"process": true
24372460
},
24382461
"packages": {
2439-
"eslint>strip-ansi": true,
2462+
"jest>@jest/core>strip-ansi": true,
24402463
"yargs>cliui>wrap-ansi": true,
24412464
"yargs>string-width": true
24422465
}
24432466
},
24442467
"yargs>cliui>wrap-ansi": {
24452468
"packages": {
24462469
"eslint>chalk>ansi-styles": true,
2447-
"eslint>strip-ansi": true,
2470+
"jest>@jest/core>strip-ansi": true,
24482471
"yargs>string-width": true
24492472
}
24502473
},
@@ -2467,7 +2490,7 @@
24672490
},
24682491
"yargs>string-width": {
24692492
"packages": {
2470-
"eslint>strip-ansi": true,
2493+
"jest>@jest/core>strip-ansi": true,
24712494
"yargs>string-width>emoji-regex": true,
24722495
"yargs>string-width>is-fullwidth-code-point": true
24732496
}

0 commit comments

Comments
 (0)