MCPcopy Index your code
hub / github.com/nodejs/node / getEntityUrl

Method getEntityUrl

deps/npm/lib/commands/trust/gitlab.js:50–55  ·  view source on GitHub ↗
({ providerHostname, file, entity })

Source from the content-addressed store, hash-verified

48 ]
49
50 getEntityUrl ({ providerHostname, file, entity }) {
51 if (file) {
52 return new URL(`${entity}/-/blob/HEAD/${file}`, providerHostname).toString()
53 }
54 return new URL(entity, providerHostname).toString()
55 }
56
57 validateEntity (entity) {
58 if (entity.split('/').length < 2) {

Callers 1

flagsToOptionsMethod · 0.45

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected