endojs / endo

Endo is a distributed secure JavaScript sandbox, based on SES
Apache License 2.0
788 stars 70 forks source link

feat(compartment-mapper): expose loadCompartmentForArchive #2189

Closed boneskull closed 1 month ago

boneskull commented 4 months ago

Description

This extracts a function, loadCompartmentForArchive(), from digestLocation() in archive.js, and exposes it. This function returns archival-ready data structures, in addition to a record of the compartment renames which makeArchiveCompartmentMap() performs.

The intent is to leverage the module resolution performed by the function, which is reflected in its output. A consumer can use the information therein to perform additional operations on the tree (e.g., parse ASTs).

Upgrade Considerations

This is a backwards-compatible change

boneskull commented 4 months ago

[!WARNING] This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite. Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @boneskull and the rest of your teammates on Graphite Graphite