MCPcopy Create free account
hub / github.com/nodejs/node / getEntityUrl

Method getEntityUrl

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected