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

Function isRelPathSpecifier

server/utils.go:62–64  ·  view source on GitHub ↗

isRelPathSpecifier returns true if the specifier is a local path.

(specifier string)

Source from the content-addressed store, hash-verified

60
61// isRelPathSpecifier returns true if the specifier is a local path.
62func isRelPathSpecifier(specifier string) bool {
63 return strings.HasPrefix(specifier, "./") || strings.HasPrefix(specifier, "../")
64}
65
66// semverLessThan returns true if the version a is less than the version b.
67func semverLessThan(a string, b string) bool {

Callers 7

TestDtsWalkerFunction · 0.70
relPathFunction · 0.70
buildUnenvNodeRuntimeFunction · 0.70
treeShakeFunction · 0.70
buildModuleMethod · 0.70
transformDTSFunction · 0.70
parseDtsFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestDtsWalkerFunction · 0.56