()
| 35 | } |
| 36 | |
| 37 | func (p EsmPath) PackageId() string { |
| 38 | id := p.PkgName |
| 39 | if p.PkgVersion != "" && p.PkgVersion != "*" && p.PkgVersion != "latest" { |
| 40 | id += "@" + strings.ReplaceAll(p.PkgVersion, " ", "%20") |
| 41 | } |
| 42 | if p.GhPrefix { |
| 43 | return "gh/" + id |
| 44 | } |
| 45 | if p.PrPrefix { |
| 46 | return "pr/" + id |
| 47 | } |
| 48 | return id |
| 49 | } |
| 50 | |
| 51 | func (p EsmPath) String() string { |
| 52 | if p.SubPath != "" { |
no outgoing calls
no test coverage detected