async function hasDiff(packageData, tag) {
    const { dirPath: packagePath } = packageData;
    let diff;
    if (DIFFS.has(tag)) {
        diff = DIFFS.get(tag);
    }
    else {
        diff = await getDiff(tag);
        DIFFS.set(tag, diff);
    }
    return diff.some((diffPath) => diffPath.startsWith(packagePath));
}
/**
 * Retrieves the diff for the given tag from the cache or performs the git diff
 * operation, caching the result and returning it.
 *
 * @param packageData - The metadata of the package to diff.
 * @param tag - The tag corresponding to the package's latest release.
 * @returns Whether the package changed since its last release.
 */
Retrieves the diff for the given tag from the cache or performs the git diff
operation, caching the result and returning it.

@param packageData - The metadata of the package to diff.
@param tag - The tag corresponding to the package's latest release.
@returns Whether the package changed since its last release.
Retrieves the diff for the given tag from the cache or performs the git diff operation caching the result and returning it . @param packageData - The metadata of the package to diff . @param tag - The tag corresponding to the package ' s latest release . @returns Whether the package changed since its last release .
async function hasDiff(packageData, tag) {
    const { dirPath: packagePath } = packageData;
    let diff;
    if (DIFFS.has(tag)) {
        diff = DIFFS.get(tag);
    }
    else {
        diff = await getDiff(tag);
        DIFFS.set(tag, diff);
    }
    return diff.some((diffPath) => diffPath.startsWith(packagePath));
}
async function hasDiff ( packageData , tag ) { const { dirPath : packagePath } = packageData ; let diff ; if ( DIFFS . has ( tag ) ) { diff = DIFFS . get ( tag ) ; } else { diff = await getDiff ( tag ) ; DIFFS . set ( tag , diff ) ; } return diff . some ( ( diffPath ) => diffPath . startsWith ( packagePath ) ) ; }
Retrieves the diff for the given tag from the cache or performs the git diff
 operation, caching the result and returning it.
Retrieves the diff for the given tag from the cache or performs the git diff operation caching the result and returning it .