Commit 094f2191 authored by bigdaz's avatar bigdaz Committed by github-actions[bot]
Browse files

[bot] Update dist directory

parent 83709b49
Loading
Loading
Loading
Loading
+13 −9
Changes for dist/dependency-submission/main/index.js: 13 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -182455,7 +182455,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.KNOWN_CHECKSUMS = exports.WrapperChecksums = void 0;
exports.fetchUnknownChecksums = fetchUnknownChecksums;
exports.addDistributionSnapshotChecksums = addDistributionSnapshotChecksums;
const httpm = __importStar(__nccwpck_require__(96184));
const cheerio = __importStar(__nccwpck_require__(36962));
const wrapper_checksums_json_1 = __importDefault(__nccwpck_require__(46629));
@@ -182489,14 +182488,16 @@ async function fetchUnknownChecksums(allowSnapshots, knownChecksums) {
    const withChecksum = all.filter(entry => typeof entry === 'object' && entry != null && entry.hasOwnProperty('wrapperChecksumUrl'));
    const allowed = withChecksum.filter((entry) => allowSnapshots || !entry.snapshot);
    const notKnown = allowed.filter((entry) => !knownChecksums.versions.has(entry.version));
    const checksumUrls = notKnown.map((entry) => entry.wrapperChecksumUrl);
    const checksumUrls = notKnown.map((entry) => [entry.version, entry.wrapperChecksumUrl]);
    if (allowSnapshots) {
        await addDistributionSnapshotChecksums(checksumUrls);
        await addDistributionSnapshotChecksumUrls(checksumUrls);
    }
    const checksums = await Promise.all(checksumUrls.map(async (url) => {
        return httpGetText(url);
    const wrapperChecksums = new WrapperChecksums();
    await Promise.all(checksumUrls.map(async ([version, url]) => {
        const checksum = await httpGetText(url);
        wrapperChecksums.add(version, checksum);
    }));
    return new Set(checksums);
    return wrapperChecksums;
}
async function httpGetJsonArray(url) {
    return JSON.parse(await httpGetText(url));
@@ -182505,13 +182506,16 @@ async function httpGetText(url) {
    const response = await httpc.get(url);
    return await response.readBody();
}
async function addDistributionSnapshotChecksums(checksumUrls) {
async function addDistributionSnapshotChecksumUrls(checksumUrls) {
    const indexPage = await httpGetText('https://services.gradle.org/distributions-snapshots/');
    const $ = cheerio.load(indexPage);
    const wrapperChecksumLinks = $('a[href$="-wrapper.jar.sha256"]');
    wrapperChecksumLinks.each((index, element) => {
        const url = $(element).attr('href');
        checksumUrls.push(`https://services.gradle.org${url}`);
        const version = url.match(/\/distributions-snapshots\/gradle-(.*?)-wrapper\.jar\.sha256/)?.[1];
        if (version) {
            checksumUrls.push([version, `https://services.gradle.org${url}`]);
        }
    });
}
@@ -182690,7 +182694,7 @@ async function findInvalidWrapperJars(gitRepoRoot, allowSnapshots, allowedChecks
            result.fetchedChecksums = true;
            const fetchedValidChecksums = await checksums.fetchUnknownChecksums(allowSnapshots, knownValidChecksums);
            for (const wrapperJar of notYetValidatedWrappers) {
                if (!fetchedValidChecksums.has(wrapperJar.checksum)) {
                if (!fetchedValidChecksums.checksums.has(wrapperJar.checksum)) {
                    result.invalid.push(wrapperJar);
                }
                else {
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+13 −9
Changes for dist/dependency-submission/post/index.js: 13 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -135783,7 +135783,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.KNOWN_CHECKSUMS = exports.WrapperChecksums = void 0;
exports.fetchUnknownChecksums = fetchUnknownChecksums;
exports.addDistributionSnapshotChecksums = addDistributionSnapshotChecksums;
const httpm = __importStar(__nccwpck_require__(96184));
const cheerio = __importStar(__nccwpck_require__(36962));
const wrapper_checksums_json_1 = __importDefault(__nccwpck_require__(46629));
@@ -135817,14 +135816,16 @@ async function fetchUnknownChecksums(allowSnapshots, knownChecksums) {
    const withChecksum = all.filter(entry => typeof entry === 'object' && entry != null && entry.hasOwnProperty('wrapperChecksumUrl'));
    const allowed = withChecksum.filter((entry) => allowSnapshots || !entry.snapshot);
    const notKnown = allowed.filter((entry) => !knownChecksums.versions.has(entry.version));
    const checksumUrls = notKnown.map((entry) => entry.wrapperChecksumUrl);
    const checksumUrls = notKnown.map((entry) => [entry.version, entry.wrapperChecksumUrl]);
    if (allowSnapshots) {
        await addDistributionSnapshotChecksums(checksumUrls);
        await addDistributionSnapshotChecksumUrls(checksumUrls);
    }
    const checksums = await Promise.all(checksumUrls.map(async (url) => {
        return httpGetText(url);
    const wrapperChecksums = new WrapperChecksums();
    await Promise.all(checksumUrls.map(async ([version, url]) => {
        const checksum = await httpGetText(url);
        wrapperChecksums.add(version, checksum);
    }));
    return new Set(checksums);
    return wrapperChecksums;
}
async function httpGetJsonArray(url) {
    return JSON.parse(await httpGetText(url));
@@ -135833,13 +135834,16 @@ async function httpGetText(url) {
    const response = await httpc.get(url);
    return await response.readBody();
}
async function addDistributionSnapshotChecksums(checksumUrls) {
async function addDistributionSnapshotChecksumUrls(checksumUrls) {
    const indexPage = await httpGetText('https://services.gradle.org/distributions-snapshots/');
    const $ = cheerio.load(indexPage);
    const wrapperChecksumLinks = $('a[href$="-wrapper.jar.sha256"]');
    wrapperChecksumLinks.each((index, element) => {
        const url = $(element).attr('href');
        checksumUrls.push(`https://services.gradle.org${url}`);
        const version = url.match(/\/distributions-snapshots\/gradle-(.*?)-wrapper\.jar\.sha256/)?.[1];
        if (version) {
            checksumUrls.push([version, `https://services.gradle.org${url}`]);
        }
    });
}
@@ -136018,7 +136022,7 @@ async function findInvalidWrapperJars(gitRepoRoot, allowSnapshots, allowedChecks
            result.fetchedChecksums = true;
            const fetchedValidChecksums = await checksums.fetchUnknownChecksums(allowSnapshots, knownValidChecksums);
            for (const wrapperJar of notYetValidatedWrappers) {
                if (!fetchedValidChecksums.has(wrapperJar.checksum)) {
                if (!fetchedValidChecksums.checksums.has(wrapperJar.checksum)) {
                    result.invalid.push(wrapperJar);
                }
                else {
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+13 −9
Changes for dist/setup-gradle/main/index.js: 13 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -182440,7 +182440,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.KNOWN_CHECKSUMS = exports.WrapperChecksums = void 0;
exports.fetchUnknownChecksums = fetchUnknownChecksums;
exports.addDistributionSnapshotChecksums = addDistributionSnapshotChecksums;
const httpm = __importStar(__nccwpck_require__(96184));
const cheerio = __importStar(__nccwpck_require__(36962));
const wrapper_checksums_json_1 = __importDefault(__nccwpck_require__(46629));
@@ -182474,14 +182473,16 @@ async function fetchUnknownChecksums(allowSnapshots, knownChecksums) {
    const withChecksum = all.filter(entry => typeof entry === 'object' && entry != null && entry.hasOwnProperty('wrapperChecksumUrl'));
    const allowed = withChecksum.filter((entry) => allowSnapshots || !entry.snapshot);
    const notKnown = allowed.filter((entry) => !knownChecksums.versions.has(entry.version));
    const checksumUrls = notKnown.map((entry) => entry.wrapperChecksumUrl);
    const checksumUrls = notKnown.map((entry) => [entry.version, entry.wrapperChecksumUrl]);
    if (allowSnapshots) {
        await addDistributionSnapshotChecksums(checksumUrls);
        await addDistributionSnapshotChecksumUrls(checksumUrls);
    }
    const checksums = await Promise.all(checksumUrls.map(async (url) => {
        return httpGetText(url);
    const wrapperChecksums = new WrapperChecksums();
    await Promise.all(checksumUrls.map(async ([version, url]) => {
        const checksum = await httpGetText(url);
        wrapperChecksums.add(version, checksum);
    }));
    return new Set(checksums);
    return wrapperChecksums;
}
async function httpGetJsonArray(url) {
    return JSON.parse(await httpGetText(url));
@@ -182490,13 +182491,16 @@ async function httpGetText(url) {
    const response = await httpc.get(url);
    return await response.readBody();
}
async function addDistributionSnapshotChecksums(checksumUrls) {
async function addDistributionSnapshotChecksumUrls(checksumUrls) {
    const indexPage = await httpGetText('https://services.gradle.org/distributions-snapshots/');
    const $ = cheerio.load(indexPage);
    const wrapperChecksumLinks = $('a[href$="-wrapper.jar.sha256"]');
    wrapperChecksumLinks.each((index, element) => {
        const url = $(element).attr('href');
        checksumUrls.push(`https://services.gradle.org${url}`);
        const version = url.match(/\/distributions-snapshots\/gradle-(.*?)-wrapper\.jar\.sha256/)?.[1];
        if (version) {
            checksumUrls.push([version, `https://services.gradle.org${url}`]);
        }
    });
}
@@ -182675,7 +182679,7 @@ async function findInvalidWrapperJars(gitRepoRoot, allowSnapshots, allowedChecks
            result.fetchedChecksums = true;
            const fetchedValidChecksums = await checksums.fetchUnknownChecksums(allowSnapshots, knownValidChecksums);
            for (const wrapperJar of notYetValidatedWrappers) {
                if (!fetchedValidChecksums.has(wrapperJar.checksum)) {
                if (!fetchedValidChecksums.checksums.has(wrapperJar.checksum)) {
                    result.invalid.push(wrapperJar);
                }
                else {
Loading