puppeteer/tools/get_deprecated_version_range.js
2024-01-03 10:11:33 +00:00

19 lines
441 B
JavaScript

/**
* @license
* Copyright 2022 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/
const {
versionsPerRelease,
lastMaintainedChromeVersion,
} = require('../versions.js');
const version = versionsPerRelease.get(lastMaintainedChromeVersion);
if (version.toLowerCase() === 'next') {
console.error('Unexpected NEXT Puppeteer version in versions.js');
process.exit(1);
}
console.log(`< ${version.substring(1)}`);
process.exit(0);