From 859a8406bfb008a613f6a13405e5ed1f2a5e87de Mon Sep 17 00:00:00 2001 From: Micah Nagel Date: Tue, 15 Apr 2025 11:46:47 -0600 Subject: [PATCH 01/12] feat: add renovate readiness action --- .eslintrc.json | 1 + .github/actions/renovate-readiness/README.md | 82 + .../actions/renovate-readiness/action.yaml | 176 +- .github/workflows/checkpoint.yaml | 7 +- .github/workflows/docs-shim.yaml | 10 +- .../workflows/pull-request-conditionals.yaml | 6 +- .github/workflows/slim-dev-test.yaml | 11 +- .github/workflows/test-aks.yaml | 12 +- .github/workflows/test-eks.yaml | 11 +- .github/workflows/test-rke2.yaml | 11 +- scripts/renovate/README.md | 67 + .../renovate/compareImagesAndCharts.spec.ts | 840 ++++ scripts/renovate/compareImagesAndCharts.ts | 274 ++ scripts/renovate/getImagesAndCharts.spec.ts | 390 ++ scripts/renovate/getImagesAndCharts.ts | 187 + scripts/renovate/jest.config.js | 6 + scripts/renovate/package-lock.json | 3734 +++++++++++++++++ scripts/renovate/package.json | 22 + scripts/renovate/tsconfig.json | 13 + tsconfig.json | 1 + 20 files changed, 5842 insertions(+), 19 deletions(-) create mode 100644 .github/actions/renovate-readiness/README.md create mode 100644 scripts/renovate/README.md create mode 100644 scripts/renovate/compareImagesAndCharts.spec.ts create mode 100644 scripts/renovate/compareImagesAndCharts.ts create mode 100644 scripts/renovate/getImagesAndCharts.spec.ts create mode 100644 scripts/renovate/getImagesAndCharts.ts create mode 100644 scripts/renovate/jest.config.js create mode 100644 scripts/renovate/package-lock.json create mode 100644 scripts/renovate/package.json create mode 100644 scripts/renovate/tsconfig.json diff --git a/.eslintrc.json b/.eslintrc.json index 63700e4c25..81e057d0f1 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -23,6 +23,7 @@ "jest.*.js", "test/playwright/", "test/jest/", + "scripts/", "uds-docs/" ], "root": true, diff --git a/.github/actions/renovate-readiness/README.md b/.github/actions/renovate-readiness/README.md new file mode 100644 index 0000000000..ece9f20a37 --- /dev/null +++ b/.github/actions/renovate-readiness/README.md @@ -0,0 +1,82 @@ +# Renovate Readiness Action + +This GitHub Action automates the process of checking if Renovate PRs are ready for testing. + +## Overview + +UDS Core uses [Renovate](https://github.com/renovatebot/renovate) to track and automate dependency updates. Due to support for 3 flavors of core (upstream, registry1, and unicorn), most dependency updates are not ready when the PRs are first opened. This action automates the process of checking if a PR is ready for testing. + +## How It Works + +The action performs the following steps: + +1. **Manual Override Check**: If the PR has the `renovate-ready` label, the action will set `should_process` to `false` and skip all other checks, allowing CI to proceed. + +2. **Branch Name Processing**: The action extracts the package name from the branch name by removing the `renovate/` prefix. + +3. **Special Case Handling**: + - **Pepr Updates**: For Pepr updates, the action compares the version in `package.json` with the image versions in `tasks/create.yaml`. If they don't match, it adds the `waiting on ironbank` label. + - **Support Dependencies**: For support dependency updates, the action adds the `needs-review` label and sets `should_process` to `false` to prevent excessive IAC runs. + +4. **Regular Package Updates**: + - The action performs sparse checkouts of the relevant package directory from both the PR branch and the main branch. + - It extracts images and charts from both branches using the `getImagesAndCharts.ts` script. + - It compares the extracted data using the `compareImagesAndCharts.ts` script. + - Based on the comparison, it applies appropriate labels to the PR: + - `waiting on ironbank`: If a registry1 image is behind + - `waiting on cgr`: If a chainguard image is behind + - `helm-chart-only`: If a PR only contains a helm chart update + - `needs-review`: If PR is NOT waiting on image updates + - `major-helm-update`: If the PR contains a major chart version bump + - `major-image-update`: If the PR contains a major image version bump + - If any `waiting on` labels are applied, the action sets `should_process` to `false` to prevent running CI. + +## Usage + +The action is automatically triggered for all Renovate PRs in the slim-dev-test.yaml workflow. No manual intervention is required. + +### Manual Override + +If you want to force a PR to run CI regardless of its readiness status, add the `renovate-ready` label to the PR. + +## Implementation Details + +- **TypeScript Scripts**: The core logic for extracting and comparing images and charts is implemented in TypeScript scripts located in the `scripts/renovate` directory. + - `getImagesAndCharts.ts`: Extracts images and charts from zarf.yaml files in a directory. + - `compareImagesAndCharts.ts`: Compares extracted images and charts between two directories and determines if the PR is ready for testing. +- **GitHub Action**: The GitHub Action orchestrates the process, handling special cases and applying labels based on the script outputs. +- **Workflow Integration**: The action is integrated into the slim-dev-test.yaml workflow, which is triggered for all PRs. +- **Output Variables**: + - `should_process`: Indicates whether the PR should proceed with CI. Set to `false` if the PR has the `renovate-ready` label or if it's waiting on image updates. + - `needs_comparison`: Indicates whether the PR needs to run the comparison scripts. Set to `false` for special cases like Pepr updates. + +## Testing + +The TypeScript scripts are thoroughly tested using Jest: + +- **getImagesAndCharts.test.ts**: Tests the extraction of images and charts from zarf.yaml files, including edge cases like: + - Empty directories + - Invalid YAML files + - Missing components + - Images without version tags + +- **compareImagesAndCharts.test.ts**: Tests the comparison of images and charts, including: + - Helm chart updates (both regular and major) + - Image updates (including major updates) + - Waiting conditions for Ironbank and Chainguard images + - Missing or empty extract files + - Invalid version formats + +## Troubleshooting + +If you encounter issues with the action, check the following: + +1. **PR Labels**: Check if the PR has any `waiting on` labels, which indicate what the PR is waiting for. +2. **Action Logs**: Check the action logs for any errors or warnings. +3. **Manual Override**: If needed, add the `renovate-ready` label to force the PR to run CI. +4. **Debug Output**: The action outputs detailed information about its decisions, which can help diagnose issues. + +## Related Documentation + +- [Renovate PR Process](https://www.notion.so/Renovate-PR-Process-182e512f24fc80479d35f956a7c42388?pvs=21) +- [Renovate Documentation](https://docs.renovatebot.com/) diff --git a/.github/actions/renovate-readiness/action.yaml b/.github/actions/renovate-readiness/action.yaml index 93545a0006..985aa67de8 100644 --- a/.github/actions/renovate-readiness/action.yaml +++ b/.github/actions/renovate-readiness/action.yaml @@ -4,14 +4,182 @@ name: renovate-readiness description: "Check if Renovate PRs are ready for testing" +inputs: + github_token: + description: "GitHub token for API calls" + required: true + runs: using: composite steps: - # This is current a stub for future logic that would auto-detect readiness - # In lieu of that, we require an engineer to review changes and manually add the `renovate-ready` label + # Check if PR has the renovate-ready label (manual override) - name: Check if PR has the ready label - if: ${{ ! contains(github.event.pull_request.labels.*.name, 'renovate-ready') }} + id: check-ready-label + run: | + if [[ "${{ contains(github.event.pull_request.labels.*.name, 'renovate-ready') }}" == "true" ]]; then + echo "PR has the renovate-ready label. Skipping readiness check." + echo "should_process=false" >> $GITHUB_OUTPUT + else + echo "PR does not have the renovate-ready label. Proceeding with readiness check." + echo "should_process=true" >> $GITHUB_OUTPUT + fi + shell: bash + + # Process branch name to determine package + - name: Process branch name + id: process-branch + if: steps.check-ready-label.outputs.should_process == 'true' + run: | + BRANCH_NAME="${{ github.head_ref }}" + echo "Branch name: $BRANCH_NAME" + + # Remove 'renovate/' prefix if present + if [[ $BRANCH_NAME == renovate/* ]]; then + PACKAGE_NAME=${BRANCH_NAME#renovate/} + echo "Package name after removing prefix: $PACKAGE_NAME" + else + PACKAGE_NAME=$BRANCH_NAME + echo "Branch doesn't have renovate/ prefix, using as is: $PACKAGE_NAME" + fi + + # Handle special cases + if [[ "$PACKAGE_NAME" == "pepr" ]]; then + echo "Detected Pepr update" + echo "package=pepr" >> $GITHUB_OUTPUT + echo "is_pepr=true" >> $GITHUB_OUTPUT + echo "needs_comparison=false" >> $GITHUB_OUTPUT + elif [[ "$PACKAGE_NAME" == "support-deps" ]]; then + echo "Detected support dependencies update" + echo "package=support-deps" >> $GITHUB_OUTPUT + echo "is_support_deps=true" >> $GITHUB_OUTPUT + echo "needs_comparison=false" >> $GITHUB_OUTPUT + else + echo "Regular package update: $PACKAGE_NAME" + echo "package=$PACKAGE_NAME" >> $GITHUB_OUTPUT + echo "needs_comparison=true" >> $GITHUB_OUTPUT + fi + shell: bash + + # Handle Pepr updates + - name: Handle Pepr update + if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.is_pepr == 'true' + run: | + # Get Pepr version from package.json + PEPR_VERSION=$(jq -r '.dependencies.pepr' package.json) + echo "Pepr version from package.json: $PEPR_VERSION" + + # Get image versions from tasks/create.yaml + IRONBANK_IMAGE_VERSION=$(yq e '.tasks[].actions[].args[] | select(. == "registry1.dso.mil/ironbank/opensource/pepr/pepr-*") | split(":")[1]' tasks/create.yaml) + echo "Ironbank image version: $IRONBANK_IMAGE_VERSION" + + # Compare versions + if [[ "$PEPR_VERSION" != "$IRONBANK_IMAGE_VERSION" ]]; then + echo "Pepr version mismatch. Waiting on Ironbank image update." + gh pr edit ${{ github.event.pull_request.number }} --add-label "waiting on ironbank" + exit 1 + else + echo "Pepr versions match. Ready for review." + gh pr edit ${{ github.event.pull_request.number }} --add-label "needs-review" + fi + shell: bash + env: + GH_TOKEN: ${{ inputs.github_token }} + + # Handle support dependencies + - name: Handle support dependencies + if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.is_support_deps == 'true' + run: | + echo "Support dependencies update detected. Needs manual review." + gh pr edit ${{ github.event.pull_request.number }} --add-label "needs-review" + exit 1 + shell: bash + env: + GH_TOKEN: ${{ inputs.github_token }} + + # Checkout PR branch (sparse checkout of src/) + - name: Checkout PR branch + if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.ref }} + path: new + sparse-checkout: | + src/${{ steps.process-branch.outputs.package }} + sparse-checkout-cone-mode: false + + # Checkout main branch (sparse checkout of src/) + - name: Checkout main branch + if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' + uses: actions/checkout@v4 + with: + ref: main + path: old + sparse-checkout: | + src/${{ steps.process-branch.outputs.package }} + sparse-checkout-cone-mode: false + + # Install dependencies + - name: Install dependencies + if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' + run: | + cd scripts/renovate + npm install + shell: bash + + # Extract images and charts from old branch + - name: Extract images and charts from old branch + if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' + run: | + cd scripts/renovate + npx ts-node getImagesAndCharts.ts old + shell: bash + + # Extract images and charts from new branch + - name: Extract images and charts from new branch + if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' + run: | + cd scripts/renovate + npx ts-node getImagesAndCharts.ts new + shell: bash + + # Compare images and charts + - name: Compare images and charts + id: compare + if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' + run: | + cd scripts/renovate + OUTPUT=$(npx ts-node compareImagesAndCharts.ts old/extract new/extract) + echo "$OUTPUT" + + # Extract labels from output + LABELS=$(echo "$OUTPUT" | grep "LABELS=" | cut -d'=' -f2) + echo "labels=$LABELS" >> $GITHUB_OUTPUT + + # Check if waiting on labels are present + if [[ "$LABELS" == *"waiting on ironbank"* ]] || [[ "$LABELS" == *"waiting on cgr"* ]]; then + echo "waiting=true" >> $GITHUB_OUTPUT + else + echo "waiting=false" >> $GITHUB_OUTPUT + fi + shell: bash + + # Apply labels + - name: Apply labels + if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' + run: | + LABELS="${{ steps.compare.outputs.labels }}" + if [[ -n "$LABELS" ]]; then + echo "Applying labels: $LABELS" + gh pr edit ${{ github.event.pull_request.number }} --add-label "$LABELS" + fi + shell: bash + env: + GH_TOKEN: ${{ inputs.github_token }} + + # Fail if waiting on images + - name: Fail if waiting on images + if: steps.check-ready-label.outputs.should_process == 'true' && steps.compare.outputs.waiting == 'true' run: | - echo "This PR is not ready to run CI. Failing job." + echo "PR is waiting on image updates. Failing job." exit 1 shell: bash diff --git a/.github/workflows/checkpoint.yaml b/.github/workflows/checkpoint.yaml index e0e9db00e5..979a943c0b 100644 --- a/.github/workflows/checkpoint.yaml +++ b/.github/workflows/checkpoint.yaml @@ -12,8 +12,8 @@ permissions: on: pull_request: # milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow). - # labeled is added here to allow for "manual" triggering of CI on renovate PRs - types: [milestoned, opened, reopened, synchronize, labeled] + # removed labeled trigger to prevent infinite loops when renovate-readiness applies labels + types: [milestoned, opened, reopened, synchronize] paths: - packages/checkpoint-dev/** - .github/workflows/checkpoint** @@ -38,6 +38,7 @@ jobs: contents: read packages: write id-token: write # This is needed for OIDC federation. + pull-requests: write # Allows writing to pull requests (needed for renovate-readiness) steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -45,6 +46,8 @@ jobs: - name: Check renovate readiness if: startsWith(github.event.pull_request.head.ref, 'renovate/') # Only call for Renovate PRs uses: ./.github/actions/renovate-readiness + with: + github_token: ${{ secrets.GITHUB_TOKEN }} - name: Environment setup uses: ./.github/actions/setup diff --git a/.github/workflows/docs-shim.yaml b/.github/workflows/docs-shim.yaml index 28aea1ccf4..ebd0dbce80 100644 --- a/.github/workflows/docs-shim.yaml +++ b/.github/workflows/docs-shim.yaml @@ -10,8 +10,8 @@ permissions: on: pull_request: # milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow). - # labeled is added here to allow for "manual" triggering of CI on renovate PRs - types: [milestoned, opened, reopened, synchronize, labeled] + # removed labeled trigger to prevent infinite loops when renovate-readiness applies labels + types: [milestoned, opened, reopened, synchronize] paths: - "**.md" - "**.jpg" @@ -31,6 +31,10 @@ on: jobs: lint-check: runs-on: ubuntu-latest + # Job-level permissions override workflow-level permissions + permissions: + contents: read # Allows reading the content of the repository. + pull-requests: write # Allows writing to pull requests (needed for renovate-readiness) steps: - name: Checkout repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -38,6 +42,8 @@ jobs: - name: Check renovate readiness if: startsWith(github.event.pull_request.head.ref, 'renovate/') # Only call for Renovate PRs uses: ./.github/actions/renovate-readiness + with: + github_token: ${{ secrets.GITHUB_TOKEN }} - name: lint-check uses: ./.github/actions/lint-check diff --git a/.github/workflows/pull-request-conditionals.yaml b/.github/workflows/pull-request-conditionals.yaml index c3a93a0ed1..5a3339d65c 100644 --- a/.github/workflows/pull-request-conditionals.yaml +++ b/.github/workflows/pull-request-conditionals.yaml @@ -7,8 +7,8 @@ name: Filter on: pull_request: # milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow). - # labeled is added here to allow for "manual" triggering of CI on renovate PRs - types: [milestoned, opened, reopened, synchronize, labeled] + # removed labeled trigger to prevent infinite loops when renovate-readiness applies labels + types: [milestoned, opened, reopened, synchronize] paths-ignore: - "**.md" - "**.jpg" @@ -66,6 +66,8 @@ jobs: - name: Check renovate readiness if: startsWith(github.event.pull_request.head.ref, 'renovate/') # Only call for Renovate PRs uses: ./.github/actions/renovate-readiness + with: + github_token: ${{ secrets.GITHUB_TOKEN }} # Uses a custom action to filter paths for source packages. - name: Check src paths diff --git a/.github/workflows/slim-dev-test.yaml b/.github/workflows/slim-dev-test.yaml index 5c8b90aa62..259bbbc422 100644 --- a/.github/workflows/slim-dev-test.yaml +++ b/.github/workflows/slim-dev-test.yaml @@ -7,8 +7,8 @@ name: Slim Dev on: pull_request: # milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow). - # labeled is added here to allow for "manual" triggering of CI on renovate PRs - types: [milestoned, opened, reopened, synchronize, labeled] + # removed labeled trigger to prevent infinite loops when renovate-readiness applies labels + types: [milestoned, opened, reopened, synchronize] paths: - src/pepr/** - src/keycloak/** @@ -30,7 +30,6 @@ on: permissions: id-token: write # Needed for OIDC-related operations. contents: read # Allows reading the content of the repository. - pull-requests: read # Allows reading pull request metadata. # Default settings for all run commands in the workflow jobs. defaults: @@ -47,12 +46,18 @@ jobs: test: name: Test runs-on: ubuntu-latest + permissions: + id-token: write # Needed for OIDC-related operations. + contents: read # Allows reading the content of the repository. + pull-requests: write # Allows writing to pull requests (needed for renovate-readiness) steps: - name: Checkout the code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Check renovate readiness if: startsWith(github.event.pull_request.head.ref, 'renovate/') # Only call for Renovate PRs uses: ./.github/actions/renovate-readiness + with: + github_token: ${{ secrets.GITHUB_TOKEN }} - name: Environment setup uses: ./.github/actions/setup with: diff --git a/.github/workflows/test-aks.yaml b/.github/workflows/test-aks.yaml index 49eec97a0a..66206dc2bf 100644 --- a/.github/workflows/test-aks.yaml +++ b/.github/workflows/test-aks.yaml @@ -8,8 +8,8 @@ on: - cron: '0 0 * * 0' # Every Sunday Midnight (UTC) / Saturday 5pm MT pull_request: # milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow). - # labeled is added here to allow for "manual" triggering of CI on renovate PRs - types: [milestoned, opened, reopened, synchronize, labeled] + # removed labeled trigger to prevent infinite loops when renovate-readiness applies labels + types: [milestoned, opened, reopened, synchronize] paths: - tasks/iac.yaml - .github/bundles/aks/* @@ -28,6 +28,12 @@ jobs: matrix: flavor: [upstream, registry1, unicorn] runs-on: ubuntu-latest + name: AKS Install + permissions: + id-token: write + contents: read + packages: read + pull-requests: write # Allows writing to pull requests (needed for renovate-readiness) env: SHA: ${{ github.sha }} UDS_REGION: usgovvirginia @@ -56,6 +62,8 @@ jobs: - name: Check renovate readiness if: startsWith(github.event.pull_request.head.ref, 'renovate/') # Only call for Renovate PRs uses: ./.github/actions/renovate-readiness + with: + github_token: ${{ secrets.GITHUB_TOKEN }} - name: Azure login uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2 diff --git a/.github/workflows/test-eks.yaml b/.github/workflows/test-eks.yaml index 1ea46e8f54..058674f469 100644 --- a/.github/workflows/test-eks.yaml +++ b/.github/workflows/test-eks.yaml @@ -8,8 +8,8 @@ on: - cron: '0 0 * * 0' # Every Sunday Midnight (UTC) / Saturday 5pm MT pull_request: # milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow). - # labeled is added here to allow for "manual" triggering of CI on renovate PRs - types: [milestoned, opened, reopened, synchronize, labeled] + # removed labeled trigger to prevent infinite loops when renovate-readiness applies labels + types: [milestoned, opened, reopened, synchronize] paths: - tasks/iac.yaml - .github/bundles/eks/* @@ -28,6 +28,11 @@ jobs: matrix: flavor: [upstream, registry1, unicorn] runs-on: ubuntu-latest + permissions: + id-token: write + contents: read + packages: read + pull-requests: write # Allows writing to pull requests (needed for renovate-readiness) env: SHA: ${{ github.sha }} UDS_REGION: us-gov-west-1 @@ -52,6 +57,8 @@ jobs: - name: Check renovate readiness if: startsWith(github.event.pull_request.head.ref, 'renovate/') # Only call for Renovate PRs uses: ./.github/actions/renovate-readiness + with: + github_token: ${{ secrets.GITHUB_TOKEN }} - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4 diff --git a/.github/workflows/test-rke2.yaml b/.github/workflows/test-rke2.yaml index 140ee8ee6b..6a4a88693e 100644 --- a/.github/workflows/test-rke2.yaml +++ b/.github/workflows/test-rke2.yaml @@ -8,8 +8,8 @@ on: - cron: '0 0 * * 0' # Every Sunday Midnight (UTC) / Saturday 5pm MT pull_request: # milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow). - # labeled is added here to allow for "manual" triggering of CI on renovate PRs - types: [milestoned, opened, reopened, synchronize, labeled] + # removed labeled trigger to prevent infinite loops when renovate-readiness applies labels + types: [milestoned, opened, reopened, synchronize] paths: - tasks/iac.yaml - .github/bundles/rke2/* @@ -28,6 +28,11 @@ jobs: matrix: flavor: [upstream, registry1, unicorn] runs-on: ubuntu-latest + permissions: + id-token: write + contents: read + packages: read + pull-requests: write # Allows writing to pull requests (needed for renovate-readiness) env: SHA: ${{ github.sha }} UDS_REGION: us-gov-west-1 @@ -54,6 +59,8 @@ jobs: - name: Check renovate readiness if: startsWith(github.event.pull_request.head.ref, 'renovate/') # Only call for Renovate PRs uses: ./.github/actions/renovate-readiness + with: + github_token: ${{ secrets.GITHUB_TOKEN }} - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4 diff --git a/scripts/renovate/README.md b/scripts/renovate/README.md new file mode 100644 index 0000000000..19c9d71139 --- /dev/null +++ b/scripts/renovate/README.md @@ -0,0 +1,67 @@ +# Renovate Readiness Scripts + +This directory contains TypeScript scripts used to automate the renovate PR readiness checks. + +## Overview + +These scripts are used by the renovate-readiness GitHub Action to determine if a Renovate PR is ready for testing. They check for image and chart updates and apply appropriate labels to the PR based on the results. + +## Scripts + +### getImagesAndCharts.ts + +Extracts images and charts from zarf.yaml files in a given directory path. + +**Usage:** +```bash +# From within the scripts/renovate directory +npx ts-node getImagesAndCharts.ts +``` + +This script will: +1. Recursively find all zarf.yaml files in the specified directory +2. Extract Helm charts and container images from these files +3. Write the extracted data to YAML files in an 'extract' subdirectory + +### compareImagesAndCharts.ts + +Compares images and charts between two extract folders (outputs of getImagesAndCharts.ts). + +**Usage:** +```bash +# From within the scripts/renovate directory +npx ts-node compareImagesAndCharts.ts +``` + +This script will: +1. Compare chart versions between old and new, detecting major updates +2. Compare image versions between old and new, detecting major updates +3. Identify if the PR is waiting on Ironbank or Chainguard image updates +4. Output a list of changes and labels to apply to the PR + +## Labels + +The scripts can apply the following labels to PRs: + +- `waiting on ironbank`: If a registry1 image is behind +- `waiting on cgr`: If a chainguard image is behind +- `helm-chart-only`: If a PR only contains a helm chart update +- `needs-review`: If PR is NOT waiting on image updates +- `major-helm-update`: If the PR contains a major chart version bump +- `major-image-update`: If the PR contains a major image version bump + +## Testing + +Run the tests with: + +```bash +# From within the scripts/renovate directory +cd scripts/renovate +npx jest +``` + +The tests cover various scenarios including: +- Images with suffixes +- Images without a match in other flavors +- Helm chart only updates +- Major helm/image updates diff --git a/scripts/renovate/compareImagesAndCharts.spec.ts b/scripts/renovate/compareImagesAndCharts.spec.ts new file mode 100644 index 0000000000..da719a3eef --- /dev/null +++ b/scripts/renovate/compareImagesAndCharts.spec.ts @@ -0,0 +1,840 @@ +import * as fs from 'fs'; +import * as path from 'path'; +import * as yaml from 'yaml'; +import { compareImagesAndCharts } from './compareImagesAndCharts'; + +// Mock fs and path modules +jest.mock('fs'); +jest.mock('path'); +jest.mock('yaml'); + +describe('compareImagesAndCharts', () => { + let consoleLogSpy: jest.SpyInstance; + let consoleErrorSpy: jest.SpyInstance; + + beforeEach(() => { + // Mock path.join to return the input path + (path.join as jest.Mock).mockImplementation((...args) => args.join('/')); + + // Mock console.log and console.error to prevent output during tests + consoleLogSpy = jest.spyOn(console, 'log').mockImplementation(() => { }); + consoleErrorSpy = jest.spyOn(console, 'error').mockImplementation(() => { }); + }); + + afterEach(() => { + jest.clearAllMocks(); + consoleLogSpy.mockRestore(); + consoleErrorSpy.mockRestore(); + }); + + it('should detect image updates', async () => { + // Mock fs.readFileSync to return different content based on the file path + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'old/charts.yaml') { + return 'charts-old'; + } + if (filePath === 'new/charts.yaml') { + return 'charts-new'; + } + if (filePath === 'old/images.yaml') { + return 'images-old'; + } + if (filePath === 'new/images.yaml') { + return 'images-new'; + } + return ''; + }); + + // Mock fs.existsSync to return true for all files + (fs.existsSync as jest.Mock).mockReturnValue(true); + + // Mock yaml.parse to return different content based on the input + (yaml.parse as jest.Mock).mockImplementation((content) => { + if (content === 'charts-old') { + return { + 'chart1': '1.0.0', + 'chart2': '2.0.0' + }; + } + if (content === 'charts-new') { + return { + 'chart1': '1.0.0', + 'chart2': '2.0.0' + }; + } + if (content === 'images-old') { + return { + '1.21.6': [ + 'docker.io/library/nginx:1.21.6', + 'registry1.dso.mil/ironbank/nginx:1.21.6', + 'cgr.dev/chainguard/nginx:1.21.6' + ], + '8.12.1': [ + 'docker.io/curlimages/curl:8.12.1', + 'registry1.dso.mil/ironbank/curl:8.12.1', + 'cgr.dev/chainguard/curl:8.12.1' + ] + }; + } + if (content === 'images-new') { + return { + '1.25.3': [ + 'docker.io/library/nginx:1.25.3', + 'registry1.dso.mil/ironbank/nginx:1.25.3', + 'cgr.dev/chainguard/nginx:1.25.3' + ], + '8.12.1': [ + 'docker.io/curlimages/curl:8.12.1', + 'registry1.dso.mil/ironbank/curl:8.12.1', + 'cgr.dev/chainguard/curl:8.12.1' + ] + }; + } + return {}; + }); + + const result = await compareImagesAndCharts('old', 'new'); + + // With our updated logic, we should have needs-review since all images are updated properly + expect(result.labels).toContain('needs-review'); + expect(result.labels).not.toContain('waiting on ironbank'); + expect(result.labels).not.toContain('waiting on cgr'); + }); + + it('should detect major image updates', async () => { + // Mock fs.readFileSync to return different content based on the file path + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'old/charts.yaml') { + return 'charts-old'; + } + if (filePath === 'new/charts.yaml') { + return 'charts-new'; + } + if (filePath === 'old/images.yaml') { + return 'images-old'; + } + if (filePath === 'new/images.yaml') { + return 'images-new'; + } + return ''; + }); + + // Mock fs.existsSync to return true for all files + (fs.existsSync as jest.Mock).mockReturnValue(true); + + // Mock yaml.parse to return different content based on the input + (yaml.parse as jest.Mock).mockImplementation((content) => { + if (content === 'charts-old') { + return { + 'chart1': '1.0.0', + 'chart2': '2.0.0' + }; + } + if (content === 'charts-new') { + return { + 'chart1': '1.0.0', + 'chart2': '2.0.0' + }; + } + if (content === 'images-old') { + return { + '1.21.6': [ + 'docker.io/library/nginx:1.21.6', + 'registry1.dso.mil/ironbank/nginx:1.21.6', + 'cgr.dev/chainguard/nginx:1.21.6' + ], + '8.12.1': [ + 'docker.io/curlimages/curl:8.12.1', + 'registry1.dso.mil/ironbank/curl:8.12.1', + 'cgr.dev/chainguard/curl:8.12.1' + ] + }; + } + if (content === 'images-new') { + return { + '2.0.0': [ + 'docker.io/library/nginx:2.0.0', + 'registry1.dso.mil/ironbank/nginx:2.0.0', + 'cgr.dev/chainguard/nginx:2.0.0' + ], + '8.12.1': [ + 'docker.io/curlimages/curl:8.12.1', + 'registry1.dso.mil/ironbank/curl:8.12.1', + 'cgr.dev/chainguard/curl:8.12.1' + ] + }; + } + return {}; + }); + + const result = await compareImagesAndCharts('old', 'new'); + + expect(result.labels).toContain('major-image-update'); + expect(result.changes).toContain('Major image update detected: 1.21.6 to 2.0.0'); + }); + + it('should detect chart updates', async () => { + // Mock fs.readFileSync to return different content based on the file path + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'old/charts.yaml') { + return 'charts-old'; + } + if (filePath === 'new/charts.yaml') { + return 'charts-new'; + } + if (filePath === 'old/images.yaml') { + return 'images-old'; + } + if (filePath === 'new/images.yaml') { + return 'images-new'; + } + return ''; + }); + + // Mock fs.existsSync to return true for all files + (fs.existsSync as jest.Mock).mockReturnValue(true); + + // Mock yaml.parse to return different content based on the input + (yaml.parse as jest.Mock).mockImplementation((content) => { + if (content === 'charts-old') { + return { + 'chart1': '1.0.0', + 'chart2': '2.0.0' + }; + } + if (content === 'charts-new') { + return { + 'chart1': '1.0.0', + 'chart2': '2.1.0' + }; + } + if (content === 'images-old') { + return { + '1.21.6': [ + 'docker.io/library/nginx:1.21.6', + 'registry1.dso.mil/ironbank/nginx:1.21.6', + 'cgr.dev/chainguard/nginx:1.21.6' + ] + }; + } + if (content === 'images-new') { + return { + '1.21.6': [ + 'docker.io/library/nginx:1.21.6', + 'registry1.dso.mil/ironbank/nginx:1.21.6', + 'cgr.dev/chainguard/nginx:1.21.6' + ] + }; + } + return {}; + }); + + const result = await compareImagesAndCharts('old', 'new'); + + expect(result.labels).toContain('needs-review'); + expect(result.changes).toContain('Chart chart2 updated from 2.0.0 to 2.1.0'); + expect(result.labels).toContain('helm-chart-only'); + expect(result.changes).toContain('PR contains only helm chart updates'); + }); + + it('should detect major chart updates', async () => { + // Mock fs.readFileSync to return different content based on the file path + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'old/charts.yaml') { + return 'charts-old'; + } + if (filePath === 'new/charts.yaml') { + return 'charts-new'; + } + if (filePath === 'old/images.yaml') { + return 'images-old'; + } + if (filePath === 'new/images.yaml') { + return 'images-new'; + } + return ''; + }); + + // Mock fs.existsSync to return true for all files + (fs.existsSync as jest.Mock).mockReturnValue(true); + + // Mock yaml.parse to return different content based on the input + (yaml.parse as jest.Mock).mockImplementation((content) => { + if (content === 'charts-old') { + return { + 'chart1': '1.0.0', + 'chart2': '2.0.0' + }; + } + if (content === 'charts-new') { + return { + 'chart1': '1.0.0', + 'chart2': '3.0.0' + }; + } + if (content === 'images-old') { + return { + '1.21.6': [ + 'docker.io/library/nginx:1.21.6', + 'registry1.dso.mil/ironbank/nginx:1.21.6', + 'cgr.dev/chainguard/nginx:1.21.6' + ] + }; + } + if (content === 'images-new') { + return { + '1.21.6': [ + 'docker.io/library/nginx:1.21.6', + 'registry1.dso.mil/ironbank/nginx:1.21.6', + 'cgr.dev/chainguard/nginx:1.21.6' + ] + }; + } + return {}; + }); + + const result = await compareImagesAndCharts('old', 'new'); + + expect(result.labels).toContain('needs-review'); + expect(result.labels).toContain('major-helm-update'); + expect(result.changes).toContain('Chart chart2 updated from 2.0.0 to 3.0.0'); + expect(result.changes).toContain('Major helm chart update detected for chart2'); + expect(result.labels).toContain('helm-chart-only'); + expect(result.changes).toContain('PR contains only helm chart updates'); + }); + + it('should detect waiting on ironbank', async () => { + // Mock fs.readFileSync to return different content based on the file path + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'old/charts.yaml') { + return 'charts-old'; + } + if (filePath === 'new/charts.yaml') { + return 'charts-new'; + } + if (filePath === 'old/images.yaml') { + return 'images-old'; + } + if (filePath === 'new/images.yaml') { + return 'images-new'; + } + return ''; + }); + + // Mock fs.existsSync to return true for all files + (fs.existsSync as jest.Mock).mockReturnValue(true); + + // Mock yaml.parse to return different content based on the input + (yaml.parse as jest.Mock).mockImplementation((content) => { + if (content === 'charts-old') { + return { + 'chart1': '1.0.0' + }; + } + if (content === 'charts-new') { + return { + 'chart1': '1.0.0' + }; + } + if (content === 'images-old') { + return { + '1.21.6': [ + 'docker.io/library/nginx:1.21.6', + 'registry1.dso.mil/ironbank/nginx:1.21.6', + 'cgr.dev/chainguard/nginx:1.21.6' + ] + }; + } + if (content === 'images-new') { + return { + '1.25.3': [ + 'docker.io/library/nginx:1.25.3', + ], + '1.22.6': [ + 'registry1.dso.mil/ironbank/nginx:1.22.6' + ], + '1.21.6': [ + 'cgr.dev/chainguard/nginx:1.21.6' + ] + }; + } + return {}; + }); + + const result = await compareImagesAndCharts('old', 'new'); + + expect(result.labels).toContain('waiting on ironbank'); + expect(result.changes).toContain('Waiting on Ironbank image update: registry1.dso.mil/ironbank/nginx:1.21.6'); + }); + + it('should detect waiting on cgr', async () => { + // Mock fs.readFileSync to return different content based on the file path + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'old/charts.yaml') { + return 'charts-old'; + } + if (filePath === 'new/charts.yaml') { + return 'charts-new'; + } + if (filePath === 'old/images.yaml') { + return 'images-old'; + } + if (filePath === 'new/images.yaml') { + return 'images-new'; + } + return ''; + }); + + // Mock fs.existsSync to return true for all files + (fs.existsSync as jest.Mock).mockReturnValue(true); + + // Mock yaml.parse to return different content based on the input + (yaml.parse as jest.Mock).mockImplementation((content) => { + if (content === 'charts-old') { + return { + 'chart1': '1.0.0' + }; + } + if (content === 'charts-new') { + return { + 'chart1': '1.0.0' + }; + } + if (content === 'images-old') { + return { + '1.21.6': [ + 'docker.io/library/nginx:1.21.6', + 'registry1.dso.mil/ironbank/nginx:1.21.6', + 'cgr.dev/chainguard/nginx:1.21.6' + ] + }; + } + if (content === 'images-new') { + return { + '1.25.3': [ + 'docker.io/library/nginx:1.25.3', + 'registry1.dso.mil/ironbank/nginx:1.25.3', + ], + '1.21.6': [ + 'cgr.dev/chainguard/nginx:1.21.6' + ] + }; + } + return {}; + }); + + const result = await compareImagesAndCharts('old', 'new'); + + expect(result.labels).toContain('waiting on cgr'); + expect(result.changes).toContain('Waiting on Chainguard image update: cgr.dev/chainguard/nginx:1.21.6'); + }); + + it('should handle mixed image updates with some waiting', async () => { + // Mock fs.readFileSync to return different content based on the file path + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'old/charts.yaml') { + return 'charts-old'; + } + if (filePath === 'new/charts.yaml') { + return 'charts-new'; + } + if (filePath === 'old/images.yaml') { + return 'images-old'; + } + if (filePath === 'new/images.yaml') { + return 'images-new'; + } + return ''; + }); + + // Mock fs.existsSync to return true for all files + (fs.existsSync as jest.Mock).mockReturnValue(true); + + // Mock yaml.parse to return different content based on the input + (yaml.parse as jest.Mock).mockImplementation((content) => { + if (content === 'charts-old') { + return { + 'chart1': '1.0.0' + }; + } + if (content === 'charts-new') { + return { + 'chart1': '1.0.0' + }; + } + if (content === 'images-old') { + return { + '1.21.6': [ + 'docker.io/library/nginx:1.21.6', + 'registry1.dso.mil/ironbank/nginx:1.21.6', + 'cgr.dev/chainguard/nginx:1.21.6' + ], + '8.12.1': [ + 'docker.io/curlimages/curl:8.12.1', + 'registry1.dso.mil/ironbank/curl:8.12.1', + 'cgr.dev/chainguard/curl:8.12.1' + ] + }; + } + if (content === 'images-new') { + return { + '1.25.3': [ + 'docker.io/library/nginx:1.25.3', + ], + '1.22.6': [ + 'registry1.dso.mil/ironbank/nginx:1.22.6' + ], + '1.21.6': [ + 'cgr.dev/chainguard/nginx:1.21.6' + ], + '8.12.1': [ + 'docker.io/curlimages/curl:8.12.1', + 'registry1.dso.mil/ironbank/curl:8.12.1', + 'cgr.dev/chainguard/curl:8.12.1' + ] + }; + } + return {}; + }); + + const result = await compareImagesAndCharts('old', 'new'); + + // With our updated logic, we should have waiting labels since some images are outdated + expect(result.labels).toContain('waiting on ironbank'); + expect(result.labels).toContain('waiting on cgr'); + expect(result.labels).not.toContain('needs-review'); + }); + + it('should handle empty files gracefully', async () => { + // Mock fs.existsSync to return true for all files + (fs.existsSync as jest.Mock).mockReturnValue(true); + + // Mock fs.readFileSync to return empty content for new/images.yaml + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'old/charts.yaml') { + return 'charts-old'; + } + if (filePath === 'new/charts.yaml') { + return 'charts-new'; + } + if (filePath === 'old/images.yaml') { + return 'images-old'; + } + if (filePath === 'new/images.yaml') { + return ' '; // Empty file with whitespace + } + return ''; + }); + + // Mock yaml.parse to return valid content for non-empty files + (yaml.parse as jest.Mock).mockImplementation((content) => { + if (content === 'charts-old' || content === 'charts-new') { + return { 'chart1': '1.0.0' }; + } + if (content === 'images-old') { + return { '1.21.6': ['docker.io/library/nginx:1.21.6'] }; + } + return {}; + }); + + const result = await compareImagesAndCharts('old', 'new'); + + // Should complete successfully with empty new/images.yaml + expect(result.labels).toContain('needs-review'); + }); + + it('should throw an error if old images file is missing', async () => { + // Mock fs.existsSync to return false for old/images.yaml + (fs.existsSync as jest.Mock).mockImplementation((filePath) => { + return filePath !== 'old/images.yaml'; + }); + + // Mock fs.readFileSync to return content for other files + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'old/charts.yaml') { + return 'charts-old'; + } + if (filePath === 'new/charts.yaml') { + return 'charts-new'; + } + if (filePath === 'new/images.yaml') { + return 'images-new'; + } + return ''; + }); + + // Mock yaml.parse to return valid content + (yaml.parse as jest.Mock).mockImplementation((content) => { + if (content === 'charts-old' || content === 'charts-new') { + return { 'chart1': '1.0.0' }; + } + if (content === 'images-new') { + return { '1.21.6': ['docker.io/library/nginx:1.21.6'] }; + } + return {}; + }); + + await expect(compareImagesAndCharts('old', 'new')).rejects.toThrow('File does not exist: old/images.yaml'); + }); + + it('should throw an error if new images file is missing', async () => { + // Mock fs.existsSync to return false for new/images.yaml + (fs.existsSync as jest.Mock).mockImplementation((filePath) => { + return filePath !== 'new/images.yaml'; + }); + + // Mock fs.readFileSync to return content for other files + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'old/charts.yaml') { + return 'charts-old'; + } + if (filePath === 'new/charts.yaml') { + return 'charts-new'; + } + if (filePath === 'old/images.yaml') { + return 'images-old'; + } + return ''; + }); + + // Mock yaml.parse to return valid content + (yaml.parse as jest.Mock).mockImplementation((content) => { + if (content === 'charts-old' || content === 'charts-new') { + return { 'chart1': '1.0.0' }; + } + if (content === 'images-old') { + return { '1.21.6': ['docker.io/library/nginx:1.21.6'] }; + } + return {}; + }); + + await expect(compareImagesAndCharts('old', 'new')).rejects.toThrow('File does not exist: new/images.yaml'); + }); + + it('should throw an error if old charts file is missing', async () => { + // Mock fs.existsSync to return false for old/charts.yaml + (fs.existsSync as jest.Mock).mockImplementation((filePath) => { + return filePath !== 'old/charts.yaml'; + }); + + // Mock fs.readFileSync to return content for other files + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'new/charts.yaml') { + return 'charts-new'; + } + if (filePath === 'old/images.yaml') { + return 'images-old'; + } + if (filePath === 'new/images.yaml') { + return 'images-new'; + } + return ''; + }); + + // Mock yaml.parse to return valid content + (yaml.parse as jest.Mock).mockImplementation((content) => { + if (content === 'charts-new') { + return { 'chart1': '1.0.0' }; + } + if (content === 'images-old' || content === 'images-new') { + return { '1.21.6': ['docker.io/library/nginx:1.21.6'] }; + } + return {}; + }); + + await expect(compareImagesAndCharts('old', 'new')).rejects.toThrow('File does not exist: old/charts.yaml'); + }); + + it('should throw an error if new charts file is missing', async () => { + // Mock fs.existsSync to return false for new/charts.yaml + (fs.existsSync as jest.Mock).mockImplementation((filePath) => { + return filePath !== 'new/charts.yaml'; + }); + + // Mock fs.readFileSync to return content for other files + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'old/charts.yaml') { + return 'charts-old'; + } + if (filePath === 'old/images.yaml') { + return 'images-old'; + } + if (filePath === 'new/images.yaml') { + return 'images-new'; + } + return ''; + }); + + // Mock yaml.parse to return valid content + (yaml.parse as jest.Mock).mockImplementation((content) => { + if (content === 'charts-old') { + return { 'chart1': '1.0.0' }; + } + if (content === 'images-old' || content === 'images-new') { + return { '1.21.6': ['docker.io/library/nginx:1.21.6'] }; + } + return {}; + }); + + await expect(compareImagesAndCharts('old', 'new')).rejects.toThrow('File does not exist: new/charts.yaml'); + }); + + it('should throw an error if a file contains invalid YAML', async () => { + // Mock fs.existsSync to return true for all files + (fs.existsSync as jest.Mock).mockReturnValue(true); + + // Mock fs.readFileSync to return content for all files + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'old/charts.yaml') { + return 'charts-old'; + } + if (filePath === 'new/charts.yaml') { + return 'charts-new'; + } + if (filePath === 'old/images.yaml') { + return 'images-old'; + } + if (filePath === 'new/images.yaml') { + return 'images-new'; + } + return ''; + }); + + // Mock yaml.parse to throw an error for new/images.yaml + (yaml.parse as jest.Mock).mockImplementation((content) => { + if (content === 'charts-old' || content === 'charts-new') { + return { 'chart1': '1.0.0' }; + } + if (content === 'images-old') { + return { '1.21.6': ['docker.io/library/nginx:1.21.6'] }; + } + if (content === 'images-new') { + throw new Error('Invalid YAML'); + } + return {}; + }); + + await expect(compareImagesAndCharts('old', 'new')).rejects.toThrow('Invalid YAML'); + }); + + it('should handle images without matches in other flavors', async () => { + // Mock fs.readFileSync to return different content based on the file path + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'old/charts.yaml') { + return ''; + } + if (filePath === 'new/charts.yaml') { + return ''; + } + if (filePath === 'old/images.yaml') { + return { + '1.0.0': [ + 'docker.io/library/busybox:1.0.0', + ] + }; + } + if (filePath === 'new/images.yaml') { + return { + '1.1.0': [ + 'docker.io/library/busybox:1.1.0', + ] + }; + } + return {}; + }); + + const result = await compareImagesAndCharts('old', 'new'); + + expect(result.labels).toContain('needs-review'); + expect(result.labels).not.toContain('waiting on ironbank'); + expect(result.labels).not.toContain('waiting on cgr'); + }); + + it('should handle helm chart only update', async () => { + // Mock fs.readFileSync to return different content based on the file path + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'old/charts.yaml') { + return { + 'grafana': '6.50.5', + 'prometheus': '15.18.0' + }; + } + if (filePath === 'new/charts.yaml') { + return { + 'grafana': '6.50.7', + 'prometheus': '15.18.0' + }; + } + if (filePath === 'old/images.yaml') { + return { + '1.0.0': [ + 'docker.io/library/nginx:1.0.0' + ] + }; + } + if (filePath === 'new/images.yaml') { + return { + '1.0.0': [ + 'docker.io/library/nginx:1.0.0' + ] + }; + } + return {}; + }); + + const result = await compareImagesAndCharts('old', 'new'); + + expect(result.labels).toContain('needs-review'); + expect(result.labels).toContain('helm-chart-only'); + expect(result.labels).not.toContain('waiting on ironbank'); + expect(result.labels).not.toContain('waiting on cgr'); + expect(result.labels).not.toContain('major-helm-update'); + expect(result.labels).not.toContain('major-image-update'); + expect(result.changes).toContain('Chart grafana updated from 6.50.5 to 6.50.7'); + expect(result.changes).toContain('PR contains only helm chart updates'); + }); + + it('should detect major helm chart update', async () => { + // Mock fs.readFileSync to return different content based on the file path + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'old/charts.yaml') { + return { + 'grafana': '6.50.5', + 'prometheus': '15.18.0' + }; + } + if (filePath === 'new/charts.yaml') { + return { + 'grafana': '7.0.0', + 'prometheus': '15.18.0' + }; + } + if (filePath === 'old/images.yaml') { + return { + '1.0.0': [ + 'docker.io/library/nginx:1.0.0' + ] + }; + } + if (filePath === 'new/images.yaml') { + return { + '1.0.0': [ + 'docker.io/library/nginx:1.0.0' + ] + }; + } + return {}; + }); + + const result = await compareImagesAndCharts('old', 'new'); + + expect(result.labels).toContain('needs-review'); + expect(result.labels).toContain('major-helm-update'); + expect(result.labels).toContain('helm-chart-only'); + expect(result.labels).not.toContain('waiting on ironbank'); + expect(result.labels).not.toContain('waiting on cgr'); + expect(result.changes).toContain('Chart grafana updated from 6.50.5 to 7.0.0'); + expect(result.changes).toContain('Major helm chart update detected for grafana'); + expect(result.changes).toContain('PR contains only helm chart updates'); + }); +}); diff --git a/scripts/renovate/compareImagesAndCharts.ts b/scripts/renovate/compareImagesAndCharts.ts new file mode 100644 index 0000000000..b29cbbc23a --- /dev/null +++ b/scripts/renovate/compareImagesAndCharts.ts @@ -0,0 +1,274 @@ +import * as fs from 'fs'; +import * as path from 'path'; +import * as semver from 'semver'; +import * as yaml from 'yaml'; + +interface ComparisonResult { + changes: string[]; + labels: string[]; +} + +/** + * Compares images and charts between two extract folders + * @param oldPath - Path to the old extract folder + * @param newPath - Path to the new extract folder + * @returns ComparisonResult with changes and labels + */ +export async function compareImagesAndCharts(oldPath: string, newPath: string): Promise { + console.log(`Comparing ${oldPath} and ${newPath}`); + + const result: ComparisonResult = { + changes: [], + labels: [] + }; + + try { + // Load chart data + const oldCharts = loadYamlFile(path.join(oldPath, 'charts.yaml')); + const newCharts = loadYamlFile(path.join(newPath, 'charts.yaml')); + + // Load image data + const oldImages = loadYamlFile(path.join(oldPath, 'images.yaml')); + const newImages = loadYamlFile(path.join(newPath, 'images.yaml')); + + // Compare charts + const hasHelmUpdates = compareCharts(oldCharts, newCharts, result); + + // Compare images + const hasImageUpdates = compareImages(oldImages, newImages, result); + + // Add helm-chart-only label if applicable + if (hasHelmUpdates && !hasImageUpdates) { + result.labels.push('helm-chart-only'); + result.changes.push('PR contains only helm chart updates'); + } + + // If no waiting labels were added, add needs-review + if (!result.labels.includes('waiting on ironbank') && + !result.labels.includes('waiting on cgr')) { + result.labels.push('needs-review'); + } + } catch (error: unknown) { + console.error(`Error comparing artifacts: ${error}`); + result.changes = [`Error comparing artifacts: ${error instanceof Error ? error.message : String(error)}`]; + + // When running from command line, this error will be caught by the catch block + // and will cause the process to exit with code 1 + throw error; + } + + // Output results + console.log('Changes:'); + result.changes.forEach(change => console.log(`- ${change}`)); + + console.log('Labels:'); + result.labels.forEach(label => console.log(`- ${label}`)); + + // Output comma-separated labels for GitHub CLI + console.log(`LABELS=${result.labels.join(',')}`); + + return result; +} + +/** + * Loads a YAML file and returns its parsed content + * @param filePath - Path to the YAML file + * @returns Parsed YAML content + */ +function loadYamlFile(filePath: string): any { + try { + if (!fs.existsSync(filePath)) { + throw new Error(`File does not exist: ${filePath}`); + } + + const content = fs.readFileSync(filePath, 'utf8'); + + // If content is already an object (for testing), return it + if (typeof content !== 'string') { + return content; + } + + // Empty file is allowed, return empty object + if (!content.trim()) { + return {}; + } + + try { + const parsed = yaml.parse(content); + return parsed || {}; + } catch (error: unknown) { + console.error(`Error parsing YAML in ${filePath}: ${error}`); + throw new Error(`Invalid YAML content in ${filePath}`); + } + } catch (error: unknown) { + console.error(`Error loading ${filePath}: ${error}`); + // Propagate the error + throw error; + } +} + +/** + * Compares charts between old and new versions + * @param oldCharts - Old charts data + * @param newCharts - New charts data + * @param result - Result object to update + * @returns Boolean indicating if there are helm updates + */ +function compareCharts(oldCharts: any, newCharts: any, result: ComparisonResult): boolean { + let hasHelmUpdates = false; + + // Check for chart updates + for (const chartKey in oldCharts) { + const oldVersion = oldCharts[chartKey]; + const newVersion = newCharts[chartKey]; + + if (oldVersion !== newVersion) { + hasHelmUpdates = true; + result.changes.push(`Chart ${chartKey} updated from ${oldVersion} to ${newVersion}`); + + // Check if this is a major update + if (semver.valid(oldVersion) && semver.valid(newVersion) && + semver.diff(oldVersion, newVersion) === 'major') { + result.labels.push('major-helm-update'); + result.changes.push(`Major helm chart update detected for ${chartKey}`); + } + } + } + + return hasHelmUpdates; +} + +/** + * Compares images between old and new versions + * @param oldImages - Old images data + * @param newImages - New images data + * @param result - Result object to update + * @returns Boolean indicating if there are image updates + */ +function compareImages(oldImages: any, newImages: any, result: ComparisonResult): boolean { + let hasImageUpdates = false; + + // Check for image updates + const oldVersions = Object.keys(oldImages).sort(); + const newVersions = Object.keys(newImages).sort(); + + // Check if any versions are different + if (JSON.stringify(oldVersions) !== JSON.stringify(newVersions)) { + hasImageUpdates = true; + } + + // Build maps of version-to-images for comparison + const oldVersionMap: Record = {}; + for (const version in oldImages) { + oldVersionMap[version] = oldImages[version].map((img: string) => img.split(':')[0]); + } + + const newVersionMap: Record = {}; + for (const version in newImages) { + newVersionMap[version] = newImages[version].map((img: string) => img.split(':')[0]); + } + + // For each new version list, check if it's a subset of an old version list + for (const newVersion in newVersionMap) { + const newImageNames = newVersionMap[newVersion]; + let foundMatch = false; + + for (const oldVersion in oldVersionMap) { + const oldImageNames = oldVersionMap[oldVersion]; + + // Check if identical + if (JSON.stringify(oldImageNames.sort()) === JSON.stringify(newImageNames.sort())) { + foundMatch = true; + checkForMajorUpdate(oldVersion, newVersion, result); + break; + } + + // Check if subset + if (isSubset(newImageNames, oldImageNames)) { + foundMatch = true; + + // Find the images that are in old but not in new + const missingImageNames = oldImageNames.filter((name: string) => !newImageNames.includes(name)); + + // Get the full image strings for the missing images + const missingImageStrings = oldImages[oldVersion].filter((img: string) => { + const imgName = img.split(':')[0]; + return missingImageNames.includes(imgName); + }); + + // Check registry prefixes and add appropriate labels + for (const missingImg of missingImageStrings) { + if (missingImg.includes('registry1.dso.mil')) { + if (!result.labels.includes('waiting on ironbank')) { + result.labels.push('waiting on ironbank'); + result.changes.push(`Waiting on Ironbank image update: ${missingImg}`); + } + } else if (missingImg.includes('cgr.dev')) { + if (!result.labels.includes('waiting on cgr')) { + result.labels.push('waiting on cgr'); + result.changes.push(`Waiting on Chainguard image update: ${missingImg}`); + } + } + } + + // Check if this is a major version update + checkForMajorUpdate(oldVersion, newVersion, result); + + break; + } + } + + if (!foundMatch) { + console.warn(`Warning: No matching or subset found for image version ${newVersion}`); + } + } + + return hasImageUpdates; +} + +/** + * Checks if array a is a subset of array b + * @param a - First array + * @param b - Second array + * @returns Boolean indicating if a is a subset of b + */ +function isSubset(a: string[], b: string[]): boolean { + return a.every(val => b.includes(val)); +} + +/** + * Checks if there's a major version update between two versions and updates the result + * @param oldVersion - Old version string + * @param newVersion - New version string + * @param result - Result object to update + * @returns Boolean indicating if a major update was detected + */ +function checkForMajorUpdate(oldVersion: string, newVersion: string, result: ComparisonResult) { + if (oldVersion !== newVersion && + semver.valid(oldVersion) && + semver.valid(newVersion) && + semver.diff(oldVersion, newVersion) === 'major') { + if (!result.labels.includes('major-image-update')) { + result.labels.push('major-image-update'); + } + result.changes.push(`Major image update detected: ${oldVersion} to ${newVersion}`); + } +} + +// If called directly from command line +if (require.main === module) { + const oldPath = process.argv[2]; + const newPath = process.argv[3]; + + if (!oldPath || !newPath) { + console.error('Please provide old and new paths'); + process.exit(1); + } + + compareImagesAndCharts(oldPath, newPath) + .then(() => process.exit(0)) + .catch((error) => { + console.error(error); + process.exit(1); + }); +} diff --git a/scripts/renovate/getImagesAndCharts.spec.ts b/scripts/renovate/getImagesAndCharts.spec.ts new file mode 100644 index 0000000000..0fea6ea580 --- /dev/null +++ b/scripts/renovate/getImagesAndCharts.spec.ts @@ -0,0 +1,390 @@ +import * as fs from 'fs'; +import * as path from 'path'; +import * as yaml from 'yaml'; +import { getImagesAndCharts } from './getImagesAndCharts'; + +// Mock fs and path modules +jest.mock('fs'); +jest.mock('path'); + +describe('getImagesAndCharts', () => { + beforeEach(() => { + // Clear all mocks + jest.clearAllMocks(); + + // Mock path.join to return predictable paths + (path.join as jest.Mock).mockImplementation((...args) => args.join('/')); + + // Mock fs.existsSync to return false for extract dir + (fs.existsSync as jest.Mock).mockReturnValue(false); + + // Mock fs.mkdirSync + (fs.mkdirSync as jest.Mock).mockImplementation(() => undefined); + + // Mock fs.readdirSync for the main directory + (fs.readdirSync as jest.Mock).mockImplementation((dir) => { + if (dir === 'test-dir') { + return ['zarf.yaml', 'common']; + } + if (dir === 'test-dir/common') { + return ['zarf.yaml']; + } + return []; + }); + + // Mock fs.statSync + (fs.statSync as jest.Mock).mockImplementation((filePath) => ({ + isDirectory: () => filePath.endsWith('common') + })); + + // Mock fs.writeFileSync + (fs.writeFileSync as jest.Mock).mockImplementation(() => undefined); + + // Mock console.error to prevent test output pollution + jest.spyOn(console, 'error').mockImplementation(() => {}); + }); + + afterEach(() => { + // Restore console.error + jest.restoreAllMocks(); + }); + + test('should extract charts and images from realistic zarf.yaml files', async () => { + // Mock real-world zarf.yaml files based on the grafana example + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'test-dir/zarf.yaml') { + return ` +kind: ZarfPackageConfig +metadata: + name: uds-core-grafana + description: "UDS Core Grafana" + url: https://grafana.com/grafana + +variables: + - name: DOMAIN + description: "Cluster domain" + default: "uds.dev" + +components: + - name: grafana + required: true + only: + flavor: upstream + import: + path: common + charts: + - name: grafana + valuesFiles: + - values/upstream-values.yaml + images: + - docker.io/grafana/grafana:11.6.0 + - docker.io/curlimages/curl:8.12.1 + - docker.io/library/busybox:1.37.0 + - ghcr.io/kiwigrid/k8s-sidecar:1.30.3 + + - name: grafana + required: true + only: + flavor: registry1 + import: + path: common + charts: + - name: grafana + valuesFiles: + - values/registry1-values.yaml + images: + - registry1.dso.mil/ironbank/opensource/grafana/grafana:11.6.0 + - registry1.dso.mil/ironbank/redhat/ubi/ubi9-minimal:9.5 + - registry1.dso.mil/ironbank/kiwigrid/k8s-sidecar:1.30.3 + + - name: grafana + required: true + only: + flavor: unicorn + import: + path: common + charts: + - name: grafana + valuesFiles: + - values/unicorn-values.yaml + images: + - cgr.dev/du-uds-defenseunicorns/grafana-fips:11.5.3 + - cgr.dev/du-uds-defenseunicorns/busybox-fips:1.37.0 + - cgr.dev/du-uds-defenseunicorns/curl-fips:8.12.1 + - cgr.dev/du-uds-defenseunicorns/k8s-sidecar-fips:1.30.3 +`; + } + if (filePath === 'test-dir/common/zarf.yaml') { + return ` +kind: ZarfPackageConfig +metadata: + name: uds-core-grafana-common + description: "UDS Core Grafana Common" + url: https://grafana.com/grafana + +components: + - name: grafana + required: true + charts: + - name: uds-grafana-config + namespace: grafana + version: 0.1.0 + localPath: ../chart + valuesFiles: + - ../chart/values.yaml + - name: grafana + url: https://grafana.github.io/helm-charts + version: 8.11.0 + namespace: grafana + valuesFiles: + - ../values/values.yaml +`; + } + return ''; + }); + + await getImagesAndCharts('test-dir'); + + // Check if extract directory was created + expect(fs.mkdirSync).toHaveBeenCalledWith('test-dir/extract', { recursive: true }); + + // Check if charts.yaml was written correctly + expect(fs.writeFileSync).toHaveBeenCalledWith( + 'test-dir/extract/charts.yaml', + expect.any(String) + ); + + // Check if images.yaml was written correctly + expect(fs.writeFileSync).toHaveBeenCalledWith( + 'test-dir/extract/images.yaml', + expect.any(String) + ); + + // Get the actual content written to charts.yaml + const chartsContent = (fs.writeFileSync as jest.Mock).mock.calls.find( + call => call[0] === 'test-dir/extract/charts.yaml' + )[1]; + + // Get the actual content written to images.yaml + const imagesContent = (fs.writeFileSync as jest.Mock).mock.calls.find( + call => call[0] === 'test-dir/extract/images.yaml' + )[1]; + + // Parse the YAML content + const charts = yaml.parse(chartsContent); + const images = yaml.parse(imagesContent); + + // Verify charts content - note that local charts are skipped + expect(charts).toEqual({ + 'https://grafana.github.io/helm-charts/grafana': '8.11.0' + }); + + // Verify images content - note that we expect normalized versions + expect(images).toEqual({ + '11.6.0': [ + 'docker.io/grafana/grafana:11.6.0', + 'registry1.dso.mil/ironbank/opensource/grafana/grafana:11.6.0' + ], + '8.12.1': [ + 'docker.io/curlimages/curl:8.12.1', + 'cgr.dev/du-uds-defenseunicorns/curl-fips:8.12.1' + ], + '1.37.0': [ + 'docker.io/library/busybox:1.37.0', + 'cgr.dev/du-uds-defenseunicorns/busybox-fips:1.37.0' + ], + '1.30.3': [ + 'ghcr.io/kiwigrid/k8s-sidecar:1.30.3', + 'registry1.dso.mil/ironbank/kiwigrid/k8s-sidecar:1.30.3', + 'cgr.dev/du-uds-defenseunicorns/k8s-sidecar-fips:1.30.3' + ], + '11.5.3': ['cgr.dev/du-uds-defenseunicorns/grafana-fips:11.5.3'], + '9.5': ['registry1.dso.mil/ironbank/redhat/ubi/ubi9-minimal:9.5'] + }); + }); + + test('should handle multi-flavor images with same version but different image names', async () => { + // Mock zarf.yaml with different image names but same versions across flavors + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'test-dir/zarf.yaml') { + return ` +kind: ZarfPackageConfig +metadata: + name: uds-core-test + description: "UDS Core Test" + +components: + - name: test-component + required: true + only: + flavor: upstream + images: + - docker.io/library/nginx:1.25.3 + - docker.io/library/postgres:15.4.0 + + - name: test-component + required: true + only: + flavor: registry1 + images: + - registry1.dso.mil/ironbank/opensource/nginx/nginx:1.25.3 + - registry1.dso.mil/ironbank/opensource/postgres/postgresql:15.4.0 + + - name: test-component + required: true + only: + flavor: unicorn + images: + - cgr.dev/du-uds-defenseunicorns/nginx-fips:1.25.3 + - cgr.dev/du-uds-defenseunicorns/postgres-fips:15.4.0 +`; + } + if (filePath === 'test-dir/common/zarf.yaml') { + return ` +kind: ZarfPackageConfig +metadata: + name: uds-core-test-common + description: "UDS Core Test Common" + components: + - name: test-component + required: true +`; + } + return ''; + }); + + await getImagesAndCharts('test-dir'); + + // Get the actual content written to images.yaml + const imagesContent = (fs.writeFileSync as jest.Mock).mock.calls.find( + call => call[0] === 'test-dir/extract/images.yaml' + )[1]; + + // Parse the YAML content + const images = yaml.parse(imagesContent); + + // Verify images are correctly grouped by version across different flavors + expect(images).toEqual({ + '1.25.3': [ + 'docker.io/library/nginx:1.25.3', + 'registry1.dso.mil/ironbank/opensource/nginx/nginx:1.25.3', + 'cgr.dev/du-uds-defenseunicorns/nginx-fips:1.25.3' + ], + '15.4.0': [ + 'docker.io/library/postgres:15.4.0', + 'registry1.dso.mil/ironbank/opensource/postgres/postgresql:15.4.0', + 'cgr.dev/du-uds-defenseunicorns/postgres-fips:15.4.0' + ] + }); + }); + + test('should handle empty directory', async () => { + // Mock empty directory + (fs.readdirSync as jest.Mock).mockReturnValue([]); + + await getImagesAndCharts('empty-dir'); + + // Check if extract directory was created + expect(fs.mkdirSync).toHaveBeenCalledWith('empty-dir/extract', { recursive: true }); + + // Check if empty files were written + const chartsContent = (fs.writeFileSync as jest.Mock).mock.calls.find( + call => call[0] === 'empty-dir/extract/charts.yaml' + )[1]; + + const imagesContent = (fs.writeFileSync as jest.Mock).mock.calls.find( + call => call[0] === 'empty-dir/extract/images.yaml' + )[1]; + + // Parse the YAML content + const charts = yaml.parse(chartsContent); + const images = yaml.parse(imagesContent); + + // Verify empty content + expect(charts).toEqual({}); + expect(images).toEqual({}); + }); + + test('should handle invalid zarf.yaml file', async () => { + // Mock invalid YAML content + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'test-dir/zarf.yaml') { + return `invalid: yaml: content: - [ }`; + } + return ''; + }); + + await getImagesAndCharts('test-dir'); + + // Check if extract directory was created + expect(fs.mkdirSync).toHaveBeenCalledWith('test-dir/extract', { recursive: true }); + + // Check if empty files were written + const chartsContent = (fs.writeFileSync as jest.Mock).mock.calls.find( + call => call[0] === 'test-dir/extract/charts.yaml' + )[1]; + + const imagesContent = (fs.writeFileSync as jest.Mock).mock.calls.find( + call => call[0] === 'test-dir/extract/images.yaml' + )[1]; + + // Parse the YAML content + const charts = yaml.parse(chartsContent); + const images = yaml.parse(imagesContent); + + // Verify empty content + expect(charts).toEqual({}); + expect(images).toEqual({}); + }); + + test('should handle images with beta/rc version tags', async () => { + // Mock YAML with images having beta/rc version tags + (fs.readFileSync as jest.Mock).mockImplementation((filePath) => { + if (filePath === 'test-dir/zarf.yaml') { + return ` +kind: ZarfPackageConfig +metadata: + name: test-package + version: 1.0.0 +components: + - name: component1 + images: + - registry1.dso.mil/ironbank/postgres:15.2.0 + - cgr.dev/chainguard/postgres:v15.2.0-rc1 + - docker.io/library/postgres:15.2.0-beta.2 +`; + } + if (filePath === 'test-dir/common/zarf.yaml') { + return ` +kind: ZarfPackageConfig +metadata: + name: test-package-common + description: "Test Package Common" + components: + - name: component1 + required: true +`; + } + return ''; + }); + + await getImagesAndCharts('test-dir'); + + // Get the actual content written to images.yaml + const imagesContent = (fs.writeFileSync as jest.Mock).mock.calls.find( + call => call[0] === 'test-dir/extract/images.yaml' + )[1]; + + // Parse the YAML content + const images = yaml.parse(imagesContent); + + // Verify beta/rc versions are normalized correctly + expect(images).toEqual({ + '15.2.0': [ + 'registry1.dso.mil/ironbank/postgres:15.2.0', + 'cgr.dev/chainguard/postgres:v15.2.0-rc1', + 'docker.io/library/postgres:15.2.0-beta.2' + ] + }); + }); +}); diff --git a/scripts/renovate/getImagesAndCharts.ts b/scripts/renovate/getImagesAndCharts.ts new file mode 100644 index 0000000000..0e8485b8ad --- /dev/null +++ b/scripts/renovate/getImagesAndCharts.ts @@ -0,0 +1,187 @@ +import * as fs from 'fs'; +import * as path from 'path'; +import * as yaml from 'yaml'; + +/** + * Extracts images and charts from zarf.yaml files in a given directory path + * @param directoryPath - Path to the directory containing zarf.yaml files + */ +export async function getImagesAndCharts(directoryPath: string): Promise { + console.log(`Extracting images and charts from ${directoryPath}`); + + // Create extract directory if it doesn't exist + const extractDir = path.join(directoryPath, 'extract'); + if (!fs.existsSync(extractDir)) { + fs.mkdirSync(extractDir, { recursive: true }); + } + + // Find all zarf.yaml files + const zarfFiles = findZarfYamlFiles(directoryPath); + console.log(`Found ${zarfFiles.length} zarf.yaml files`); + + // Extract charts and images + const charts: Record = {}; + const images: Record = {}; + + for (const zarfFile of zarfFiles) { + try { + const fileContent = fs.readFileSync(zarfFile, 'utf8'); + const zarfConfig = yaml.parse(fileContent); + + // Extract charts + extractCharts(zarfConfig, charts); + + // Extract images + extractImages(zarfConfig, images); + } catch (error) { + console.error(`Error processing ${zarfFile}: ${error}`); + } + } + + // Write charts to file + fs.writeFileSync( + path.join(extractDir, 'charts.yaml'), + yaml.stringify(charts) + ); + + // Write images to file + fs.writeFileSync( + path.join(extractDir, 'images.yaml'), + yaml.stringify(images) + ); + + console.log(`Extraction complete. Files written to ${extractDir}`); +} + +/** + * Recursively finds all zarf.yaml files in a directory + * @param dir - Directory to search + * @returns Array of paths to zarf.yaml files + */ +function findZarfYamlFiles(dir: string): string[] { + let results: string[] = []; + + const list = fs.readdirSync(dir); + + for (const file of list) { + const filePath = path.join(dir, file); + const stat = fs.statSync(filePath); + + if (stat.isDirectory()) { + // Skip the extract directory and node_modules + if (file !== 'extract' && file !== 'node_modules' && file !== '.git') { + results = results.concat(findZarfYamlFiles(filePath)); + } + } else if (file === 'zarf.yaml') { + results.push(filePath); + } + } + + return results; +} + +/** + * Extracts Helm charts from a zarf.yaml configuration + * @param zarfConfig - Parsed zarf.yaml configuration + * @param charts - Record to store chart information + */ +function extractCharts(zarfConfig: any, charts: Record): void { + if (!zarfConfig.components) return; + + for (const component of zarfConfig.components) { + if (component.charts) { + for (const chart of component.charts) { + // Skip local path charts + if (chart.localPath) continue; + + if (chart.url && chart.name && chart.version) { + const chartKey = `${chart.url}/${chart.name}`; + charts[chartKey] = chart.version; + } + } + } + } +} + +/** + * Extracts container images from a zarf.yaml configuration + * @param zarfConfig - Parsed zarf.yaml configuration + * @param images - Record to store image information + */ +function extractImages(zarfConfig: any, images: Record): void { + if (!zarfConfig.components) return; + + for (const component of zarfConfig.components) { + if (component.images) { + for (const image of component.images) { + if (typeof image === 'string') { + processImage(image, images); + } + } + } + + // Also check for images in actions + if (component.actions) { + for (const action of component.actions) { + if (action.images) { + for (const image of action.images) { + if (typeof image === 'string') { + processImage(image, images); + } + } + } + } + } + } +} + +/** + * Processes an image string to extract name and normalized version + * @param imageString - Full image string (e.g., registry1.dso.mil/ironbank/opensource/nginx:1.21.6) + * @param images - Record to store image information + */ +function processImage(imageString: string, images: Record): void { + // Split image name and tag + const [imageName, imageTag] = imageString.split(':'); + + if (!imageName || !imageTag) return; + + // Normalize version by removing 'v' prefix and any suffixes + let normalizedTag = imageTag; + + // Remove 'v' prefix if present + if (normalizedTag.startsWith('v')) { + normalizedTag = normalizedTag.substring(1); + } + + // Remove suffixes (e.g., -beta.1) + const versionMatch = normalizedTag.match(/^(\d+\.\d+\.\d+)/); + if (versionMatch) { + normalizedTag = versionMatch[1]; + } + + // Add to images record + if (!images[normalizedTag]) { + images[normalizedTag] = []; + } + + if (!images[normalizedTag].includes(imageString)) { + images[normalizedTag].push(imageString); + } +} + +// If called directly from command line +if (require.main === module) { + const directoryPath = process.argv[2]; + if (!directoryPath) { + console.error('Please provide a directory path'); + process.exit(1); + } + + getImagesAndCharts(directoryPath) + .then(() => process.exit(0)) + .catch((error) => { + console.error(error); + process.exit(1); + }); +} diff --git a/scripts/renovate/jest.config.js b/scripts/renovate/jest.config.js new file mode 100644 index 0000000000..9fd8bab1c0 --- /dev/null +++ b/scripts/renovate/jest.config.js @@ -0,0 +1,6 @@ +/** @type {import('ts-jest').JestConfigWithTsJest} */ +module.exports = { + preset: 'ts-jest', + testEnvironment: 'node', + testMatch: ['**/*.spec.ts'], +}; diff --git a/scripts/renovate/package-lock.json b/scripts/renovate/package-lock.json new file mode 100644 index 0000000000..25a3d90f4b --- /dev/null +++ b/scripts/renovate/package-lock.json @@ -0,0 +1,3734 @@ +{ + "name": "renovate-readiness-scripts", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "renovate-readiness-scripts", + "version": "1.0.0", + "dependencies": { + "semver": "^7.5.4", + "yaml": "^2.3.4" + }, + "devDependencies": { + "@types/jest": "^29.5.11", + "@types/node": "^20.10.5", + "@types/semver": "^7.5.6", + "jest": "^29.7.0", + "ts-jest": "^29.1.1", + "ts-node": "^10.9.2", + "typescript": "^5.3.3" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.26.2", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", + "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.25.9", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.26.8", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.8.tgz", + "integrity": "sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.26.10", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.10.tgz", + "integrity": "sha512-vMqyb7XCDMPvJFFOaT9kxtiRh42GwlZEg1/uIgtZshS5a/8OaduUfCi7kynKgc3Tw/6Uo2D+db9qBttghhmxwQ==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.26.2", + "@babel/generator": "^7.26.10", + "@babel/helper-compilation-targets": "^7.26.5", + "@babel/helper-module-transforms": "^7.26.0", + "@babel/helpers": "^7.26.10", + "@babel/parser": "^7.26.10", + "@babel/template": "^7.26.9", + "@babel/traverse": "^7.26.10", + "@babel/types": "^7.26.10", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.27.0.tgz", + "integrity": "sha512-VybsKvpiN1gU1sdMZIp7FcqphVVKEwcuj02x73uvcHE0PTihx1nlBcowYWhDwjpoAXRv43+gDzyggGnn1XZhVw==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.27.0", + "@babel/types": "^7.27.0", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.0.tgz", + "integrity": "sha512-LVk7fbXml0H2xH34dFzKQ7TDZ2G4/rVTOrq9V+icbbadjbVxxeFeDsNHv2SrZeWoA+6ZiTyWYWtScEIW07EAcA==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.26.8", + "@babel/helper-validator-option": "^7.25.9", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz", + "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==", + "dev": true, + "dependencies": { + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz", + "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9", + "@babel/traverse": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz", + "integrity": "sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", + "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", + "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz", + "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.27.0.tgz", + "integrity": "sha512-U5eyP/CTFPuNE3qk+WZMxFkp/4zUzdceQlfzf7DdGdhp+Fezd7HD+i8Y24ZuTMKX3wQBld449jijbGq6OdGNQg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.27.0", + "@babel/types": "^7.27.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.27.0.tgz", + "integrity": "sha512-iaepho73/2Pz7w2eMS0Q5f83+0RKI7i4xmiYeBmDzfRVbQtTOG7Ts0S4HzJVsTMGI9keU8rNfuZr8DKfSt7Yyg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.27.0" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.26.0.tgz", + "integrity": "sha512-e2dttdsJ1ZTpi3B9UYGLw41hifAubg19AtCu/2I/F1QNVclOBr1dYpTdmdyZ84Xiz43BS/tCUkMAZNLv12Pi+A==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.9.tgz", + "integrity": "sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.9.tgz", + "integrity": "sha512-hjMgRy5hb8uJJjUcdWunWVcoi9bGpJp8p5Ol1229PoN6aytsLwNMgmdftO23wnCLMfVmTwZDWMPNq/D1SY60JQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.0.tgz", + "integrity": "sha512-2ncevenBqXI6qRMukPlXwHKHchC7RyMuu4xv5JBXRfOGVcTy1mXCD12qrp7Jsoxll1EV3+9sE4GugBVRjT2jFA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.26.2", + "@babel/parser": "^7.27.0", + "@babel/types": "^7.27.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.27.0.tgz", + "integrity": "sha512-19lYZFzYVQkkHkl4Cy4WrAVcqBkgvV2YM2TU3xG6DIwO7O3ecbDPfW3yM3bjAGcqcQHi+CCtjMR3dIEHxsd6bA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.26.2", + "@babel/generator": "^7.27.0", + "@babel/parser": "^7.27.0", + "@babel/template": "^7.27.0", + "@babel/types": "^7.27.0", + "debug": "^4.3.1", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "dev": true, + "dependencies": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", + "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", + "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", + "dev": true + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.7.tgz", + "integrity": "sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "29.5.14", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.14.tgz", + "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==", + "dev": true, + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "node_modules/@types/node": { + "version": "20.17.30", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.30.tgz", + "integrity": "sha512-7zf4YyHA+jvBNfVrk2Gtvs6x7E8V+YDW05bNfG2XkWDJfYRXrTiP/DsB2zSYTaHX0bGIujTBQdMVAhb+j7mwpg==", + "dev": true, + "dependencies": { + "undici-types": "~6.19.2" + } + }, + "node_modules/@types/semver": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.7.0.tgz", + "integrity": "sha512-k107IF4+Xr7UHjwDc7Cfd6PRQfbdkiRabXGRjo07b4WyPahFBZCZ1sE+BNxYIJPPg73UkfOsVOLwqVc/6ETrIA==", + "dev": true + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true + }, + "node_modules/@types/yargs": { + "version": "17.0.33", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", + "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true + }, + "node_modules/acorn": { + "version": "8.14.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", + "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.4", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", + "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", + "dev": true, + "dependencies": { + "acorn": "^8.11.0" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/async": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", + "dev": true + }, + "node_modules/babel-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", + "dev": true, + "dependencies": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.1.0.tgz", + "integrity": "sha512-ldYss8SbBlWva1bs28q78Ju5Zq1F+8BrqBZZ0VFhLBvhh6lCpC2o3gDJi/5DRLs9FgYZCnmPYIVFU4lRXCkyUw==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.24.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", + "integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001688", + "electron-to-chromium": "^1.5.73", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.1" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001713", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001713.tgz", + "integrity": "sha512-wCIWIg+A4Xr7NfhTuHdX+/FKh3+Op3LBbSp2N5Pfx6T/LhdQy3GTyoTg48BReaW/MyMNZAkTadsBtai3ldWK0Q==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", + "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", + "dev": true + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "dev": true, + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/dedent": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.3.tgz", + "integrity": "sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==", + "dev": true, + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/ejs": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", + "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", + "dev": true, + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.137", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.137.tgz", + "integrity": "sha512-/QSJaU2JyIuTbbABAo/crOs+SuAZLS+fVVS10PVrIT9hrRkmZl8Hb0xPSkKRUUWHQtYzXHpQUW3Dy5hwMzGZkA==", + "dev": true + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "dependencies": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "dev": true, + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/import-local": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", + "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", + "dev": true, + "dependencies": { + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", + "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jake": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.2.tgz", + "integrity": "sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==", + "dev": true, + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", + "dev": true, + "dependencies": { + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-cli": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-config": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", + "dev": true, + "dependencies": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pure-rand": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ] + }, + "node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "dev": true + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "dev": true, + "dependencies": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve.exports": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", + "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-jest": { + "version": "29.3.2", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.3.2.tgz", + "integrity": "sha512-bJJkrWc6PjFVz5g2DGCNUo8z7oFEYaz1xP1NpeDU7KNLMWPpEyV8Chbpkn8xjzgRDpQhnGMyvyldoL7h8JXyug==", + "dev": true, + "dependencies": { + "bs-logger": "^0.2.6", + "ejs": "^3.1.10", + "fast-json-stable-stringify": "^2.1.0", + "jest-util": "^29.0.0", + "json5": "^2.2.3", + "lodash.memoize": "^4.1.2", + "make-error": "^1.3.6", + "semver": "^7.7.1", + "type-fest": "^4.39.1", + "yargs-parser": "^21.1.1" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/transform": "^29.0.0", + "@jest/types": "^29.0.0", + "babel-jest": "^29.0.0", + "jest": "^29.0.0", + "typescript": ">=4.3 <6" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@jest/transform": { + "optional": true + }, + "@jest/types": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + } + } + }, + "node_modules/ts-jest/node_modules/type-fest": { + "version": "4.40.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.40.0.tgz", + "integrity": "sha512-ABHZ2/tS2JkvH1PEjxFDTUWC8dB5OsIGZP4IFLhR293GqT5Y5qB1WwL2kMPYhQW9DVgVD8Hd7I8gjwPIf5GFkw==", + "dev": true, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ts-node": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "dev": true, + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici-types": { + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "dev": true + }, + "node_modules/update-browserslist-db": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true + }, + "node_modules/v8-to-istanbul": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yaml": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.1.tgz", + "integrity": "sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/scripts/renovate/package.json b/scripts/renovate/package.json new file mode 100644 index 0000000000..4e0d73dcb4 --- /dev/null +++ b/scripts/renovate/package.json @@ -0,0 +1,22 @@ +{ + "name": "renovate-readiness-scripts", + "version": "1.0.0", + "description": "Scripts for renovate readiness checks", + "private": true, + "scripts": { + "test": "jest" + }, + "dependencies": { + "semver": "^7.5.4", + "yaml": "^2.3.4" + }, + "devDependencies": { + "@types/jest": "^29.5.11", + "@types/node": "^20.10.5", + "@types/semver": "^7.5.6", + "jest": "^29.7.0", + "ts-jest": "^29.1.1", + "ts-node": "^10.9.2", + "typescript": "^5.3.3" + } +} diff --git a/scripts/renovate/tsconfig.json b/scripts/renovate/tsconfig.json new file mode 100644 index 0000000000..75bc8dc94f --- /dev/null +++ b/scripts/renovate/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + "skipLibCheck": true, + "outDir": "dist" + }, + "include": ["./**/*.ts"], + "exclude": ["node_modules", "**/*.test.ts"] +} diff --git a/tsconfig.json b/tsconfig.json index 7ff076edb0..1806fca447 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -25,6 +25,7 @@ "dist", "test/playwright", "test/jest", + "scripts/", "uds-docs" ] } From a7c6e61c26cc376d46366f65607364f376aeb141 Mon Sep 17 00:00:00 2001 From: Micah Nagel Date: Tue, 15 Apr 2025 11:56:53 -0600 Subject: [PATCH 02/12] fix: label diffing, yamllint, renovate sorting --- .../actions/renovate-readiness/action.yaml | 23 ++++++++++++++++--- .yamllint | 1 + renovate.json | 2 +- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/actions/renovate-readiness/action.yaml b/.github/actions/renovate-readiness/action.yaml index 985aa67de8..d6b5a48287 100644 --- a/.github/actions/renovate-readiness/action.yaml +++ b/.github/actions/renovate-readiness/action.yaml @@ -99,7 +99,7 @@ runs: # Checkout PR branch (sparse checkout of src/) - name: Checkout PR branch if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: ref: ${{ github.event.pull_request.head.ref }} path: new @@ -110,7 +110,7 @@ runs: # Checkout main branch (sparse checkout of src/) - name: Checkout main branch if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: ref: main path: old @@ -169,7 +169,24 @@ runs: run: | LABELS="${{ steps.compare.outputs.labels }}" if [[ -n "$LABELS" ]]; then - echo "Applying labels: $LABELS" + echo "New labels to apply: $LABELS" + + # Get current labels on the PR + CURRENT_LABELS=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name' | tr '\n' ' ') + echo "Current labels: $CURRENT_LABELS" + + # Define the managed labels we care about + MANAGED_LABELS=("waiting on ironbank" "waiting on cgr" "needs-review" "helm-chart-only" "major-helm-update" "major-image-update") + + # Remove labels that are currently on the PR but not in the new set + for LABEL in "${MANAGED_LABELS[@]}"; do + if [[ "$CURRENT_LABELS" == *"$LABEL"* ]] && [[ "$LABELS" != *"$LABEL"* ]]; then + echo "Removing outdated label: $LABEL" + gh pr edit ${{ github.event.pull_request.number }} --remove-label "$LABEL" || true + fi + done + + # Add the new labels gh pr edit ${{ github.event.pull_request.number }} --add-label "$LABELS" fi shell: bash diff --git a/.yamllint b/.yamllint index 5573518bf5..8b9f2da8ff 100644 --- a/.yamllint +++ b/.yamllint @@ -12,6 +12,7 @@ ignore: - "src/pepr/uds-operator-config/templates/**" - ".codespellrc" - ".lintstagedrc.json" + - "**/package-lock.json" - "uds-docs/**" rules: diff --git a/renovate.json b/renovate.json index 34a0ff24c8..71c07d49fe 100644 --- a/renovate.json +++ b/renovate.json @@ -64,7 +64,7 @@ "commitMessageTopic": "grafana" }, { - "matchFileNames": ["test/**/*", ".github/**", "bundles/**", "tasks/*.yaml", ".vscode/settings.json", "src/test/**", "README.md"], + "matchFileNames": ["test/**/*", ".github/**", "bundles/**", "tasks/*.yaml", ".vscode/settings.json", "src/test/**", "README.md", "scripts/**"], "groupName": "support-deps", "commitMessageTopic": "support dependencies" }, From b413195f23dd97a5ee536b072f0bcff28b57875f Mon Sep 17 00:00:00 2001 From: Micah Nagel Date: Tue, 15 Apr 2025 12:01:16 -0600 Subject: [PATCH 03/12] fix: codespell ignore --- .codespellrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codespellrc b/.codespellrc index a1d8652160..b8f6ecbf0a 100644 --- a/.codespellrc +++ b/.codespellrc @@ -1,6 +1,6 @@ # Lint Codespell configurations [codespell] -skip = .codespellrc,.git,node_modules,build,dist,*.zst,CHANGELOG.md,.playwright,.terraform,*.svg,**/pepr/operator/crd/generated/*.ts,**/uds-docs/** +skip = .codespellrc,.git,node_modules,build,dist,*.zst,CHANGELOG.md,.playwright,.terraform,*.svg,**/pepr/operator/crd/generated/*.ts,**/uds-docs/**,**/package-lock.json ignore-words-list = NotIn,AKS,LICENS,aks,afterAll enable-colors = check-hidden = From 886505e3df100277d4f417f9cf88a5c7e1ccd31d Mon Sep 17 00:00:00 2001 From: Micah Nagel Date: Tue, 15 Apr 2025 12:29:04 -0600 Subject: [PATCH 04/12] chore: license fixes --- scripts/renovate/compareImagesAndCharts.spec.ts | 5 +++++ scripts/renovate/compareImagesAndCharts.ts | 5 +++++ scripts/renovate/getImagesAndCharts.spec.ts | 5 +++++ scripts/renovate/getImagesAndCharts.ts | 5 +++++ scripts/renovate/jest.config.js | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/scripts/renovate/compareImagesAndCharts.spec.ts b/scripts/renovate/compareImagesAndCharts.spec.ts index da719a3eef..71f645c19a 100644 --- a/scripts/renovate/compareImagesAndCharts.spec.ts +++ b/scripts/renovate/compareImagesAndCharts.spec.ts @@ -1,3 +1,8 @@ +/** + * Copyright 2025 Defense Unicorns + * SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + */ + import * as fs from 'fs'; import * as path from 'path'; import * as yaml from 'yaml'; diff --git a/scripts/renovate/compareImagesAndCharts.ts b/scripts/renovate/compareImagesAndCharts.ts index b29cbbc23a..1a1745987a 100644 --- a/scripts/renovate/compareImagesAndCharts.ts +++ b/scripts/renovate/compareImagesAndCharts.ts @@ -1,3 +1,8 @@ +/** + * Copyright 2025 Defense Unicorns + * SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + */ + import * as fs from 'fs'; import * as path from 'path'; import * as semver from 'semver'; diff --git a/scripts/renovate/getImagesAndCharts.spec.ts b/scripts/renovate/getImagesAndCharts.spec.ts index 0fea6ea580..9098e8a999 100644 --- a/scripts/renovate/getImagesAndCharts.spec.ts +++ b/scripts/renovate/getImagesAndCharts.spec.ts @@ -1,3 +1,8 @@ +/** + * Copyright 2025 Defense Unicorns + * SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + */ + import * as fs from 'fs'; import * as path from 'path'; import * as yaml from 'yaml'; diff --git a/scripts/renovate/getImagesAndCharts.ts b/scripts/renovate/getImagesAndCharts.ts index 0e8485b8ad..e28bef61d8 100644 --- a/scripts/renovate/getImagesAndCharts.ts +++ b/scripts/renovate/getImagesAndCharts.ts @@ -1,3 +1,8 @@ +/** + * Copyright 2025 Defense Unicorns + * SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + */ + import * as fs from 'fs'; import * as path from 'path'; import * as yaml from 'yaml'; diff --git a/scripts/renovate/jest.config.js b/scripts/renovate/jest.config.js index 9fd8bab1c0..39787dc861 100644 --- a/scripts/renovate/jest.config.js +++ b/scripts/renovate/jest.config.js @@ -1,3 +1,8 @@ +/** + * Copyright 2025 Defense Unicorns + * SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + */ + /** @type {import('ts-jest').JestConfigWithTsJest} */ module.exports = { preset: 'ts-jest', From bb38e1e7648c254964e3dad18c0f0e79e51416df Mon Sep 17 00:00:00 2001 From: Micah Nagel Date: Tue, 15 Apr 2025 14:16:27 -0600 Subject: [PATCH 05/12] fix: action paths --- .github/actions/renovate-readiness/action.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/renovate-readiness/action.yaml b/.github/actions/renovate-readiness/action.yaml index d6b5a48287..d24bd1b40d 100644 --- a/.github/actions/renovate-readiness/action.yaml +++ b/.github/actions/renovate-readiness/action.yaml @@ -131,7 +131,7 @@ runs: if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' run: | cd scripts/renovate - npx ts-node getImagesAndCharts.ts old + npx ts-node getImagesAndCharts.ts $GITHUB_WORKSPACE/old shell: bash # Extract images and charts from new branch @@ -139,7 +139,7 @@ runs: if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' run: | cd scripts/renovate - npx ts-node getImagesAndCharts.ts new + npx ts-node getImagesAndCharts.ts $GITHUB_WORKSPACE/new shell: bash # Compare images and charts @@ -148,7 +148,7 @@ runs: if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' run: | cd scripts/renovate - OUTPUT=$(npx ts-node compareImagesAndCharts.ts old/extract new/extract) + OUTPUT=$(npx ts-node compareImagesAndCharts.ts $GITHUB_WORKSPACE/old/extract $GITHUB_WORKSPACE/new/extract) echo "$OUTPUT" # Extract labels from output From 268ba37401aaa1981e19e6ace0e06b168989816e Mon Sep 17 00:00:00 2001 From: Micah Nagel Date: Tue, 15 Apr 2025 16:14:07 -0600 Subject: [PATCH 06/12] chore: simulate major version update for velero --- src/velero/common/zarf.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/velero/common/zarf.yaml b/src/velero/common/zarf.yaml index 762a155fe1..891856ae38 100644 --- a/src/velero/common/zarf.yaml +++ b/src/velero/common/zarf.yaml @@ -40,7 +40,7 @@ components: - name: velero namespace: velero url: https://vmware-tanzu.github.io/helm-charts - version: 8.7.1 + version: 7.0.0 repoName: velero releaseName: velero valuesFiles: From 54d41864122e387f4c20ebce33e10b762357f047 Mon Sep 17 00:00:00 2001 From: Micah Nagel Date: Tue, 15 Apr 2025 16:14:48 -0600 Subject: [PATCH 07/12] chore: simulate major image update for grafana --- src/grafana/zarf.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grafana/zarf.yaml b/src/grafana/zarf.yaml index 919e7e1d1d..eea79a3259 100644 --- a/src/grafana/zarf.yaml +++ b/src/grafana/zarf.yaml @@ -28,7 +28,7 @@ components: - values/upstream-values.yaml images: - docker.io/grafana/grafana:11.6.0 - - docker.io/curlimages/curl:8.12.1 + - docker.io/curlimages/curl:7.12.1 - docker.io/library/busybox:1.37.0 - ghcr.io/kiwigrid/k8s-sidecar:1.30.3 @@ -60,5 +60,5 @@ components: images: - cgr.dev/du-uds-defenseunicorns/grafana-fips:11.5.3 - cgr.dev/du-uds-defenseunicorns/busybox-fips:1.37.0 - - cgr.dev/du-uds-defenseunicorns/curl-fips:8.12.1 + - cgr.dev/du-uds-defenseunicorns/curl-fips:7.12.1 - cgr.dev/du-uds-defenseunicorns/k8s-sidecar-fips:1.30.3 From ce6fec94e8c5806c3c8eb24399960496fe4c955e Mon Sep 17 00:00:00 2001 From: Micah Nagel Date: Wed, 16 Apr 2025 08:33:46 -0600 Subject: [PATCH 08/12] chore: a few fixes and changes --- .../actions/renovate-readiness/action.yaml | 36 ++++++++++--------- .github/workflows/checkpoint.yaml | 4 +-- .github/workflows/docs-shim.yaml | 4 +-- .../workflows/pull-request-conditionals.yaml | 4 +-- .github/workflows/renovate-scripts-test.yaml | 26 ++++++++++++++ .github/workflows/slim-dev-test.yaml | 4 +-- .github/workflows/test-aks.yaml | 4 +-- .github/workflows/test-eks.yaml | 4 +-- .github/workflows/test-rke2.yaml | 4 +-- 9 files changed, 60 insertions(+), 30 deletions(-) create mode 100644 .github/workflows/renovate-scripts-test.yaml diff --git a/.github/actions/renovate-readiness/action.yaml b/.github/actions/renovate-readiness/action.yaml index d24bd1b40d..e410b6575f 100644 --- a/.github/actions/renovate-readiness/action.yaml +++ b/.github/actions/renovate-readiness/action.yaml @@ -29,8 +29,9 @@ runs: - name: Process branch name id: process-branch if: steps.check-ready-label.outputs.should_process == 'true' + env: + BRANCH_NAME: ${{ github.head_ref }} run: | - BRANCH_NAME="${{ github.head_ref }}" echo "Branch name: $BRANCH_NAME" # Remove 'renovate/' prefix if present @@ -62,14 +63,15 @@ runs: # Handle Pepr updates - name: Handle Pepr update - if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.is_pepr == 'true' + if: steps.process-branch.outputs.is_pepr == 'true' run: | # Get Pepr version from package.json PEPR_VERSION=$(jq -r '.dependencies.pepr' package.json) echo "Pepr version from package.json: $PEPR_VERSION" # Get image versions from tasks/create.yaml - IRONBANK_IMAGE_VERSION=$(yq e '.tasks[].actions[].args[] | select(. == "registry1.dso.mil/ironbank/opensource/pepr/pepr-*") | split(":")[1]' tasks/create.yaml) + IRONBANK_IMAGE_VERSION=$(yq e '.variables[] | select(.name == "REGISTRY1_PEPR_IMAGE") | .default | split(":")[1]' tasks/create.yaml) + IRONBANK_IMAGE_VERSION=${IRONBANK_IMAGE_VERSION#v} echo "Ironbank image version: $IRONBANK_IMAGE_VERSION" # Compare versions @@ -79,6 +81,7 @@ runs: exit 1 else echo "Pepr versions match. Ready for review." + gh pr edit ${{ github.event.pull_request.number }} --remove-label "waiting on ironbank" || true gh pr edit ${{ github.event.pull_request.number }} --add-label "needs-review" fi shell: bash @@ -87,10 +90,11 @@ runs: # Handle support dependencies - name: Handle support dependencies - if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.is_support_deps == 'true' + if: steps.process-branch.outputs.is_support_deps == 'true' run: | echo "Support dependencies update detected. Needs manual review." gh pr edit ${{ github.event.pull_request.number }} --add-label "needs-review" + # Fail the job to prevent excessive CI runs of IAC clusters exit 1 shell: bash env: @@ -98,7 +102,7 @@ runs: # Checkout PR branch (sparse checkout of src/) - name: Checkout PR branch - if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' + if: steps.process-branch.outputs.needs_comparison == 'true' uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: ref: ${{ github.event.pull_request.head.ref }} @@ -109,7 +113,7 @@ runs: # Checkout main branch (sparse checkout of src/) - name: Checkout main branch - if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' + if: steps.process-branch.outputs.needs_comparison == 'true' uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: ref: main @@ -120,7 +124,7 @@ runs: # Install dependencies - name: Install dependencies - if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' + if: steps.process-branch.outputs.needs_comparison == 'true' run: | cd scripts/renovate npm install @@ -128,7 +132,7 @@ runs: # Extract images and charts from old branch - name: Extract images and charts from old branch - if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' + if: steps.process-branch.outputs.needs_comparison == 'true' run: | cd scripts/renovate npx ts-node getImagesAndCharts.ts $GITHUB_WORKSPACE/old @@ -136,7 +140,7 @@ runs: # Extract images and charts from new branch - name: Extract images and charts from new branch - if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' + if: steps.process-branch.outputs.needs_comparison == 'true' run: | cd scripts/renovate npx ts-node getImagesAndCharts.ts $GITHUB_WORKSPACE/new @@ -145,7 +149,7 @@ runs: # Compare images and charts - name: Compare images and charts id: compare - if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' + if: steps.process-branch.outputs.needs_comparison == 'true' run: | cd scripts/renovate OUTPUT=$(npx ts-node compareImagesAndCharts.ts $GITHUB_WORKSPACE/old/extract $GITHUB_WORKSPACE/new/extract) @@ -155,8 +159,8 @@ runs: LABELS=$(echo "$OUTPUT" | grep "LABELS=" | cut -d'=' -f2) echo "labels=$LABELS" >> $GITHUB_OUTPUT - # Check if waiting on labels are present - if [[ "$LABELS" == *"waiting on ironbank"* ]] || [[ "$LABELS" == *"waiting on cgr"* ]]; then + # Check if waiting on labels are present, or this is a helm chart update only + if [[ "$LABELS" == *"waiting on ironbank"* ]] || [[ "$LABELS" == *"waiting on cgr"* ]] || [[ "$LABELS" == *"helm-chart-only"* ]]; then echo "waiting=true" >> $GITHUB_OUTPUT else echo "waiting=false" >> $GITHUB_OUTPUT @@ -165,7 +169,7 @@ runs: # Apply labels - name: Apply labels - if: steps.check-ready-label.outputs.should_process == 'true' && steps.process-branch.outputs.needs_comparison == 'true' + if: steps.process-branch.outputs.needs_comparison == 'true' run: | LABELS="${{ steps.compare.outputs.labels }}" if [[ -n "$LABELS" ]]; then @@ -194,9 +198,9 @@ runs: GH_TOKEN: ${{ inputs.github_token }} # Fail if waiting on images - - name: Fail if waiting on images - if: steps.check-ready-label.outputs.should_process == 'true' && steps.compare.outputs.waiting == 'true' + - name: Fail if waiting on images or helm update only + if: steps.compare.outputs.waiting == 'true' run: | - echo "PR is waiting on image updates. Failing job." + echo "PR is waiting on image updates or only contains a helm chart update. Failing job." exit 1 shell: bash diff --git a/.github/workflows/checkpoint.yaml b/.github/workflows/checkpoint.yaml index 979a943c0b..cbc107adac 100644 --- a/.github/workflows/checkpoint.yaml +++ b/.github/workflows/checkpoint.yaml @@ -12,8 +12,8 @@ permissions: on: pull_request: # milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow). - # removed labeled trigger to prevent infinite loops when renovate-readiness applies labels - types: [milestoned, opened, reopened, synchronize] + # labeled trigger is safe because GitHub token operations don't trigger new workflow runs + types: [milestoned, labeled, opened, reopened, synchronize] paths: - packages/checkpoint-dev/** - .github/workflows/checkpoint** diff --git a/.github/workflows/docs-shim.yaml b/.github/workflows/docs-shim.yaml index ebd0dbce80..8deae082ae 100644 --- a/.github/workflows/docs-shim.yaml +++ b/.github/workflows/docs-shim.yaml @@ -10,8 +10,8 @@ permissions: on: pull_request: # milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow). - # removed labeled trigger to prevent infinite loops when renovate-readiness applies labels - types: [milestoned, opened, reopened, synchronize] + # labeled trigger is safe because GitHub token operations don't trigger new workflow runs + types: [milestoned, labeled, opened, reopened, synchronize] paths: - "**.md" - "**.jpg" diff --git a/.github/workflows/pull-request-conditionals.yaml b/.github/workflows/pull-request-conditionals.yaml index 5a3339d65c..73989d4b4f 100644 --- a/.github/workflows/pull-request-conditionals.yaml +++ b/.github/workflows/pull-request-conditionals.yaml @@ -7,8 +7,8 @@ name: Filter on: pull_request: # milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow). - # removed labeled trigger to prevent infinite loops when renovate-readiness applies labels - types: [milestoned, opened, reopened, synchronize] + # labeled trigger is safe because GitHub token operations don't trigger new workflow runs + types: [milestoned, labeled, opened, reopened, synchronize] paths-ignore: - "**.md" - "**.jpg" diff --git a/.github/workflows/renovate-scripts-test.yaml b/.github/workflows/renovate-scripts-test.yaml new file mode 100644 index 0000000000..a9ee18c247 --- /dev/null +++ b/.github/workflows/renovate-scripts-test.yaml @@ -0,0 +1,26 @@ +name: Renovate Readiness Tests + +on: + pull_request: + paths: + - "scripts/renovate/**" + +jobs: + test: + name: Jest Tests + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + + - name: Setup Node.js + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + + - name: Install dependencies + working-directory: scripts/renovate + run: npm i + + - name: Run tests + working-directory: scripts/renovate + run: npx jest . diff --git a/.github/workflows/slim-dev-test.yaml b/.github/workflows/slim-dev-test.yaml index 259bbbc422..090ae89ebf 100644 --- a/.github/workflows/slim-dev-test.yaml +++ b/.github/workflows/slim-dev-test.yaml @@ -7,8 +7,8 @@ name: Slim Dev on: pull_request: # milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow). - # removed labeled trigger to prevent infinite loops when renovate-readiness applies labels - types: [milestoned, opened, reopened, synchronize] + # labeled trigger is safe because GitHub token operations don't trigger new workflow runs + types: [milestoned, labeled, opened, reopened, synchronize] paths: - src/pepr/** - src/keycloak/** diff --git a/.github/workflows/test-aks.yaml b/.github/workflows/test-aks.yaml index 66206dc2bf..0e31b5a9f6 100644 --- a/.github/workflows/test-aks.yaml +++ b/.github/workflows/test-aks.yaml @@ -8,8 +8,8 @@ on: - cron: '0 0 * * 0' # Every Sunday Midnight (UTC) / Saturday 5pm MT pull_request: # milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow). - # removed labeled trigger to prevent infinite loops when renovate-readiness applies labels - types: [milestoned, opened, reopened, synchronize] + # labeled trigger is safe because GitHub token operations don't trigger new workflow runs + types: [milestoned, labeled, opened, reopened, synchronize] paths: - tasks/iac.yaml - .github/bundles/aks/* diff --git a/.github/workflows/test-eks.yaml b/.github/workflows/test-eks.yaml index 058674f469..ef37632ac9 100644 --- a/.github/workflows/test-eks.yaml +++ b/.github/workflows/test-eks.yaml @@ -8,8 +8,8 @@ on: - cron: '0 0 * * 0' # Every Sunday Midnight (UTC) / Saturday 5pm MT pull_request: # milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow). - # removed labeled trigger to prevent infinite loops when renovate-readiness applies labels - types: [milestoned, opened, reopened, synchronize] + # labeled trigger is safe because GitHub token operations don't trigger new workflow runs + types: [milestoned, labeled, opened, reopened, synchronize] paths: - tasks/iac.yaml - .github/bundles/eks/* diff --git a/.github/workflows/test-rke2.yaml b/.github/workflows/test-rke2.yaml index 6a4a88693e..2b59373a33 100644 --- a/.github/workflows/test-rke2.yaml +++ b/.github/workflows/test-rke2.yaml @@ -8,8 +8,8 @@ on: - cron: '0 0 * * 0' # Every Sunday Midnight (UTC) / Saturday 5pm MT pull_request: # milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow). - # removed labeled trigger to prevent infinite loops when renovate-readiness applies labels - types: [milestoned, opened, reopened, synchronize] + # labeled trigger is safe because GitHub token operations don't trigger new workflow runs + types: [milestoned, labeled, opened, reopened, synchronize] paths: - tasks/iac.yaml - .github/bundles/rke2/* From fb4018118a7c592c43796959df46b983d736dace Mon Sep 17 00:00:00 2001 From: Micah Nagel Date: Wed, 16 Apr 2025 08:36:46 -0600 Subject: [PATCH 09/12] chore: downgrade metrics-server for helm-chart-only --- src/metrics-server/common/zarf.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/metrics-server/common/zarf.yaml b/src/metrics-server/common/zarf.yaml index 0cef631314..2787ac2d85 100644 --- a/src/metrics-server/common/zarf.yaml +++ b/src/metrics-server/common/zarf.yaml @@ -18,6 +18,6 @@ components: - name: metrics-server namespace: metrics-server url: https://kubernetes-sigs.github.io/metrics-server - version: 3.12.2 + version: 3.12.1 valuesFiles: - "../values/values.yaml" From cc4a6e231145bcf67fc59bd4c661f9c829d39b48 Mon Sep 17 00:00:00 2001 From: Micah Nagel Date: Wed, 16 Apr 2025 08:44:25 -0600 Subject: [PATCH 10/12] chore: license header --- .github/workflows/renovate-scripts-test.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/renovate-scripts-test.yaml b/.github/workflows/renovate-scripts-test.yaml index a9ee18c247..715817c73e 100644 --- a/.github/workflows/renovate-scripts-test.yaml +++ b/.github/workflows/renovate-scripts-test.yaml @@ -1,3 +1,6 @@ +# Copyright 2025 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + name: Renovate Readiness Tests on: From c6ce53f6d88cd30eb0bd54b6103e0e4e25d68eeb Mon Sep 17 00:00:00 2001 From: Micah Nagel Date: Wed, 16 Apr 2025 09:03:52 -0600 Subject: [PATCH 11/12] chore: change behavior around helm-only --- scripts/renovate/compareImagesAndCharts.spec.ts | 7 +++---- scripts/renovate/compareImagesAndCharts.ts | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/renovate/compareImagesAndCharts.spec.ts b/scripts/renovate/compareImagesAndCharts.spec.ts index 71f645c19a..9d104ff68c 100644 --- a/scripts/renovate/compareImagesAndCharts.spec.ts +++ b/scripts/renovate/compareImagesAndCharts.spec.ts @@ -236,7 +236,7 @@ describe('compareImagesAndCharts', () => { const result = await compareImagesAndCharts('old', 'new'); - expect(result.labels).toContain('needs-review'); + expect(result.labels).not.toContain('needs-review'); expect(result.changes).toContain('Chart chart2 updated from 2.0.0 to 2.1.0'); expect(result.labels).toContain('helm-chart-only'); expect(result.changes).toContain('PR contains only helm chart updates'); @@ -300,7 +300,7 @@ describe('compareImagesAndCharts', () => { const result = await compareImagesAndCharts('old', 'new'); - expect(result.labels).toContain('needs-review'); + expect(result.labels).not.toContain('needs-review'); expect(result.labels).toContain('major-helm-update'); expect(result.changes).toContain('Chart chart2 updated from 2.0.0 to 3.0.0'); expect(result.changes).toContain('Major helm chart update detected for chart2'); @@ -789,7 +789,7 @@ describe('compareImagesAndCharts', () => { const result = await compareImagesAndCharts('old', 'new'); - expect(result.labels).toContain('needs-review'); + expect(result.labels).not.toContain('needs-review'); expect(result.labels).toContain('helm-chart-only'); expect(result.labels).not.toContain('waiting on ironbank'); expect(result.labels).not.toContain('waiting on cgr'); @@ -833,7 +833,6 @@ describe('compareImagesAndCharts', () => { const result = await compareImagesAndCharts('old', 'new'); - expect(result.labels).toContain('needs-review'); expect(result.labels).toContain('major-helm-update'); expect(result.labels).toContain('helm-chart-only'); expect(result.labels).not.toContain('waiting on ironbank'); diff --git a/scripts/renovate/compareImagesAndCharts.ts b/scripts/renovate/compareImagesAndCharts.ts index 1a1745987a..3f006372e0 100644 --- a/scripts/renovate/compareImagesAndCharts.ts +++ b/scripts/renovate/compareImagesAndCharts.ts @@ -50,7 +50,8 @@ export async function compareImagesAndCharts(oldPath: string, newPath: string): // If no waiting labels were added, add needs-review if (!result.labels.includes('waiting on ironbank') && - !result.labels.includes('waiting on cgr')) { + !result.labels.includes('waiting on cgr') && + !result.labels.includes('helm-chart-only')) { result.labels.push('needs-review'); } } catch (error: unknown) { From 984f989efe596f1eafa35f767e0573b7a467a6c9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 17 May 2025 08:05:33 +0000 Subject: [PATCH 12/12] chore(deps): update pepr | datasource | package | from | to | | ----------- | --------------------------------------------------------------------- | ------- | ------- | | github-tags | defenseunicorns/pepr | v0.47.0 | v0.50.0 | | npm | lint-staged | 15.5.0 | 16.0.0 | | npm | pepr | 0.47.0 | 0.50.0 | | docker | registry1.dso.mil/ironbank/opensource/defenseunicorns/pepr/controller | v0.47.0 | v0.50.0 | | npm | ts-jest | 29.3.1 | 29.3.4 | --- package-lock.json | 302 +++++++++++++++------------------------------- package.json | 6 +- tasks/create.yaml | 4 +- 3 files changed, 102 insertions(+), 210 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6b8a57d760..cfd4376bf4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,15 +8,15 @@ "name": "uds-core", "version": "0.6.0", "dependencies": { - "pepr": "0.47.0" + "pepr": "0.50.0" }, "devDependencies": { "@jest/globals": "29.7.0", "@types/jest": "^29.5.14", "husky": "9.1.7", "jest": "29.7.0", - "lint-staged": "15.5.0", - "ts-jest": "29.3.1" + "lint-staged": "16.0.0", + "ts-jest": "29.3.4" }, "engines": { "node": ">=20.0.0" @@ -1785,7 +1785,6 @@ "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "peer": true, "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" @@ -1798,7 +1797,6 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "peer": true, "engines": { "node": ">= 8" } @@ -1807,7 +1805,6 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "peer": true, "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" @@ -1966,6 +1963,17 @@ "@sinonjs/commons": "^3.0.0" } }, + "node_modules/@ts-morph/common": { + "version": "0.26.1", + "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.26.1.tgz", + "integrity": "sha512-Sn28TGl/4cFpcM+jwsH1wLncYq3FtN/BIpem+HOygfBWPT5pAeS5dB4VFVzV8FbnOKHpDLZmvAl4AjPEev5idA==", + "license": "MIT", + "dependencies": { + "fast-glob": "^3.3.2", + "minimatch": "^9.0.4", + "path-browserify": "^1.0.1" + } + }, "node_modules/@tufjs/canonical-json": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@tufjs/canonical-json/-/canonical-json-2.0.0.tgz", @@ -3101,6 +3109,12 @@ "node": ">= 0.12.0" } }, + "node_modules/code-block-writer": { + "version": "13.0.3", + "resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-13.0.3.tgz", + "integrity": "sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==", + "license": "MIT" + }, "node_modules/collect-v8-coverage": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", @@ -3904,7 +3918,6 @@ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", "license": "MIT", - "peer": true, "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -3921,7 +3934,6 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "license": "ISC", - "peer": true, "dependencies": { "is-glob": "^4.0.1" }, @@ -3962,7 +3974,6 @@ "version": "1.17.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", - "peer": true, "dependencies": { "reusify": "^1.0.4" } @@ -4626,7 +4637,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "peer": true, "engines": { "node": ">=0.10.0" } @@ -4656,7 +4666,6 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "peer": true, "dependencies": { "is-extglob": "^2.1.1" }, @@ -5542,18 +5551,18 @@ } }, "node_modules/kubernetes-fluent-client": { - "version": "3.4.6", - "resolved": "https://registry.npmjs.org/kubernetes-fluent-client/-/kubernetes-fluent-client-3.4.6.tgz", - "integrity": "sha512-n3U86mt9hFv0C7UrbGoUvZqfhmg/pCkPZesPZE6+ar64zs/wEFFD0AAJjKtzwWkCRZuI9XYKvXrNRqY1iAg4lw==", + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/kubernetes-fluent-client/-/kubernetes-fluent-client-3.5.3.tgz", + "integrity": "sha512-rLp9rQwyHGmv0xr2hqtISeWR0+hYmkF0Zg3Vz6AjiDDcxkpNVjt5FPAKonuPD+k7ueTQlIPIOSGVjJfcAxsFhg==", "license": "Apache-2.0", "dependencies": { "@kubernetes/client-node": "1.0.0-rc7", "fast-json-patch": "3.1.1", "http-status-codes": "2.3.0", "node-fetch": "2.7.0", - "quicktype-core": "23.0.171", - "type-fest": "4.38.0", - "undici": "7.6.0", + "quicktype-core": "23.1.3", + "type-fest": "^4.39.1", + "undici": "^7.7.0", "yargs": "17.7.2" }, "bin": { @@ -5564,9 +5573,9 @@ } }, "node_modules/kubernetes-fluent-client/node_modules/type-fest": { - "version": "4.38.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.38.0.tgz", - "integrity": "sha512-2dBz5D5ycHIoliLYLi0Q2V7KRaDlH0uWIvmk7TYlAg5slqwiPv1ezJdZm1QEM0xgk29oYWMCbIG7E6gHpvChlg==", + "version": "4.41.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=16" @@ -5617,28 +5626,28 @@ "dev": true }, "node_modules/lint-staged": { - "version": "15.5.0", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-15.5.0.tgz", - "integrity": "sha512-WyCzSbfYGhK7cU+UuDDkzUiytbfbi0ZdPy2orwtM75P3WTtQBzmG40cCxIa8Ii2+XjfxzLH6Be46tUfWS85Xfg==", + "version": "16.0.0", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-16.0.0.tgz", + "integrity": "sha512-sUCprePs6/rbx4vKC60Hez6X10HPkpDJaGcy3D1NdwR7g1RcNkWL8q9mJMreOqmHBTs+1sNFp+wOiX9fr+hoOQ==", "dev": true, "license": "MIT", "dependencies": { "chalk": "^5.4.1", "commander": "^13.1.0", "debug": "^4.4.0", - "execa": "^8.0.1", "lilconfig": "^3.1.3", - "listr2": "^8.2.5", + "listr2": "^8.3.3", "micromatch": "^4.0.8", + "nano-spawn": "^1.0.0", "pidtree": "^0.6.0", "string-argv": "^0.3.2", - "yaml": "^2.7.0" + "yaml": "^2.7.1" }, "bin": { "lint-staged": "bin/lint-staged.js" }, "engines": { - "node": ">=18.12.0" + "node": ">=20.18" }, "funding": { "url": "https://opencollective.com/lint-staged" @@ -5657,155 +5666,12 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/lint-staged/node_modules/execa": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", - "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", - "dev": true, - "license": "MIT", - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^8.0.1", - "human-signals": "^5.0.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^4.1.0", - "strip-final-newline": "^3.0.0" - }, - "engines": { - "node": ">=16.17" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/lint-staged/node_modules/get-stream": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", - "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lint-staged/node_modules/human-signals": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", - "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=16.17.0" - } - }, - "node_modules/lint-staged/node_modules/is-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lint-staged/node_modules/mimic-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lint-staged/node_modules/npm-run-path": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", - "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lint-staged/node_modules/onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-fn": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lint-staged/node_modules/path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lint-staged/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/lint-staged/node_modules/strip-final-newline": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", - "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/listr2": { - "version": "8.2.5", - "resolved": "https://registry.npmjs.org/listr2/-/listr2-8.2.5.tgz", - "integrity": "sha512-iyAZCeyD+c1gPyE9qpFu8af0Y+MRtmKOncdGoA2S5EY8iFq99dmmvkNnHiWo+pj0s7yH7l3KPIgee77tKpXPWQ==", + "version": "8.3.3", + "resolved": "https://registry.npmjs.org/listr2/-/listr2-8.3.3.tgz", + "integrity": "sha512-LWzX2KsqcB1wqQ4AHgYb4RsDXauQiqhjLk+6hjbaeHG4zpjjVAB6wC/gz6X0l+Du1cN3pUB5ZlrvTbhGSNnUQQ==", "dev": true, + "license": "MIT", "dependencies": { "cli-truncate": "^4.0.0", "colorette": "^2.0.20", @@ -6066,7 +5932,6 @@ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "license": "MIT", - "peer": true, "engines": { "node": ">= 8" } @@ -6368,6 +6233,19 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" }, + "node_modules/nano-spawn": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/nano-spawn/-/nano-spawn-1.0.1.tgz", + "integrity": "sha512-BfcvzBlUTxSDWfT+oH7vd6CbUV+rThLLHCIym/QO6GGLBsyVXleZs00fto2i2jzC/wPiBYk5jyOmpXWg4YopiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20.18" + }, + "funding": { + "url": "https://github.com/sindresorhus/nano-spawn?sponsor=1" + } + }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", @@ -6667,6 +6545,12 @@ "node": ">= 0.8" } }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "license": "MIT" + }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -6738,9 +6622,9 @@ } }, "node_modules/pepr": { - "version": "0.47.0", - "resolved": "https://registry.npmjs.org/pepr/-/pepr-0.47.0.tgz", - "integrity": "sha512-yeW/KC1dnlGJHKDHvcGn3qA28/uJEto6Xb/r7k1un4i1zi7BDGp/Wdo2f7muxFtfDuwoB7eTou8HXW9f/pEMVg==", + "version": "0.50.0", + "resolved": "https://registry.npmjs.org/pepr/-/pepr-0.50.0.tgz", + "integrity": "sha512-Op5cM4StNgishnV1KRt19dwZlzhVhJVTb9rJl6xVVIiYeAkvXOI/13Yk0N/FtoLxrACMjyn2wan8ceV7vFEaIQ==", "license": "Apache-2.0", "dependencies": { "@types/ramda": "0.30.2", @@ -6749,12 +6633,13 @@ "heredoc": "^1.3.1", "http-status-codes": "^2.3.0", "json-pointer": "^0.6.2", - "kubernetes-fluent-client": "3.4.6", + "kubernetes-fluent-client": "3.5.3", "pino": "9.6.0", "pino-pretty": "13.0.0", "prom-client": "15.1.3", "ramda": "0.30.1", - "sigstore": "3.1.0" + "sigstore": "3.1.0", + "ts-morph": "^25.0.1" }, "bin": { "pepr": "dist/cli.js" @@ -7142,8 +7027,7 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "peer": true + ] }, "node_modules/quick-format-unescaped": { "version": "4.0.4", @@ -7151,9 +7035,9 @@ "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==" }, "node_modules/quicktype-core": { - "version": "23.0.171", - "resolved": "https://registry.npmjs.org/quicktype-core/-/quicktype-core-23.0.171.tgz", - "integrity": "sha512-2kFUFtVdCbc54IBlCG30Yzsb5a1l6lX/8UjKaf2B009WFsqvduidaSOdJ4IKMhMi7DCrq60mnU7HZ1fDazGRlw==", + "version": "23.1.3", + "resolved": "https://registry.npmjs.org/quicktype-core/-/quicktype-core-23.1.3.tgz", + "integrity": "sha512-0wL9YYx6SvfI3sd7e+mr1Ha514CXnOKdNJgHSiccMqoHfGumrChmVkQhD81HQHztdLQq1k+HMmACzFgfDJJLAA==", "license": "Apache-2.0", "dependencies": { "@glideapps/ts-necessities": "2.2.3", @@ -7361,7 +7245,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "peer": true, "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -7429,7 +7312,6 @@ "url": "https://feross.org/support" } ], - "peer": true, "dependencies": { "queue-microtask": "^1.2.2" } @@ -7472,9 +7354,9 @@ "integrity": "sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==" }, "node_modules/semver": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", - "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -8195,9 +8077,9 @@ } }, "node_modules/ts-jest": { - "version": "29.3.1", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.3.1.tgz", - "integrity": "sha512-FT2PIRtZABwl6+ZCry8IY7JZ3xMuppsEV9qFVHOVe8jDzggwUZ9TsM4chyJxL9yi6LvkqcZYU3LmapEE454zBQ==", + "version": "29.3.4", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.3.4.tgz", + "integrity": "sha512-Iqbrm8IXOmV+ggWHOTEbjwyCf2xZlUMv5npExksXohL+tk8va4Fjhb+X2+Rt9NBmgO7bJ8WpnMLOwih/DnMlFA==", "dev": true, "license": "MIT", "dependencies": { @@ -8208,8 +8090,8 @@ "json5": "^2.2.3", "lodash.memoize": "^4.1.2", "make-error": "^1.3.6", - "semver": "^7.7.1", - "type-fest": "^4.38.0", + "semver": "^7.7.2", + "type-fest": "^4.41.0", "yargs-parser": "^21.1.1" }, "bin": { @@ -8245,9 +8127,9 @@ } }, "node_modules/ts-jest/node_modules/type-fest": { - "version": "4.39.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.39.1.tgz", - "integrity": "sha512-uW9qzd66uyHYxwyVBYiwS4Oi0qZyUqwjU+Oevr6ZogYiXt99EOYtwvzMSLw1c3lYo2HzJsep/NB23iEVEgjG/w==", + "version": "4.41.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", "dev": true, "license": "(MIT OR CC0-1.0)", "engines": { @@ -8257,6 +8139,16 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/ts-morph": { + "version": "25.0.1", + "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-25.0.1.tgz", + "integrity": "sha512-QJEiTdnz1YjrB3JFhd626gX4rKHDLSjSVMvGGG4v7ONc3RBwa0Eei98G9AT9uNFDMtV54JyuXsFeC+OH0n6bXQ==", + "license": "MIT", + "dependencies": { + "@ts-morph/common": "~0.26.0", + "code-block-writer": "^13.0.3" + } + }, "node_modules/ts-toolbelt": { "version": "9.6.0", "resolved": "https://registry.npmjs.org/ts-toolbelt/-/ts-toolbelt-9.6.0.tgz", @@ -8373,9 +8265,9 @@ } }, "node_modules/undici": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/undici/-/undici-7.6.0.tgz", - "integrity": "sha512-gaFsbThjrDGvAaD670r81RZro/s6H2PVZF640Qn0p5kZK+/rim7/mmyfp2W7VB5vOMaFM8vuFBJUaMlaZTYHlA==", + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.9.0.tgz", + "integrity": "sha512-e696y354tf5cFZPXsF26Yg+5M63+5H3oE6Vtkh2oqbvsE2Oe7s2nIbcQh5lmG7Lp/eS29vJtTpw9+p6PX0qNSg==", "license": "MIT", "engines": { "node": ">=20.18.1" @@ -8745,15 +8637,15 @@ "dev": true }, "node_modules/yaml": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.0.tgz", - "integrity": "sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.0.tgz", + "integrity": "sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ==", "license": "ISC", "bin": { "yaml": "bin.mjs" }, "engines": { - "node": ">= 14" + "node": ">= 14.6" } }, "node_modules/yargs": { diff --git a/package.json b/package.json index cfa7912592..0bd6c6bd25 100644 --- a/package.json +++ b/package.json @@ -29,15 +29,15 @@ "k3d-setup": "k3d cluster delete pepr-dev && k3d cluster create pepr-dev --k3s-arg '--debug@server:0'" }, "dependencies": { - "pepr": "0.47.0" + "pepr": "0.50.0" }, "devDependencies": { "@jest/globals": "29.7.0", "@types/jest": "^29.5.14", "husky": "9.1.7", "jest": "29.7.0", - "lint-staged": "15.5.0", - "ts-jest": "29.3.1" + "lint-staged": "16.0.0", + "ts-jest": "29.3.4" }, "jest": { "preset": "ts-jest", diff --git a/tasks/create.yaml b/tasks/create.yaml index 1f49b643ce..baaa6e0c6e 100644 --- a/tasks/create.yaml +++ b/tasks/create.yaml @@ -10,11 +10,11 @@ variables: - name: REGISTRY1_PEPR_IMAGE # renovate: datasource=docker depName=registry1.dso.mil/ironbank/opensource/defenseunicorns/pepr/controller versioning=semver - default: registry1.dso.mil/ironbank/opensource/defenseunicorns/pepr/controller:v0.47.0 + default: registry1.dso.mil/ironbank/opensource/defenseunicorns/pepr/controller:v0.50.0 - name: UNICORN_PEPR_IMAGE # renovate: datasource=github-tags depName=defenseunicorns/pepr versioning=semver - default: ghcr.io/defenseunicorns/pepr/private/controller:v0.47.0 + default: ghcr.io/defenseunicorns/pepr/private/controller:v0.50.0 - name: LAYER