MCPcopy
hub / github.com/esm-dev/esm.sh / FetchImportMeta

Method FetchImportMeta

internal/importmap/importmap.go:290–292  ·  view source on GitHub ↗
(imp Import)

Source from the content-addressed store, hash-verified

288}
289
290func (im *ImportMap) FetchImportMeta(imp Import) (meta ImportMeta, err error) {
291 return fetchImportMeta(im.cdnOrigin(), imp, im.config.Target)
292}
293
294// AddImportFromSpecifier adds an import from a specifier to the import map.
295func (im *ImportMap) AddImportFromSpecifier(specifier string, noSRI bool) (warnings []string, errors []error) {

Callers 2

addImportMethod · 0.95
addImportsFunction · 0.80

Calls 2

cdnOriginMethod · 0.95
fetchImportMetaFunction · 0.85

Tested by

no test coverage detected