run() — react Function Reference
Architecture documentation for the run() function in prompt-for-otp.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 2758515c_4b1b_5c10_7ae1_bce636f15e9c["run()"] e17c6e64_63b3_dd0e_cc4f_958281e1b9ac["prompt-for-otp.js"] 2758515c_4b1b_5c10_7ae1_bce636f15e9c -->|defined in| e17c6e64_63b3_dd0e_cc4f_958281e1b9ac style 2758515c_4b1b_5c10_7ae1_bce636f15e9c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/release/publish-commands/prompt-for-otp.js lines 8–21
const run = async () => {
while (true) {
const otp = await prompt('NPM 2-factor auth code: ');
prompt.done();
if (otp) {
return otp;
} else {
console.log();
console.log(theme.error`Two-factor auth is required to publish.`);
// (Ask again.)
}
}
};
Domain
Subdomains
Source
Frequently Asked Questions
What does run() do?
run() is a function in the react codebase, defined in scripts/release/publish-commands/prompt-for-otp.js.
Where is run() defined?
run() is defined in scripts/release/publish-commands/prompt-for-otp.js at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free