MCPcopy Index your code
hub / github.com/nodejs/node / #setMfa

Method #setMfa

deps/npm/lib/commands/access.js:161–166  ·  view source on GitHub ↗
(pkg, level)

Source from the content-addressed store, hash-verified

159 }
160
161 async #setMfa (pkg, level) {
162 const pkgName = await this.#getPackage(pkg, false)
163 await otplease(this.npm, this.npm.flatOptions, (opts) => {
164 return libnpmaccess.setMfa(pkgName, level, opts)
165 })
166 }
167
168 async #setStatus (pkg, status) {
169 // only scoped packages can have their access changed

Callers 1

#setMethod · 0.95

Calls 2

#getPackageMethod · 0.95
otpleaseFunction · 0.85

Tested by

no test coverage detected