MCPcopy Create free account
hub / github.com/adobe/react-spectrum / serveVersionBumps

Method serveVersionBumps

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

Source from the content-addressed store, hash-verified

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