isRelPathSpecifier returns true if the specifier is a local path.
(specifier string)
| 60 | |
| 61 | // isRelPathSpecifier returns true if the specifier is a local path. |
| 62 | func 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. |
| 67 | func semverLessThan(a string, b string) bool { |
no outgoing calls