MCPcopy Index your code
hub / github.com/adobe/react-spectrum / serveVersionBumps

Method serveVersionBumps

scripts/bumpVersions.js:294–309  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

292 }
293
294 serveVersionBumps(req, res) {
295 return new Promise(resolve => {
296 let body = '';
297 req.on('data', data => {
298 body += data;
299 });
300
301 req.on('end', () => {
302 this.versionBumps = qs.parse(body);
303 res.setHeader('Content-Type', 'text/html');
304 res.end('<html style="color-scheme: dark light"><body>Done!</body></html>', () => {
305 resolve();
306 });
307 });
308 });
309 }
310
311 addReleasedPackage(pkg, bump, isDep = false) {
312 bump = this.versionBumps[pkg] || bump;

Callers 1

getVersionBumpsMethod · 0.95

Calls 3

endMethod · 0.80
resolveFunction · 0.50
parseMethod · 0.45

Tested by

no test coverage detected