MCPcopy Create free account
hub / github.com/chakra-ui/panda / waitForRegistry

Function waitForRegistry

scripts/setup-trusted-publishing.mjs:162–174  ·  view source on GitHub ↗
(name, attempts = 20)

Source from the content-addressed store, hash-verified

160}
161
162function waitForRegistry(name, attempts = 20) {
163 process.stdout.write(` … waiting for ${name} to appear on npm`)
164 for (let i = 0; i < attempts; i++) {
165 if (existsOnRegistry(name)) {
166 process.stdout.write(' ok\n')
167 return
168 }
169 process.stdout.write('.')
170 sleep(3000)
171 }
172 process.stdout.write('\n')
173 throw new Error(`${name} did not show up on the registry in time`)
174}
175
176function whoami() {
177 try {

Callers 1

Calls 2

existsOnRegistryFunction · 0.85
sleepFunction · 0.85

Tested by

no test coverage detected