Module deno_graph::source
source · Structs§
- Information that comes from an external source which can be optionally included in the module graph.
- An implementation of the loader attribute where the responses are provided ahead of time. This is useful for testing or
Enums§
- The response that is expected from a loader’s
.load()
method. - The kind of resolution currently being done by deno_graph.
Constants§
Statics§
Traits§
- A trait which allows asynchronous loading of source files into a module graph in a thread safe way as well as a way to provide additional meta data about any cached resources.
- A trait which can be used to allow the module graph to report status events to the user.
- A trait which allows the module graph to resolve specifiers and type only dependencies. This can be use to provide import maps and override other default resolution logic used by
deno_graph
.
Functions§
- Decodes the source bytes into a string handling any encoding rules where the source is a
file:
specifier. - Decodes the source bytes into a string handling any encoding rules where the bytes may be from a remote module, file module, or other.
- Decodes the source bytes into a string handling any encoding rules for local vs remote files and dealing with the charset.
- The recommended way for getting the registry URL for a package.
- The recommended way to get the package name and version from a URL that is found on the registry.
- Resolve a media type and optionally the charset from a module specifier and the value of a content type header.
- Resolve a media type and optionally the charset from a module specifier and the value of a content type header.