PATH:
opt
/
alt
/
alt-nodejs19
/
root
/
usr
/
lib
/
node_modules
/
npm
/
lib
/
utils
const EventEmitter = require('events') const { webAuthCheckLogin } = require('npm-profile') async function webAuth (opener, initialUrl, doneUrl, opts) { const doneEmitter = new EventEmitter() const openPromise = opener(initialUrl, doneEmitter) const webAuthCheckPromise = webAuthCheckLogin(doneUrl, { ...opts, cache: false }) .then(authResult => { // cancel open prompt if it's present doneEmitter.emit('abort') return authResult.token }) await openPromise return await webAuthCheckPromise } module.exports = webAuth
[-] error-message.js
[open]
[+]
..
[-] display.js
[open]
[-] validate-lockfile.js
[open]
[-] reify-finish.js
[open]
[+]
config
[-] npm-usage.js
[open]
[-] did-you-mean.js
[open]
[-] completion.sh
[open]
[-] pulse-till-done.js
[open]
[-] completion.fish
[open]
[-] read-user-info.js
[open]
[-] explain-eresolve.js
[open]
[-] audit-error.js
[open]
[-] log-shim.js
[open]
[-] get-identity.js
[open]
[-] cmd-list.js
[open]
[+]
completion
[-] auth.js
[open]
[-] tar.js
[open]
[-] explain-dep.js
[open]
[-] ansi-trim.js
[open]
[-] open-url.js
[open]
[-] replace-info.js
[open]
[-] format-bytes.js
[open]
[-] is-windows.js
[open]
[-] log-file.js
[open]
[-] update-notifier.js
[open]
[-] format-search-stream.js
[open]
[-] otplease.js
[open]
[-] open-url-prompt.js
[open]
[-] web-auth.js
[open]
[-] exit-handler.js
[open]
[-] timers.js
[open]
[-] reify-output.js
[open]
[-] ping.js
[open]
[-] queryable.js
[open]