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

Method createConfig

deps/npm/lib/trust-cmd.js:58–66  ·  view source on GitHub ↗
(pkg, body)

Source from the content-addressed store, hash-verified

56 }
57
58 createConfig (pkg, body) {
59 const spec = npa(pkg)
60 const uri = `/-/package/${spec.escapedName}/trust`
61 return otplease(this.npm, this.npm.flatOptions, opts => npmFetch(uri, {
62 ...opts,
63 method: 'POST',
64 body: body,
65 }))
66 }
67
68 static permissionLabels = {
69 [PERMISSIONS.CREATE_PACKAGE]: 'publish',

Callers 2

createConfigCommandMethod · 0.95
trust-cmd.jsFile · 0.80

Calls 2

otpleaseFunction · 0.85
npmFetchFunction · 0.85

Tested by

no test coverage detected