UNPKG

@endo/compartment-mapper

Version:

The compartment mapper assembles Node applications in a sandbox

346 lines (69 loc) 9.93 kB
/** * Internal types of the compartment mapper that need not be visible to * consumers. * * @module */ /* eslint-disable no-use-before-define */ /** * The value returned by `makeMapParsers()` */ /** * As used in `import-hook.js` */ /** * Operators for `chooseModuleDescriptor` representing asynchronous operation. */ /** * Either synchronous or asynchronous operators for `chooseModuleDescriptor`. */ /** * The agglomeration of things that the `chooseModuleDescriptor` generator can * yield. * * The generator does not necessarily yield _all_ of these; it depends on * whether the operators are {@link AsyncChooseModuleDescriptorOperators} or * {@link SyncChooseModuleDescriptorOperators}. */ /** * Parameters for `findRedirect()`. */ /** * Options for `makeMapParsers()` */ /** * Options for `search()` */ /** * Object fulfilled from `search()` */ /** * Object fulfilled from `searchDescriptor()` * * @template T The datatype; may be a {@link PackageDescriptor}, blob, string, etc. */ /** * Options for `searchDescriptor()` */ /** * A power to read a package descriptor * @template T Format of package descriptor * @deprecated Use {@link MaybeReadDescriptorFn} instead. */ /** * A power to _maybe_ read a package descriptor * @template T Format of package descriptor */ /** * Function returning a set of module names (scoped to the compartment) whose * parser is not using heuristics to determine imports. */ /** * Function which decides whether to throw an error immediately upon failing to * load a module or defer to execution time. * * @returns A phony `StaticModuleType` which throws when executed */ /** * Per-call configuration passed into {@link getParserGenerator}. */