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

Method Has

internal/importmap/importmap.go:52–57  ·  view source on GitHub ↗

Has returns true if the key is in the imports map.

(specifier string)

Source from the content-addressed store, hash-verified

50
51// Has returns true if the key is in the imports map.
52func (i *Imports) Has(specifier string) bool {
53 i.lock.RLock()
54 defer i.lock.RUnlock()
55 _, ok := i.imports[specifier]
56 return ok
57}
58
59// Get returns the value of the key in the imports map.
60func (i *Imports) Get(specifier string) (string, bool) {

Callers 15

addImportMethod · 0.80
corsFunction · 0.80
customLandingPageFunction · 0.80
esmRouterFunction · 0.80
legacyESMFunction · 0.80
cjsModuleLexerFunction · 0.80
resolveBuildArgsFunction · 0.80
walkDepsFunction · 0.80
transformFunction · 0.80
buildModuleMethod · 0.80
analyzeSplittingMethod · 0.80
resolveExternalModuleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected