Skip to content

Commit 9b018ab

Browse files
committed
feat(compartment-mapper): implementation based on endojs/endo#2929
- Adds `include` to policy for force-loading compartments during generation - Upgrades `@endo/compartment-mapper` and `ses` to latest - Removes custom `Compartment` subclass for policy generation - Reorganize reporting functionality into its own modules - Use package descriptors from `mapNodeModules()`' `PackageCompartmentDescriptor`s to determine if missing modules are optional or not, and squelch warnings if they are - Rename `root` CLI arg to `project-root` (backwards compat) - Reorganize text formatting into its own module (`format.js`) - Overhaul options-bag types - Differentiate _merged_ policies from unmerged policies for safety - Fixed many bugs, including some additional work around reading policies - Update many tests, snapshots, fixtures
1 parent 81f2cb0 commit 9b018ab

File tree

140 files changed

+3620
-1639
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+3620
-1639
lines changed

package-lock.json

Lines changed: 252 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"@typescript-eslint/eslint-plugin": "7.18.0",
5050
"@typescript-eslint/parser": "7.18.0",
5151
"ava": "6.4.1",
52+
"c8": "10.1.3",
5253
"cross-env": "7.0.3",
5354
"depcheck": "1.4.7",
5455
"eslint": "8.57.1",

packages/node/.c8rc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"lines": 94.17,
3+
"statements": 94.17,
4+
"functions": 96.74,
5+
"branches": 81.79,
6+
"branchesTrue": 100
7+
}

0 commit comments

Comments
 (0)