diff --git a/.editorconfig b/.editorconfig index 251aca7..02c469d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,18 +5,18 @@ root = true # All [*] +indent_size = 2 end_of_line = lf +indent_style = space trim_trailing_whitespace = true insert_final_newline = true -indent_size = 2 -indent_style = space -quote_type = single -# Programming languages -[*.{py,js,ts,jsx,tsx}] -charset = utf-8 +# Makefile +[Makefile] +indent_style = tab -# Python -[*.py] -indent_style = space +# Golang +[*.go] +charset = utf-8 indent_size = 4 +indent_style = tab diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index a261f29..0000000 --- a/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -dist/* diff --git a/.github/CODESTYLE.md b/.github/CODESTYLE.md index 7659784..35df469 100644 --- a/.github/CODESTYLE.md +++ b/.github/CODESTYLE.md @@ -22,7 +22,7 @@ Please ensure that your code passes linting before merging a Pull Request. ```ts /** Get a greeting string */ const myFunction = (): string => { - return 'hi'; + return "hi"; }; ``` diff --git a/.github/ISSUE_TEMPLATE/1-bug-report.md b/.github/ISSUE_TEMPLATE/1-bug-report.md index 8109040..120ee0d 100644 --- a/.github/ISSUE_TEMPLATE/1-bug-report.md +++ b/.github/ISSUE_TEMPLATE/1-bug-report.md @@ -1,15 +1,15 @@ --- -name: 'Bug Report' -about: 'Report an issue to help the project improve.' -title: '[Bug] ' -labels: 'Type: Bug' +name: "Bug Report" +about: "Report an issue to help the project improve." +title: "[Bug] " +labels: "Type: Bug" assignees: caffeine-addictt --- # Bug report Your issue may already be reported! -Please check out our [active issues](https://github.com/caffeine-addictt/template/issues) before creating one. +Please check out our [active issues](https://github.com/caffeine-addictt/waku/issues) before creating one. ## Expected Behavior diff --git a/.github/ISSUE_TEMPLATE/2-failing-test.md b/.github/ISSUE_TEMPLATE/2-failing-test.md index 22517f5..a611728 100644 --- a/.github/ISSUE_TEMPLATE/2-failing-test.md +++ b/.github/ISSUE_TEMPLATE/2-failing-test.md @@ -1,15 +1,15 @@ --- -name: 'Failing Test' -about: 'Report failing tests or CI jobs.' -title: '[Test] ' -labels: 'Type: Test' +name: "Failing Test" +about: "Report failing tests or CI jobs." +title: "[Test] " +labels: "Type: Test" assignees: caffeine-addictt --- # Failing Test Your issue may already be reported! -Please check out our [active issues](https://github.com/caffeine-addictt/template/issues) before creating one. +Please check out our [active issues](https://github.com/caffeine-addictt/waku/issues) before creating one. ## Which Jobs/Tests are Failing? diff --git a/.github/ISSUE_TEMPLATE/3-docs-bug.md b/.github/ISSUE_TEMPLATE/3-docs-bug.md index cf97767..8ffe049 100644 --- a/.github/ISSUE_TEMPLATE/3-docs-bug.md +++ b/.github/ISSUE_TEMPLATE/3-docs-bug.md @@ -1,15 +1,15 @@ --- -name: 'Documentation or README.md issue report' +name: "Documentation or README.md issue report" about: "Report an issue in the project's documentation or README.md file." -title: '' -labels: 'Documentation' +title: "" +labels: "Documentation" assignees: caffeine-addictt --- # Documentation Issue Report Your issue may already be reported! -Please check out our [active issues](https://github.com/caffeine-addictt/template/issues) before creating one. +Please check out our [active issues](https://github.com/caffeine-addictt/waku/issues) before creating one. ## Describe the Bug diff --git a/.github/ISSUE_TEMPLATE/4-feature-request.md b/.github/ISSUE_TEMPLATE/4-feature-request.md index a2c8787..f25e513 100644 --- a/.github/ISSUE_TEMPLATE/4-feature-request.md +++ b/.github/ISSUE_TEMPLATE/4-feature-request.md @@ -1,15 +1,15 @@ --- -name: 'Feature Request' -about: 'Suggest an idea or possible new feature for this project.' -title: '' -labels: 'Type: Feature' +name: "Feature Request" +about: "Suggest an idea or possible new feature for this project." +title: "" +labels: "Type: Feature" assignees: caffeine-addictt --- # Feature Request Your issue may already be reported! -Please check out our [active issues](https://github.com/caffeine-addictt/template/issues) before creating one. +Please check out our [active issues](https://github.com/caffeine-addictt/waku/issues) before creating one. ## Is Your Feature Request Related to an Issue? diff --git a/.github/ISSUE_TEMPLATE/5-enhancement-request.md b/.github/ISSUE_TEMPLATE/5-enhancement-request.md index 976aa47..a35f6e0 100644 --- a/.github/ISSUE_TEMPLATE/5-enhancement-request.md +++ b/.github/ISSUE_TEMPLATE/5-enhancement-request.md @@ -1,15 +1,15 @@ --- -name: 'Enhancement Request' -about: 'Suggest an enhancement for this project. Improve an existing feature' -title: '' -labels: 'Type: Enhancement' +name: "Enhancement Request" +about: "Suggest an enhancement for this project. Improve an existing feature" +title: "" +labels: "Type: Enhancement" assignees: caffeine-addictt --- # Enhancement Request Your issue may already be reported! -Please check out our [active issues](https://github.com/caffeine-addictt/template/issues) before creating one. +Please check out our [active issues](https://github.com/caffeine-addictt/waku/issues) before creating one. ## Is Your Enhancement Request Related to an Issue? diff --git a/.github/ISSUE_TEMPLATE/6-security-report.md b/.github/ISSUE_TEMPLATE/6-security-report.md index 5844b24..4aa2467 100644 --- a/.github/ISSUE_TEMPLATE/6-security-report.md +++ b/.github/ISSUE_TEMPLATE/6-security-report.md @@ -1,8 +1,8 @@ --- -name: 'Security Report' -about: 'Report an issue to help the project improve.' -title: '' -labels: 'Type: Security' +name: "Security Report" +about: "Report an issue to help the project improve." +title: "" +labels: "Type: Security" assignees: caffeine-addictt --- @@ -45,7 +45,7 @@ The data that must NOT be posted here: # Security Report Your issue may already be reported! -Please check out our [active issues](https://github.com/caffeine-addictt/template/issues) before creating one. +Please check out our [active issues](https://github.com/caffeine-addictt/waku/issues) before creating one. ## Describe the Security Issue diff --git a/.github/ISSUE_TEMPLATE/7-question-support.md b/.github/ISSUE_TEMPLATE/7-question-support.md index 77e1c90..461aa44 100644 --- a/.github/ISSUE_TEMPLATE/7-question-support.md +++ b/.github/ISSUE_TEMPLATE/7-question-support.md @@ -1,8 +1,8 @@ --- -name: 'Question or Support Request' -about: 'Questions and requests for support.' -title: '' -labels: ['Type: Question', 'help wanted'] +name: "Question or Support Request" +about: "Questions and requests for support." +title: "" +labels: ["Type: Question", "help wanted"] assignees: caffeine-addictt --- diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d76c0c0..706a68b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,17 +1,23 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file version: 2 updates: - - package-ecosystem: 'github-actions' - # Workflow files stored in the default location of `.github/workflows`. (You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.) - directory: '/' + - package-ecosystem: "github-actions" + directory: "/" schedule: - interval: 'weekly' + interval: "weekly" - # - package-ecosystem: "npm" # See documentation for possible values - # directory: "/" # Location of package manifests - # schedule: - # interval: "weekly" + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "weekly" + + - package-ecosystem: "docker" + directory: "/" + schedule: + interval: "weekly" + + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/labeler.yml b/.github/labeler.yml index ea4b726..e6cd7a5 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -3,12 +3,12 @@ Documentation: - changed-files: - - any-glob-to-any-file: [docs/**, './*.{md,mdx}'] + - any-glob-to-any-file: [docs/**, "./*.{md,mdx}"] -'Type: Test': +"Type: Test": - changed-files: - any-glob-to-any-file: [tests/**, ./*test*] -'Type: CI': +"Type: CI": - changed-files: - any-glob-to-any-file: [.github/workflows/**] diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index 62572e9..0000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,40 +0,0 @@ -name-template: 'v$RESOLVED_VERSION' -tag-template: 'v$RESOLVED_VERSION' -template: | - # What's Changed - - $CHANGES - - **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION - -categories: - - title: 'New' - label: 'Type: Feature' - - - title: 'Bug Fixes' - label: 'Type: Bug' - - - title: 'Improvements' - label: 'Type: Enhancement' - - - title: 'Other changes' - - - title: 'Documentation' - label: 'Documentation' - collapse-after: 5 - -version-resolver: - major: - labels: - - 'Type: Breaking' - minor: - labels: - - 'Type: Feature' - patch: - labels: - - 'Type: Bug' - - 'Documentation' - - 'Type: Security' - -exclude-labels: - - 'Skip-Changelog' diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml deleted file mode 100644 index eee1067..0000000 --- a/.github/workflows/check-dist.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Check Transpiled JavaScript - -on: - pull_request: - branches: - - main - push: - branches: - - main - -permissions: - contents: read - -jobs: - check-dist: - name: dist/ up to date - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4.0.3 - with: - cache: npm - - - name: Install Dependencies - run: npm i - - - name: Build dist/ Directory - run: npm run build - - # This will fail the workflow if the `dist/` directory is different than - # expected. - - name: Compare Directories - run: | - if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then - echo "Detected uncommitted changes after build. See status below:" - git diff --ignore-space-at-eol --text dist/ - exit 1 - fi diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index c78c36b..7c65ba1 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -3,14 +3,10 @@ name: Labeler on: - pull_request_target -# This workflow will require write permissions on pull requests -# 1. Repository Settings -> Actions -> General -> Workflow permissions -# Check "Read and write permissions" - jobs: labeler: runs-on: ubuntu-latest steps: - uses: actions/labeler@v5 with: - repo-token: '${{ secrets.GITHUB_TOKEN }}' + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 2e46520..4873f50 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -2,6 +2,9 @@ name: Linting on: push: + branches: + - main + - v* pull_request: workflow_dispatch: @@ -9,23 +12,96 @@ permissions: contents: read jobs: - linting: - name: Linting + changed-files: + name: Changed Files runs-on: ubuntu-latest + outputs: + lint-go: ${{ steps.changed-files.outputs.lint-go_any_modified == 'true' }} + lint-npm: ${{ steps.changed-files.outputs.lint-npm_any_modified == 'true' }} steps: - name: Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 50 # Assume PRs are less than 50 commits - - name: Set up node - uses: actions/setup-node@v4.0.3 + - name: Find changed files + uses: tj-actions/changed-files@v44 + id: changed-files + with: + files_yaml: | + common: &common + - .github/workflows/linting.yml + - Makefile - - name: Install dependencies + lint-go: + - *common + - cmd/** + - go.* + - '*.go' + + lint-npm: + - *common + - template/** + - '*.md' + - '*.yml' + - docs/** + - .github/** + + go: + name: Linting Go + runs-on: ubuntu-latest + needs: changed-files + if: ${{ needs.changed-files.outputs.lint-go == 'true' }} + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: 1.23.0 + + - name: Lint run: | set -xe - npm install + make lint/go + + npm: + name: Linting NPM + runs-on: ubuntu-latest + needs: changed-files + if: ${{ needs.changed-files.outputs.lint-npm == 'true' }} - - name: Run linting + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + + - name: Install dependencies + run: | + make install/npm + + - name: Lint run: | set -xe - npm run lint + make lint/npm + + check: + if: always() + name: Linting Successful + runs-on: ubuntu-latest + needs: [go, npm] + + steps: + - name: Whether the whole test suite passed + uses: re-actors/alls-green@v1.2.2 + with: + allowed-skips: ${{ toJSON(needs) }} + jobs: ${{ toJSON(needs) }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c54ff01 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,50 @@ +name: Release + +on: + push: + tags: + - "*" + +permissions: + contents: write + +jobs: + build: + name: Building project + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: 1.23.0 + + - name: Login to docker + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USER }} + password: ${{ secrets.DOCKER_KEY }} + + - name: Login to ghcr.io + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v5 + with: + distribution: goreleaser + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAP_GITHUB_TOKEN: ${{ secrets.GH_PAT }} + AUR_PRIVATE_KEY: ${{ secrets.AUR_PRIVATE_KEY }} + CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }} diff --git a/.github/workflows/sync-template.yml b/.github/workflows/sync-template.yml deleted file mode 100644 index dc3e53b..0000000 --- a/.github/workflows/sync-template.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Sync with upstream template - -on: - schedule: - - cron: '0 0 * * 6' # Weekly on Saturday - workflow_dispatch: - -env: - UPSTREAM_BRANCH: main - UPSTREAM_REPO: caffeine-addictt/template - -# Setup -# 1. Ensure you have a PAT with "contents:write", "workflows:write" and "metadata:read" permissions -# https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token -# -# 2. Write the PAT to the "PERSONAL_ACCESS_TOKEN" secret -# https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository -# -# 3. Ensure that GHactions can write Pull Requests (PRs) to the repository -# Repository Settings -> Actions -> General -> Workflow permissions -# Check "Allow GitHub Actions to create and approve pull requests" - -jobs: - repo-sync: - runs-on: ubuntu-latest - - # https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs - permissions: - contents: write - pull-requests: write - - steps: - - name: Checkout - uses: actions/checkout@v4 - if: github.repository != env.UPSTREAM_REPO - # https://github.com/actions/checkout#usage - with: - # uncomment if you use submodules within the source repository - # submodules: true - token: ${{ secrets.GITHUB_TOKEN || secrets.PERSONAL_ACCESS_TOKEN }} - - - name: actions-template-sync - uses: AndreasAugustin/actions-template-sync@v2 - if: github.repository != env.UPSTREAM_REPO - with: - # Token permissions - # Replace it with {{ secrets.PERSONAL_ACCESS_TOKEN }} and delete the .templatesyncignore file - # if you want to sync workflows. - github_token: ${{ secrets.GITHUB_TOKEN }} - - # Upstream - source_repo_path: ${{ env.UPSTREAM_REPO }} - upstream_branch: ${{ env.UPSTREAM_BRANCH }} - - # PR - pr_title: '[CI] Sync with upstream template' - pr_body: 'Syncing to upstream https://github.com/${SOURCE_REPO_PATH}/commit/${TEMPLATE_GIT_HASH}.' - pr_labels: 'CI: Template Sync,Skip-Changelog' diff --git a/.github/workflows/test-worker.yml b/.github/workflows/test-worker.yml index b692bd6..b1141da 100644 --- a/.github/workflows/test-worker.yml +++ b/.github/workflows/test-worker.yml @@ -2,6 +2,9 @@ name: Run Tests on: push: + branches: + - main + - v* pull_request: workflow_dispatch: @@ -16,9 +19,38 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} jobs: - tests: - name: 'Node.Js ${{ matrix.node_version }} on ${{ matrix.os }}' - runs-on: '${{ matrix.os }}-latest' + changed-files: + name: Changed Files + runs-on: ubuntu-latest + outputs: + test-source: ${{ steps.changed-files.outputs.test-source_any_modified == 'true' }} + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 50 # Assume PRs are less than 50 commits + + - name: Find changed files + uses: tj-actions/changed-files@v44 + id: changed-files + with: + files_yaml: | + common: &common + - .github/workflows/test-worker.yml + - Makefile + + test-source: + - *common + - cmd/** + - go.* + - '*.go' + + source: + name: "Test on ${{ matrix.os }}" + runs-on: "${{ matrix.os }}-latest" + needs: changed-files + if: ${{ needs.changed-files.outputs.test-source == 'true' }} strategy: fail-fast: false @@ -28,40 +60,29 @@ jobs: - windows - macos - node_version: - - 16 - - 18 - - 20 - - latest - steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up Node.js ${{ matrix.node_version }} - uses: actions/setup-node@v4.0.3 + - name: Set up Go + uses: actions/setup-go@v5 with: - cache: npm - node-version: ${{ matrix.node_version }} - - - name: Install dependencies - run: | - set -xe - npm i + go-version: 1.23.0 - - name: Testing + - name: Test run: | set -xe - npm run test + make test check: if: always() name: Tests Successful runs-on: ubuntu-latest - needs: [tests] + needs: [source] steps: - name: Whether the whole test suite passed uses: re-actors/alls-green@v1.2.2 with: + allowed-skips: ${{ toJSON(needs) }} jobs: ${{ toJSON(needs) }} diff --git a/.gitignore b/.gitignore index 6b02b55..88ac66e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ node_modules/ -.eslintcache +waku diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..b8b22fd --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,168 @@ +# Release Configuration +project_name: waku +report_sizes: true + +before: + hooks: + - go mod download + - go mod tidy + - go run github.com/securego/gosec/v2/cmd/gosec@latest -quiet ./... + - go run github.com/go-critic/go-critic/cmd/gocritic@latest check -enableAll ./... + - go run github.com/google/osv-scanner/cmd/osv-scanner@latest -r . + - go test -race ./... + +builds: + - id: default + env: [CGO_ENABLED=0] + goos: [linux, windows, darwin] + goarch: [amd64, arm64] + +upx: + - ids: [default] + enabled: true + compress: best + lzma: true + brute: true + goos: [linux, windows] # skip darwin (macOS 13.x Ventura is not support now) + goarch: [amd64, arm64] + +archives: + - format_overrides: + - goos: windows + format: zip + +aurs: + - homepage: https://github.com/caffeine-addictt/waku + description: A simple template repository generator. Lets make starting new proejcts feel like a breeze again! + maintainers: + - Jun Xiang + private_key: "{{ .Env.AUR_PRIVATE_KEY }}" + license: AGPL-3.0 + git_url: "ssh://aur@aur.archlinux.org/waku-bin.git" + skip_upload: false + depends: + - git + package: |- + # bin + install -Dm755 "./$pkgname" -t "$pkgdir/usr/bin/$pkgname" + + # license + install -Dm644 "./LICENSE" "$pkgdir/usr/share/licenses/$pkgname" + + # completions + # not too sure how to provide them + + # man page + # not too sure how to provide them + commit_author: + name: goreleaserbot + email: bot@goreleaser.com + url_template: "https://github.com/caffeine-addictt/waku/releases/{{ .Tag }}/{{ .ArtifactName }}" + +dockers: + - image_templates: + - "caffeinec/waku:latest" + - "caffeinec/waku:{{ .Major }}" + - "caffeinec/waku:{{ .Tag }}" + - "ghcr.io/caffeine-addictt/waku:latest" + - "ghcr.io/caffeine-addictt/waku:{{ .Major }}" + - "ghcr.io/caffeine-addictt/waku:{{ .Tag }}" + skip_push: false + dockerfile: Dockerfile + use: buildx + build_flag_templates: + - "--pull" + - "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/caffeine-addictt/waku/main/README.md" + # - "--label=io.artifacthub.package.logo-url=https://goreleaser.com/static/avatar.png" + - '--label=io.artifacthub.package.maintainers=[{"name":"Jun Xiang","email":"contact@ngjx.org"}]' + - "--label=io.artifacthub.package.license=AGPL-3.0" + - "--label=org.opencontainers.image.description=A simple template repository generator. Lets make starting new proejcts feel like a breeze again!" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.name={{.ProjectName}}" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--label=org.opencontainers.image.source={{.GitURL}}" + - "--platform=linux/amd64" + +nfpms: + - maintainer: Jun Xiang + description: A simple template repository generator. Lets make starting new proejcts feel like a breeze again! + homepage: "https://github.com/caffeine-addictt/waku" + license: AGPL-3.0 + formats: [rpm, apk, termux.deb, deb, archlinux] + dependencies: [git] + +brews: + - homepage: "https://github.com/caffeine-addictt/waku" + license: "AGPL-3.0" + skip_upload: auto + directory: Formula/waku + repository: + owner: caffeine-addictt + name: homebrew-tap + branch: "waku" + token: "{{ .Env.TAP_GITHUB_TOKEN }}" + commit_author: + name: goreleaserbot + email: bot@goreleaser.com + commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" + description: "A simple template repository generator. Lets make starting new proejcts feel like a breeze again!" + +chocolateys: + - name: waku + title: Repository template + owners: caffeine-addictt + authors: caffeine-addictt + project_url: https://github.com/caffeine-addictt/waku + package_source_url: https://github.com/caffeine-addictt/waku + url_template: "https://github.com/caffeine-addictt/waku/releases/download/{{ .Tag }}/{{ .ArtifactName }}" + # icon_url: "" https://docs.chocolatey.org/en-us/create/create-packages/#package-icon-guidelines + copyright: 2024 Jun Xiang + license_url: https://github.com/caffeine-addictt/waku/blob/main/LICENSE + require_license_acceptance: false + docs_url: https://github.com/caffeine-addictt/waku/blob/main/README.md + bug_tracker_url: https://github.com/caffeine-addictt/waku/issues + tags: "repository git generator simple quick quickstart template project project-generator" + summary: "A simple template repository generator." + description: A simple template repository generator. Lets make starting new proejcts feel like a breeze again! + release_notes: "https://github.com/caffeine-addictt/waku/releases/tag/{{ .Tag }}" + dependencies: + - id: git + api_key: "{{ .Env.CHOCOLATEY_API_KEY }}" + source_repo: "https://push.chocolatey.org/" + skip_publish: false + +release: + ids: [default] + draft: true + replace_existing_draft: true + target_commitish: "{{ .Commit }}" + prerelease: auto + mode: replace + skip_upload: false + +checksum: + name_template: "checksums.txt" + +changelog: + use: github + sort: asc + abbrev: 0 + filters: + exclude: + - "^(T|t)ypo" + groups: + - title: Features + regexp: '^.*?(F|f)eat(\(.+\))??!?:.+$' + order: 0 + - title: Bug fixes + regexp: '^.*?(F|f)ix(\(.+\))??!?:.+$' + order: 1 + - title: Improvements + regexp: '^.*?((D|d)ocs?|(S|s)tyle|(T|t)est|(B|b)uild|(P|p)erf|(R|r)efactor)(\(.+\))??!?:.+$' + order: 2 + - title: Security issues + regexp: ^.*?(S|s)ecurity.*?$ + order: 4 + - title: Others + order: 999 diff --git a/.templatesyncignore b/.templatesyncignore deleted file mode 100644 index af5779e..0000000 --- a/.templatesyncignore +++ /dev/null @@ -1 +0,0 @@ -.github/workflows/* diff --git a/CITATION.cff b/CITATION.cff deleted file mode 100644 index 9f2b12e..0000000 --- a/CITATION.cff +++ /dev/null @@ -1,26 +0,0 @@ -abstract: GitHub template repository -authors: - - alias: Alex - family-names: Ng - given-names: Jun Xiang - orcid: https://orcid.org/0009-0001-1641-9397 -identifiers: - - type: url - value: https://github.com/caffeine-addictt/template/releases/tag/v1.14.0 - description: The GitHub release URL of tag v1.14.0. -cff-version: 1.2.0 -date-released: 2024-08-09 -keywords: - - template - - node - - nodejs - - setup - - script - - typescript - - github -license: MIT -message: If you use this software, please cite it using these metadata. -repository-code: https://github.com/caffeine-addictt/template -title: template -type: software -version: 1.14.0 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bb295bd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,46 @@ +################### +# 1. Building stage +################### +FROM golang:1.23.0 AS build-stage + +# Set destination for COPY +WORKDIR /waku-cli + +# Download Go modules +COPY go.mod go.sum ./ +RUN go mod download + +# Copy the source code. +COPY *.go ./ +COPY cmd/ ./cmd/ + +# Build +RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o waku + + + +################### +# 2. Run tests +################### +FROM build-stage AS run-test-stage +RUN go test -v ./... + + + +################### +# 3. Deploying +################### +FROM alpine:3.20.2 AS deploy-stage +WORKDIR /app + +# Install git +RUN apk add --update --no-cache git && rm -rf /var/cache/apk/* + +RUN adduser -D waku +USER waku + +# Copy bins from build stage +COPY --from=build-stage /waku-cli/waku /usr/bin/waku + +# Run +ENTRYPOINT ["waku"] diff --git a/LICENSE b/LICENSE index 4f642d3..be3f7b2 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,661 @@ -MIT License - -Copyright (c) 2024 Jun Xiang - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..622fdc4 --- /dev/null +++ b/Makefile @@ -0,0 +1,175 @@ +BINARY_NAME:=waku +TAG ?= latest + +ifeq ($(OS),Windows_NT) +RM_CMD:=rd /s /q +NULL:=/dev/nul +EXT:=.exe +else +RM_CMD:=rm -rf +NULL:=/dev/null +EXT= +endif + + +# =================================== DEFAULT =================================== # + +default: all + +## default: Runs build and test +.PHONY: default +all: build test + +# =================================== HELPERS =================================== # + +## help: print this help message +.PHONY: help +help: + @echo 'Template - You can run the CLI with "go run main.go"' + @echo '' + @echo 'Usage: make [target]' + @echo '' + @echo 'Commands:' + @sed -n 's/^## //p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /' + @echo '' + @echo 'Extra:' + @sed -n 's/^### //p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /' + + + + +## install: Install dependencies +.PHONY: install +install: install/go install/npm + +### install/npm: Install npm dependencies +.PHONY: install/npm +install/npm: + npm i + +### install/go: Install go dependencies +.PHONY: install/go +install/go: + go get ./... + + + + +## links: Shows the project links +.PHONY: links +links: + @echo 'Links:' + @echo ' Github Repository: https://github.com/caffeine-addictt/waku' + @echo ' Official Documentation: https://github.com/caffeine-addictt/waku/blob/main/docs/index.md' + + + + +## issue: Where to create an issue +.PHONY: issue +issue: + @echo 'Create an issue at:' + @echo ' https://github.com/caffeine-addictt/waku/issues/new' + + + + +## docs: Shows simple development documentation +.PHONY: docs +docs: + @echo 'Development documentation' + @echo '' + @echo 'Prerequisites:' + @echo ' 1. Go 1.23.0 or later' + @echo ' 2. Docker 27.0.0 or later' + @echo ' 3. NPM 10.8.2 or later' + @echo ' 4. Node 22.7.0 or later' + @echo '' + @echo 'Steps to run the CLI:' + @echo ' 1. Run the CLI with "go run main.go"' + @echo '' + @echo 'Learn more at https://github.com/caffeine-addictt/waku/blob/main/CONTRIBUTING.md' + +# =================================== DEVELOPMENT =================================== # + +## build: Builds Go binary +.PHONY: build +build: + go build -ldflags="-s -w" -o $(BINARY_NAME)$(EXT) main.go + +### build/docker: Builds Docker image +build/docker: + docker build . -t $(BINARY_NAME):$(TAG) + + + + +## test: Runs tests +.PHONY: test +test: + go mod tidy + go mod verify + go vet ./... + go run github.com/securego/gosec/v2/cmd/gosec@latest -quiet ./... + go run github.com/go-critic/go-critic/cmd/gocritic@latest check -enableAll ./... + go run github.com/google/osv-scanner/cmd/osv-scanner@latest -r . + go test -v -race ./... + + + + +## bench: Run benchmarks +bench: + go test -v -bench=. -benchmem ./... + +# =================================== QUALITY ================================== # + +## lint: Lint code +.PHONY: lint +lint: lint/go lint/npm + +### lint/go: Lint Go code +.PHONY: lint/go +lint/go: + go run github.com/golangci/golangci-lint/cmd/golangci-lint@latest run + +### lint/npm: Lint NPM code +.PHONY: lint/npm +lint/npm: + npm run lint + + + + +## format: Format code +.PHONY: format +format: format/go format/npm + +### format/go: Format Go code +.PHONY: format/go +format/go: + go fmt ./... + go mod tidy -v + go run github.com/golangci/golangci-lint/cmd/golangci-lint@latest run --fix + +### format/npm: Format NPM code +.PHONY: format/npm +format/npm: + npm run lint:fix + + + + +## tidy: Clean up code artifacts +.PHONY: tidy +tidy: + go clean ./... + ${RM_CMD} $(BINARY_NAME)$(EXT) + + + + +## clean: Remove node_modules +.PHONY: clean +clean: tidy + ${RM_CMD} node_modules diff --git a/README.md b/README.md index d8cbf35..425ec79 100644 --- a/README.md +++ b/README.md @@ -4,14 +4,15 @@ - - + +
+[![badge-goreport]][goreport-url] ![badge-workflow] [![badge-license]][license] ![badge-language] @@ -22,9 +23,9 @@ -A simple repository template to get started with GitHub. +A simple tool to kick-start your next project. Say goodbye to repetitive setup tasks and configuration headaches! -Simplify your workflow, save time, and ensure consistency across projects. +Streamline your workflow, save time, and ensure consistency across every project. Let's make starting new projects feel like a **_breeze_** again. @@ -34,8 +35,10 @@ Let's make starting new projects feel like a **_breeze_** again. +**[
 Install 
][install-url]** **[
 Features 
](#features)** **[
 Quick Start 
](#quick-start)** +**[
 Documentation 
][docs-url]** **[
 Contribute 
][contribute]** --- @@ -64,42 +67,22 @@ Let's make starting new projects feel like a **_breeze_** again. # Quick Start -### 1. Creating a repository +### 1. Install waku -Click the green "Use this template" button in the top right corner of the page -or the button below to create your new repository. - -[![Use Template][badge-use]][use-url] - -### 2. Run the setup script - -> [!NOTE] -> Only Node.Js versions 16, 18, 20 and latest are officially supported. - -Run the following command and answer the prompts to complete the setup. +Install waku for your operating system [here][docs-url] or run: ```sh -node ./dist/setup.js +go install github.com/caffeine-addictt/waku@latest +docker run --rm -it caffeinec/waku:latest ``` -### 3. Final touches +### 2. Create a new project -You are almost ready to start building your project. -Just a few more steps and you're ready to go! +Run the following command and answer the prompts to create a new project: -- Update `CITATION.cff` file with your project information. -- Create and add project images to the `images/` directory - and update `README.md` file. -- Update `LICENSE.txt` file with your preferred license. -- Update `.github/CODESTYLE.md` with your project's preferred code style. -- Update `CONTRIBUTING.md` with your project's preferred contribution guidelines. -- Update the workflow files in the `.github/workflows/` directory. - -> [!NOTE] -> We know that there is still a fair amount of manual setup required, -> and we are committed to making this process as smooth and painless as possible. -> -> If you have any feedback, please feel free to create an issue or a pull request. +```sh +waku new +``` Want to support this project? **✨ Star it on GitHub** and help us spread the word! @@ -121,15 +104,17 @@ Want to support this project? **✨ Star it on GitHub** and help us spread the w -[stars-graph]: https://starchart.cc/caffeine-addictt/template.svg?variant=adaptive -[prs]: https://github.com/caffeine-addictt/template/pulls -[issues]: https://github.com/caffeine-addictt/template/issues -[license]: https://github.com/caffeine-addictt/template/blob/main/LICENSE +[stars-graph]: https://starchart.cc/caffeine-addictt/waku.svg?variant=adaptive +[prs]: https://github.com/caffeine-addictt/waku/pulls +[issues]: https://github.com/caffeine-addictt/waku/issues +[license]: https://github.com/caffeine-addictt/waku/blob/main/LICENSE -[use-url]: https://github.com/new?template_name=template&template_owner=caffeine-addictt -[contribute]: https://github.com/caffeine-addictt/template/blob/main/CONTRIBUTING.md +[install-url]: https://github.com/caffeine-addictt/waku/blob/main/docs/install.md +[docs-url]: https://github.com/caffeine-addictt/waku/blob/main/docs/README.md +[goreport-url]: https://goreportcard.com/report/github.com/caffeine-addictt/waku +[contribute]: https://github.com/caffeine-addictt/waku/blob/main/CONTRIBUTING.md @@ -139,9 +124,9 @@ Want to support this project? **✨ Star it on GitHub** and help us spread the w -[badge-workflow]: https://github.com/caffeine-addictt/template/actions/workflows/test-worker.yml/badge.svg -[badge-issues]: https://img.shields.io/github/issues/caffeine-addictt/template -[badge-pr]: https://img.shields.io/github/issues-pr/caffeine-addictt/template -[badge-language]: https://img.shields.io/github/languages/top/caffeine-addictt/template -[badge-license]: https://img.shields.io/github/license/caffeine-addictt/template -[badge-use]: https://img.shields.io/badge/Use%20template-FFFFFF?style=for-the-badge +[badge-workflow]: https://github.com/caffeine-addictt/waku/actions/workflows/test-worker.yml/badge.svg +[badge-issues]: https://img.shields.io/github/issues/caffeine-addictt/waku +[badge-pr]: https://img.shields.io/github/issues-pr/caffeine-addictt/waku +[badge-language]: https://img.shields.io/github/languages/top/caffeine-addictt/waku +[badge-license]: https://img.shields.io/github/license/caffeine-addictt/waku +[badge-goreport]: https://goreportcard.com/badge/github.com/caffeine-addictt/waku diff --git a/babel.config.cjs b/babel.config.cjs deleted file mode 100644 index 8165fe4..0000000 --- a/babel.config.cjs +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - presets: [ - ['@babel/preset-env', { targets: { node: 'current' } }], - '@babel/preset-typescript', - ], -}; diff --git a/cmd/commands/check.go b/cmd/commands/check.go new file mode 100644 index 0000000..c8a3a44 --- /dev/null +++ b/cmd/commands/check.go @@ -0,0 +1,52 @@ +package commands + +import ( + "os" + "path/filepath" + "strings" + + "github.com/caffeine-addictt/waku/cmd/template" + "github.com/caffeine-addictt/waku/cmd/utils" + "github.com/spf13/cobra" +) + +var CheckCmd = &cobra.Command{ + Use: "check ", + Aliases: []string{"ch", "c", "verify"}, + Short: "check if template.json is valid", + Long: "Check if your current template.json is valid", + Args: cobra.MaximumNArgs(1), + Run: func(cmd *cobra.Command, args []string) { + // Check for naming + if len(args) == 1 && !strings.HasSuffix(args[0], "template.json") { + cmd.PrintErrln("name your file template.json") + os.Exit(1) + } + + // Resolve file path + var filePath string + if len(args) == 1 { + filePath = args[0] + } else { + filePath = "template.json" + } + filePath = filepath.Clean(filePath) + + ok, err := utils.IsFile(filePath) + if err != nil { + cmd.PrintErrln(err) + os.Exit(1) + } + if !ok { + cmd.PrintErrln("template.json not found") + os.Exit(1) + } + + if _, err := template.ParseConfig(filePath); err != nil { + cmd.PrintErrln(err) + os.Exit(1) + } + + cmd.Println("Seems ok!") + }, +} diff --git a/cmd/commands/new.go b/cmd/commands/new.go new file mode 100644 index 0000000..66e64b0 --- /dev/null +++ b/cmd/commands/new.go @@ -0,0 +1,381 @@ +package commands + +import ( + "bufio" + "context" + "errors" + "fmt" + "os" + "os/signal" + "path/filepath" + "strings" + "sync" + "syscall" + + "github.com/caffeine-addictt/waku/cmd/config" + "github.com/caffeine-addictt/waku/cmd/license" + "github.com/caffeine-addictt/waku/cmd/options" + "github.com/caffeine-addictt/waku/cmd/template" + "github.com/caffeine-addictt/waku/cmd/utils" + "github.com/caffeine-addictt/waku/cmd/utils/types" + "github.com/charmbracelet/huh" + "github.com/spf13/cobra" +) + +var NewCmd = &cobra.Command{ + Use: "new", + Aliases: []string{"init"}, + Short: "create a new project", + Long: "Create a new project from a template", + PreRunE: func(cmd *cobra.Command, args []string) error { + return options.NewOpts.Validate() + }, + Run: func(cmd *cobra.Command, args []string) { + exitCode := 0 + + var name string + var projectRootDir string + var license license.License + + licenseSelect, err := template.PromptForLicense(&license) + if err != nil { + cmd.PrintErrln(err) + exitCode = 1 + return + } + + if err := huh.NewForm( + huh.NewGroup(template.PromptForProjectName(&name, &projectRootDir)), + huh.NewGroup(licenseSelect), + ).WithAccessible(options.GlobalOpts.Accessible).Run(); err != nil { + cmd.PrintErrln(err) + exitCode = 1 + return + } + + options.Infof("creating project in '%s'...\n", projectRootDir) + if err := os.Mkdir(projectRootDir, utils.DirPerms); err != nil { + cmd.PrintErrln(err) + exitCode = 1 + return + } + + // Clone repo + tmpDir, err := options.NewOpts.CloneRepo() + if err != nil { + cmd.PrintErrf("could not clone git repo: %s", err) + exitCode = 1 + return + } + gracefullyCleanupDir(tmpDir) + defer func() { + cleanupDir(tmpDir) + os.Exit(exitCode) + }() + + // Resolve dir + rootDir := tmpDir + if options.NewOpts.Directory.Value() != "" { + rootDir = filepath.Join(tmpDir, options.NewOpts.Directory.Value()) + options.Debugf("resolved directory to: %s\n", rootDir) + + ok, err := utils.IsDir(rootDir) + if err != nil { + cmd.PrintErrln(err) + exitCode = 1 + return + } + if !ok { + cmd.PrintErrf("directory '%s' does not exist\n", options.NewOpts.Directory.Value()) + exitCode = 1 + return + } + } + + // Parse template.json + options.Infoln("Parsing template.json...") + tmpl, err := template.ParseConfig(filepath.Join(rootDir, "template.json")) + if err != nil { + cmd.PrintErrln(err) + exitCode = 1 + return + } + + // Resolve style to use + var style types.CleanString + var styleInfo config.TemplateStyle + + if tmpl.Styles != nil && len(*tmpl.Styles) == 1 { + for s, v := range *tmpl.Styles { + style = s + styleInfo = v + rootDir = filepath.Join(rootDir, v.Source.String()) + break + } + } else if tmpl.Styles != nil { + if err := huh.NewForm(huh.NewGroup( + template.PromptForStyle(*tmpl.Styles, &style, &styleInfo), + )).WithAccessible(options.GlobalOpts.Accessible).Run(); err != nil { + cmd.PrintErrln(err) + exitCode = 1 + return + } + + rootDir = filepath.Join(rootDir, styleInfo.Source.String()) + } + options.Debugf("resolved style to: %s\n", rootDir) + + // Handle license stuff + licenseText, err := license.GetLicenseText() + if err != nil { + cmd.PrintErrf("failed to get license text: %s\n", err) + exitCode = 1 + return + } + + licenseWants := licenseText.GetWants() + licenseTmpl := make(map[string]string, len(licenseWants)) + for _, v := range licenseWants { + licenseTmpl[v] = fmt.Sprintf("Value for license %s?", v) + } + + // Handle prompts + options.Debugln("resolving prompts...") + extraPrompts := map[string]string{} + if tmpl.Prompts != nil { + for val, ask := range *tmpl.Prompts { + extraPrompts[string(val)] = string(ask) + } + } + if tmpl.Styles != nil && styleInfo.Prompts != nil { + for val, ask := range *styleInfo.Prompts { + extraPrompts[string(val)] = string(ask) + } + } + options.Debugf("resolved prompts to: %v\n", extraPrompts) + + prompts := make([]*huh.Group, len(extraPrompts)) + for n, v := range extraPrompts { + prompts = append(prompts, huh.NewGroup(huh.NewText().Title(v).Validate(func(s string) error { + s = strings.TrimSpace(s) + if s == "" { + return fmt.Errorf("cannot be empty") + } + + extraPrompts[n] = s + return nil + }))) + } + for n, v := range licenseTmpl { + prompts = append(prompts, huh.NewGroup(huh.NewText().Title(v).Validate(func(s string) error { + s = strings.TrimSpace(s) + if s == "" { + return fmt.Errorf("cannot be empty") + } + + extraPrompts[n] = s + return nil + }))) + } + + if err := huh.NewForm(prompts...).WithAccessible(options.GlobalOpts.Accessible).Run(); err != nil { + cmd.PrintErrln(err) + exitCode = 1 + return + } + + // Get file paths + options.Infoln("Getting file paths...") + paths, err := utils.WalkDirRecursive(rootDir) + if err != nil { + cmd.PrintErrln(err) + exitCode = 1 + return + } + + // Handle ignores + options.Infoln("Applying ignores...") + ignoreRules := types.NewSet( + ".git/", + "LICENSE*", + "template.json", + ) + if tmpl.Ignore != nil { + ignoreRules.Union(types.Set[string](*tmpl.Ignore)) + } + if tmpl.Setup != nil { + ignoreRules.Add(tmpl.Setup.Any) + ignoreRules.Add(tmpl.Setup.Linux) + ignoreRules.Add(tmpl.Setup.Darwin) + ignoreRules.Add(tmpl.Setup.Windows) + } + if tmpl.Styles != nil && styleInfo.Ignore != nil { + ignoreRules.Union(types.Set[string](*styleInfo.Ignore)) + + if styleInfo.Setup != nil { + ignoreRules.Add(styleInfo.Setup.Any) + ignoreRules.Add(styleInfo.Setup.Linux) + ignoreRules.Add(styleInfo.Setup.Darwin) + ignoreRules.Add(styleInfo.Setup.Windows) + } + } + + // account for template.json having a '!.git/' + ignoreRules = template.ResolveIncludes(ignoreRules, types.NewSet(".git/", "LICENSE")) + ignoredPaths := template.ResolveIncludes(types.NewSet(paths...), ignoreRules) + + options.Debugf("resolved files to write: %v", ignoredPaths) + + // Handle writing files + cmd.Println("writing files...") + finalTmpl := extraPrompts + finalTmpl["NAME"] = name + finalTmpl["LICENSE"] = license.Spdx + + if err := WriteFiles(rootDir, projectRootDir, ignoredPaths.ToSlice(), licenseText.Body, finalTmpl, licenseTmpl); err != nil { + fmt.Printf("failed to write files: %s\n", err) + exitCode = 1 + return + } + }, +} + +func init() { + AddNewCmdFlags(NewCmd) +} + +func AddNewCmdFlags(cmd *cobra.Command) { + cmd.Flags().VarP(&options.NewOpts.Repo, "repo", "r", "source repository to template from") + cmd.Flags().VarP(&options.NewOpts.Branch, "branch", "b", "branch to clone from") + cmd.Flags().VarP(&options.NewOpts.Directory, "directory", "D", "directory where 'template.json' is located") + cmd.Flags().VarP(&options.NewOpts.Name, "name", "n", "name of the project") + cmd.Flags().VarP(&options.NewOpts.License, "license", "l", "license to use for the project") + cmd.Flags().VarP(&options.NewOpts.Style, "style", "S", "which style to use") +} + +func WriteFiles(tmpRoot, projectRoot string, paths []string, licenseText string, tmpl, licenseTmpl map[string]string) error { + var wg sync.WaitGroup + wg.Add(len(paths) + 1) + + ctx, cancel := context.WithCancel(context.Background()) + defer cancel() + + errChan := make(chan error, 1) + + for _, path := range paths { + tmpPath := filepath.Join(tmpRoot, path) + newPath := filepath.Join(projectRoot, path) + options.Infof("resolved %s -> %s\n", tmpPath, newPath) + + // write dirs + dir := filepath.Dir(newPath) + if dir != "." { + if err := os.MkdirAll(dir, utils.DirPerms); err != nil { + return errors.Join(fmt.Errorf("failed to create directory at %s", dir), err) + } + } + + // write files + go func() { + defer wg.Done() + + tmpFile, err := os.Open(filepath.Clean(tmpPath)) + if err != nil { + errChan <- err + return + } + defer tmpFile.Close() + options.Debugf("opened file for reading: %s\n", tmpPath) + + newFile, err := os.OpenFile(filepath.Clean(newPath), os.O_TRUNC|os.O_CREATE|os.O_WRONLY, utils.FilePerms) + if err != nil { + errChan <- err + return + } + defer newFile.Close() + options.Debugf("opened file for writing: %s", newPath) + + reader := bufio.NewScanner(tmpFile) + writer := bufio.NewWriter(newFile) + if err := utils.ParseTemplateFile(ctx, tmpl, reader, writer); err != nil { + errChan <- err + return + } + + options.Debugf("flushing buffer for %s", newPath) + if err := writer.Flush(); err != nil { + errChan <- err + return + } + + options.Debugf("wrote file: %s\n", newPath) + }() + } + + go func() { + defer wg.Done() + + newLicenseText := utils.ParseLicenseText(licenseTmpl, licenseText) + + newPath := filepath.Join(projectRoot, "LICENSE") + options.Infof("writing to %s\n", newPath) + + newFile, err := os.OpenFile(filepath.Clean(newPath), os.O_TRUNC|os.O_CREATE|os.O_WRONLY, utils.FilePerms) + if err != nil { + errChan <- err + return + } + defer newFile.Close() + options.Debugf("opened file for writing: %s\n", newPath) + + if _, err := newFile.WriteString(newLicenseText); err != nil { + errChan <- err + return + } + + options.Debugf("flushing buffer for %s", newPath) + if err := newFile.Sync(); err != nil { + errChan <- err + return + } + + options.Debugf("wrote file: %s\n", newPath) + }() + + // handle canceling if anything goes wrong + var exitErr error + go func() { + options.Infoln("watching for errors") + if err := <-errChan; err != nil { + cancel() + exitErr = err + } + }() + + fmt.Printf("waiting for %d files to write\n", len(paths)) + wg.Wait() + close(errChan) + + fmt.Println("all files written") + return exitErr +} + +// To catch interrupts and gracefully cleanup +func gracefullyCleanupDir(dir string) { + sigs := make(chan os.Signal, 1) + signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM) + + go func() { + sig := <-sigs + fmt.Printf("%v received, cleaning up...\n", sig) + cleanupDir(dir) + }() +} + +func cleanupDir(dir string) { + if err := os.RemoveAll(dir); err != nil { + fmt.Printf("Failed to clean up %s: %s\n", dir, err) + os.Exit(1) + return + } +} diff --git a/cmd/commands/new_repo.go b/cmd/commands/new_repo.go new file mode 100644 index 0000000..2e157c2 --- /dev/null +++ b/cmd/commands/new_repo.go @@ -0,0 +1,17 @@ +package commands + +import "github.com/spf13/cobra" + +var NewRepoCmd = &cobra.Command{ + Use: "repo", + Aliases: []string{"repository", "project"}, + Short: NewCmd.Short, + Long: NewCmd.Long, + PreRunE: NewCmd.PreRunE, + Run: NewCmd.Run, +} + +func init() { + AddNewCmdFlags(NewRepoCmd) + NewCmd.AddCommand(NewRepoCmd) +} diff --git a/cmd/commands/root.go b/cmd/commands/root.go new file mode 100644 index 0000000..573af73 --- /dev/null +++ b/cmd/commands/root.go @@ -0,0 +1,10 @@ +package commands + +import "github.com/spf13/cobra" + +// To initialize all the commands as subcommands of root +func InitCommands(root *cobra.Command) { + root.AddCommand(VersionCmd) + root.AddCommand(NewCmd) + root.AddCommand(CheckCmd) +} diff --git a/cmd/commands/version.go b/cmd/commands/version.go new file mode 100644 index 0000000..4eae15b --- /dev/null +++ b/cmd/commands/version.go @@ -0,0 +1,16 @@ +package commands + +import ( + "github.com/caffeine-addictt/waku/cmd/global" + "github.com/spf13/cobra" +) + +var VersionCmd = &cobra.Command{ + Use: "version", + Aliases: []string{"ver"}, + Short: "show version", + Long: "Show version of waku", + Run: func(cmd *cobra.Command, args []string) { + cmd.Println(global.Version) + }, +} diff --git a/cmd/commands/version_test.go b/cmd/commands/version_test.go new file mode 100644 index 0000000..9bc5620 --- /dev/null +++ b/cmd/commands/version_test.go @@ -0,0 +1,18 @@ +package commands_test + +import ( + "testing" + + "github.com/caffeine-addictt/waku/cmd/commands" + "github.com/caffeine-addictt/waku/cmd/global" + "github.com/caffeine-addictt/waku/cmd/helpers" + "github.com/stretchr/testify/assert" +) + +func TestVersionOut(t *testing.T) { + stdout, stderr, err := helpers.ExecuteCommand(commands.VersionCmd, []string{}) + assert.NoError(t, err) + + assert.Equal(t, stdout, global.Version+"\n") + assert.Empty(t, stderr) +} diff --git a/cmd/config/ignore.go b/cmd/config/ignore.go new file mode 100644 index 0000000..44c97e9 --- /dev/null +++ b/cmd/config/ignore.go @@ -0,0 +1,43 @@ +package config + +import ( + "fmt" + "os" + "path/filepath" + "strings" + + "github.com/caffeine-addictt/waku/cmd/utils/types" +) + +type TemplateIgnore types.Set[string] + +func (t *TemplateIgnore) Validate(root string) error { + for path := range *t { + dirPath := strings.TrimSpace(path) + + // handle bang + dirPath = strings.TrimPrefix(dirPath, "!") + + // handle glob + isGlob := false + if strings.HasSuffix(dirPath, "/*") { + isGlob = true + dirPath = strings.TrimSuffix(dirPath, "/*") + } + + if !filepath.IsLocal(dirPath) { + return fmt.Errorf("path is not local: %s", path) + } + + fileinfo, err := os.Stat(dirPath) + if err != nil { + return fmt.Errorf("%s: %w", path, err) + } + + if isGlob && !fileinfo.IsDir() { + return fmt.Errorf("%s: exists but is not a directory", path) + } + } + + return nil +} diff --git a/cmd/config/labels.go b/cmd/config/labels.go new file mode 100644 index 0000000..853c822 --- /dev/null +++ b/cmd/config/labels.go @@ -0,0 +1,8 @@ +package config + +import "github.com/caffeine-addictt/waku/cmd/utils/types" + +type TemplateLabel []struct { + Color types.HexColor `json:"color"` + Desc string `json:"description,omitempty"` +} diff --git a/cmd/config/prompts.go b/cmd/config/prompts.go new file mode 100644 index 0000000..9b4efd8 --- /dev/null +++ b/cmd/config/prompts.go @@ -0,0 +1,47 @@ +package config + +import ( + "fmt" + "strings" + + "github.com/caffeine-addictt/waku/cmd/options" + "github.com/caffeine-addictt/waku/cmd/utils/types" +) + +// TemplatePrompts are the additional things that are formatted +// into the template. +// +// We take the key, strip leading/trailing whitespace and turn it to UPPER. +// The value is used to ask the user for the value. +// +// I.e. +// +// json`{"prompts": {"my_key": "my_value"}}` +// `aaaaa{{MY_KEY}}bbbbb` -> `aaaaamy_valuebbbb` +type TemplatePrompts map[types.CleanString]types.CleanString + +func (t TemplatePrompts) Validate() error { + keys := make([]types.CleanString, 0, len(t)) + for k := range t { + keys = append(keys, k) + } + + for _, k := range keys { + newK := strings.TrimSpace(k.String()) + if newK == "" { + return fmt.Errorf("extra template variable is empty") + } + + v := t[k] + newV := strings.TrimSpace(v.String()) + if newV == "" { + newV = fmt.Sprintf("Value for '%s' template variable?", newK) + options.Debugf("'%s' template variable ASK is empty, using defaults\n", newK) + } + + delete(t, k) + t[types.CleanString(strings.ToUpper(newK))] = types.CleanString(newV) + } + + return nil +} diff --git a/cmd/config/setup.go b/cmd/config/setup.go new file mode 100644 index 0000000..5ca6a25 --- /dev/null +++ b/cmd/config/setup.go @@ -0,0 +1,52 @@ +package config + +import ( + "fmt" + "path/filepath" + "reflect" + + "github.com/caffeine-addictt/waku/cmd/utils" +) + +type TemplateSetupKey string + +const ( + Linux TemplateSetupKey = "linux" + Windows TemplateSetupKey = "windows" + Darwin TemplateSetupKey = "darwin" + Any TemplateSetupKey = "*" +) + +// Paths to executable files for post-setup +type TemplateSetup struct { + Linux string `json:"linux,omitempty"` + Darwin string `json:"darwin,omitempty"` + Windows string `json:"windows,omitempty"` + Any string `json:"*,omitempty"` +} + +func (t *TemplateSetup) Validate(root string) error { + v := reflect.ValueOf(*t) + typeOfS := v.Type() + + for i := 0; i < v.NumField(); i++ { + pth := v.Field(i).Interface().(string) + if pth == "" { + continue + } + + if !filepath.IsLocal(pth) { + return fmt.Errorf("path is not local: %s", pth) + } + + ok, err := utils.IsExecutableFile(filepath.Join(root, pth)) + if err != nil { + return err + } + if !ok { + return fmt.Errorf("invalid executable file: %s", typeOfS.Field(i).Name) + } + } + + return nil +} diff --git a/cmd/config/skip.go b/cmd/config/skip.go new file mode 100644 index 0000000..622d9e9 --- /dev/null +++ b/cmd/config/skip.go @@ -0,0 +1,34 @@ +package config + +import ( + "fmt" + "regexp" + + "github.com/goccy/go-json" +) + +type TemplateStep string + +const ( + License TemplateStep = "license" +) + +type TemplateSteps []TemplateStep + +var templateStepsRegexp = regexp.MustCompile(`^license$`) + +func (t *TemplateSteps) UnmarshalJSON(data []byte) error { + var tmp TemplateSteps + if err := json.Unmarshal(data, &tmp); err != nil { + return err + } + + for _, v := range tmp { + if !templateStepsRegexp.MatchString(string(v)) { + return fmt.Errorf("invalid step: %s", tmp) + } + } + + *t = TemplateSteps(tmp) + return nil +} diff --git a/cmd/config/styles.go b/cmd/config/styles.go new file mode 100644 index 0000000..10ca170 --- /dev/null +++ b/cmd/config/styles.go @@ -0,0 +1,62 @@ +package config + +import ( + "fmt" + "path" + "path/filepath" + + "github.com/caffeine-addictt/waku/cmd/utils" + "github.com/caffeine-addictt/waku/cmd/utils/types" +) + +type TemplateStyles map[types.CleanString]TemplateStyle + +type TemplateStyle struct { + Setup *TemplateSetup `json:"setup,omitempty"` // Paths to executable files for post-setup + Ignore *TemplateIgnore `json:"ignore,omitempty"` // The files that should be ignored when copying + Labels *TemplateLabel `json:"labels,omitempty"` // The repository labels + Prompts *TemplatePrompts `json:"prompts,omitempty"` // The additional prompts to use + Source types.CleanString `json:"source"` // The source template path +} + +func (t *TemplateStyles) Validate(root string) error { + for _, style := range *t { + // Source + if !filepath.IsLocal(style.Source.String()) { + return fmt.Errorf("path is not local: %s", style.Source) + } + + resolvedPath := path.Join(root, style.Source.String()) + if resolvedPath == "." { + return fmt.Errorf("cannot use . as a path") + } + + ok, err := utils.IsDir(resolvedPath) + if err != nil { + return err + } + + if !ok { + return fmt.Errorf("not a directory: %s", resolvedPath) + } + + // Others + if style.Setup != nil { + if err := style.Setup.Validate(root); err != nil { + return err + } + } + if style.Ignore != nil { + if err := style.Ignore.Validate(root); err != nil { + return err + } + } + if style.Prompts != nil { + if err := style.Prompts.Validate(); err != nil { + return err + } + } + } + + return nil +} diff --git a/cmd/config/template.go b/cmd/config/template.go new file mode 100644 index 0000000..0403f1c --- /dev/null +++ b/cmd/config/template.go @@ -0,0 +1,54 @@ +package config + +import ( + "fmt" + + "github.com/caffeine-addictt/waku/cmd/utils/types" +) + +// The template.json file +type TemplateJson struct { + Setup *TemplateSetup `json:"setup,omitempty"` // Paths to executable files for post-setup + Ignore *TemplateIgnore `json:"ignore,omitempty"` // The files that should be ignored when copying + Labels *TemplateLabel `json:"labels,omitempty"` // The repository labels + Styles *TemplateStyles `json:"styles,omitempty"` // The name of the style mapped to the path to the direcotry + Prompts *TemplatePrompts `json:"prompts,omitempty"` // The additional prompts to use + Name types.CleanString `json:"name,omitempty"` // The name of the template +} + +func (t *TemplateJson) Validate(root string) error { + // Ensure that `Name` is required if `Styles` is not present or empty + // If `Styles` is present, `Name` must not be present + if t.Styles == nil || len(*t.Styles) == 0 { + if t.Name == "" { + return fmt.Errorf("'name' is required when 'styles' is not present or empty") + } + } else { + if t.Name != "" { + return fmt.Errorf("'name' must not be present when 'styles' is provided") + } + } + + if t.Setup != nil { + if err := t.Setup.Validate(root); err != nil { + return err + } + } + if t.Ignore != nil { + if err := t.Ignore.Validate(root); err != nil { + return err + } + } + if t.Styles != nil { + if err := t.Styles.Validate(root); err != nil { + return err + } + } + if t.Prompts != nil { + if err := t.Prompts.Validate(); err != nil { + return err + } + } + + return nil +} diff --git a/cmd/global/version.go b/cmd/global/version.go new file mode 100644 index 0000000..8976819 --- /dev/null +++ b/cmd/global/version.go @@ -0,0 +1,4 @@ +package global + +// The current app version +const Version = "2.0.0" diff --git a/cmd/global/version_test.go b/cmd/global/version_test.go new file mode 100644 index 0000000..f3d79e5 --- /dev/null +++ b/cmd/global/version_test.go @@ -0,0 +1,16 @@ +package global_test + +import ( + "regexp" + "testing" + + "github.com/caffeine-addictt/waku/cmd/global" + "github.com/stretchr/testify/assert" +) + +// Regex taken from https://semver.org +var semverRegex = regexp.MustCompile(`^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$`) + +func TestFollowsSemVer(t *testing.T) { + assert.True(t, semverRegex.MatchString(global.Version), "%s does not follow semver", global.Version) +} diff --git a/cmd/helpers/testing.go b/cmd/helpers/testing.go new file mode 100644 index 0000000..93fff81 --- /dev/null +++ b/cmd/helpers/testing.go @@ -0,0 +1,27 @@ +package helpers + +import ( + "bytes" + "strings" + + "github.com/spf13/cobra" +) + +// For testing command execution +func ExecuteCommand(cmd *cobra.Command, stdin []string, args ...string) (stdout, stderr string, e error) { + cmd.SetArgs(args) + + out := bytes.Buffer{} + errout := bytes.Buffer{} + + cmd.SetOut(&out) + cmd.SetErr(&errout) + cmd.SetIn(strings.NewReader(strings.Join(stdin, "\n"))) + + err := cmd.Execute() + if err != nil { + return out.String(), errout.String(), err + } + + return out.String(), errout.String(), nil +} diff --git a/cmd/helpers/testing_test.go b/cmd/helpers/testing_test.go new file mode 100644 index 0000000..5bd6f97 --- /dev/null +++ b/cmd/helpers/testing_test.go @@ -0,0 +1,39 @@ +package helpers_test + +import ( + "testing" + + "github.com/caffeine-addictt/waku/cmd/helpers" + "github.com/spf13/cobra" + "github.com/stretchr/testify/assert" +) + +func TestExecuteCommandCapturesStderr(t *testing.T) { + msg := "I'm in stderr" + dummyCmd := cobra.Command{ + Run: func(cmd *cobra.Command, args []string) { + cmd.PrintErr(msg) + }, + } + + stdout, stderr, err := helpers.ExecuteCommand(&dummyCmd, []string{}, "") + assert.NoError(t, err, "failed to execute command") + + assert.Equal(t, msg, stderr, "wrong stderr") + assert.Empty(t, stdout, "non-empty stdout") +} + +func TestExecuteCommandCapturesStdout(t *testing.T) { + msg := "I'm in stdout" + dummyCmd := cobra.Command{ + Run: func(cmd *cobra.Command, args []string) { + cmd.Print(msg) + }, + } + + stdout, stderr, err := helpers.ExecuteCommand(&dummyCmd, []string{}, "") + assert.NoError(t, err, "failed to execute command") + + assert.Equal(t, msg, stdout, "wrong stdout") + assert.Empty(t, stderr, "non-empty stderr") +} diff --git a/cmd/license/license.go b/cmd/license/license.go new file mode 100644 index 0000000..b0fcc3b --- /dev/null +++ b/cmd/license/license.go @@ -0,0 +1,5 @@ +// Using the GitHub API to get the license information +// and license text. +// +// Reference: https://docs.github.com/en/rest/licenses/licenses?apiVersion=2022-11-28 +package license diff --git a/cmd/license/store.go b/cmd/license/store.go new file mode 100644 index 0000000..57bb847 --- /dev/null +++ b/cmd/license/store.go @@ -0,0 +1,49 @@ +package license + +import ( + "io" + "net/http" + + "github.com/goccy/go-json" +) + +const API_VERSION = "2022-11-28" + +// The global "cache" per say so we only +// need to hit the endpoint once per session. +var Licenses *[]License + +// GetLicenses returns the list of licenses from the GitHub API +// or returns the cached list if it exists. +func GetLicenses() (*[]License, error) { + if Licenses != nil { + return Licenses, nil + } + + req, err := http.NewRequest(http.MethodGet, "https://api.github.com/licenses", http.NoBody) + if err != nil { + return nil, err + } + + req.Header.Set("Accept", "application/vnd.github+json") + req.Header.Set("X-GitHub-Api-Version", API_VERSION) + + res, err := http.DefaultClient.Do(req) + if err != nil { + return nil, err + } + defer res.Body.Close() + + body, err := io.ReadAll(res.Body) + if err != nil { + return nil, err + } + + var l []License + if err := json.Unmarshal(body, &l); err != nil { + return nil, err + } + + Licenses = &l + return Licenses, nil +} diff --git a/cmd/license/types.go b/cmd/license/types.go new file mode 100644 index 0000000..16f1623 --- /dev/null +++ b/cmd/license/types.go @@ -0,0 +1,78 @@ +package license + +import ( + "io" + "net/http" + "regexp" + + "github.com/goccy/go-json" +) + +// Returned from the "api.github.com/licenses" endpoint. +// +// This is not the full struct, but just what we care about. +// +// Reference: https://docs.github.com/en/rest/licenses/licenses?apiVersion=2022-11-28#get-all-commonly-used-licenses +type License struct { + // This is the full name of the License. + // Example: "MIT License" + Name string `json:"name"` + + // This is the SPDX ID of the License. + // Example: "MIT" + Spdx string `json:"spdx_id"` + + // This is the URL to the license text. + Url string `json:"url"` +} + +func (license *License) GetLicenseText() (*LicenseText, error) { + req, err := http.NewRequest(http.MethodGet, license.Url, http.NoBody) + if err != nil { + return nil, err + } + + req.Header.Set("Accept", "application/vnd.github+json") + req.Header.Set("X-GitHub-Api-Version", API_VERSION) + + res, err := http.DefaultClient.Do(req) + if err != nil { + return nil, err + } + defer res.Body.Close() + + body, err := io.ReadAll(res.Body) + if err != nil { + return nil, err + } + + var l LicenseText + if err := json.Unmarshal(body, &l); err != nil { + return nil, err + } + + return &l, nil +} + +// Returned from the "api.github.com/licenses/" endpoint. +// +// This is not the full struct, but just what we care about. +// +// Reference: https://docs.github.com/en/rest/licenses/licenses?apiVersion=2022-11-28#get-a-license +type LicenseText struct { + // This is the Implementation text for the license. + // + // Not confirmed, but the syntax should contain "[year]" etc. we coould + // grep for to do templating. + Implementation string `json:"implementation"` + + // This is the full text of the license. + Body string `json:"body"` +} + +// GetWants will fetch the "wants" from +// the Body of the LicenseText struct. +func (l *LicenseText) GetWants() []string { + re := regexp.MustCompile(`\[[^\]]*\]`) + return re.FindAllString(l.Body, -1) +} diff --git a/cmd/options/global.go b/cmd/options/global.go new file mode 100644 index 0000000..e477e87 --- /dev/null +++ b/cmd/options/global.go @@ -0,0 +1,24 @@ +package options + +// The global options for the CLI +var GlobalOpts = GlobalOptions{ + Debug: false, + Verbose: false, + Accessible: false, +} + +type GlobalOptions struct { + // Wheter or not debug mode should be enabled + Debug bool + + // Wheter or not verbose mode should be enabled + Verbose bool + + // Mainly for screen-reader support, dropping + // TUIs in favor of traditional prompts + Accessible bool +} + +func (o *GlobalOptions) DebugOrVerbose() bool { + return o.Debug || o.Verbose +} diff --git a/cmd/options/log.go b/cmd/options/log.go new file mode 100644 index 0000000..d94fee0 --- /dev/null +++ b/cmd/options/log.go @@ -0,0 +1,46 @@ +package options + +import ( + "log" +) + +const ( + debugPrefix = "\x1b[34m[DEBUG]\x1b[0m " + verbosePrefix = "\x1b[32m[INFO]\x1b[0m " +) + +func Debugf(format string, a ...any) { + if GlobalOpts.Debug { + log.Printf(debugPrefix+format, a...) + } +} + +func Debugln(a ...any) { + if GlobalOpts.Debug { + log.Println(append([]any{debugPrefix}, a...)...) + } +} + +func Debug(v ...any) { + if GlobalOpts.Debug { + log.Print(append([]any{debugPrefix}, v...)...) + } +} + +func Infof(format string, a ...any) { + if GlobalOpts.DebugOrVerbose() { + log.Printf(verbosePrefix+format, a...) + } +} + +func Infoln(a ...any) { + if GlobalOpts.DebugOrVerbose() { + log.Println(append([]any{verbosePrefix}, a...)...) + } +} + +func Info(v ...any) { + if GlobalOpts.DebugOrVerbose() { + log.Print(append([]any{verbosePrefix}, v...)...) + } +} diff --git a/cmd/options/new.go b/cmd/options/new.go new file mode 100644 index 0000000..6309431 --- /dev/null +++ b/cmd/options/new.go @@ -0,0 +1,108 @@ +package options + +import ( + "errors" + "os" + "os/exec" + + "github.com/caffeine-addictt/waku/cmd/utils" + "github.com/caffeine-addictt/waku/cmd/utils/types" +) + +const defaultRepo = "https://github.com/caffeine-addictt/waku.git" + +// The options for the new command +var NewOpts = NewOptions{ + Repo: *types.NewValueGuard("", cmdOpt, types.REPO), + Branch: *types.NewValueGuard("", cmdOpt, types.BRANCH), + Directory: *types.NewValueGuard("", cmdOpt, types.PATH), + Name: *types.NewValueGuard("", cmdOpt, types.STRING), + License: *types.NewValueGuard("", cmdOpt, types.STRING), + Style: *types.NewValueGuard("", cmdOpt, types.STRING), +} + +type NewOptions struct { + // The repository Url to use + // Should be this repository by default + Repo types.ValueGuard[string] + + // The branch to use + Branch types.ValueGuard[string] + + // The directory of the template to use + Directory types.ValueGuard[string] + + // The name of your project + Name types.ValueGuard[string] + + // The license of your project + License types.ValueGuard[string] + + // The style to use + Style types.ValueGuard[string] +} + +func cmdOpt(v string) (string, error) { + return utils.CleanString(v), nil +} + +// TO be invoked before a command is ran +func (o *NewOptions) Validate() error { + switch o.Repo.Value() { + case "": + if err := o.Repo.Set(defaultRepo); err != nil { + return err + } + if err := o.Directory.Set("template"); err != nil { + return err + } + + case + defaultRepo, + "https://github.com/caffeine-addictt/waku", + "git://github.com/caffeine-addictt/waku.git", + "git@github.com:caffeine-addictt/waku.git": + if err := o.Directory.Set("template"); err != nil { + return err + } + } + + return nil +} + +// To clone the repository +func (o *NewOptions) CloneRepo() (string, error) { + Debugln("Creating tmp dir") + + tmpDirPath, err := os.MkdirTemp("", "template-*") + if err != nil { + return "", err + } + + Infoln("Create tmp dir at", tmpDirPath) + + args := []string{"clone", "--depth", "1"} + if o.Branch.Value() != "" { + args = append(args, "--branch", utils.EscapeTermString(o.Branch.Value())) + } + args = append(args, utils.EscapeTermString(o.Repo.Value()), utils.EscapeTermString(tmpDirPath)) + + Debugln("git args:", args, len(args)) + + c := exec.Command("git", args...) + c.Stdin = os.Stdin + + if GlobalOpts.DebugOrVerbose() { + c.Stdout = os.Stdout + c.Stderr = os.Stderr + } + + if err := c.Run(); err != nil { + if errCleanup := os.RemoveAll(tmpDirPath); errCleanup != nil { + return "", errors.Join(errCleanup, err) + } + return "", err + } + + return tmpDirPath, nil +} diff --git a/cmd/root.go b/cmd/root.go new file mode 100644 index 0000000..91aac2c --- /dev/null +++ b/cmd/root.go @@ -0,0 +1,32 @@ +package cmd + +import ( + "log" + + "github.com/caffeine-addictt/waku/cmd/commands" + "github.com/caffeine-addictt/waku/cmd/options" + "github.com/spf13/cobra" +) + +// The Root command +var RootCmd = &cobra.Command{ + Use: "template", + Short: "let's make starting new projects feel like a breeze again", + Long: "This tool helps you to create a new project from templates.\n\nLet's make starting new projects feel like a breeze again.", +} + +// Setting up configuration +func init() { + RootCmd.PersistentFlags().BoolVarP(&options.GlobalOpts.Debug, "debug", "d", false, "debug mode") + RootCmd.PersistentFlags().BoolVarP(&options.GlobalOpts.Verbose, "verbose", "v", false, "verbose mode") + RootCmd.PersistentFlags().BoolVarP(&options.GlobalOpts.Accessible, "accessible", "A", false, "accessible mode") + + commands.InitCommands(RootCmd) +} + +// The main entry point for the command line tool +func Execute() { + if err := RootCmd.Execute(); err != nil { + log.Fatal(err) + } +} diff --git a/cmd/root_test.go b/cmd/root_test.go new file mode 100644 index 0000000..a62e621 --- /dev/null +++ b/cmd/root_test.go @@ -0,0 +1,17 @@ +package cmd_test + +import ( + "testing" + + "github.com/caffeine-addictt/waku/cmd" + "github.com/caffeine-addictt/waku/cmd/helpers" + "github.com/stretchr/testify/assert" +) + +func TestRootCommandCanRun(t *testing.T) { + stdout, stderr, err := helpers.ExecuteCommand(cmd.RootCmd, []string{}) + + assert.NoError(t, err, "failed to run root command") + assert.NotEmpty(t, stdout, "expected empty stdout") + assert.Empty(t, stderr, "expected empty stderr") +} diff --git a/cmd/template/ignore.go b/cmd/template/ignore.go new file mode 100644 index 0000000..538195a --- /dev/null +++ b/cmd/template/ignore.go @@ -0,0 +1,106 @@ +package template + +import ( + "regexp" + "strings" + + "github.com/caffeine-addictt/waku/cmd/utils/types" +) + +var ( + reRepeatingAsterisk = regexp.MustCompile(`\*+`) + reSpecialChars = []string{".", "+", "?", "^", "$", "(", ")", "[", "]", "{", "}", "|", "\\"} +) + +// Resolve paths to include +// +// Negation always takes priority. i.e. Set["path/to/file", "!path/**"] = Set[] +// +// Syntax: +// +// "*" is glob for everything +// "path/to/file" is a single file +// "path/to/f*" is a glob for a file +// "path/to/dir/*" is a single dir level glob +// "path/to/dir/**" == path/to/dir/ is a recursive dir level glob +// "!path/to/file" is a negated ignore +func ResolveIncludes(paths, ignores types.Set[string]) types.Set[string] { + negation := types.NewSet[string]() + + // handle explicit includes + for ignore := range ignores { + if strings.HasPrefix(ignore, "!") { + newIgnore := strings.TrimPrefix(ignore, "!") + for _, p := range handleMatching(&paths, newIgnore) { + negation.Add(p) + } + continue + } + } + + // handle "*" + if ignores.Contains("*") { + return negation + } + + result := paths.Copy() + for ignore := range ignores { + // handle as removing + for _, p := range handleMatching(&result, ignore) { + result.Remove(p) + } + } + + return result.Union(negation) +} + +func handleMatching(paths *types.Set[string], pattern string) []string { + matching := make([]string, 0, paths.Len()/2) + patternParts := strings.Split(pattern, "/") + + // convert pattern parts to regex-able + nonRecursePartsCount := 0 + isRecusive := false + newPattern := "^" + +a: + for nonRecursePartsCount < len(patternParts) { + switch patternParts[nonRecursePartsCount] { + case "**", "": + isRecusive = true + break a + default: + s := patternParts[nonRecursePartsCount] + for _, c := range reSpecialChars { + s = strings.ReplaceAll(s, c, "\\"+c) + } + + s = reRepeatingAsterisk.ReplaceAllString(s, "*") + newPattern += strings.ReplaceAll(s, "*", ".*") + `/` + } + + nonRecursePartsCount++ + } + + newPattern = strings.TrimSuffix(newPattern, "/") + "$" + re := regexp.MustCompile(newPattern) + + for p := range *paths { + pParts := strings.Split(p, "/") + + if len(pParts) < nonRecursePartsCount { + continue + } + + common := strings.Join(pParts[:nonRecursePartsCount], "/") + if !re.MatchString(common) { + continue + } + + if !isRecusive || (isRecusive && len(pParts) > nonRecursePartsCount) { + matching = append(matching, p) + } + } + + return matching +} diff --git a/cmd/template/ignore_test.go b/cmd/template/ignore_test.go new file mode 100644 index 0000000..bbce663 --- /dev/null +++ b/cmd/template/ignore_test.go @@ -0,0 +1,141 @@ +package template_test + +import ( + "fmt" + "testing" + + "github.com/caffeine-addictt/waku/cmd/template" + "github.com/caffeine-addictt/waku/cmd/utils/types" + "github.com/stretchr/testify/assert" +) + +func TestResolveIncludes(t *testing.T) { + tests := []struct { + paths types.Set[string] + ignores types.Set[string] + expected types.Set[string] + name string + }{ + { + paths: types.NewSet("path/to/file"), + ignores: types.NewSet("path/to/file"), + expected: types.NewSet[string](), + name: "ignore single file", + }, + { + paths: types.NewSet("path/to/file"), + ignores: types.NewSet("path/to/f*"), + expected: types.NewSet[string](), + name: "ignore single file glob", + }, + { + paths: types.NewSet("path/to/file"), + ignores: types.NewSet("path/to/*"), + expected: types.NewSet[string](), + name: "ignore single dir level glob", + }, + { + paths: types.NewSet("path/to/file"), + ignores: types.NewSet("path/**"), + expected: types.NewSet[string](), + name: "ignore recursive dir level glob", + }, + { + paths: types.NewSet("path/one", "path/two", "path/three"), + ignores: types.NewSet("*"), + expected: types.NewSet[string](), + name: "ignore all files", + }, + { + paths: types.NewSet("path/to/one", "path/to/two", "path/to/three"), + ignores: types.NewSet("path/to/*", "!path/to/one", "!path/to/two"), + expected: types.NewSet("path/to/one", "path/to/two"), + name: "include negated files", + }, + { + paths: types.NewSet("path/to/one"), + ignores: types.NewSet("!path/to/o*", "path/to/one"), + expected: types.NewSet("path/to/one"), + name: "include negated file glob", + }, + { + paths: types.NewSet("path/to/one", "path/to/two", "path/to/three"), + ignores: types.NewSet("!path/to/*", "path/**"), + expected: types.NewSet("path/to/one", "path/to/two", "path/to/three"), + name: "include negated dir level glob", + }, + { + paths: types.NewSet("path/to/one", "path/to/two", "path/to/three"), + ignores: types.NewSet("!path/**", "path/to/*"), + expected: types.NewSet("path/to/one", "path/to/two", "path/to/three"), + name: "include negated recursive dir level glob", + }, + { + paths: types.NewSet("path/to/one.+?^$()[]{}|\\"), + ignores: types.NewSet("path/to/one.+?^$()[]{}|\\"), + expected: types.NewSet[string](), + name: "regex characters are escaped", + }, + } + + for _, tc := range tests { + t.Run(tc.name, func(t *testing.T) { + result := template.ResolveIncludes(tc.paths, tc.ignores) + assert.ElementsMatch(t, tc.expected.ToSlice(), result.ToSlice()) + }) + } +} + +func BenchmarkResolveIncludes(b *testing.B) { + for _, tc := range []struct { + paths types.Set[string] + ignores types.Set[string] + name string + }{ + { + name: "Simple Exclude", + paths: types.NewSet("path/to/file1", "path/to/file2", "path/to/dir/file3"), + ignores: types.NewSet("path/to/file1"), + }, + { + name: "Single Level Glob Exclude", + paths: types.NewSet("path/to/file1", "path/to/file2", "path/to/dir/file3"), + ignores: types.NewSet("path/to/dir/*"), + }, + { + name: "Recursive Glob Exclude", + paths: types.NewSet("path/to/file1", "path/to/file2", "path/to/dir/file3", "path/to/dir/subdir/file4"), + ignores: types.NewSet("path/to/dir/**"), + }, + { + name: "Negation of Recursive Glob", + paths: types.NewSet("path/to/file1", "path/to/file2", "path/to/dir/file3", "path/to/dir/subdir/file4"), + ignores: types.NewSet("path/to/dir/**", "!path/to/dir/subdir/file4"), + }, + { + name: "Complex Pattern", + paths: types.NewSet("path/to/file1", "path/to/file2", "path/to/dir/file3", "path/to/dir/subdir/file4", "path/to/otherfile"), + ignores: types.NewSet("path/to/dir/**", "!path/to/dir/subdir/file4", "path/to/otherfile"), + }, + { + name: "Large Dataset", + paths: generateLargeDataset(), + ignores: types.NewSet("path/to/dir/**"), + }, + } { + b.Run(tc.name, func(b *testing.B) { + for i := 0; i < b.N; i++ { + template.ResolveIncludes(tc.paths, tc.ignores) + } + }) + } +} + +// Helper function to generate a large dataset for benchmarking +func generateLargeDataset() types.Set[string] { + paths := make([]string, 0, 1000) + for i := 0; i < 1000; i++ { + paths = append(paths, fmt.Sprintf("path/to/dir/file%d", i)) + } + return types.NewSet(paths...) +} diff --git a/cmd/template/parse_config.go b/cmd/template/parse_config.go new file mode 100644 index 0000000..181b040 --- /dev/null +++ b/cmd/template/parse_config.go @@ -0,0 +1,45 @@ +package template + +import ( + "bufio" + "encoding/json" + "os" + "path/filepath" + + "github.com/caffeine-addictt/waku/cmd/config" + "github.com/caffeine-addictt/waku/cmd/options" +) + +func ParseConfig(filePath string) (*config.TemplateJson, error) { + file, err := os.Open(filepath.Clean(filePath)) + if err != nil { + return nil, err + } + + var template config.TemplateJson + var jsonData string + + // Read the entire file content + scanner := bufio.NewScanner(file) + for scanner.Scan() { + jsonData += scanner.Text() + } + + if err := scanner.Err(); err != nil { + return nil, err + } + + // Unmarshal JSON data + options.Debugln("Unmarshalling JSON data from " + filePath) + if err := json.Unmarshal([]byte(jsonData), &template); err != nil { + return nil, err + } + + options.Debugf("Unmarshalled JSON data: %+v\n", template) + options.Infoln("Validating JSON data from " + filePath) + if err := template.Validate(filepath.Dir(filePath)); err != nil { + return nil, err + } + + return &template, nil +} diff --git a/cmd/template/prompting.go b/cmd/template/prompting.go new file mode 100644 index 0000000..c11e270 --- /dev/null +++ b/cmd/template/prompting.go @@ -0,0 +1,132 @@ +package template + +import ( + "fmt" + "path/filepath" + "strings" + + "github.com/caffeine-addictt/waku/cmd/config" + "github.com/caffeine-addictt/waku/cmd/license" + "github.com/caffeine-addictt/waku/cmd/options" + "github.com/caffeine-addictt/waku/cmd/utils" + "github.com/caffeine-addictt/waku/cmd/utils/searching" + "github.com/caffeine-addictt/waku/cmd/utils/sorting" + "github.com/caffeine-addictt/waku/cmd/utils/types" + "github.com/charmbracelet/huh" +) + +// PromptForStyle prompts user to select style +func PromptForStyle(styles config.TemplateStyles, setK *types.CleanString, setV *config.TemplateStyle) *huh.Select[string] { + opts := make([]string, 0, len(styles)) + + for n := range styles { + opts = append(opts, strings.ToLower(string(n))) + } + sorting.QuicksortASC(opts) + + if options.NewOpts.Style.Value() != "" { + if err := validateStyle(&styles, opts, options.NewOpts.Style.Value(), setK, setV); err == nil { + return nil + } + } + + return huh.NewSelect[string]().Title("The style to use").Options(huh.NewOptions(opts...)...).Validate(func(s string) error { + return validateStyle(&styles, opts, s, setK, setV) + }) +} + +func validateStyle(ll *config.TemplateStyles, optsL []string, val string, setK *types.CleanString, setV *config.TemplateStyle) error { + val = strings.ToLower(val) + + i := searching.BinarySearchAuto(optsL, val) + if i == -1 { + return fmt.Errorf("unknown style: %s", val) + } + + for n, v := range *ll { + if strings.EqualFold(string(n), val) { + *setV = v + *setK = n + break + } + } + + return nil +} + +// PromptForLicense prompts user to select license +func PromptForLicense(value *license.License) (*huh.Select[string], error) { + fetchedL, err := license.GetLicenses() + if err != nil { + return nil, err + } + + licenses := make([]string, 0, len(*fetchedL)) + for _, v := range *fetchedL { + licenses = append(licenses, strings.ToLower(v.Name), strings.ToLower(v.Spdx)) + } + sorting.QuicksortASC(licenses) + + if options.NewOpts.License.Value() != "" { + if err := validateLicense(fetchedL, licenses, strings.ToLower(options.NewOpts.License.Value()), value); err == nil { + return nil, nil + } + } + + return huh.NewSelect[string]().Title("Your project license").Options(huh.NewOptions(licenses...)...).Validate(func(s string) error { + return validateLicense(fetchedL, licenses, s, value) + }), nil +} + +func validateLicense(ll *[]license.License, optsL []string, val string, setV *license.License) error { + val = strings.ToLower(val) + + i := searching.BinarySearchAuto(optsL, val) + if i == -1 { + return fmt.Errorf("unknown license: %s", val) + } + + for _, v := range *ll { + if strings.EqualFold(v.Name, val) || strings.EqualFold(v.Spdx, val) { + *setV = v + break + } + } + return nil +} + +// PromptForProjectName prompts user to enter project name +// or returns the name from options if it's provided. +func PromptForProjectName(name, projectRootDir *string) *huh.Input { + if options.NewOpts.Name.Value() != "" { + if err := validateProjectName(options.NewOpts.Name.Value(), name, projectRootDir); err == nil { + return nil + } + } + + return huh.NewInput().Title("Name of your project").Validate(func(s string) error { + return validateProjectName(s, name, projectRootDir) + }) +} + +func validateProjectName(s string, name, projectRootDir *string) error { + s = strings.TrimSpace(s) + if s == "" { + return fmt.Errorf("project name cannot be empty") + } + + pDir, err := filepath.Rel(".", strings.ToLower(strings.ReplaceAll(s, " ", "-"))) + if err != nil { + return err + } + + if ok, err := utils.PathExists(pDir); err != nil { + return err + } else if ok { + return fmt.Errorf("directory '%s' already exists", s) + } + + *projectRootDir = pDir + *name = s + return nil +} diff --git a/cmd/utils/file.go b/cmd/utils/file.go new file mode 100644 index 0000000..cf3d37f --- /dev/null +++ b/cmd/utils/file.go @@ -0,0 +1,132 @@ +package utils + +import ( + "fmt" + "io/fs" + "os" + "path/filepath" +) + +const ( + FilePerms = 0o644 // -rw-r--r-- + DirPerms = 0o755 // drwxr-xr-x +) + +func WalkDirRecursive(root string) ([]string, error) { + var paths []string + + err := filepath.WalkDir(root, func(path string, d os.DirEntry, err error) error { + if err != nil { + return err + } + + if !d.IsDir() { + relPath, err := filepath.Rel(root, path) + if err != nil { + return err + } + paths = append(paths, filepath.ToSlash(relPath)) + } + + return nil + }) + + return paths, err +} + +func PathExists(path string) (bool, error) { + _, err := os.Stat(path) + if err != nil { + if os.IsNotExist(err) { + return false, nil + } + return false, err + } + return true, nil +} + +func IsDir(path string) (bool, error) { + fileinfo, err := os.Stat(path) + if err != nil { + if os.IsNotExist(err) { + return false, nil + } + return false, err + } + + if !fileinfo.IsDir() { + return false, fmt.Errorf("%v is not a directory", path) + } + + err = CheckRW(fileinfo.Mode()) + if err != nil { + return false, fmt.Errorf("file %v is %v", fileinfo.Name(), err) + } + + return true, nil +} + +func IsFile(path string) (bool, error) { + fileinfo, err := os.Stat(path) + if err != nil { + if os.IsNotExist(err) { + return false, nil + } + return false, err + } + + if fileinfo.IsDir() { + return false, fmt.Errorf("%v is not a file", path) + } + + if err = CheckRW(fileinfo.Mode()); err != nil { + return false, fmt.Errorf("file %v is %v", fileinfo.Name(), err) + } + + return true, nil +} + +func IsExecutableFile(path string) (bool, error) { + fileinfo, err := os.Stat(path) + if err != nil { + if os.IsNotExist(err) { + return false, nil + } + return false, err + } + + if fileinfo.IsDir() { + return false, fmt.Errorf("%v is not a file", path) + } + + err = CheckRWX(fileinfo.Mode()) + if err != nil { + return false, fmt.Errorf("file %v is %v", fileinfo.Name(), err) + } + + return true, nil +} + +// Check for rw------- perms +func CheckRW(mode fs.FileMode) error { + if mode&0o400 == 0 { + return fmt.Errorf("not readable") + } + if mode&0o200 == 0 { + return fmt.Errorf("not writable") + } + return nil +} + +// Check for rwx------ perms +func CheckRWX(mode fs.FileMode) error { + if err := CheckRW(mode); err != nil { + return nil + } + + if mode&0o100 == 0 { + return fmt.Errorf("not executable") + } + + return nil +} diff --git a/cmd/utils/searching/binary.go b/cmd/utils/searching/binary.go new file mode 100644 index 0000000..6a2c121 --- /dev/null +++ b/cmd/utils/searching/binary.go @@ -0,0 +1,31 @@ +package searching + +import c "cmp" + +// BinarySearch searches for the target in the array using binary search +func BinarySearch[T comparable](arr []T, target T, cmp func(T, T) bool) int { + left, right := 0, len(arr)-1 + + for left <= right { + mid := left + (right-left)/2 + + if arr[mid] == target { + return mid + } + + if cmp(arr[mid], target) { + left = mid + 1 + } else { + right = mid - 1 + } + } + + return -1 // target not found +} + +// BinarySearchAuto is a shorthand for BinarySearch that uses the default comparator +func BinarySearchAuto[T c.Ordered](arr []T, target T) int { + return BinarySearch(arr, target, func(a, b T) bool { + return a < b + }) +} diff --git a/cmd/utils/searching/binary_test.go b/cmd/utils/searching/binary_test.go new file mode 100644 index 0000000..406b868 --- /dev/null +++ b/cmd/utils/searching/binary_test.go @@ -0,0 +1,49 @@ +package searching_test + +import ( + "testing" + + "github.com/caffeine-addictt/waku/cmd/utils/searching" + "github.com/stretchr/testify/assert" +) + +func TestBinarySearch(t *testing.T) { + tt := []struct { + cmp func(int, int) bool + arr []int + target int + want int + }{ + {arr: []int{1, 2, 3, 4, 5}, target: 3, cmp: func(a, b int) bool { return a < b }, want: 2}, + {arr: []int{1, 2, 3, 4, 5}, target: 1, cmp: func(a, b int) bool { return a < b }, want: 0}, + {arr: []int{1, 2, 3, 4, 5}, target: 5, cmp: func(a, b int) bool { return a < b }, want: 4}, + {arr: []int{1, 2, 3, 4, 5}, target: 6, cmp: func(a, b int) bool { return a < b }, want: -1}, + {arr: []int{1, 2, 3, 4, 5}, target: 0, cmp: func(a, b int) bool { return a < b }, want: -1}, + {arr: []int{}, target: 1, cmp: func(a, b int) bool { return a < b }, want: -1}, + } + + for _, tc := range tt { + got := searching.BinarySearch(tc.arr, tc.target, tc.cmp) + assert.Equal(t, tc.want, got) + } +} + +func TestBinarySearchAuto(t *testing.T) { + tt := []struct { + arr []int + target int + want int + }{ + {arr: []int{1, 2, 3, 4, 5}, target: 3, want: 2}, + {arr: []int{1, 2, 3, 4, 5}, target: 1, want: 0}, + {arr: []int{1, 2, 3, 4, 5}, target: 5, want: 4}, + {arr: []int{1, 2, 3, 4, 5}, target: 6, want: -1}, + {arr: []int{1, 2, 3, 4, 5}, target: 0, want: -1}, + {arr: []int{}, target: 1, want: -1}, + } + + for _, tc := range tt { + got := searching.BinarySearchAuto(tc.arr, tc.target) + assert.Equal(t, tc.want, got) + } +} diff --git a/cmd/utils/sorting/quicksort.go b/cmd/utils/sorting/quicksort.go new file mode 100644 index 0000000..8803b25 --- /dev/null +++ b/cmd/utils/sorting/quicksort.go @@ -0,0 +1,83 @@ +package sorting + +import ( + c "cmp" + "sync" +) + +// Threshold defines the threshold at which the algorithm switches +// to partition in parallel/concurrent mode +const Threshold = 200 + +// Quicksort sorts the given array using the quicksort algorithm +// in concurrent/parallel mode, in-place. +// +// best | worst | avg | effective +// time 0(nlog(n)) | 0(n^2) | 0(nlog(n)) +// space 0(log(n)) | 0(1) | 0(log(n)) +// effective space 0(nlog(n)) avg | 0(log(n) + sqrt(n)) - due to concurrency overhead +func Quicksort[T comparable](arr []T, cmp func(v, pivot T) bool) { + var wg sync.WaitGroup + wg.Add(1) + parallelQuicksort(arr, 0, len(arr)-1, cmp, &wg) + wg.Wait() +} + +// QuicksortASC invokes Quicksort in ascending order +func QuicksortASC[T c.Ordered](arr []T) { + Quicksort(arr, func(v, pivot T) bool { + return v < pivot + }) +} + +// QuicksortDESC invokes Quicksort in descending order +func QuicksortDESC[T c.Ordered](arr []T) { + Quicksort(arr, func(v, pivot T) bool { + return v > pivot + }) +} + +func parallelQuicksort[T comparable](arr []T, left, right int, cmp func(v, pivot T) bool, wg *sync.WaitGroup) { + if wg != nil { + defer wg.Done() + } + + if left >= right { + return + } + + pivotIndex := partition(arr, left, right, cmp) + + // Run concurrently if more than threshold + if (right - left) > Threshold { + wg.Add(1) + go parallelQuicksort(arr, left, pivotIndex-1, cmp, wg) + + wg.Add(1) + go parallelQuicksort(arr, pivotIndex+1, right, cmp, wg) + } else { + parallelQuicksort(arr, left, pivotIndex-1, cmp, nil) + parallelQuicksort(arr, pivotIndex+1, right, cmp, nil) + } +} + +// partition rearranges elements based on the pivot +func partition[T comparable](arr []T, left, right int, cmp func(v, pivot T) bool) int { + pivotIndex := left + (right-left)/2 + pivot := arr[pivotIndex] + + // Move pivot to the end + arr[pivotIndex], arr[right] = arr[right], arr[pivotIndex] + + storeIndex := left + for i := left; i < right; i++ { + if cmp(arr[i], pivot) { + arr[i], arr[storeIndex] = arr[storeIndex], arr[i] + storeIndex++ + } + } + + // Move pivot to its final place + arr[storeIndex], arr[right] = arr[right], arr[storeIndex] + return storeIndex +} diff --git a/cmd/utils/sorting/quicksort_test.go b/cmd/utils/sorting/quicksort_test.go new file mode 100644 index 0000000..c1b095a --- /dev/null +++ b/cmd/utils/sorting/quicksort_test.go @@ -0,0 +1,130 @@ +package sorting_test + +import ( + "math/rand" + "testing" + + "github.com/caffeine-addictt/waku/cmd/utils/sorting" + "github.com/stretchr/testify/assert" +) + +// Comparator function for ascending order +func asc(a, b int) bool { + return a < b +} + +// Comparator function for descending order +func desc(a, b int) bool { + return a > b +} + +func TestQuicksort(t *testing.T) { + tt := []struct { + cmp func(a, b int) bool + name string + input []int + expected []int + }{ + { + cmp: asc, + name: "Ascending order", + input: []int{3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5}, + expected: []int{1, 1, 2, 3, 3, 4, 5, 5, 5, 6, 9}, + }, + { + cmp: desc, + name: "Descending order", + input: []int{3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5}, + expected: []int{9, 6, 5, 5, 5, 4, 3, 3, 2, 1, 1}, + }, + { + cmp: asc, + name: "Already sorted", + input: []int{1, 2, 3, 4, 5}, + expected: []int{1, 2, 3, 4, 5}, + }, + { + cmp: asc, + name: "Reverse sorted", + input: []int{5, 4, 3, 2, 1}, + expected: []int{1, 2, 3, 4, 5}, + }, + { + cmp: asc, + name: "Single element", + input: []int{42}, + expected: []int{42}, + }, + { + name: "Empty slice", + cmp: asc, + input: []int{}, + expected: []int{}, + }, + } + + for _, tc := range tt { + t.Run(tc.name, func(t *testing.T) { + sorting.Quicksort(tc.input, tc.cmp) + assert.Equal(t, tc.expected, tc.input) + }) + } +} + +func TestQuicksortASC(t *testing.T) { + tt := []struct { + input []int + expected []int + }{ + {[]int{3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5}, []int{1, 1, 2, 3, 3, 4, 5, 5, 5, 6, 9}}, + {[]int{5, 4, 3, 2, 1}, []int{1, 2, 3, 4, 5}}, + {[]int{1, 2, 3, 4, 5}, []int{1, 2, 3, 4, 5}}, + {[]int{}, []int{}}, + {[]int{1}, []int{1}}, + } + + for _, tc := range tt { + sorting.QuicksortASC(tc.input) + assert.Equal(t, tc.expected, tc.input) + } +} + +func TestQuicksortDESC(t *testing.T) { + tt := []struct { + input []int + expected []int + }{ + {[]int{3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5}, []int{9, 6, 5, 5, 5, 4, 3, 3, 2, 1, 1}}, + {[]int{1, 2, 3, 4, 5}, []int{5, 4, 3, 2, 1}}, + {[]int{5, 4, 3, 2, 1}, []int{5, 4, 3, 2, 1}}, + {[]int{}, []int{}}, + {[]int{1}, []int{1}}, + } + + for _, tc := range tt { + sorting.QuicksortDESC(tc.input) + assert.Equal(t, tc.expected, tc.input) + } +} + +func BenchmarkQuicksortSmall(b *testing.B) { + arr := make([]int, 100) + for i := range arr { + arr[i] = rand.Intn(1000) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + sorting.Quicksort(arr, func(a, b int) bool { return a < b }) + } +} + +func BenchmarkQuicksortLarge(b *testing.B) { + arr := make([]int, 10000) + for i := range arr { + arr[i] = rand.Intn(100000) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + sorting.Quicksort(arr, func(a, b int) bool { return a < b }) + } +} diff --git a/cmd/utils/string.go b/cmd/utils/string.go new file mode 100644 index 0000000..d8e613b --- /dev/null +++ b/cmd/utils/string.go @@ -0,0 +1,96 @@ +package utils + +import ( + "strings" + "unicode" +) + +// StringStartsWith returns true if the given string +// starts with the given string look, or if they start similarily. +func StringStartsWith(s, look string) bool { + if len(s) >= len(look) { + return look == s + } + + target := min(len(s), len(look)) + for i := 0; i < target; i++ { + if s[i] != look[i] { + return false + } + } + return true +} + +// Invokes CleanString with terminal-specific operators +// like ;|&$. +func EscapeTermString(s string) string { + return CleanString(s, '|', '&', ';', '`', '$') +} + +// Invokes CleanString to prevent regex +func CleanStringNoRegex(s string) string { + var builder strings.Builder + builder.Grow(len(s)) // Optimize for the expected size to reduce reallocations. + + for _, r := range s { + // Filter out any non-alphanumeric and non-space characters. + if unicode.IsLetter(r) || unicode.IsDigit(r) || unicode.IsSpace(r) { + builder.WriteRune(r) + } + } + + return builder.String() +} + +// Escapes the given string from common escape sequences +// in 0(n) time, no regex. +// +// \x1b[31mfoo\x1b[0m -> foo +// \n\r\x00\x01\x02\x03\x04\x05\x06\x07\x08\x0B\x0C\x0E\x0F\x7f -> empty +func CleanString(s string, othersToEscape ...rune) string { + var newS strings.Builder + + esc := make(map[byte]struct{}, len(othersToEscape)) + for _, v := range othersToEscape { + esc[byte(v)] = struct{}{} + } + + var i int + for i < len(s) { + switch s[i] { + case '\x1b': // handle ANSI escape sequences + i++ + + if i < len(s) && s[i] == '[' { + i++ + + seek := true + for i < len(s) && seek { + switch s[i] { + case 'm', 'A', 'B', 'C', 'D', 'H', 'f', 'J', 'K', 'c', 'n', 's', 'u': + seek = false + default: + i++ + } + } + + i++ + } + continue + + case '\x00', '\x01', '\x02', '\x03', '\x04', '\x05', '\x06', '\x07', // Control characters + '\x08', '\x0B', '\x0C', '\x0E', '\x0F', '\n', '\r', + '\x7f': // Delete character + i++ + continue + } + + if _, ok := esc[s[i]]; !ok { + newS.WriteByte(s[i]) + } + + i++ + } + + return newS.String() +} diff --git a/cmd/utils/string_test.go b/cmd/utils/string_test.go new file mode 100644 index 0000000..46c0b14 --- /dev/null +++ b/cmd/utils/string_test.go @@ -0,0 +1,211 @@ +package utils_test + +import ( + "testing" + + "github.com/caffeine-addictt/waku/cmd/utils" + "github.com/stretchr/testify/assert" +) + +func TestStringStartsWith(t *testing.T) { + tt := []struct { + inputs [2]string + rule string + out bool + }{ + {[2]string{"start", "start"}, "values are euqal", true}, + {[2]string{"s", "stop"}, "stop starts with s", true}, + {[2]string{"sto", "stoop"}, "stoop starts with sto", true}, + {[2]string{"iiiiii", "iii"}, "iii is not iiiiii", false}, + {[2]string{"", ""}, "values are euqal", true}, + {[2]string{"", "nonempty"}, "empty prefix", true}, + {[2]string{"nonempty", ""}, "empty string", false}, + {[2]string{"hello", "hello world"}, "hello world starts with hello", true}, + {[2]string{"world", "hello world"}, "hello world does not start with world", false}, + {[2]string{"h", "H"}, "case sensitivity", false}, + {[2]string{"hello", "h"}, "h does not start with hello", false}, + {[2]string{"abcd", "abcde"}, "abcde starts with abcd", true}, + {[2]string{"test", "testing"}, "testing starts with test", true}, + {[2]string{"prefix", "suffix"}, "suffix does not start with prefix", false}, + {[2]string{"go", "gopher"}, "gopher starts with go", true}, + {[2]string{"😊", "😊😊😊"}, "unicode check", true}, + } + + for _, tc := range tt { + t.Run(tc.rule, func(t *testing.T) { + got := utils.StringStartsWith(tc.inputs[0], tc.inputs[1]) + assert.Equal(t, got, tc.out, tc.rule) + }) + } +} + +func TestEscapingTermString(t *testing.T) { + tt := []struct { + in string + out string + rule string + }{ + {"git | sed", "git sed", "escape pipes"}, + {"a & b", "a b", "escape chaining commands"}, + {"a && b", "a b", "escape AND commands"}, + {"a || b", "a b", "escape OR operator"}, + {"a; b", "a b", "escape semicolons"}, + {"a`b", "ab", "escape backticks"}, + {"$b", "b", "escape dollar sign"}, + {"a\nb", "ab", "escape newlines"}, + {"a\rb", "ab", "escape carriage returns"}, + {"|&\n\r;`$", "", "escape all known special characters"}, + } + + for _, tc := range tt { + t.Run(tc.rule, func(t *testing.T) { + got := utils.EscapeTermString(tc.in) + assert.Equal(t, got, tc.out, tc.rule) + }) + } +} + +func TestCleaningString(t *testing.T) { + tt := []struct { + in string + out string + rule string + extra []rune + }{ + {"\r\n", "", "clean up newlines", []rune{}}, + {"\x00", "", "clean up null bytes", []rune{}}, + {"\x01\x02\x03\x04\x05\x06\x07\x08\x0B\x0C\x0E\x0F", "", "clean up control characters", []rune{}}, + {"\x7f", "", "clean up DEL", []rune{}}, + {"\x1b[0m", "", "clean up full ANSI", []rune{}}, + {"\x1b", "", "clean up not started ANSI", []rune{}}, + {"\x1b[", "", "clean up uncontinued ANSI", []rune{}}, + {"\x1b[0mfoo", "foo", "clean up ANSI", []rune{}}, + {"\x1b[31mfoo\x1b[0m", "foo", "clean up ANSI", []rune{}}, + {"\x1b[31mfoo\nbar\x1b[0m", "foobar", "clean up ANSI", []rune{}}, + {"\x1b[0;25;42mfoo\x1b[0m", "foo", "clean up ANSI", []rune{}}, + {"\x1b[0;25;42mfoo\x1b[0m", "foo", "clean up ANSI with multiple codes", []rune{}}, + {"abcde", "", "ignore extra runes passed too", []rune{'a', 'b', 'c', 'd', 'e'}}, + {"\x1b[31mfoo\x1b[0mbar", "foobar", "clean up ANSI with extra characters", []rune{}}, + {"\x1b[42mtext\x1b[0m\x1b[43mmore\x1b[0m", "textmore", "clean up ANSI with multiple sequences", []rune{}}, + {"\x1b[1mbold\x1b[22m\x1b[4munderline\x1b[24m", "boldunderline", "clean up bold and underline ANSI", []rune{}}, + } + + for _, tc := range tt { + t.Run(tc.rule, func(t *testing.T) { + got := utils.CleanString(tc.in, tc.extra...) + assert.Equal(t, got, tc.out, tc.rule) + }) + } +} + +func TestCleanStringNoRegex(t *testing.T) { + tests := []struct { + name string + input string + expected string + }{ + { + name: "Alphanumeric string", + input: "Hello123", + expected: "Hello123", + }, + { + name: "String with spaces", + input: "Hello World 123", + expected: "Hello World 123", + }, + { + name: "String with special characters", + input: "Hello@World!123#", + expected: "HelloWorld123", + }, + { + name: "String with unicode characters", + input: "こんにちは世界123", + expected: "こんにちは世界123", + }, + { + name: "String with mixed valid and invalid characters", + input: "Hello, World! #123", + expected: "Hello World 123", + }, + { + name: "Empty string", + input: "", + expected: "", + }, + { + name: "String with only special characters", + input: "@#$%^&*()", + expected: "", + }, + { + name: "String with leading and trailing spaces", + input: " Hello World ", + expected: " Hello World ", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + result := utils.CleanStringNoRegex(tt.input) + if result != tt.expected { + t.Errorf("CleanStringNoRegex(%q) = %q; expected %q", tt.input, result, tt.expected) + } + }) + } +} + +func BenchmarkStringStartsWith(b *testing.B) { + cases := []struct { + prefix string + full string + }{ + {"", ""}, + {"a", "a"}, + {"hello", "hello world"}, + {"go", "gopher"}, + {"abc", "abcdefghijklmnopqrstuvwxyz"}, + {"longprefix", "longprefixandaverylongstring"}, + {"😊", "😊😊😊😊😊😊😊😊"}, + } + + for _, bc := range cases { + b.Run(bc.prefix+"_"+bc.full, func(b *testing.B) { + for i := 0; i < b.N; i++ { + utils.StringStartsWith(bc.prefix, bc.full) + } + }) + } +} + +func BenchmarkCleaningString(b *testing.B) { + bt := []struct { + in string + extra []rune + }{ + {"\r\n", []rune{}}, + {"\x00", []rune{}}, + {"\x01\x02\x03\x04\x05\x06\x07\x08\x0B\x0C\x0E\x0F", []rune{}}, + {"\x7f", []rune{}}, + {"\x1b[0m", []rune{}}, + {"\x1b", []rune{}}, + {"\x1b[", []rune{}}, + {"\x1b[0mfoo", []rune{}}, + {"\x1b[31mfoo\x1b[0m", []rune{}}, + {"\x1b[31mfoo\nbar\x1b[0m", []rune{}}, + {"\x1b[0;25;42mfoo\x1b[0m", []rune{}}, + {"abcde", []rune{'a', 'b', 'c', 'd', 'e'}}, + {"\x1b[31mfoo\x1b[0mbar", []rune{}}, + {"\x1b[42mtext\x1b[0m\x1b[43mmore\x1b[0m", []rune{}}, + {"\x1b[1mbold\x1b[22m\x1b[4munderline\x1b[24m", []rune{}}, + } + + for _, bc := range bt { + b.Run(bc.in, func(b *testing.B) { + for i := 0; i < b.N; i++ { + _ = utils.CleanString(bc.in, bc.extra...) + } + }) + } +} diff --git a/cmd/utils/templater.go b/cmd/utils/templater.go new file mode 100644 index 0000000..c4031af --- /dev/null +++ b/cmd/utils/templater.go @@ -0,0 +1,52 @@ +package utils + +import ( + "bufio" + "context" + "regexp" + "strings" +) + +// This handles consuming a file stream, +// templating it and writing it to writer. +// +// tmpl is a mapping of `find`: `replace`. +// +// `find` should be X where the actual template searched for is "{{X}}" {{{x}}} +// +// Time complexity through the roof: HAVE TO OPTIMIZE +func ParseTemplateFile(ctx context.Context, tmpl map[string]string, reader *bufio.Scanner, writer *bufio.Writer) error { + // generate the regexp + reg := make(map[*regexp.Regexp]string, len(tmpl)) + for find, replace := range tmpl { + reg[regexp.MustCompile(`{\s*{\s*`+CleanStringNoRegex(find)+`\s*}\s*}`)] = replace + } + + for reader.Scan() { + select { + case <-ctx.Done(): + return ctx.Err() + default: + } + + line := reader.Text() + for find, replace := range reg { + line = find.ReplaceAllString(line, replace) + } + + if _, err := writer.WriteString(line + "\n"); err != nil { + return err + } + } + + return nil +} + +// ParseLicenseText handles templating license text +func ParseLicenseText(tmpl map[string]string, s string) string { + for k, v := range tmpl { + s = strings.ReplaceAll(s, `[`+k+`]`, v) + } + + return s +} diff --git a/cmd/utils/templater_test.go b/cmd/utils/templater_test.go new file mode 100644 index 0000000..bab5427 --- /dev/null +++ b/cmd/utils/templater_test.go @@ -0,0 +1,155 @@ +package utils_test + +import ( + "bufio" + "bytes" + "context" + "testing" + + "github.com/caffeine-addictt/waku/cmd/utils" + "github.com/stretchr/testify/assert" +) + +func TestParseTemplateFile(t *testing.T) { + tests := []struct { + name string + tmpl map[string]string + input string + output string + }{ + { + name: "Basic replacement", + tmpl: map[string]string{ + "NAME": "John", + }, + input: "Hello {{NAME}}, welcome!", + output: "Hello John, welcome!\n", + }, + { + name: "Multiple replacements", + tmpl: map[string]string{ + "NAME": "John", + "PLACE": "office", + }, + input: "Hello {{NAME}}, welcome to the {{PLACE}}.", + output: "Hello John, welcome to the office.\n", + }, + { + name: "No replacement", + tmpl: map[string]string{ + "NAME": "John", + }, + input: "No template here.", + output: "No template here.\n", + }, + { + name: "Empty input", + tmpl: map[string]string{ + "NAME": "John", + }, + input: "", + output: "", + }, + { + name: "Special characters in template key", + tmpl: map[string]string{ + "URL": "https://example.com", + }, + input: "Visit {{{{URL}}}} for more info.", + output: "Visit {{https://example.com}} for more info.\n", + }, + { + name: "White space between braces", + tmpl: map[string]string{ + "NAME": "John", + }, + input: "Hello { { NAME } }, welcome!", + output: "Hello John, welcome!\n", + }, + { + name: "Unclosed brace", + tmpl: map[string]string{ + "NAME": "John", + }, + input: "Hello {{NAME, welcome!", + output: "Hello {{NAME, welcome!\n", // No replacement since it's unclosed. + }, + { + name: "Invalid template with no match", + tmpl: map[string]string{ + "NAME": "John", + }, + input: "Hello {{USERNAME}}, welcome!", + output: "Hello {{USERNAME}}, welcome!\n", // No replacement since there's no match. + }, + { + name: "Valid template with multiple lines", + tmpl: map[string]string{ + "NAME": "John", + }, + input: "Hello {{NAME}}, welcome!\nHello {{NAME}}, welcome!", + output: "Hello John, welcome!\nHello John, welcome!\n", + }, + } + + ctx := context.Background() + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + reader := bufio.NewScanner(bytes.NewReader([]byte(tt.input))) + var output bytes.Buffer + writer := bufio.NewWriter(&output) + + err := utils.ParseTemplateFile(ctx, tt.tmpl, reader, writer) + assert.NoError(t, err, "failed to parse") + + writer.Flush() + assert.Equal(t, output.String(), tt.output, "wrong output") + }) + } +} + +func BenchmarkParseTemplateFile(b *testing.B) { + tmpl := map[string]string{ + "NAME": "John", + "PLACE": "office", + "URL": "https://example.com", + "PROJECT": "my proj", + } + + // Input strings to test different cases + input := "Hello {{NAME}}, welcome to the {{PLACE}}. For more details, visit {{URL}}. Your project is {{PROJECT}}." + + inputInvalid := "Hello {{ NAME }}, this is an invalid {{ TEMPLATE." + + inputComplex := "Hello {{{{NAME}}}}. Are you visiting the {{PLACE}}? The details are on {{URL}}. {{PROJECT}} is running well." + + // Benchmark different input sizes and complexities + tests := []struct { + name string + input string + }{ + {"Small input", "Hello {{NAME}}"}, + {"Medium input", input}, + {"Large input", input + input + input}, + {"Invalid input", inputInvalid}, + {"Complex input", inputComplex}, + } + + ctx := context.Background() + for _, tt := range tests { + b.Run(tt.name, func(b *testing.B) { + for i := 0; i < b.N; i++ { + reader := bufio.NewScanner(bytes.NewReader([]byte(tt.input))) + var output bytes.Buffer + writer := bufio.NewWriter(&output) + + err := utils.ParseTemplateFile(ctx, tmpl, reader, writer) + if err != nil { + b.Fatalf("ParseTemplateFile() error = %v", err) + } + + writer.Flush() + } + }) + } +} diff --git a/cmd/utils/types/clean_string.go b/cmd/utils/types/clean_string.go new file mode 100644 index 0000000..36514b9 --- /dev/null +++ b/cmd/utils/types/clean_string.go @@ -0,0 +1,36 @@ +package types + +import ( + "fmt" + "strings" + + "github.com/caffeine-addictt/waku/cmd/utils" + "github.com/goccy/go-json" +) + +// String that has a Clean method that also is invoked on UnmarshalJSON +type CleanString string + +// Trims the string and cleans it +func (s *CleanString) Clean() { + *s = CleanString(utils.CleanString(strings.TrimSpace(string(*s)))) +} + +func (s *CleanString) String() string { + return string(*s) +} + +func (s *CleanString) UnmarshalJSON(data []byte) error { + var tmp string + if err := json.Unmarshal(data, &tmp); err != nil { + return err + } + + tmp = utils.CleanString(strings.TrimSpace(tmp)) + if tmp == "" { + return fmt.Errorf("invalid string: %s", string(tmp)) + } + + *s = CleanString(tmp) + return nil +} diff --git a/cmd/utils/types/clean_string_test.go b/cmd/utils/types/clean_string_test.go new file mode 100644 index 0000000..4b4340d --- /dev/null +++ b/cmd/utils/types/clean_string_test.go @@ -0,0 +1,32 @@ +package types_test + +import ( + "testing" + + "github.com/caffeine-addictt/waku/cmd/utils/types" + "github.com/stretchr/testify/assert" +) + +func TestCleanStringUnmarshalJSON(t *testing.T) { + tt := []struct { + in string + errors bool + }{ + {"aa", false}, + {"\r\b\n\t", true}, + {"", true}, + {" ", true}, + {"\r\ns", false}, + } + + for _, tc := range tt { + var s types.CleanString + err := s.UnmarshalJSON([]byte("\"" + tc.in + "\"")) + + if tc.errors { + assert.Error(t, err) + } else { + assert.NoError(t, err) + } + } +} diff --git a/cmd/utils/types/cli.go b/cmd/utils/types/cli.go new file mode 100644 index 0000000..983ab06 --- /dev/null +++ b/cmd/utils/types/cli.go @@ -0,0 +1,9 @@ +package types + +// The for CLI options +const ( + PATH string = "" + REPO string = "" + BRANCH string = "" + STRING string = "" +) diff --git a/cmd/utils/types/color.go b/cmd/utils/types/color.go new file mode 100644 index 0000000..0d2d0f9 --- /dev/null +++ b/cmd/utils/types/color.go @@ -0,0 +1,27 @@ +package types + +import ( + "fmt" + "regexp" + + "github.com/goccy/go-json" +) + +type HexColor string + +var hexColorRegex = regexp.MustCompile(`^#(?:[0-9a-fA-F]{3}){1,2}$`) + +func (c *HexColor) UnmarshalJSON(data []byte) error { + var color string + + if err := json.Unmarshal(data, &color); err != nil { + return err + } + + if !hexColorRegex.MatchString(string(color)) { + return fmt.Errorf("invalid hex color: %s", color) + } + + *c = HexColor(color) + return nil +} diff --git a/cmd/utils/types/color_test.go b/cmd/utils/types/color_test.go new file mode 100644 index 0000000..f4bc01e --- /dev/null +++ b/cmd/utils/types/color_test.go @@ -0,0 +1,38 @@ +package types_test + +import ( + "testing" + + "github.com/caffeine-addictt/waku/cmd/utils/types" + "github.com/stretchr/testify/assert" +) + +func TestHexColors(t *testing.T) { + tt := []struct { + in string + rule string + errors bool + }{ + {"#d", "hex too short", true}, + {"#ddd", "hex valid", false}, + {"#ffffff", "hex valid", false}, + {"#fff", "hex valid", false}, + {"#fffaaas", "hex too long", true}, + {"#ff", "hex too short", true}, + {"#ae24d2", "hex valid", false}, + {"sdwa2fw", "invalid letters", true}, + } + + for _, tc := range tt { + t.Run(tc.in, func(t *testing.T) { + c := types.HexColor(tc.in) + + err := c.UnmarshalJSON([]byte("\"" + tc.in + "\"")) + if tc.errors { + assert.Error(t, err, tc.rule) + } else { + assert.NoError(t, err, tc.rule) + } + }) + } +} diff --git a/cmd/utils/types/set.go b/cmd/utils/types/set.go new file mode 100644 index 0000000..9835189 --- /dev/null +++ b/cmd/utils/types/set.go @@ -0,0 +1,112 @@ +package types + +import "github.com/goccy/go-json" + +// A set implementation using map under the hood. +type Set[T comparable] map[T]struct{} + +// NewSet creates a new set from a list of items +func NewSet[T comparable](items ...T) Set[T] { + s := make(Set[T], len(items)) + for _, item := range items { + s.Add(item) + } + return s +} + +// Add an item to the set +func (s *Set[T]) Add(item T) { + (*s)[item] = struct{}{} +} + +// Remove an item from the set +func (s *Set[T]) Remove(item T) { + delete(*s, item) +} + +// Contains checks if an item is in the set +func (s *Set[T]) Contains(item T) bool { + _, ok := (*s)[item] + return ok +} + +// Copy returns a new set containing all items in the set +func (s *Set[T]) Copy() Set[T] { + n := make(Set[T], len(*s)) + for k := range *s { + n[k] = struct{}{} + } + return n +} + +// Count returns the number of items in the set +func (s *Set[T]) Len() int { + return len(*s) +} + +// ToSlice returns a slice of items in the set +func (s *Set[T]) ToSlice() []T { + result := make([]T, 0, s.Len()) + for item := range *s { + result = append(result, item) + } + return result +} + +// Union returns a new set containing all items in both sets +func (s *Set[T]) Union(s2 Set[T]) Set[T] { + s3 := NewSet[T]() + for item := range *s { + s3.Add(item) + } + for item := range s2 { + s3.Add(item) + } + return s3 +} + +// Intersect returns a new set containing items in both sets +func (s *Set[T]) Intersect(s2 Set[T]) Set[T] { + s3 := NewSet[T]() + + // Iterate over the smaller set + small := (*s) + big := s2 + if s2.Len() < s.Len() { + small = s2 + big = (*s) + } + + for item := range small { + if big.Contains(item) { + s3.Add(item) + } + } + return s3 +} + +// Exclude returns a new set containing items in the first set but not in the second +func (s *Set[T]) Exclude(s2 Set[T]) Set[T] { + s3 := NewSet[T]() + for item := range *s { + if !s2.Contains(item) { + s3.Add(item) + } + } + return s3 +} + +// UnmarshalJSON unmarshals a JSON array into a set +func (s *Set[T]) UnmarshalJSON(data []byte) error { + var items []T + if err := json.Unmarshal(data, &items); err != nil { + return err + } + *s = NewSet(items...) + return nil +} + +// MarshalJSON marshals a set into a JSON array +func (s Set[T]) MarshalJSON() ([]byte, error) { + return json.Marshal(s.ToSlice()) +} diff --git a/cmd/utils/types/set_test.go b/cmd/utils/types/set_test.go new file mode 100644 index 0000000..7cb6da9 --- /dev/null +++ b/cmd/utils/types/set_test.go @@ -0,0 +1,85 @@ +package types_test + +import ( + "strings" + "testing" + + "github.com/caffeine-addictt/waku/cmd/utils/types" + "github.com/goccy/go-json" + "github.com/stretchr/testify/assert" +) + +func TestSetNewSet(t *testing.T) { + set := types.NewSet(1, 2, 3) + assert.Equal(t, 3, set.Len(), "expected length 3") + assert.True(t, set.Contains(1), "expected set to contain 1") + assert.True(t, set.Contains(2), "expected set to contain 2") + assert.True(t, set.Contains(3), "expected set to contain 3") +} + +func TestSetAdd(t *testing.T) { + set := types.NewSet(1, 2, 3) + set.Add(4) + assert.Equal(t, 4, set.Len(), "expected length 4 after add") + assert.True(t, set.Contains(4), "expected set to contain 4 after add") +} + +func TestSetRemove(t *testing.T) { + set := types.NewSet(1, 2, 3) + set.Remove(2) + assert.Equal(t, 2, set.Len(), "expected length 2 after remove") + assert.False(t, set.Contains(2), "expected set not to contain 2 after remove") +} + +func TestSetUnion(t *testing.T) { + set := types.NewSet(1, 2, 3) + otherSet := types.NewSet(3, 4, 5) + unionSet := set.Union(otherSet) + assert.Equal(t, 5, unionSet.Len(), "expected length 5 in union set") + assert.True(t, unionSet.Contains(1), "expected union set to contain 1") + assert.True(t, unionSet.Contains(2), "expected union set to contain 2") + assert.True(t, unionSet.Contains(3), "expected union set to contain 3") + assert.True(t, unionSet.Contains(4), "expected union set to contain 4") + assert.True(t, unionSet.Contains(5), "expected union set to contain 5") +} + +func TestSetIntersect(t *testing.T) { + set := types.NewSet(1, 2, 3) + otherSet := types.NewSet(2, 3, 4) + intersectSet := set.Intersect(otherSet) + assert.Equal(t, 2, intersectSet.Len(), "expected length 2 in intersect set") + assert.True(t, intersectSet.Contains(2), "expected intersect set to contain 2") + assert.True(t, intersectSet.Contains(3), "expected intersect set to contain 3") +} + +func TestSetExclude(t *testing.T) { + set := types.NewSet(1, 2, 3) + otherSet := types.NewSet(2, 3) + excludeSet := set.Exclude(otherSet) + assert.Equal(t, 1, excludeSet.Len(), "expected length 1 in exclude set") + assert.True(t, excludeSet.Contains(1), "expected exclude set to contain 1") +} + +func TestSetToSlice(t *testing.T) { + set := types.NewSet(1, 2, 3) + assert.ElementsMatch(t, []int{1, 2, 3}, set.ToSlice(), "expected slice to match") +} + +func TestSetMarshalJSON(t *testing.T) { + set := types.NewSet(1, 2, 3) + data, err := json.Marshal(set) + assert.NoError(t, err, "unexpected error during Marshal") + + assert.ElementsMatch(t, []string{"1", "2", "3"}, strings.Split(strings.TrimSuffix(strings.TrimPrefix(string(data), "["), "]"), ","), "expected JSON output to match") +} + +func TestSetUnmarshalJSON(t *testing.T) { + var newSet types.Set[int] + data := []byte(`[1,2,3]`) + err := json.Unmarshal(data, &newSet) + assert.NoError(t, err, "unexpected error during Unmarshal") + assert.Equal(t, 3, newSet.Len(), "expected length 3 after unmarshal") + assert.True(t, newSet.Contains(1), "expected set to contain 1 after unmarshal") + assert.True(t, newSet.Contains(2), "expected set to contain 2 after unmarshal") + assert.True(t, newSet.Contains(3), "expected set to contain 3 after unmarshal") +} diff --git a/cmd/utils/types/value_guard.go b/cmd/utils/types/value_guard.go new file mode 100644 index 0000000..e36938e --- /dev/null +++ b/cmd/utils/types/value_guard.go @@ -0,0 +1,95 @@ +package types + +import ( + "errors" + "fmt" + + "github.com/goccy/go-json" +) + +// A value guard to validate values being set +type ValueGuard[T any] struct { + // The value + value T + // The validation and mutation function + parseValue func(v T) (T, error) + // The human readable string type + typeString string +} + +// Creating a new value guard with value parsing +func TryNewValueGuard[T any](value T, parseValue func(v T) (T, error), typeString string) (*ValueGuard[T], error) { + v := ValueGuard[T]{ + parseValue: parseValue, + typeString: typeString, + } + + if err := v.Set(value); err != nil { + return nil, err + } + return &v, nil +} + +// Creating a new value guard without validating value +func NewValueGuard[T any](value T, parseValue func(v T) (T, error), typeString string) *ValueGuard[T] { + return &ValueGuard[T]{ + value: value, + typeString: typeString, + parseValue: parseValue, + } +} + +// Creating a new value guard without value parsing +func NewValueGuardNoParsing[T any](value T, typeString string) *ValueGuard[T] { + return &ValueGuard[T]{ + value: value, + typeString: typeString, + } +} + +// Access the underlying value +func (v *ValueGuard[T]) Value() T { + return v.value +} + +// Mutate the underlying value +func (v *ValueGuard[T]) Set(value T) error { + if v.parseValue != nil { + value, err := v.parseValue(value) + if err != nil { + return errors.Join(fmt.Errorf("cannot set value %v", value), err) + } + + v.value = value + return nil + } + + v.value = value + return nil +} + +// Access the human readable string type +func (v *ValueGuard[T]) Type() string { + return v.typeString +} + +// Return the string representation +func (v *ValueGuard[T]) String() string { + return fmt.Sprintf("%v", v.value) +} + +func (v *ValueGuard[T]) UnmarshalJSON(data []byte) error { + var tmp T + if err := json.Unmarshal(data, &tmp); err != nil { + return err + } + + if err := v.Set(tmp); err != nil { + return err + } + return nil +} + +func (v ValueGuard[T]) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} diff --git a/cmd/utils/types/value_guard_test.go b/cmd/utils/types/value_guard_test.go new file mode 100644 index 0000000..a0e74d8 --- /dev/null +++ b/cmd/utils/types/value_guard_test.go @@ -0,0 +1,74 @@ +package types_test + +import ( + "fmt" + "testing" + + "github.com/caffeine-addictt/waku/cmd/utils/types" + "github.com/goccy/go-json" + "github.com/stretchr/testify/assert" +) + +func TestNoParsing(t *testing.T) { + val := "test" + typeString := "my type" + + v := types.NewValueGuardNoParsing(val, typeString) + checkValues(t, val, typeString, v) + + err := v.Set("new value") + assert.NoError(t, err, v.String(), "failed to set value") +} + +func TestParsing(t *testing.T) { + val := "test fail" + typeString := "my type" + + v := types.NewValueGuard(val, func(s string) (string, error) { + if s == "test fail" { + return "", fmt.Errorf("failed to parse") + } + return s, nil + }, typeString) + checkValues(t, val, typeString, v) + + // Only error when setting + err := v.Set(val) + assert.Error(t, err, "expected error") +} + +func TestParsingJsonUnMarshal(t *testing.T) { + var tmp types.ValueGuard[string] + err := json.Unmarshal([]byte(`"test"`), &tmp) + assert.NoError(t, err, "failed to unmarshal") + checkValues(t, "test", "", &tmp) +} + +func TestParsingJsonMarshal(t *testing.T) { + tmp := types.NewValueGuardNoParsing("hi", "ok") + data, err := json.Marshal(tmp) + assert.NoError(t, err, "failed to marshal") + assert.Equal(t, `"hi"`, string(data), "value should match") +} + +func TestParsingFailEarly(t *testing.T) { + val := "test fail" + typeString := "my type" + + _, err := types.TryNewValueGuard(val, func(s string) (string, error) { + if s == "test fail" { + return "", fmt.Errorf("failed to parse") + } + return s, nil + }, typeString) + + if err == nil { + t.Fatal("expected error, got nil") + } +} + +func checkValues(t *testing.T, val, typeString string, vg *types.ValueGuard[string]) { + assert.Equal(t, val, vg.Value(), "value Value() should match") + assert.Equal(t, val, vg.String(), "value String() should match") + assert.Equal(t, typeString, vg.Type(), "value Type() should match") +} diff --git a/dist/io-util.js b/dist/io-util.js deleted file mode 100644 index 0e3b6af..0000000 --- a/dist/io-util.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.replaceInFile = exports.withTempDir = void 0; -const fs_1 = __importDefault(require("fs")); -const withTempDir = (prefix, func, autoCleanup = true) => { - const dirPath = fs_1.default.mkdtempSync(prefix); - const cleanup = () => fs_1.default.rmSync(dirPath, { recursive: true, force: true }); - return { - path: dirPath, - cleanup: cleanup, - func: () => { - const returnVal = func(dirPath); - if (autoCleanup) - cleanup(); - return returnVal; - }, - }; -}; -exports.withTempDir = withTempDir; -/** Replace string in file buffer */ -const replaceInFile = (filePath, _tempDir, data) => new Promise((resolve) => { - // Revert to legacy - let fileContent = fs_1.default.readFileSync(filePath, 'utf8'); - fileContent = fileContent - .replace(/{{REPOSITORY}}/g, `${data.username}/${data.repository}`) - .replace(/{{PROJECT_NAME}}/g, data.proj_name) - .replace(/{{PROJECT_SHORT_DESCRIPTION}}/g, data.proj_short_desc) - .replace(/{{PROJECT_LONG_DESCRIPTION}}/g, data.proj_long_desc) - .replace(/{{DOCS_URL}}/g, data.docs_url) - .replace(/{{EMAIL}}/g, data.email) - .replace(/{{USERNAME}}/g, data.username) - .replace(/{{NAME}}/g, data.name) - .replace(/{{ASSIGNEES}}/g, data.assignees); - resolve(fs_1.default.writeFileSync(filePath, fileContent)); - return; - // There was an attempt at buffering R/W - // const outputPath = path.join(tempDir, path.basename(filePath)); - // fs.writeFileSync(outputPath, ''); - // - // const inStream = fs.createReadStream(filePath); - // const outStream = new stream.Writable(); - // - // readline - // .createInterface({ - // input: inStream, - // output: outStream, - // terminal: false, - // }) - // .on('line', (line) => { - // fs.appendFileSync( - // outputPath, - // line - // .replace(/{{REPOSITORY}}/g, `${data.username}/${data.repository}`) - // .replace(/{{PROJECT_NAME}}/g, data.proj_name) - // .replace(/{{PROJECT_SHORT_DESCRIPTION}}/g, data.proj_short_desc) - // .replace(/{{PROJECT_LONG_DESCRIPTION}}/g, data.proj_long_desc) - // .replace(/{{DOCS_URL}}/g, data.docs_url) - // .replace(/{{EMAIL}}/g, data.email) - // .replace(/{{USERNAME}}/g, data.username) - // .replace(/{{NAME}}/g, data.name) + '\n', - // ); - // }) - // .on('close', () => { - // // Move from temp back to original - // fs.renameSync(outputPath, filePath); - // resolve(); - // }); -}); -exports.replaceInFile = replaceInFile; diff --git a/dist/parser.js b/dist/parser.js deleted file mode 100644 index 3d7e7d8..0000000 --- a/dist/parser.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.extractRepoInfo = void 0; -/** Extract username/org and repo from url */ -const extractRepoInfo = (url) => { - const originUrl = url.trim(); - const match = /^https:\/\/github\.com\/([^/]+)\/([^/]+?)(?:\.git)?$/.exec(originUrl); - if (!match || !match[1] || !match[2]) - throw new AggregateError(`Could not extract user and repo from git remote: ${originUrl}`); - return { - url: originUrl, - org: match[1], - repo: match[2], - }; -}; -exports.extractRepoInfo = extractRepoInfo; diff --git a/dist/resolver.js b/dist/resolver.js deleted file mode 100644 index 80db13b..0000000 --- a/dist/resolver.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -/** - * This file will hold the configuration options to make the setup script not so annoying - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveUserInfo = exports.resolveRepoInfo = void 0; -const parser_1 = require("./parser"); -const term_1 = require("./term"); -const resolveRepoInfo = () => (0, term_1.execute)('git', ['remote', 'get-url', 'origin']) - .then((_originUrl) => (0, parser_1.extractRepoInfo)(_originUrl.toString())) - .catch(() => ({})); -exports.resolveRepoInfo = resolveRepoInfo; -const resolveUserInfo = async () => { - const promises = await Promise.all([ - (0, term_1.execute)('git', ['config', '--global', 'user.name']) - .then((r) => r.toString().trim()) - .catch(() => undefined), - (0, term_1.execute)('git', ['config', '--global', 'user.email']) - .then((r) => r.toString().trim()) - .catch(() => undefined), - ]); - return { - name: promises[0], - email: promises[1], - }; -}; -exports.resolveUserInfo = resolveUserInfo; -const resolveGitInfo = async () => { - const promises = await Promise.all([(0, exports.resolveRepoInfo)(), (0, exports.resolveUserInfo)()]); - return { - ...promises[0], - ...promises[1], - }; -}; -exports.default = resolveGitInfo; diff --git a/dist/setup.js b/dist/setup.js deleted file mode 100644 index 17f11fe..0000000 --- a/dist/setup.js +++ /dev/null @@ -1,172 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const fs_1 = __importDefault(require("fs")); -const path_1 = __importDefault(require("path")); -const readline_1 = __importDefault(require("readline")); -const io_util_1 = require("./io-util"); -const resolver_1 = __importDefault(require("./resolver")); -/** - * For interacting with stdin/stdout - */ -const rl = readline_1.default.createInterface({ - input: process.stdin, - output: process.stdout, -}); -/** Prompt user for input */ -const question = (query, validator = [], trimWhitespace = true) => new Promise((resolve) => rl.question(query, (s) => { - if (trimWhitespace) - s = s.trim(); - validator.forEach((v) => { - if (!v.validate(s)) { - v.onError(); - process.exit(1); - } - }); - resolve(s); -})); -/** Ask for project information */ -const fetchInfo = async (cleanup) => { - const resolved = await (0, resolver_1.default)(); - // Ask user - const name = await question(`Name? (This will go on the LICENSE)${resolved.name ? ` [Resolved: ${resolved.name}]` : ''}\n=> `) - .then((val) => val.trim()) - .then((val) => (val.length ? val : resolved.name ?? '')); - const email = await question(`Email?${resolved.email ? ` [Resolved: ${resolved.email}]` : ''}\n=> `, [ - { - validate: (s) => !!resolved.email || /.+@.+\..+/.test(s), - onError: () => console.log('Invalid email!'), - }, - ]) - .then((val) => val.trim()) - .then((val) => (val.length ? val : resolved.email ?? '')); - const username = await question(`Username? (https://github.com/)${resolved.org ? ` [Resolved: ${resolved.org}]` : ''}\n=> `) - .then((val) => val.trim()) - .then((val) => (val.length ? val : resolved.org ?? '')); - const repository = await question(`Repository? (https://github.com/${username}/)${resolved.repo ? ` [Resolved: ${resolved.repo}]` : ''}\n=> `) - .then((val) => val.trim()) - .then((val) => (val.length ? val : resolved.repo ?? '')); - const proj_name = await question('Project name?\n=> '); - const proj_short_desc = await question('Short description?\n=> '); - const proj_long_desc = await question('Long description?\n=> '); - const docs_url = await question('Documentation URL?\n=> '); - const assignees = Array.from(new Set([ - ...(await question('Additional issue assignees? (Usernames comma separated)\n=> ')).split(','), - // Add CODEOWNERS - username, - ] - .map((s) => s.trim()) - .filter((s) => s.length > 0))).join(`', '`); - console.log('\n\n===== Log ====='); - console.log('Name:', name); - console.log('Email:', email); - console.log('Username:', username); - console.log('Repository:', repository); - console.log('Project name:', proj_name); - console.log('Project short description:', proj_short_desc); - console.log('Project long description:', proj_long_desc); - console.log('Docs URL:', docs_url); - console.log('Issue assignees:', `['${assignees}']`); - console.log('================'); - // Guard clause for confirmation - if ((await question('Confirm? (y/n)\n=> ')).toLowerCase() !== 'y') { - console.log('Aborted.'); - cleanup(); - process.exit(1); - } - return { - name: name, - email: email, - username: username, - repository: repository, - proj_name: proj_name, - proj_short_desc: proj_short_desc, - proj_long_desc: proj_long_desc, - docs_url: docs_url, - assignees: assignees, - }; -}; -/** - * The main logic - */ -const { func: main } = (0, io_util_1.withTempDir)('caffeine-addictt-template-', async (tempDir) => { - const data = await fetchInfo(() => rl.close()); - /// ######################################## // - // Stage 1: Update file content in template/ // - // ######################################### // - console.log('\nWriting files...'); - const filesToUpdate = fs_1.default.readdirSync('./template', { - recursive: true, - }); - // Use async - await Promise.all(filesToUpdate.map((filename) => (async () => { - const filePath = path_1.default.join('./template', filename); - const fileInfo = fs_1.default.statSync(filePath); - if (fileInfo.isDirectory()) { - return; - } - await (0, io_util_1.replaceInFile)(filePath, tempDir, data); - })())); - // Write CODEOWNERS - fs_1.default.appendFileSync('./template/.github/CODEOWNERS', `* @${data.username}`); - // ########################################## // - // Stage 2: Move files from template/ to root // - // ########################################## // - console.log('Moving files...'); - // Delete .github/ directory - fs_1.default.rmSync('./.github', { recursive: true, force: true }); - const filesToMove = fs_1.default.readdirSync('./template', { - recursive: true, - }); - filesToMove.forEach((file) => { - const filePath = path_1.default.join('./template', file); - const fileInfo = fs_1.default.statSync(filePath); - if (fileInfo.isDirectory()) { - fs_1.default.mkdirSync(`${file}`); - return; - } - fs_1.default.renameSync(filePath, `./${file}`); - }); - fs_1.default.rmSync('./template', { recursive: true, force: true }); - // ################# // - // Stage 3: Clean up // - // ################# // - // Only add `force: true` for files or directories that - // will only exist if some development task was carried out - // like eslintcache - console.log('Cleaning up...'); - // Js - fs_1.default.unlinkSync('package.json'); - fs_1.default.unlinkSync('package-lock.json'); - // Ts - fs_1.default.unlinkSync('tsconfig.json'); - fs_1.default.rmSync('src', { recursive: true }); - // Tests - fs_1.default.unlinkSync('babel.config.cjs'); - fs_1.default.rmSync('tests', { recursive: true }); - // Linting - fs_1.default.unlinkSync('.eslintignore'); - fs_1.default.unlinkSync('.prettierignore'); - fs_1.default.unlinkSync('eslint.config.mjs'); - fs_1.default.rmSync('.eslintcache', { force: true }); - // Syncing - fs_1.default.unlinkSync('.templatesyncignore'); - // Git - fs_1.default.unlinkSync('.gitignore'); - // Node - fs_1.default.rmSync('node_modules', { recursive: true, force: true }); - // Clean up dist - fs_1.default.unlinkSync(__filename); - fs_1.default.rmSync('dist', { recursive: true }); - // Assets - fs_1.default.rmSync('assets', { recursive: true }); - // Generate src and test - fs_1.default.mkdirSync('src'); - fs_1.default.mkdirSync('tests'); - // Final stdout - console.log('\nDone!\nIf you encounter any issues, please report it here: https://github.com/caffeine-addictt/template/issues/new?assignees=caffeine-addictt&labels=Type%3A+Bug&projects=&template=1-bug-report.md&title=[Bug]+'); - rl.close(); -}); -main(); diff --git a/dist/term.js b/dist/term.js deleted file mode 100644 index 29ff8f2..0000000 --- a/dist/term.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.execute = void 0; -const child_process_1 = require("child_process"); -const execute = (command, args, spawnOptions) => new Promise((resolve, reject) => { - const cmd = (0, child_process_1.spawn)(command, args, spawnOptions); - cmd.stdout.on('data', resolve); - cmd.stderr.on('data', reject); -}); -exports.execute = execute; diff --git a/dist/types.js b/dist/types.js deleted file mode 100644 index f02ecb8..0000000 --- a/dist/types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -// Place some shared types here -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/install.md b/docs/install.md new file mode 100644 index 0000000..3d05793 --- /dev/null +++ b/docs/install.md @@ -0,0 +1,101 @@ +# Installation + +Here you will find all the ways you can install `Waku` on your system. + + + + +- [Installation](#installation) + - [AUR](#aur) + - [Golang](#golang) + - [Download](#download) + - [Homebrew](#homebrew) + - [Choco](#choco) + - [Docker](#docker) + - [Our images are hosted on Docker Hub and GitHub](#our-images-are-hosted-on-docker-hub-and-github) + - [Scripts](#scripts) + - [Linux/MacOS](#linuxmacos) + - [Windows](#windows) + + + + +## AUR + +```sh +# Or with your preferred AUR helper +yay -S waku +``` + +## Golang + +```sh +go install github.com/caffeine-addictt/waku@latest +``` + +## Download + +You can also download `Waku` from our +[GitHub release page](https://github.com/caffeine-addictt/waku/releases/latest). + +## Homebrew + +You can find the homebrew formula +[here](https://github.com/caffeine-addictt/homebrew-tap). + +```sh +brew tap caffeine-addictt/tap +brew install caffeine-addictt/tap/waku +``` + +## Choco + +```ps1 +choco install waku +``` + +## Docker + +You will need Docker to run `Waku` this way. +You can verify you have Docker installed using the command `docker --version`, +otherwise, you can install Docker from their [docs](https://docs.docker.com/get-started/get-docker/). + +### Our images are hosted on Docker Hub and GitHub + +> [!NOTE] +> At present, out images do not yet support using +> your system's Git, and thus will only be able to +> access publicly available repositories. +> +> Want to help us out? +> Check out our [Contributing Guide](https://github.com/caffeine-addictt/waku/blob/main/CONTRIBUTING.md). + +You will need to mount your current directory to `/app` in the Docker container +for `Waku` to run correctly. + +```sh +docker run -v $PWD:/app caffeine/waku:latest +docker run -v $PWD:/app ghcr.io/caffeine-addictt/waku:latest +``` + +### Scripts + +We also provide a set of one-liners to run the `Waku` CLI from docker. + +#### Linux/MacOS + +```sh +curl -sSL https://github.com/caffeine-addictt/waku/releases/latest/download/waku.sh | bash + +# If you prefer to use Waku from GitHub +curl -sSL https://github.com/caffeine-addictt/waku/releases/latest/download/waku.sh | bash -s ghcr +``` + +#### Windows + +```ps1 +iwr -useb https://github.com/caffeine-addictt/waku/releases/latest/download/waku.ps1 | iex + +# If you prefer to use Waku from GitHub +iwr -useb https://github.com/caffeine-addictt/waku/releases/latest/download/waku.ps1 | iex; Run-Waku "ghcr" +``` diff --git a/docs/templating.md b/docs/templating.md new file mode 100644 index 0000000..daf39e9 --- /dev/null +++ b/docs/templating.md @@ -0,0 +1,213 @@ +# Templating + +Templating is done through the `template.json` file. +You can have it in your root or sub directory of your +repository. + +Do note that having it in a sub directory +will require the `-d|--directory` flag to be set. + + + + +- [Templating](#templating) + - [Quick start](#quick-start) + - [Creating a template](#creating-a-template) + - [Checking a template](#checking-a-template) + - [Structure](#structure) + - [Simple setup](#simple-setup) + - [Multi style setup](#multi-style-setup) + - [Fields](#fields) + - [Setup](#setup) + - [Ignore](#ignore) + - [Labels](#labels) + - [Prompts](#prompts) + - [Styles](#styles) + - [Values](#values) + + + + +## Quick start + +### Creating a template + +> [!NOTE] +> This is not supported yet. + +You can generate a style template by running `waku new template`. + +### Checking a template + +You can check if a template is valid by running `waku check`. + +## Structure + +The `template.json` can be structured in 2 ways; +i.e. `name` and `styles` is mutually exclusive. + +### Simple setup + +Here, `name` is set instead of `styles`. + +```json +{ + "$schema": "https://raw.githubusercontent.com/caffeine-addictt/waku/main/schema.json", + "name": "template name", + "setup": { + "linux": "path/to/file.sh", + "windows": "path/to/file.bat" + }, + "ignore": [ + "path/to/file", + "path/to/dir", + "path/to/files/*", + "!path/to/files/not/to/ignore" + ], + "labels": { + "my feature": "my color" + }, + "prompts": { + "my templated": "Text to prompt user with" + } +} +``` + +### Multi style setup + +The properties from `"root"` will also be applied +to each style, with each style taking higher priority. + +```json +{ + "$schema": "https://raw.githubusercontent.com/caffeine-addictt/waku/main/schema.json", + "setup": { + "linux": "path/to/file.sh", + "windows": "path/to/file.bat" + }, + "ignore": [ + "path/to/file", + "path/to/dir", + "path/to/files/*", + "!path/to/files/not/to/ignore" + ], + "labels": { + "my feature": "my color" + }, + "prompts": { + "my templated": "Text to prompt user with" + }, + "styles": { + "my style name": { + "source": "path/to/style/dir", + "setup": { + "linux": "path/to/file.sh", + "windows": "path/to/file.bat" + }, + "ignore": [ + "path/to/file", + "path/to/dir", + "path/to/files/*", + "!path/to/files/not/to/ignore" + ], + "labels": { + "my feature": "my color" + }, + "prompts": { + "my templated": "Text to prompt user with" + } + } + } +} +``` + +## Fields + +### Setup + +> [!NOTE] +> Setup is not supported yet. + +`Setup` is a `map` of `name` to `path`. +These executables will be optionally ran +after the template has been generated. + +- `Setup.name` can be `linux`, `windows`, `darwin` or `*`. + `*` is used when the user Os is unknown. +- `Setup.path` is the template-relative path to the executable. + +### Ignore + +`Ignore` is an array of path globs you do not want templated. +We only support the `*` and `!` special characters. + +- `*` is glob for everything +- `path/to/file` is a single file +- `path/to/f*` is a glob for a file +- `path/to/dir/*` is a single dir level glob +- `path/to/dir/**` == `path/to/dir/` is a recursive dir level glob +- `!path/to/file` is a negated ignore + +### Labels + +> [!NOTE] +> Labels are not supported yet. + +Labels are a `map` of `name` to `color`. +Color has to be a hex color code. + +```text +Regex +^#(?:[0-9a-fA-F]{3}){1,2}$ +``` + +### Prompts + +Prompts are a `map` of `name` to `prompt`. + +Name represent the templated value for you files. +I.e. `code` with user responding with `Go` will cause a +templated file `{{CODE}} is cool` -> `Go is cool`. + +Prompts are what users are asked with. + +### Styles + +Styles is a `map` of `name` to `style`. + +```json +{ + ..., + "styles": { + "My favorite": { + "source": "style-a", + ... + }, + "My friend's": { + "source": "style-b", + ... + }, + ... + } +} +``` + +- **`my-templates/`** + - **`template.json`** + - **`style-a/`** + - `file1` + - `file2` + - `...` + - **`style-b/`** + - `file1` + - `file2` + - `...` + - `...` + +#### Values + +- `style.source` is the path to the style directory to use. +- [`style.setup`](#setup) +- [`style.ignore`](#ignore) +- [`style.labels`](#labels) +- [`style.prompts`](#prompts) diff --git a/eslint.config.mjs b/eslint.config.mjs deleted file mode 100644 index 0ddb844..0000000 --- a/eslint.config.mjs +++ /dev/null @@ -1,15 +0,0 @@ -// @ts-check - -import pkg from '@eslint/js'; -const { configs } = pkg; -import { configs as _configs } from 'typescript-eslint'; -import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; - -export default [ - { - ignores: ['dist/*', 'babel.config.cjs'], - }, - configs.recommended, - ..._configs.recommended, - eslintPluginPrettierRecommended, -]; diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..790e0c8 --- /dev/null +++ b/go.mod @@ -0,0 +1,41 @@ +module github.com/caffeine-addictt/waku + +go 1.23.0 + +require ( + github.com/charmbracelet/huh v0.5.3 + github.com/goccy/go-json v0.10.3 + github.com/spf13/cobra v1.8.1 + github.com/stretchr/testify v1.9.0 +) + +require ( + github.com/atotto/clipboard v0.1.4 // indirect + github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect + github.com/catppuccin/go v0.2.0 // indirect + github.com/charmbracelet/bubbles v0.19.0 // indirect + github.com/charmbracelet/bubbletea v1.1.0 // indirect + github.com/charmbracelet/lipgloss v0.13.0 // indirect + github.com/charmbracelet/x/ansi v0.2.3 // indirect + github.com/charmbracelet/x/exp/strings v0.0.0-20240829200707-9a7bd603a0d7 // indirect + github.com/charmbracelet/x/term v0.2.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/dustin/go-humanize v1.0.1 // indirect + github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/lucasb-eyer/go-colorful v1.2.0 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect + github.com/mattn/go-localereader v0.0.1 // indirect + github.com/mattn/go-runewidth v0.0.16 // indirect + github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect + github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect + github.com/muesli/cancelreader v0.2.2 // indirect + github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/rivo/uniseg v0.4.7 // indirect + github.com/spf13/pflag v1.0.5 // indirect + golang.org/x/sync v0.8.0 // indirect + golang.org/x/sys v0.25.0 // indirect + golang.org/x/text v0.18.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..f492d7f --- /dev/null +++ b/go.sum @@ -0,0 +1,73 @@ +github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ4pzQ= +github.com/MakeNowJust/heredoc v1.0.0/go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6lCpQ4fNJ8LE= +github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4= +github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI= +github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k= +github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8= +github.com/catppuccin/go v0.2.0 h1:ktBeIrIP42b/8FGiScP9sgrWOss3lw0Z5SktRoithGA= +github.com/catppuccin/go v0.2.0/go.mod h1:8IHJuMGaUUjQM82qBrGNBv7LFq6JI3NnQCF6MOlZjpc= +github.com/charmbracelet/bubbles v0.19.0 h1:gKZkKXPP6GlDk6EcfujDK19PCQqRjaJZQ7QRERx1UF0= +github.com/charmbracelet/bubbles v0.19.0/go.mod h1:WILteEqZ+krG5c3ntGEMeG99nCupcuIk7V0/zOP0tOA= +github.com/charmbracelet/bubbletea v1.1.0 h1:FjAl9eAL3HBCHenhz/ZPjkKdScmaS5SK69JAK2YJK9c= +github.com/charmbracelet/bubbletea v1.1.0/go.mod h1:9Ogk0HrdbHolIKHdjfFpyXJmiCzGwy+FesYkZr7hYU4= +github.com/charmbracelet/huh v0.5.3 h1:3KLP4a/K1/S4dq4xFMTNMt3XWhgMl/yx8NYtygQ0bmg= +github.com/charmbracelet/huh v0.5.3/go.mod h1:OZC3lshuF+/y8laj//DoZdFSHxC51OrtXLJI8xWVouQ= +github.com/charmbracelet/lipgloss v0.13.0 h1:4X3PPeoWEDCMvzDvGmTajSyYPcZM4+y8sCA/SsA3cjw= +github.com/charmbracelet/lipgloss v0.13.0/go.mod h1:nw4zy0SBX/F/eAO1cWdcvy6qnkDUxr8Lw7dvFrAIbbY= +github.com/charmbracelet/x/ansi v0.2.3 h1:VfFN0NUpcjBRd4DnKfRaIRo53KRgey/nhOoEqosGDEY= +github.com/charmbracelet/x/ansi v0.2.3/go.mod h1:dk73KoMTT5AX5BsX0KrqhsTqAnhZZoCBjs7dGWp4Ktw= +github.com/charmbracelet/x/exp/strings v0.0.0-20240829200707-9a7bd603a0d7 h1:RR1K9DtDLQoaggzyc2rD+F4oKJhF82NjilTcqpabeho= +github.com/charmbracelet/x/exp/strings v0.0.0-20240829200707-9a7bd603a0d7/go.mod h1:pBhA0ybfXv6hDjQUZ7hk1lVxBiUbupdw5R31yPUViVQ= +github.com/charmbracelet/x/term v0.2.0 h1:cNB9Ot9q8I711MyZ7myUR5HFWL/lc3OpU8jZ4hwm0x0= +github.com/charmbracelet/x/term v0.2.0/go.mod h1:GVxgxAbjUrmpvIINHIQnJJKpMlHiZ4cktEQCN6GWyF0= +github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= +github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= +github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6baUTXGLOoWe4PQhGxaX0KpnayAqC48p4= +github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM= +github.com/goccy/go-json v0.10.3 h1:KZ5WoDbxAIgm2HNbYckL0se1fHD6rz5j4ywS6ebzDqA= +github.com/goccy/go-json v0.10.3/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY= +github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4= +github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88= +github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc= +github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= +github.com/mitchellh/hashstructure/v2 v2.0.2 h1:vGKWl0YJqUNxE8d+h8f6NJLcCJrgbhC4NcD46KavDd4= +github.com/mitchellh/hashstructure/v2 v2.0.2/go.mod h1:MG3aRVU/N29oo/V/IhBX8GR/zz4kQkprJgF2EVszyDE= +github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 h1:ZK8zHtRHOkbHy6Mmr5D264iyp3TiX5OmNcI5cIARiQI= +github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6/go.mod h1:CJlz5H+gyd6CUWT45Oy4q24RdLyn7Md9Vj2/ldJBSIo= +github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA= +github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo= +github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a h1:2MaM6YC3mGu54x+RKAA6JiFFHlHDY1UbkxqppT7wYOg= +github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a/go.mod h1:hxSnBBYLK21Vtq/PHd0S2FYCxBXzBua8ov5s1RobyRQ= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= +github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= +github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= +github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= +github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= +golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= +golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= +golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/main.go b/main.go new file mode 100644 index 0000000..678cc1f --- /dev/null +++ b/main.go @@ -0,0 +1,9 @@ +package main + +import ( + "github.com/caffeine-addictt/waku/cmd" +) + +func main() { + cmd.Execute() +} diff --git a/package-lock.json b/package-lock.json index a5b5caa..da29a63 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6543 +1,26 @@ { - "name": "repository_template", + "name": "template", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "repository_template", "devDependencies": { - "@babel/core": "^7.24.4", - "@babel/preset-env": "^7.24.4", - "@babel/preset-typescript": "^7.24.1", - "@eslint/js": "^9.1.1", - "@types/jest": "^29.5.12", - "@types/node": "^20.12.7", - "babel-jest": "^29.7.0", - "eslint": "^8.57.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-prettier": "^5.1.3", - "jest": "^29.7.0", - "prettier": "^3.2.5", - "ts-jest": "^29.1.2", - "typescript": "^5.4.5", - "typescript-eslint": "^7.7.1" + "prettier": "^3.2.5" } }, - "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.24.2", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.2.tgz", - "integrity": "sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.24.2", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.4.tgz", - "integrity": "sha512-vg8Gih2MLK+kOkHJp4gBEIkyaIi00jgWot2D9QOmmfLC8jINSOzmCLta6Bvz/JSBCqnegV0L80jhxkol5GWNfQ==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.4.tgz", - "integrity": "sha512-MBVlMXP+kkl5394RBLSxxk/iLTeVGuXTV3cIDXavPpMMqnSnt6apKgan/U8O3USWZCWZT/TbgfEpKa4uMgN4Dg==", - "dev": true, - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.24.2", - "@babel/generator": "^7.24.4", - "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helpers": "^7.24.4", - "@babel/parser": "^7.24.4", - "@babel/template": "^7.24.0", - "@babel/traverse": "^7.24.1", - "@babel/types": "^7.24.0", - "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.24.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.4.tgz", - "integrity": "sha512-Xd6+v6SnjWVx/nus+y0l1sxMOTOMBkyL4+BIdbALyatQnAe/SRVjANeDPSCYaX+i1iJmuGSKf3Z+E+V/va1Hvw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.24.0", - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz", - "integrity": "sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.15.tgz", - "integrity": "sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", - "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.23.5", - "@babel/helper-validator-option": "^7.23.5", - "browserslist": "^4.22.2", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets/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/@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-compilation-targets/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/@babel/helper-create-class-features-plugin": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.24.4.tgz", - "integrity": "sha512-lG75yeuUSVu0pIcbhiYMXBXANHrpUPaOfu7ryAzskCgKUHuAxRQI5ssrtmF0X9UXldPlvT0XM/A4F44OXRt6iQ==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-member-expression-to-functions": "^7.23.0", - "@babel/helper-optimise-call-expression": "^7.22.5", - "@babel/helper-replace-supers": "^7.24.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin/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-create-regexp-features-plugin": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.15.tgz", - "integrity": "sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "regexpu-core": "^5.3.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-regexp-features-plugin/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-define-polyfill-provider": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.2.tgz", - "integrity": "sha512-LV76g+C502biUK6AyZ3LK10vDpDyCzZnhZFXkH1L75zHPj68+qc8Zfpx2th+gzwA2MzyK+1g/3EPl62yFnVttQ==", - "dev": true, - "dependencies": { - "@babel/helper-compilation-targets": "^7.22.6", - "@babel/helper-plugin-utils": "^7.22.5", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", - "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", - "dev": true, - "dependencies": { - "@babel/template": "^7.22.15", - "@babel/types": "^7.23.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", - "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz", - "integrity": "sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.23.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.24.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.3.tgz", - "integrity": "sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", - "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/helper-validator-identifier": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz", - "integrity": "sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.24.0", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.0.tgz", - "integrity": "sha512-9cUznXMG0+FxRuJfvL82QlTqIzhVW9sL0KjMPHhAOOvpQGL8QtdxnBKILjBqxlHyliz0yCa1G903ZXI/FuHy2w==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.20.tgz", - "integrity": "sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-wrap-function": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-replace-supers": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.24.1.tgz", - "integrity": "sha512-QCR1UqC9BzG5vZl8BMicmZ28RuUBnHhAMddD8yHFHDRH9lLTZ9uUPehX8ctVPT8l0TKblJidqcgUUKGVrePleQ==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-member-expression-to-functions": "^7.23.0", - "@babel/helper-optimise-call-expression": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", - "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz", - "integrity": "sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.22.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", - "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz", - "integrity": "sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", - "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", - "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.22.20.tgz", - "integrity": "sha512-pms/UwkOpnQe/PDAEdV/d7dVCoBbB+R4FvYoHGZz+4VPcg7RtYy2KP7S2lbuWM6FCSgob5wshfGESbC/hzNXZw==", - "dev": true, - "dependencies": { - "@babel/helper-function-name": "^7.22.5", - "@babel/template": "^7.22.15", - "@babel/types": "^7.22.19" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.4.tgz", - "integrity": "sha512-FewdlZbSiwaVGlgT1DPANDuCHaDMiOo+D/IDYRFYjHOuv66xMSJ7fQwwODwRNAPkADIO/z1EoF/l2BCWlWABDw==", - "dev": true, - "dependencies": { - "@babel/template": "^7.24.0", - "@babel/traverse": "^7.24.1", - "@babel/types": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.24.2", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.2.tgz", - "integrity": "sha512-Yac1ao4flkTxTteCDZLEvdxg2fZfz1v8M4QpaGypq/WPDqg3ijHYbDfs+LG5hvzSoqaSZ9/Z9lKSP3CjZjv+pA==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.22.20", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/highlight/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/@babel/highlight/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/parser": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.4.tgz", - "integrity": "sha512-zTvEBcghmeBma9QIGunWevvBAp4/Qu9Bdq+2k0Ot4fVMD6v3dsC9WOcRSKk7tRRyBM/53yKMJko9xOatGQAwSg==", - "dev": true, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.24.4.tgz", - "integrity": "sha512-qpl6vOOEEzTLLcsuqYYo8yDtrTocmu2xkGvgNebvPjT9DTtfFYGmgDqY+rBYXNlqL4s9qLDn6xkrJv4RxAPiTA==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.24.1.tgz", - "integrity": "sha512-y4HqEnkelJIOQGd+3g1bTeKsA5c6qM7eOn7VggGVbBc0y8MLSKHacwcIE2PplNlQSj0PqS9rrXL/nkPVK+kUNg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.24.1.tgz", - "integrity": "sha512-Hj791Ii4ci8HqnaKHAlLNs+zaLXb0EzSDhiAWp5VNlyvCNymYfacs64pxTxbH1znW/NcArSmwpmG9IKE/TUVVQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/plugin-transform-optional-chaining": "^7.24.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.13.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.24.1.tgz", - "integrity": "sha512-m9m/fXsXLiHfwdgydIFnpk+7jlVbnvlK5B2EKiPdLUb6WX654ZaaEWJUjk8TftRbZpK0XibovlLWX4KIZhV6jw==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0-placeholder-for-preset-env.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", - "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", - "dev": true, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.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-dynamic-import": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", - "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-export-namespace-from": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", - "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.24.1.tgz", - "integrity": "sha512-IuwnI5XnuF189t91XbxmXeCDz3qs6iDRO7GJ++wcfgeXNs/8FmIlKcpDSXNVyuLQxlwvskmI3Ct73wUODkJBlQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.24.1.tgz", - "integrity": "sha512-zhQTMH0X2nVLnb04tz+s7AMuasX8U0FnpE+nHTOhSOINjWMnopoZTxtIKsd45n4GQ/HIZLyfIpoul8e2m0DnRA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "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.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.1.tgz", - "integrity": "sha512-2eCtxZXf+kbkMIsXS4poTvT4Yu5rXiRa+9xGVT56raghjmBTKMpFNc9R4IDiB4emao9eO22Ox7CxuJG7BgExqA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "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.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.1.tgz", - "integrity": "sha512-Yhnmvy5HZEnHUty6i++gcfH1/l68AHnItFHnaCv6hn9dNh0hQvvQJsxpi4BMBFN5DLeHBuucT/0DgzXif/OyRw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-unicode-sets-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", - "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.24.1.tgz", - "integrity": "sha512-ngT/3NkRhsaep9ck9uj2Xhv9+xB1zShY3tM3g6om4xxCELwCDN4g4Aq5dRn48+0hasAql7s2hdBOysCfNpr4fw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.24.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.24.3.tgz", - "integrity": "sha512-Qe26CMYVjpQxJ8zxM1340JFNjZaF+ISWpr1Kt/jGo+ZTUzKkfw/pphEWbRCb+lmSM6k/TOgfYLvmbHkUQ0asIg==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/helper-remap-async-to-generator": "^7.22.20", - "@babel/plugin-syntax-async-generators": "^7.8.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.24.1.tgz", - "integrity": "sha512-AawPptitRXp1y0n4ilKcGbRYWfbbzFWz2NqNu7dacYDtFtz0CMjG64b3LQsb3KIgnf4/obcUL78hfaOS7iCUfw==", - "dev": true, - "dependencies": { - "@babel/helper-module-imports": "^7.24.1", - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/helper-remap-async-to-generator": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.24.1.tgz", - "integrity": "sha512-TWWC18OShZutrv9C6mye1xwtam+uNi2bnTOCBUd5sZxyHOiWbU6ztSROofIMrK84uweEZC219POICK/sTYwfgg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.24.4.tgz", - "integrity": "sha512-nIFUZIpGKDf9O9ttyRXpHFpKC+X3Y5mtshZONuEUYBomAKoM4y029Jr+uB1bHGPhNmK8YXHevDtKDOLmtRrp6g==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-properties": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.24.1.tgz", - "integrity": "sha512-OMLCXi0NqvJfORTaPQBwqLXHhb93wkBKZ4aNwMl6WtehO7ar+cmp+89iPEQPqxAnxsOKTaMcs3POz3rKayJ72g==", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.24.1", - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-static-block": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.24.4.tgz", - "integrity": "sha512-B8q7Pz870Hz/q9UgP8InNpY01CSLDSCyqX7zcRuv3FcPl87A2G17lASroHWaCtbdIcbYzOZ7kWmXFKbijMSmFg==", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.24.4", - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/plugin-syntax-class-static-block": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0" - } - }, - "node_modules/@babel/plugin-transform-classes": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.24.1.tgz", - "integrity": "sha512-ZTIe3W7UejJd3/3R4p7ScyyOoafetUShSf4kCqV0O7F/RiHxVj/wRaRnQlrGwflvcehNA8M42HkAiEDYZu2F1Q==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/helper-replace-supers": "^7.24.1", - "@babel/helper-split-export-declaration": "^7.22.6", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-classes/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/@babel/plugin-transform-computed-properties": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.24.1.tgz", - "integrity": "sha512-5pJGVIUfJpOS+pAqBQd+QMaTD2vCL/HcePooON6pDpHgRp4gNRmzyHTPIkXntwKsq3ayUFVfJaIKPw2pOkOcTw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/template": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.1.tgz", - "integrity": "sha512-ow8jciWqNxR3RYbSNVuF4U2Jx130nwnBnhRw6N6h1bOejNkABmcI5X5oz29K4alWX7vf1C+o6gtKXikzRKkVdw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.24.1.tgz", - "integrity": "sha512-p7uUxgSoZwZ2lPNMzUkqCts3xlp8n+o05ikjy7gbtFJSt9gdU88jAmtfmOxHM14noQXBxfgzf2yRWECiNVhTCw==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.24.1.tgz", - "integrity": "sha512-msyzuUnvsjsaSaocV6L7ErfNsa5nDWL1XKNnDePLgmz+WdU4w/J8+AxBMrWfi9m4IxfL5sZQKUPQKDQeeAT6lA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dynamic-import": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.24.1.tgz", - "integrity": "sha512-av2gdSTyXcJVdI+8aFZsCAtR29xJt0S5tas+Ef8NvBNmD1a+N/3ecMLeMBgfcK+xzsjdLDT6oHt+DFPyeqUbDA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.24.1.tgz", - "integrity": "sha512-U1yX13dVBSwS23DEAqU+Z/PkwE9/m7QQy8Y9/+Tdb8UWYaGNDYwTLi19wqIAiROr8sXVum9A/rtiH5H0boUcTw==", - "dev": true, - "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.22.15", - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-export-namespace-from": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.24.1.tgz", - "integrity": "sha512-Ft38m/KFOyzKw2UaJFkWG9QnHPG/Q/2SkOrRk4pNBPg5IPZ+dOxcmkK5IyuBcxiNPyyYowPGUReyBvrvZs7IlQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-for-of": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.24.1.tgz", - "integrity": "sha512-OxBdcnF04bpdQdR3i4giHZNZQn7cm8RQKcSwA17wAAqEELo1ZOwp5FFgeptWUQXFyT9kwHo10aqqauYkRZPCAg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-function-name": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.24.1.tgz", - "integrity": "sha512-BXmDZpPlh7jwicKArQASrj8n22/w6iymRnvHYYd2zO30DbE277JO20/7yXJT3QxDPtiQiOxQBbZH4TpivNXIxA==", - "dev": true, - "dependencies": { - "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-json-strings": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.24.1.tgz", - "integrity": "sha512-U7RMFmRvoasscrIFy5xA4gIp8iWnWubnKkKuUGJjsuOH7GfbMkB+XZzeslx2kLdEGdOJDamEmCqOks6e8nv8DQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/plugin-syntax-json-strings": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-literals": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.24.1.tgz", - "integrity": "sha512-zn9pwz8U7nCqOYIiBaOxoQOtYmMODXTJnkxG4AtX8fPmnCRYWBOHD0qcpwS9e2VDSp1zNJYpdnFMIKb8jmwu6g==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-logical-assignment-operators": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.24.1.tgz", - "integrity": "sha512-OhN6J4Bpz+hIBqItTeWJujDOfNP+unqv/NJgyhlpSqgBTPm37KkMmZV6SYcOj+pnDbdcl1qRGV/ZiIjX9Iy34w==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.24.1.tgz", - "integrity": "sha512-4ojai0KysTWXzHseJKa1XPNXKRbuUrhkOPY4rEGeR+7ChlJVKxFa3H3Bz+7tWaGKgJAXUWKOGmltN+u9B3+CVg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.24.1.tgz", - "integrity": "sha512-lAxNHi4HVtjnHd5Rxg3D5t99Xm6H7b04hUS7EHIXcUl2EV4yl1gWdqZrNzXnSrHveL9qMdbODlLF55mvgjAfaQ==", - "dev": true, - "dependencies": { - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.1.tgz", - "integrity": "sha512-szog8fFTUxBfw0b98gEWPaEqF42ZUD/T3bkynW/wtgx2p/XCP55WEsb+VosKceRSd6njipdZvNogqdtI4Q0chw==", - "dev": true, - "dependencies": { - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/helper-simple-access": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.24.1.tgz", - "integrity": "sha512-mqQ3Zh9vFO1Tpmlt8QPnbwGHzNz3lpNEMxQb1kAemn/erstyqw1r9KeOlOfo3y6xAnFEcOv2tSyrXfmMk+/YZA==", - "dev": true, - "dependencies": { - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/helper-validator-identifier": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.24.1.tgz", - "integrity": "sha512-tuA3lpPj+5ITfcCluy6nWonSL7RvaG0AOTeAuvXqEKS34lnLzXpDb0dcP6K8jD0zWZFNDVly90AGFJPnm4fOYg==", - "dev": true, - "dependencies": { - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.5.tgz", - "integrity": "sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-new-target": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.24.1.tgz", - "integrity": "sha512-/rurytBM34hYy0HKZQyA0nHbQgQNFm4Q/BOc9Hflxi2X3twRof7NaE5W46j4kQitm7SvACVRXsa6N/tSZxvPug==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.24.1.tgz", - "integrity": "sha512-iQ+caew8wRrhCikO5DrUYx0mrmdhkaELgFa+7baMcVuhxIkN7oxt06CZ51D65ugIb1UWRQ8oQe+HXAVM6qHFjw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-numeric-separator": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.24.1.tgz", - "integrity": "sha512-7GAsGlK4cNL2OExJH1DzmDeKnRv/LXq0eLUSvudrehVA5Rgg4bIrqEUW29FbKMBRT0ztSqisv7kjP+XIC4ZMNw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-rest-spread": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.24.1.tgz", - "integrity": "sha512-XjD5f0YqOtebto4HGISLNfiNMTTs6tbkFf2TOqJlYKYmbo+mN9Dnpl4SRoofiziuOWMIyq3sZEUqLo3hLITFEA==", - "dev": true, - "dependencies": { - "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.24.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-super": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.24.1.tgz", - "integrity": "sha512-oKJqR3TeI5hSLRxudMjFQ9re9fBVUU0GICqM3J1mi8MqlhVr6hC/ZN4ttAyMuQR6EZZIY6h/exe5swqGNNIkWQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/helper-replace-supers": "^7.24.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-catch-binding": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.24.1.tgz", - "integrity": "sha512-oBTH7oURV4Y+3EUrf6cWn1OHio3qG/PVwO5J03iSJmBg6m2EhKjkAu/xuaXaYwWW9miYtvbWv4LNf0AmR43LUA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.24.1.tgz", - "integrity": "sha512-n03wmDt+987qXwAgcBlnUUivrZBPZ8z1plL0YvgQalLm+ZE5BMhGm94jhxXtA1wzv1Cu2aaOv1BM9vbVttrzSg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-parameters": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.24.1.tgz", - "integrity": "sha512-8Jl6V24g+Uw5OGPeWNKrKqXPDw2YDjLc53ojwfMcKwlEoETKU9rU0mHUtcg9JntWI/QYzGAXNWEcVHZ+fR+XXg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-methods": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.24.1.tgz", - "integrity": "sha512-tGvisebwBO5em4PaYNqt4fkw56K2VALsAbAakY0FjTYqJp7gfdrgr7YX76Or8/cpik0W6+tj3rZ0uHU9Oil4tw==", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.24.1", - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-property-in-object": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.24.1.tgz", - "integrity": "sha512-pTHxDVa0BpUbvAgX3Gat+7cSciXqUcY9j2VZKTbSB6+VQGpNgNO9ailxTGHSXlqOnX1Hcx1Enme2+yv7VqP9bg==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-create-class-features-plugin": "^7.24.1", - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.24.1.tgz", - "integrity": "sha512-LetvD7CrHmEx0G442gOomRr66d7q8HzzGGr4PMHGr+5YIm6++Yke+jxj246rpvsbyhJwCLxcTn6zW1P1BSenqA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.24.1.tgz", - "integrity": "sha512-sJwZBCzIBE4t+5Q4IGLaaun5ExVMRY0lYwos/jNecjMrVCygCdph3IKv0tkP5Fc87e/1+bebAmEAGBfnRD+cnw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0", - "regenerator-transform": "^0.15.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.24.1.tgz", - "integrity": "sha512-JAclqStUfIwKN15HrsQADFgeZt+wexNQ0uLhuqvqAUFoqPMjEcFCYZBhq0LUdz6dZK/mD+rErhW71fbx8RYElg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.24.1.tgz", - "integrity": "sha512-LyjVB1nsJ6gTTUKRjRWx9C1s9hE7dLfP/knKdrfeH9UPtAGjYGgxIbFfx7xyLIEWs7Xe1Gnf8EWiUqfjLhInZA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-spread": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.24.1.tgz", - "integrity": "sha512-KjmcIM+fxgY+KxPVbjelJC6hrH1CgtPmTvdXAfn3/a9CnWGSTY7nH4zm5+cjmWJybdcPSsD0++QssDsjcpe47g==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.24.1.tgz", - "integrity": "sha512-9v0f1bRXgPVcPrngOQvLXeGNNVLc8UjMVfebo9ka0WF3/7+aVUHmaJVT3sa0XCzEFioPfPHZiOcYG9qOsH63cw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.24.1.tgz", - "integrity": "sha512-WRkhROsNzriarqECASCNu/nojeXCDTE/F2HmRgOzi7NGvyfYGq1NEjKBK3ckLfRgGc6/lPAqP0vDOSw3YtG34g==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.24.1.tgz", - "integrity": "sha512-CBfU4l/A+KruSUoW+vTQthwcAdwuqbpRNB8HQKlZABwHRhsdHZ9fezp4Sn18PeAlYxTNiLMlx4xUBV3AWfg1BA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typescript": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.24.4.tgz", - "integrity": "sha512-79t3CQ8+oBGk/80SQ8MN3Bs3obf83zJ0YZjDmDaEZN8MqhMI760apl5z6a20kFeMXBwJX99VpKT8CKxEBp5H1g==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-create-class-features-plugin": "^7.24.4", - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/plugin-syntax-typescript": "^7.24.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.24.1.tgz", - "integrity": "sha512-RlkVIcWT4TLI96zM660S877E7beKlQw7Ig+wqkKBiWfj0zH5Q4h50q6er4wzZKRNSYpfo6ILJ+hrJAGSX2qcNw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-property-regex": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.24.1.tgz", - "integrity": "sha512-Ss4VvlfYV5huWApFsF8/Sq0oXnGO+jB+rijFEFugTd3cwSObUSnUi88djgR5528Csl0uKlrI331kRqe56Ov2Ng==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.24.1.tgz", - "integrity": "sha512-2A/94wgZgxfTsiLaQ2E36XAOdcZmGAaEEgVmxQWwZXWkGhvoHbaqXcKnU8zny4ycpu3vNqg0L/PcCiYtHtA13g==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-sets-regex": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.24.1.tgz", - "integrity": "sha512-fqj4WuzzS+ukpgerpAoOnMfQXwUHFxXUZUE84oL2Kao2N8uSlvcpnAidKASgsNgzZHBsHWvcm8s9FPWUhAb8fA==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/preset-env": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.24.4.tgz", - "integrity": "sha512-7Kl6cSmYkak0FK/FXjSEnLJ1N9T/WA2RkMhu17gZ/dsxKJUuTYNIylahPTzqpLyJN4WhDif8X0XK1R8Wsguo/A==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.24.4", - "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/helper-validator-option": "^7.23.5", - "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.24.4", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.24.1", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.24.1", - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.24.1", - "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-import-assertions": "^7.24.1", - "@babel/plugin-syntax-import-attributes": "^7.24.1", - "@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", - "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.24.1", - "@babel/plugin-transform-async-generator-functions": "^7.24.3", - "@babel/plugin-transform-async-to-generator": "^7.24.1", - "@babel/plugin-transform-block-scoped-functions": "^7.24.1", - "@babel/plugin-transform-block-scoping": "^7.24.4", - "@babel/plugin-transform-class-properties": "^7.24.1", - "@babel/plugin-transform-class-static-block": "^7.24.4", - "@babel/plugin-transform-classes": "^7.24.1", - "@babel/plugin-transform-computed-properties": "^7.24.1", - "@babel/plugin-transform-destructuring": "^7.24.1", - "@babel/plugin-transform-dotall-regex": "^7.24.1", - "@babel/plugin-transform-duplicate-keys": "^7.24.1", - "@babel/plugin-transform-dynamic-import": "^7.24.1", - "@babel/plugin-transform-exponentiation-operator": "^7.24.1", - "@babel/plugin-transform-export-namespace-from": "^7.24.1", - "@babel/plugin-transform-for-of": "^7.24.1", - "@babel/plugin-transform-function-name": "^7.24.1", - "@babel/plugin-transform-json-strings": "^7.24.1", - "@babel/plugin-transform-literals": "^7.24.1", - "@babel/plugin-transform-logical-assignment-operators": "^7.24.1", - "@babel/plugin-transform-member-expression-literals": "^7.24.1", - "@babel/plugin-transform-modules-amd": "^7.24.1", - "@babel/plugin-transform-modules-commonjs": "^7.24.1", - "@babel/plugin-transform-modules-systemjs": "^7.24.1", - "@babel/plugin-transform-modules-umd": "^7.24.1", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5", - "@babel/plugin-transform-new-target": "^7.24.1", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.24.1", - "@babel/plugin-transform-numeric-separator": "^7.24.1", - "@babel/plugin-transform-object-rest-spread": "^7.24.1", - "@babel/plugin-transform-object-super": "^7.24.1", - "@babel/plugin-transform-optional-catch-binding": "^7.24.1", - "@babel/plugin-transform-optional-chaining": "^7.24.1", - "@babel/plugin-transform-parameters": "^7.24.1", - "@babel/plugin-transform-private-methods": "^7.24.1", - "@babel/plugin-transform-private-property-in-object": "^7.24.1", - "@babel/plugin-transform-property-literals": "^7.24.1", - "@babel/plugin-transform-regenerator": "^7.24.1", - "@babel/plugin-transform-reserved-words": "^7.24.1", - "@babel/plugin-transform-shorthand-properties": "^7.24.1", - "@babel/plugin-transform-spread": "^7.24.1", - "@babel/plugin-transform-sticky-regex": "^7.24.1", - "@babel/plugin-transform-template-literals": "^7.24.1", - "@babel/plugin-transform-typeof-symbol": "^7.24.1", - "@babel/plugin-transform-unicode-escapes": "^7.24.1", - "@babel/plugin-transform-unicode-property-regex": "^7.24.1", - "@babel/plugin-transform-unicode-regex": "^7.24.1", - "@babel/plugin-transform-unicode-sets-regex": "^7.24.1", - "@babel/preset-modules": "0.1.6-no-external-plugins", - "babel-plugin-polyfill-corejs2": "^0.4.10", - "babel-plugin-polyfill-corejs3": "^0.10.4", - "babel-plugin-polyfill-regenerator": "^0.6.1", - "core-js-compat": "^3.31.0", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-env/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/preset-modules": { - "version": "0.1.6-no-external-plugins", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", - "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/@babel/preset-typescript": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.24.1.tgz", - "integrity": "sha512-1DBaMmRDpuYQBPWD8Pf/WEwCrtgRHxsZnP4mIy9G/X+hFfbI47Q2G4t1Paakld84+qsk2fSsUPMKg71jkoOOaQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0", - "@babel/helper-validator-option": "^7.23.5", - "@babel/plugin-syntax-jsx": "^7.24.1", - "@babel/plugin-transform-modules-commonjs": "^7.24.1", - "@babel/plugin-transform-typescript": "^7.24.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/regjsgen": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", - "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==", - "dev": true - }, - "node_modules/@babel/runtime": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.4.tgz", - "integrity": "sha512-dkxf7+hn8mFBwKjs9bvBlArzLVxVbS8usaPUDd5p2a9JCL9tB8OaOVN1isD4+Xyk4ns89/xeOmbQvgdK7IIVdA==", - "dev": true, - "dependencies": { - "regenerator-runtime": "^0.14.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template": { - "version": "7.24.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.0.tgz", - "integrity": "sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.23.5", - "@babel/parser": "^7.24.0", - "@babel/types": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.1.tgz", - "integrity": "sha512-xuU6o9m68KeqZbQuDt2TcKSxUw/mrsvavlEqQ1leZ/B+C9tk6E4sRWy97WaXgvq5E+nU3cXMxv3WKOCanVMCmQ==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.24.1", - "@babel/generator": "^7.24.1", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.24.1", - "@babel/types": "^7.24.0", - "debug": "^4.3.1", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse/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/@babel/types": { - "version": "7.24.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.0.tgz", - "integrity": "sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==", - "dev": true, - "dependencies": { - "@babel/helper-string-parser": "^7.23.4", - "@babel/helper-validator-identifier": "^7.22.20", - "to-fast-properties": "^2.0.0" - }, - "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, - "optional": true, - "peer": 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, - "optional": true, - "peer": true, - "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.10.0", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", - "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", - "dev": true, - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", - "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", - "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/js": { - "version": "9.1.1", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.1.1.tgz", - "integrity": "sha512-5WoDz3Y19Bg2BnErkZTp0en+c/i9PvgFS7MBe1+m60HjFr0hrphlAGp4yzI7pxpt4xShln4ZyYp4neJm8hmOkQ==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.14", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", - "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", - "dev": true, - "dependencies": { - "@humanwhocodes/object-schema": "^2.0.2", - "debug": "^4.3.1", - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=10.10.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", - "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", - "dev": true - }, - "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/load-nyc-config/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/@istanbuljs/load-nyc-config/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/@istanbuljs/load-nyc-config/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/@istanbuljs/load-nyc-config/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/@istanbuljs/load-nyc-config/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/@istanbuljs/load-nyc-config/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/@istanbuljs/load-nyc-config/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/@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.5", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", - "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", - "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.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "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/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@pkgr/core": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.1.tgz", - "integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/unts" - } - }, - "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, - "optional": true, - "peer": 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, - "optional": true, - "peer": 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, - "optional": true, - "peer": 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, - "optional": true, - "peer": 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.6.8", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", - "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", - "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.5", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.5.tgz", - "integrity": "sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==", - "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.12", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.12.tgz", - "integrity": "sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==", - "dev": true, - "dependencies": { - "expect": "^29.0.0", - "pretty-format": "^29.0.0" - } - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true - }, - "node_modules/@types/node": { - "version": "20.12.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.7.tgz", - "integrity": "sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==", - "dev": true, - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/@types/semver": { - "version": "7.5.8", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz", - "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==", - "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.32", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", - "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", - "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/@typescript-eslint/eslint-plugin": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.7.1.tgz", - "integrity": "sha512-KwfdWXJBOviaBVhxO3p5TJiLpNuh2iyXyjmWN0f1nU87pwyvfS0EmjC6ukQVYVFJd/K1+0NWGPDXiyEyQorn0Q==", - "dev": true, - "dependencies": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "7.7.1", - "@typescript-eslint/type-utils": "7.7.1", - "@typescript-eslint/utils": "7.7.1", - "@typescript-eslint/visitor-keys": "7.7.1", - "debug": "^4.3.4", - "graphemer": "^1.4.0", - "ignore": "^5.3.1", - "natural-compare": "^1.4.0", - "semver": "^7.6.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^7.0.0", - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.7.1.tgz", - "integrity": "sha512-vmPzBOOtz48F6JAGVS/kZYk4EkXao6iGrD838sp1w3NQQC0W8ry/q641KU4PrG7AKNAf56NOcR8GOpH8l9FPCw==", - "dev": true, - "dependencies": { - "@typescript-eslint/scope-manager": "7.7.1", - "@typescript-eslint/types": "7.7.1", - "@typescript-eslint/typescript-estree": "7.7.1", - "@typescript-eslint/visitor-keys": "7.7.1", - "debug": "^4.3.4" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.7.1.tgz", - "integrity": "sha512-PytBif2SF+9SpEUKynYn5g1RHFddJUcyynGpztX3l/ik7KmZEv19WCMhUBkHXPU9es/VWGD3/zg3wg90+Dh2rA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "7.7.1", - "@typescript-eslint/visitor-keys": "7.7.1" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.7.1.tgz", - "integrity": "sha512-ZksJLW3WF7o75zaBPScdW1Gbkwhd/lyeXGf1kQCxJaOeITscoSl0MjynVvCzuV5boUz/3fOI06Lz8La55mu29Q==", - "dev": true, - "dependencies": { - "@typescript-eslint/typescript-estree": "7.7.1", - "@typescript-eslint/utils": "7.7.1", - "debug": "^4.3.4", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/types": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.7.1.tgz", - "integrity": "sha512-AmPmnGW1ZLTpWa+/2omPrPfR7BcbUU4oha5VIbSbS1a1Tv966bklvLNXxp3mrbc+P2j4MNOTfDffNsk4o0c6/w==", - "dev": true, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.7.1.tgz", - "integrity": "sha512-CXe0JHCXru8Fa36dteXqmH2YxngKJjkQLjxzoj6LYwzZ7qZvgsLSc+eqItCrqIop8Vl2UKoAi0StVWu97FQZIQ==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "7.7.1", - "@typescript-eslint/visitor-keys": "7.7.1", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/typescript-estree/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/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", - "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.7.1.tgz", - "integrity": "sha512-QUvBxPEaBXf41ZBbaidKICgVL8Hin0p6prQDu6bbetWo39BKbWJxRsErOzMNT1rXvTll+J7ChrbmMCXM9rsvOQ==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@types/json-schema": "^7.0.15", - "@types/semver": "^7.5.8", - "@typescript-eslint/scope-manager": "7.7.1", - "@typescript-eslint/types": "7.7.1", - "@typescript-eslint/typescript-estree": "7.7.1", - "semver": "^7.6.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.7.1.tgz", - "integrity": "sha512-gBL3Eq25uADw1LQ9kVpf3hRM+DWzs0uZknHYK3hq4jcTPqVCClHGDnB6UUUV2SFeBeA4KWHWbbLqmbGcZ4FYbw==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "7.7.1", - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", - "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", - "dev": true - }, - "node_modules/acorn": { - "version": "8.11.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", - "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/acorn-walk": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", - "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", - "dev": true, - "optional": true, - "peer": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "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-escapes/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/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, - "optional": true, - "peer": true - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "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-plugin-polyfill-corejs2": { - "version": "0.4.11", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.11.tgz", - "integrity": "sha512-sMEJ27L0gRHShOh5G54uAAPaiCOygY/5ratXuiyb2G46FmlSpc9eFCzYVyDiPxfNbwzA7mYahmjQc5q+CZQ09Q==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.22.6", - "@babel/helper-define-polyfill-provider": "^0.6.2", - "semver": "^6.3.1" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-plugin-polyfill-corejs2/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-polyfill-corejs3": { - "version": "0.10.4", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.4.tgz", - "integrity": "sha512-25J6I8NGfa5YkCDogHRID3fVCadIR8/pGl1/spvCkzb6lVn6SR3ojpx9nOn9iEBcUsjY24AmdKm5khcfKdylcg==", - "dev": true, - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.1", - "core-js-compat": "^3.36.1" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.2.tgz", - "integrity": "sha512-2R25rQZWP63nGwaAswvDazbPXfrM3HwVoBXK6HcqeKrSrL/JqcC/rDcf95l4r7LXLyxDXc8uQDa064GubtCABg==", - "dev": true, - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.2" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-preset-current-node-syntax": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", - "dev": true, - "dependencies": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", - "@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-top-level-await": "^7.8.3" - }, - "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.23.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.0.tgz", - "integrity": "sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==", - "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.30001587", - "electron-to-chromium": "^1.4.668", - "node-releases": "^2.0.14", - "update-browserslist-db": "^1.0.13" - }, - "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.30001614", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001614.tgz", - "integrity": "sha512-jmZQ1VpmlRwHgdP1/uiKzgiAuGOfLEJsYFP4+GBou/QQ4U6IOJCB4NP1c+1p9RGLpwObcT94jA5/uO+F1vBbog==", - "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.3.1", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.3.1.tgz", - "integrity": "sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q==", - "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/core-js-compat": { - "version": "3.37.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.37.0.tgz", - "integrity": "sha512-vYq4L+T8aS5UuFg4UwDhc7YNRWVeVZwltad9C/jV3R2LgVOpS9BDr7l/WL6BN0dbV3k1XejPTHqqEzJgsa0frA==", - "dev": true, - "dependencies": { - "browserslist": "^4.23.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "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, - "optional": true, - "peer": true - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "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.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "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/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": 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, - "optional": true, - "peer": 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/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/electron-to-chromium": { - "version": "1.4.750", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.750.tgz", - "integrity": "sha512-9ItEpeu15hW5m8jKdriL+BQrgwDTXEL9pn4SkillWFu73ZNNNQ2BKKLS+ZHv2vC9UkNhosAeyfxOf/5OSeTCPA==", - "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.1.2", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", - "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", - "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.0", - "@humanwhocodes/config-array": "^0.11.14", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-config-prettier": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", - "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", - "dev": true, - "bin": { - "eslint-config-prettier": "bin/cli.js" - }, - "peerDependencies": { - "eslint": ">=7.0.0" - } - }, - "node_modules/eslint-plugin-prettier": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.3.tgz", - "integrity": "sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==", - "dev": true, - "dependencies": { - "prettier-linter-helpers": "^1.0.0", - "synckit": "^0.8.6" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint-plugin-prettier" - }, - "peerDependencies": { - "@types/eslint": ">=8.0.0", - "eslint": ">=8.0.0", - "eslint-config-prettier": "*", - "prettier": ">=3.0.0" - }, - "peerDependenciesMeta": { - "@types/eslint": { - "optional": true - }, - "eslint-config-prettier": { - "optional": true - } - } - }, - "node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/@eslint/js": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", - "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/espree": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", - "dev": true, - "dependencies": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "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/esquery": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", - "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", - "dev": true, - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "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-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/fast-diff": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", - "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", - "dev": true - }, - "node_modules/fast-glob": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "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/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "node_modules/fastq": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", - "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", - "dev": true, - "dependencies": { - "reusify": "^1.0.4" - } - }, - "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/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, - "dependencies": { - "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "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": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", - "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", - "dev": true, - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/flatted": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", - "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", - "dev": true - }, - "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==", - "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/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "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/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "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/ignore": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", - "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", - "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==", - "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.13.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", - "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", - "dev": true, - "dependencies": { - "hasown": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "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-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "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-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "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.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.2.tgz", - "integrity": "sha512-1WUsZ9R1lA0HtBSohTkm39WTPlNKSJ5iFk7UwqXkBLoHQT+hfqPsfsTDVuZdKGaBwn7din9bS7SsnoAr943hvw==", - "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/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": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true - }, - "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/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "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/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "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/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "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": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", - "dev": true - }, - "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/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "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/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dev": true, - "dependencies": { - "braces": "^3.0.2", - "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.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "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.14", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", - "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", - "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/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "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": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "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/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "dependencies": { - "callsites": "^3.0.0" - }, - "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/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "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.6", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", - "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", - "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/pkg-dir/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/pkg-dir/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/pkg-dir/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/pkg-dir/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/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prettier": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", - "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", - "dev": true, - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "dependencies": { - "fast-diff": "^1.1.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "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/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "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/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "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/regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", - "dev": true - }, - "node_modules/regenerate-unicode-properties": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.1.tgz", - "integrity": "sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q==", - "dev": true, - "dependencies": { - "regenerate": "^1.4.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regenerator-runtime": { - "version": "0.14.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", - "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", - "dev": true - }, - "node_modules/regenerator-transform": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz", - "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", - "dev": true, - "dependencies": { - "@babel/runtime": "^7.8.4" - } - }, - "node_modules/regexpu-core": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", - "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", - "dev": true, - "dependencies": { - "@babel/regjsgen": "^0.8.0", - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.1.0", - "regjsparser": "^0.9.1", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regjsparser": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", - "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", - "dev": true, - "dependencies": { - "jsesc": "~0.5.0" - }, - "bin": { - "regjsparser": "bin/parser" - } - }, - "node_modules/regjsparser/node_modules/jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - } - }, - "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.8", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", - "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", - "dev": true, - "dependencies": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "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-cwd/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-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/resolve.exports": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", - "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true, - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "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/stack-utils/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/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/synckit": { - "version": "0.8.8", - "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.8.tgz", - "integrity": "sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==", - "dev": true, - "dependencies": { - "@pkgr/core": "^0.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/unts" - } - }, - "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/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, - "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-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "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-api-utils": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", - "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", - "dev": true, - "engines": { - "node": ">=16" - }, - "peerDependencies": { - "typescript": ">=4.2.0" - } - }, - "node_modules/ts-jest": { - "version": "29.1.2", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.2.tgz", - "integrity": "sha512-br6GJoH/WUX4pu7FbZXuWGKGNDuU7b8Uj77g/Sp7puZV6EXzuByl6JrECvm0MzVzSTkSHWTihsXt+5XYER5b+g==", - "dev": true, - "dependencies": { - "bs-logger": "0.x", - "fast-json-stable-stringify": "2.x", - "jest-util": "^29.0.0", - "json5": "^2.2.3", - "lodash.memoize": "4.x", - "make-error": "1.x", - "semver": "^7.5.3", - "yargs-parser": "^21.0.1" - }, - "bin": { - "ts-jest": "cli.js" - }, - "engines": { - "node": "^16.10.0 || ^18.0.0 || >=20.0.0" - }, - "peerDependencies": { - "@babel/core": ">=7.0.0-beta.0 <8", - "@jest/types": "^29.0.0", - "babel-jest": "^29.0.0", - "jest": "^29.0.0", - "typescript": ">=4.3 <6" - }, - "peerDependenciesMeta": { - "@babel/core": { - "optional": true - }, - "@jest/types": { - "optional": true - }, - "babel-jest": { - "optional": true - }, - "esbuild": { - "optional": true - } - } - }, - "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, - "optional": true, - "peer": 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/tslib": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", - "dev": true - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "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.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typescript": { - "version": "5.4.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", - "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/typescript-eslint": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-7.7.1.tgz", - "integrity": "sha512-ykEBfa3xx3odjZy6GRED4SCPrjo0rgHwstLlEgLX4EMEuv7QeIDSmfV+S6Kk+XkbsYn4BDEcPvsci1X26lRpMQ==", - "dev": true, - "dependencies": { - "@typescript-eslint/eslint-plugin": "7.7.1", - "@typescript-eslint/parser": "7.7.1", - "@typescript-eslint/utils": "7.7.1" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", - "dev": true - }, - "node_modules/unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", - "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "dev": true, - "dependencies": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-value-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", - "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", - "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", - "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", - "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.1.1", - "picocolors": "^1.0.0" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "dependencies": { - "punycode": "^2.1.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, - "optional": true, - "peer": true - }, - "node_modules/v8-to-istanbul": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", - "integrity": "sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==", - "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==", + "node_modules/prettier": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", + "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "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": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "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" + "prettier": "bin/prettier.cjs" }, "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, - "optional": true, - "peer": 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" + "node": ">=14" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/prettier/prettier?sponsor=1" } } } diff --git a/package.json b/package.json index a3b6cd6..5f814eb 100644 --- a/package.json +++ b/package.json @@ -1,26 +1,10 @@ { - "name": "repository_template", + "private": true, "scripts": { - "lint": "eslint --cache . && prettier --cache --check .", - "lint:fix": "eslint --fix --cache . && prettier --cache --write .", - "test": "jest --passWithNoTests", - "build": "tsc --build" + "lint": "prettier --cache --check .", + "lint:fix": "prettier --cache --write ." }, "devDependencies": { - "@babel/core": "^7.24.4", - "@babel/preset-env": "^7.24.4", - "@babel/preset-typescript": "^7.24.1", - "@eslint/js": "^9.1.1", - "@types/jest": "^29.5.12", - "@types/node": "^20.12.7", - "babel-jest": "^29.7.0", - "eslint": "^8.57.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-prettier": "^5.1.3", - "jest": "^29.7.0", - "prettier": "^3.2.5", - "ts-jest": "^29.1.2", - "typescript": "^5.4.5", - "typescript-eslint": "^7.7.1" + "prettier": "^3.2.5" } } diff --git a/schema.json b/schema.json new file mode 100644 index 0000000..f4062f3 --- /dev/null +++ b/schema.json @@ -0,0 +1,185 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "properties": { + "$schema": { + "type": "string", + "description": "Allows a reference to a schema, typically a relative or absolute URI.", + "format": "uri-reference" + }, + "name": { + "type": "string", + "description": "The name of the template. Required if 'styles' is empty.", + "minLength": 1 + }, + "setup": { + "type": "object", + "description": "an object containing setup scripts for the template.", + "properties": { + "*": { + "type": "string", + "description": "Path to the default setup script, required." + }, + "linux": { + "type": "string", + "description": "Path to the setup script for Linux." + }, + "windows": { + "type": "string", + "description": "Path to the setup script for Windows." + }, + "darwin": { + "type": "string", + "description": "Path to the setup script for macOS (Darwin)." + } + }, + "required": ["*"], + "additionalProperties": false + }, + "ignore": { + "type": "array", + "items": { + "type": "string", + "description": "A path or pattern to ignore. Supports glob patterns.", + "pattern": "^(?![ ]*$)(!?([^*?/]+/)*([^*?/]+|\\*|\\*\\*|[^*?/]+/\\*|[^*?/]+/\\*\\*))$" + }, + "description": "A list of paths or patterns to ignore." + }, + "labels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "color": { + "type": "string", + "description": "A HEX color code.", + "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$" + }, + "description": { + "type": "string", + "description": "An optional description for the label." + } + }, + "required": ["color"], + "additionalProperties": false + }, + "description": "Labels with associated colors." + }, + "prompts": { + "type": "object", + "patternProperties": { + "^[^\\s].*[^\\s]$": { + "type": "string", + "description": "The text used to ask for a value from the user. The key cannot be empty, have leading or trailing spaces, and the value can be empty but it's not advisable." + } + }, + "additionalProperties": false, + "description": "An optional object that defines user prompts." + }, + "styles": { + "type": "object", + "description": "An object containing style configurations.", + "patternProperties": { + "^[a-zA-Z0-9 ]+$": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "The path to the directory to use as a style.", + "format": "uri-reference" + }, + "setup": { + "type": "object", + "description": "an object containing setup scripts for the template.", + "properties": { + "*": { + "type": "string", + "description": "Path to the default setup script, required." + }, + "linux": { + "type": "string", + "description": "Path to the setup script for Linux." + }, + "windows": { + "type": "string", + "description": "Path to the setup script for Windows." + }, + "darwin": { + "type": "string", + "description": "Path to the setup script for macOS (Darwin)." + } + }, + "required": ["*"], + "additionalProperties": false + }, + "ignore": { + "type": "array", + "items": { + "type": "string", + "description": "A path or pattern to ignore. Supports glob patterns.", + "pattern": "^(?![ ]*$)(!?([^*?/]+/)*([^*?/]+|\\*|\\*\\*|[^*?/]+/\\*|[^*?/]+/\\*\\*))$" + }, + "description": "A list of paths or patterns to ignore for this style." + }, + "labels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "color": { + "type": "string", + "description": "A HEX color code.", + "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$" + }, + "description": { + "type": "string", + "description": "An optional description for the label." + } + }, + "required": ["color"], + "additionalProperties": false + }, + "description": "Labels with associated colors for this style." + }, + "prompts": { + "type": "object", + "patternProperties": { + "^[^\\s].*[^\\s]$": { + "type": "string", + "description": "The text used to ask for a value from the user. The key cannot be empty, have leading or trailing spaces, and the value can be empty but it's not advisable." + } + }, + "additionalProperties": false, + "description": "An optional object that defines user prompts." + } + }, + "required": ["source"], + "additionalProperties": false + } + } + } + }, + "allOf": [ + { + "if": { + "required": ["styles"] + }, + "then": { + "not": { + "required": ["name"] + } + } + }, + { + "if": { + "not": { + "required": ["styles"] + } + }, + "then": { + "required": ["name"] + } + } + ], + "additionalProperties": false +} diff --git a/scripts/waku.ps1 b/scripts/waku.ps1 new file mode 100755 index 0000000..d635f38 --- /dev/null +++ b/scripts/waku.ps1 @@ -0,0 +1,17 @@ +if (-not (Get-Command "docker" -ErrorAction SilentlyContinue)) { + Write-Host "Error: Docker is not installed. Please install Docker and try again." + exit 1 +} + +param ( + [string]$registry = "dockerhub", + [Parameter(ValueFromRemainingArguments=$true)] [string[]]$args +) + +# Select the image based on the registry preference +$image = "caffeinec/waku:latest" +if ($registry -eq "ghcr") { + $image = "ghcr.io/caffeine-addictt/waku:latest" +} + +docker run -v "$(Get-Location):/app" $image $args diff --git a/scripts/waku.sh b/scripts/waku.sh new file mode 100755 index 0000000..04f8773 --- /dev/null +++ b/scripts/waku.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +if ! command -v docker &>/dev/null; then + echo "Error: Docker is not installed. Please install Docker and try again." + exit 1 +fi + +IMG="caffeinec/waku:latest" + +# Check if GHCR is preferred over DockerHub +if [[ "$1" == "ghcr" ]]; then + IMG="ghcr.io/caffeine-addictt/waku:latest" + shift # Remove 'ghcr' from the args +fi + +docker run -v "$(pwd):/app" "$IMG" "$@" diff --git a/src/io-util.ts b/src/io-util.ts deleted file mode 100644 index 70580db..0000000 --- a/src/io-util.ts +++ /dev/null @@ -1,90 +0,0 @@ -import fs from 'fs'; -// import path from 'path'; -// import stream from 'stream'; -// import readline from 'readline'; - -import type { ProjectInfo } from './types'; - -/** Create a temp directory with automatic cleanup */ -export type withTempDirFunc = ( - prefix: string, - func: (dirPath: string) => T, - autoCleanup?: boolean, -) => { cleanup: () => void; func: () => T; path: string }; -export const withTempDir: withTempDirFunc = ( - prefix, - func, - autoCleanup = true, -) => { - const dirPath = fs.mkdtempSync(prefix); - - const cleanup = () => fs.rmSync(dirPath, { recursive: true, force: true }); - - return { - path: dirPath, - cleanup: cleanup, - func: () => { - const returnVal = func(dirPath); - if (autoCleanup) cleanup(); - return returnVal; - }, - }; -}; - -/** Replace string in file buffer */ -export const replaceInFile = ( - filePath: string, - _tempDir: string, - data: ProjectInfo, -): Promise => - new Promise((resolve) => { - // Revert to legacy - - let fileContent = fs.readFileSync(filePath, 'utf8'); - fileContent = fileContent - .replace(/{{REPOSITORY}}/g, `${data.username}/${data.repository}`) - .replace(/{{PROJECT_NAME}}/g, data.proj_name) - .replace(/{{PROJECT_SHORT_DESCRIPTION}}/g, data.proj_short_desc) - .replace(/{{PROJECT_LONG_DESCRIPTION}}/g, data.proj_long_desc) - .replace(/{{DOCS_URL}}/g, data.docs_url) - .replace(/{{EMAIL}}/g, data.email) - .replace(/{{USERNAME}}/g, data.username) - .replace(/{{NAME}}/g, data.name) - .replace(/{{ASSIGNEES}}/g, data.assignees); - - resolve(fs.writeFileSync(filePath, fileContent)); - return; - - // There was an attempt at buffering R/W - // const outputPath = path.join(tempDir, path.basename(filePath)); - // fs.writeFileSync(outputPath, ''); - // - // const inStream = fs.createReadStream(filePath); - // const outStream = new stream.Writable(); - // - // readline - // .createInterface({ - // input: inStream, - // output: outStream, - // terminal: false, - // }) - // .on('line', (line) => { - // fs.appendFileSync( - // outputPath, - // line - // .replace(/{{REPOSITORY}}/g, `${data.username}/${data.repository}`) - // .replace(/{{PROJECT_NAME}}/g, data.proj_name) - // .replace(/{{PROJECT_SHORT_DESCRIPTION}}/g, data.proj_short_desc) - // .replace(/{{PROJECT_LONG_DESCRIPTION}}/g, data.proj_long_desc) - // .replace(/{{DOCS_URL}}/g, data.docs_url) - // .replace(/{{EMAIL}}/g, data.email) - // .replace(/{{USERNAME}}/g, data.username) - // .replace(/{{NAME}}/g, data.name) + '\n', - // ); - // }) - // .on('close', () => { - // // Move from temp back to original - // fs.renameSync(outputPath, filePath); - // resolve(); - // }); - }); diff --git a/src/parser.ts b/src/parser.ts deleted file mode 100644 index 97ae7e7..0000000 --- a/src/parser.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type { RepoInfo } from './types'; - -/** Extract username/org and repo from url */ -export const extractRepoInfo = (url: string): RepoInfo => { - const originUrl = url.trim(); - const match = /^https:\/\/github\.com\/([^/]+)\/([^/]+?)(?:\.git)?$/.exec( - originUrl, - ); - - if (!match || !match[1] || !match[2]) - throw new AggregateError( - `Could not extract user and repo from git remote: ${originUrl}`, - ); - - return { - url: originUrl, - org: match[1], - repo: match[2], - } satisfies RepoInfo; -}; diff --git a/src/resolver.ts b/src/resolver.ts deleted file mode 100644 index e99a82b..0000000 --- a/src/resolver.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This file will hold the configuration options to make the setup script not so annoying - */ - -import { extractRepoInfo } from './parser'; -import { execute } from './term'; -import type { GitInfo, RepoInfo, UserInfo } from './types'; - -export const resolveRepoInfo = (): Promise => - execute('git', ['remote', 'get-url', 'origin']) - .then((_originUrl) => extractRepoInfo(_originUrl.toString())) - .catch(() => ({})); - -export const resolveUserInfo = async (): Promise => { - const promises = await Promise.all([ - execute('git', ['config', '--global', 'user.name']) - .then((r) => r.toString().trim()) - .catch(() => undefined), - execute('git', ['config', '--global', 'user.email']) - .then((r) => r.toString().trim()) - .catch(() => undefined), - ]); - - return { - name: promises[0], - email: promises[1], - } satisfies UserInfo; -}; - -const resolveGitInfo = async (): Promise => { - const promises = await Promise.all([resolveRepoInfo(), resolveUserInfo()]); - return { - ...promises[0], - ...promises[1], - } as GitInfo; -}; -export default resolveGitInfo; diff --git a/src/setup.ts b/src/setup.ts deleted file mode 100644 index 66a54b8..0000000 --- a/src/setup.ts +++ /dev/null @@ -1,244 +0,0 @@ -import fs from 'fs'; -import path from 'path'; -import readline from 'readline'; - -import type { ProjectInfo } from './types'; -import { replaceInFile, withTempDir } from './io-util'; -import resolveGitInfo from './resolver'; - -/** - * For interacting with stdin/stdout - */ -const rl = readline.createInterface({ - input: process.stdin, - output: process.stdout, -}); - -interface Validator { - validate: (s: string) => boolean; - onError: () => void; -} - -/** Prompt user for input */ -const question = ( - query: string, - validator: Validator[] = [], - trimWhitespace: boolean = true, -): Promise => - new Promise((resolve) => - rl.question(query, (s: string) => { - if (trimWhitespace) s = s.trim(); - validator.forEach((v) => { - if (!v.validate(s)) { - v.onError(); - process.exit(1); - } - }); - resolve(s); - }), - ); - -/** Ask for project information */ -const fetchInfo = async ( - cleanup: () => void | unknown, -): Promise => { - const resolved = await resolveGitInfo(); - - // Ask user - const name = await question( - `Name? (This will go on the LICENSE)${resolved.name ? ` [Resolved: ${resolved.name}]` : ''}\n=> `, - ) - .then((val) => val.trim()) - .then((val) => (val.length ? val : resolved.name ?? '')); - - const email = await question( - `Email?${resolved.email ? ` [Resolved: ${resolved.email}]` : ''}\n=> `, - [ - { - validate: (s: string) => !!resolved.email || /.+@.+\..+/.test(s), - onError: () => console.log('Invalid email!'), - }, - ], - ) - .then((val) => val.trim()) - .then((val) => (val.length ? val : resolved.email ?? '')); - - const username = await question( - `Username? (https://github.com/)${resolved.org ? ` [Resolved: ${resolved.org}]` : ''}\n=> `, - ) - .then((val) => val.trim()) - .then((val) => (val.length ? val : resolved.org ?? '')); - - const repository = await question( - `Repository? (https://github.com/${username}/)${resolved.repo ? ` [Resolved: ${resolved.repo}]` : ''}\n=> `, - ) - .then((val) => val.trim()) - .then((val) => (val.length ? val : resolved.repo ?? '')); - - const proj_name = await question('Project name?\n=> '); - const proj_short_desc = await question('Short description?\n=> '); - const proj_long_desc = await question('Long description?\n=> '); - const docs_url = await question('Documentation URL?\n=> '); - const assignees = Array.from( - new Set( - [ - ...( - await question( - 'Additional issue assignees? (Usernames comma separated)\n=> ', - ) - ).split(','), - - // Add CODEOWNERS - username, - ] - .map((s: string) => s.trim()) - .filter((s: string) => s.length > 0), - ), - ).join(`', '`); - - console.log('\n\n===== Log ====='); - console.log('Name:', name); - console.log('Email:', email); - console.log('Username:', username); - console.log('Repository:', repository); - console.log('Project name:', proj_name); - console.log('Project short description:', proj_short_desc); - console.log('Project long description:', proj_long_desc); - console.log('Docs URL:', docs_url); - console.log('Issue assignees:', `['${assignees}']`); - console.log('================'); - - // Guard clause for confirmation - if ((await question('Confirm? (y/n)\n=> ')).toLowerCase() !== 'y') { - console.log('Aborted.'); - cleanup(); - process.exit(1); - } - - return { - name: name, - email: email, - username: username, - repository: repository, - proj_name: proj_name, - proj_short_desc: proj_short_desc, - proj_long_desc: proj_long_desc, - docs_url: docs_url, - assignees: assignees, - } satisfies ProjectInfo; -}; - -/** - * The main logic - */ -const { func: main } = withTempDir( - 'caffeine-addictt-template-', - async (tempDir: string) => { - const data = await fetchInfo(() => rl.close()); - - /// ######################################## // - // Stage 1: Update file content in template/ // - // ######################################### // - console.log('\nWriting files...'); - - const filesToUpdate = fs.readdirSync('./template', { - recursive: true, - }) as string[]; - - // Use async - await Promise.all( - filesToUpdate.map((filename) => - (async () => { - const filePath = path.join('./template', filename); - - const fileInfo = fs.statSync(filePath); - if (fileInfo.isDirectory()) { - return; - } - - await replaceInFile(filePath, tempDir, data); - })(), - ), - ); - - // Write CODEOWNERS - fs.appendFileSync('./template/.github/CODEOWNERS', `* @${data.username}`); - - // ########################################## // - // Stage 2: Move files from template/ to root // - // ########################################## // - console.log('Moving files...'); - - // Delete .github/ directory - fs.rmSync('./.github', { recursive: true, force: true }); - - const filesToMove = fs.readdirSync('./template', { - recursive: true, - }) as string[]; - filesToMove.forEach((file) => { - const filePath = path.join('./template', file); - - const fileInfo = fs.statSync(filePath); - if (fileInfo.isDirectory()) { - fs.mkdirSync(`${file}`); - return; - } - fs.renameSync(filePath, `./${file}`); - }); - fs.rmSync('./template', { recursive: true, force: true }); - - // ################# // - // Stage 3: Clean up // - // ################# // - // Only add `force: true` for files or directories that - // will only exist if some development task was carried out - // like eslintcache - console.log('Cleaning up...'); - - // Js - fs.unlinkSync('package.json'); - fs.unlinkSync('package-lock.json'); - - // Ts - fs.unlinkSync('tsconfig.json'); - fs.rmSync('src', { recursive: true }); - - // Tests - fs.unlinkSync('babel.config.cjs'); - fs.rmSync('tests', { recursive: true }); - - // Linting - fs.unlinkSync('.eslintignore'); - fs.unlinkSync('.prettierignore'); - fs.unlinkSync('eslint.config.mjs'); - fs.rmSync('.eslintcache', { force: true }); - - // Syncing - fs.unlinkSync('.templatesyncignore'); - - // Git - fs.unlinkSync('.gitignore'); - - // Node - fs.rmSync('node_modules', { recursive: true, force: true }); - - // Clean up dist - fs.unlinkSync(__filename); - fs.rmSync('dist', { recursive: true }); - - // Assets - fs.rmSync('assets', { recursive: true }); - - // Generate src and test - fs.mkdirSync('src'); - fs.mkdirSync('tests'); - - // Final stdout - console.log( - '\nDone!\nIf you encounter any issues, please report it here: https://github.com/caffeine-addictt/template/issues/new?assignees=caffeine-addictt&labels=Type%3A+Bug&projects=&template=1-bug-report.md&title=[Bug]+', - ); - rl.close(); - }, -); - -main(); diff --git a/src/term.ts b/src/term.ts deleted file mode 100644 index 53478fb..0000000 --- a/src/term.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { SpawnOptionsWithoutStdio, spawn } from 'child_process'; - -export const execute = ( - command: string, - args?: string[], - spawnOptions?: SpawnOptionsWithoutStdio, -): Promise => - new Promise((resolve, reject): void => { - const cmd = spawn(command, args, spawnOptions); - - cmd.stdout.on('data', resolve); - cmd.stderr.on('data', reject); - }); diff --git a/src/types.ts b/src/types.ts deleted file mode 100644 index 51150e4..0000000 --- a/src/types.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Place some shared types here - -export interface ProjectInfo { - name: string; - email: string; - username: string; - repository: string; - proj_name: string; - proj_short_desc: string; - proj_long_desc: string; - docs_url: string; - assignees: string; -} - -export interface RepoInfo { - url?: string; - org?: string; - repo?: string; -} - -export interface UserInfo { - name?: string; - email?: string; -} - -export type GitInfo = RepoInfo & UserInfo; diff --git a/template/.github/ISSUE_TEMPLATE/7-question-support.md b/template/.github/ISSUE_TEMPLATE/7-question-support.md deleted file mode 100644 index 3b3c984..0000000 --- a/template/.github/ISSUE_TEMPLATE/7-question-support.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -name: 'Question or Support Request' -about: 'Questions and requests for support.' -title: '' -labels: ['Type: Question', 'help wanted'] -assignees: ['{{ASSIGNEES}}'] ---- - -# Question or Support Request - -## Describe your question or ask for support - - - -- diff --git a/template/.github/release-drafter.yml b/template/.github/release-drafter.yml deleted file mode 100644 index 62572e9..0000000 --- a/template/.github/release-drafter.yml +++ /dev/null @@ -1,40 +0,0 @@ -name-template: 'v$RESOLVED_VERSION' -tag-template: 'v$RESOLVED_VERSION' -template: | - # What's Changed - - $CHANGES - - **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION - -categories: - - title: 'New' - label: 'Type: Feature' - - - title: 'Bug Fixes' - label: 'Type: Bug' - - - title: 'Improvements' - label: 'Type: Enhancement' - - - title: 'Other changes' - - - title: 'Documentation' - label: 'Documentation' - collapse-after: 5 - -version-resolver: - major: - labels: - - 'Type: Breaking' - minor: - labels: - - 'Type: Feature' - patch: - labels: - - 'Type: Bug' - - 'Documentation' - - 'Type: Security' - -exclude-labels: - - 'Skip-Changelog' diff --git a/template/.github/settings.yml b/template/.github/settings.yml deleted file mode 100644 index e40331c..0000000 --- a/template/.github/settings.yml +++ /dev/null @@ -1,113 +0,0 @@ -# These labels are automatically synced. -# 1. Install https://github.com/apps/settings to your GitHub account. -# 2. Scroll down and only enable access to selected repositories. -# 3. Select the repositories you want to sync. -# -# !!!!!!! SECURITY WARNING !!!!!!! -# Please be aware that this can escalate anyone with PUSH priviliages to the repository. -# To counteract this, please block force pushing and enable "Require CODE OWNER Approval" for Pull Requests to the main branch. - -labels: - - name: 'Type: CI' - color: 54b2ff - description: A problem or enhancement related to continuous integration. - - - name: 'Type: Breaking' - color: a90000 - description: A problem or enhancement related to a breaking change. - - - name: 'Type: Bug' - color: e80c0c - description: Something isn't working as expected. - - - name: 'Type: Enhancement' - color: 54b2ff - description: Suggest an improvement for an existing feature. - - - name: 'Type: Feature' - color: 54b2ff - description: Suggest a new feature. - - - name: 'Type: Security' - color: fbff00 - description: A problem or enhancement related to a security issue. - - - name: 'Type: Question' - color: 9309ab - description: Request for information. - - - name: 'Type: Test' - color: ce54e3 - description: A problem or enhancement related to a test. - - - name: 'Status: Awaiting Review' - color: 24d15d - description: Ready for review. - - - name: 'Status: WIP' - color: 07b340 - description: Currently being worked on. - - - name: 'Status: Waiting' - color: 38C968 - description: Waiting on something else to be ready. - - - name: 'Status: Stale' - color: 66b38a - description: Has had no activity for some time. - - - name: 'Status: DO NOT MERGE' - color: E80C0C - description: Will not be merged. - - - name: 'Duplicate' - color: EB862D - description: Duplicate of another issue. - - - name: 'Invalid' - color: faef50 - description: This issue doesn't seem right. - - - name: 'Priority: High +' - color: ff008c - description: Task is considered higher-priority. - - - name: 'Priority: Low -' - color: 690a34 - description: Task is considered lower-priority. - - - name: 'Documentation' - color: 2fbceb - description: An issue/change with the documentation. - - - name: "Won't fix" - color: C8D9E6 - description: Reported issue is working as intended. - - - name: '3rd party issue' - color: e88707 - description: This issue might be caused by a 3rd party script/package/other reasons - - - name: 'Os: Windows' - color: AEB1C2 - description: Is Windows-specific - - - name: 'Os: Mac' - color: AEB1C2 - description: Is Mac-specific - - - name: 'Os: Linux' - color: AEB1C2 - description: Is Linux-specific - - - name: 'Skip-Changelog' - color: AEB1C2 - description: Skip changelog in release tag - - - name: 'help wanted' - color: 008672 - description: Help wanted - - - name: 'good first issue' - color: 008672 - description: Good first issue diff --git a/template/.github/workflows/draft-release-tag.yml b/template/.github/workflows/draft-release-tag.yml deleted file mode 100644 index 7d1aafb..0000000 --- a/template/.github/workflows/draft-release-tag.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Release Drafter - -on: - push: - branches: - - main - -permissions: - contents: read - -jobs: - update_release_draft: - permissions: - contents: write - pull-requests: read - - runs-on: ubuntu-latest - steps: - # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: release-drafter/release-drafter@v6 - with: - disable-autolabeler: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/template/.github/CODESTYLE.md b/template/simple-github/.github/CODESTYLE.md similarity index 100% rename from template/.github/CODESTYLE.md rename to template/simple-github/.github/CODESTYLE.md diff --git a/template/.github/CODE_OF_CONDUCT.md b/template/simple-github/.github/CODE_OF_CONDUCT.md similarity index 100% rename from template/.github/CODE_OF_CONDUCT.md rename to template/simple-github/.github/CODE_OF_CONDUCT.md diff --git a/template/.github/ISSUE_TEMPLATE/1-bug-report.md b/template/simple-github/.github/ISSUE_TEMPLATE/1-bug-report.md similarity index 91% rename from template/.github/ISSUE_TEMPLATE/1-bug-report.md rename to template/simple-github/.github/ISSUE_TEMPLATE/1-bug-report.md index 95f28f3..925488a 100644 --- a/template/.github/ISSUE_TEMPLATE/1-bug-report.md +++ b/template/simple-github/.github/ISSUE_TEMPLATE/1-bug-report.md @@ -1,9 +1,9 @@ --- -name: 'Bug Report' -about: 'Report an issue to help the project improve.' -title: '[Bug] ' -labels: 'Type: Bug' -assignees: ['{{ASSIGNEES}}'] +name: "Bug Report" +about: "Report an issue to help the project improve." +title: "[Bug] " +labels: "Type: Bug" +assignees: ["{{ASSIGNEES}}"] --- # Bug report diff --git a/template/.github/ISSUE_TEMPLATE/2-failing-test.md b/template/simple-github/.github/ISSUE_TEMPLATE/2-failing-test.md similarity index 79% rename from template/.github/ISSUE_TEMPLATE/2-failing-test.md rename to template/simple-github/.github/ISSUE_TEMPLATE/2-failing-test.md index ceaa829..a6619dc 100644 --- a/template/.github/ISSUE_TEMPLATE/2-failing-test.md +++ b/template/simple-github/.github/ISSUE_TEMPLATE/2-failing-test.md @@ -1,9 +1,9 @@ --- -name: 'Failing Test' -about: 'Report failing tests or CI jobs.' -title: '[Test] ' -labels: 'Type: Test' -assignees: ['{{ASSIGNEES}}'] +name: "Failing Test" +about: "Report failing tests or CI jobs." +title: "[Test] " +labels: "Type: Test" +assignees: ["{{ASSIGNEES}}"] --- # Failing Test diff --git a/template/.github/ISSUE_TEMPLATE/3-docs-bug.md b/template/simple-github/.github/ISSUE_TEMPLATE/3-docs-bug.md similarity index 81% rename from template/.github/ISSUE_TEMPLATE/3-docs-bug.md rename to template/simple-github/.github/ISSUE_TEMPLATE/3-docs-bug.md index 016cc82..5c3b294 100644 --- a/template/.github/ISSUE_TEMPLATE/3-docs-bug.md +++ b/template/simple-github/.github/ISSUE_TEMPLATE/3-docs-bug.md @@ -1,9 +1,9 @@ --- -name: 'Documentation or README.md issue report' +name: "Documentation or README.md issue report" about: "Report an issue in the project's documentation or README.md file." -title: '' -labels: 'Documentation' -assignees: ['{{ASSIGNEES}}'] +title: "" +labels: "Documentation" +assignees: ["{{ASSIGNEES}}"] --- # Documentation Issue Report diff --git a/template/.github/ISSUE_TEMPLATE/4-feature-request.md b/template/simple-github/.github/ISSUE_TEMPLATE/4-feature-request.md similarity index 80% rename from template/.github/ISSUE_TEMPLATE/4-feature-request.md rename to template/simple-github/.github/ISSUE_TEMPLATE/4-feature-request.md index 04d1ff6..7f1a05e 100644 --- a/template/.github/ISSUE_TEMPLATE/4-feature-request.md +++ b/template/simple-github/.github/ISSUE_TEMPLATE/4-feature-request.md @@ -1,9 +1,9 @@ --- -name: 'Feature Request' -about: 'Suggest an idea or possible new feature for this project.' -title: '' -labels: 'Type: Feature' -assignees: ['{{ASSIGNEES}}'] +name: "Feature Request" +about: "Suggest an idea or possible new feature for this project." +title: "" +labels: "Type: Feature" +assignees: ["{{ASSIGNEES}}"] --- # Feature Request diff --git a/template/.github/ISSUE_TEMPLATE/5-enhancement-request.md b/template/simple-github/.github/ISSUE_TEMPLATE/5-enhancement-request.md similarity index 78% rename from template/.github/ISSUE_TEMPLATE/5-enhancement-request.md rename to template/simple-github/.github/ISSUE_TEMPLATE/5-enhancement-request.md index f892558..243fa3f 100644 --- a/template/.github/ISSUE_TEMPLATE/5-enhancement-request.md +++ b/template/simple-github/.github/ISSUE_TEMPLATE/5-enhancement-request.md @@ -1,9 +1,9 @@ --- -name: 'Enhancement Request' -about: 'Suggest an enhancement for this project. Improve an existing feature' -title: '' -labels: 'Type: Enhancement' -assignees: ['{{ASSIGNEES}}'] +name: "Enhancement Request" +about: "Suggest an enhancement for this project. Improve an existing feature" +title: "" +labels: "Type: Enhancement" +assignees: ["{{ASSIGNEES}}"] --- # Enhancement Request diff --git a/template/.github/ISSUE_TEMPLATE/6-security-report.md b/template/simple-github/.github/ISSUE_TEMPLATE/6-security-report.md similarity index 94% rename from template/.github/ISSUE_TEMPLATE/6-security-report.md rename to template/simple-github/.github/ISSUE_TEMPLATE/6-security-report.md index 96cd7ae..e6f7110 100644 --- a/template/.github/ISSUE_TEMPLATE/6-security-report.md +++ b/template/simple-github/.github/ISSUE_TEMPLATE/6-security-report.md @@ -1,9 +1,9 @@ --- -name: 'Security Report' -about: 'Report an issue to help the project improve.' -title: '' -labels: 'Type: Security' -assignees: ['{{ASSIGNEES}}'] +name: "Security Report" +about: "Report an issue to help the project improve." +title: "" +labels: "Type: Security" +assignees: ["{{ASSIGNEES}}"] --- + +- diff --git a/template/.github/PULL_REQUEST_TEMPLATE.md b/template/simple-github/.github/PULL_REQUEST_TEMPLATE.md similarity index 100% rename from template/.github/PULL_REQUEST_TEMPLATE.md rename to template/simple-github/.github/PULL_REQUEST_TEMPLATE.md diff --git a/template/.github/SECURITY.md b/template/simple-github/.github/SECURITY.md similarity index 100% rename from template/.github/SECURITY.md rename to template/simple-github/.github/SECURITY.md diff --git a/template/.github/dependabot.yml b/template/simple-github/.github/dependabot.yml similarity index 89% rename from template/.github/dependabot.yml rename to template/simple-github/.github/dependabot.yml index d76c0c0..8c6a297 100644 --- a/template/.github/dependabot.yml +++ b/template/simple-github/.github/dependabot.yml @@ -5,11 +5,11 @@ version: 2 updates: - - package-ecosystem: 'github-actions' + - package-ecosystem: "github-actions" # Workflow files stored in the default location of `.github/workflows`. (You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.) - directory: '/' + directory: "/" schedule: - interval: 'weekly' + interval: "weekly" # - package-ecosystem: "npm" # See documentation for possible values # directory: "/" # Location of package manifests diff --git a/template/.github/labeler.yml b/template/simple-github/.github/labeler.yml similarity index 77% rename from template/.github/labeler.yml rename to template/simple-github/.github/labeler.yml index ea4b726..e6cd7a5 100644 --- a/template/.github/labeler.yml +++ b/template/simple-github/.github/labeler.yml @@ -3,12 +3,12 @@ Documentation: - changed-files: - - any-glob-to-any-file: [docs/**, './*.{md,mdx}'] + - any-glob-to-any-file: [docs/**, "./*.{md,mdx}"] -'Type: Test': +"Type: Test": - changed-files: - any-glob-to-any-file: [tests/**, ./*test*] -'Type: CI': +"Type: CI": - changed-files: - any-glob-to-any-file: [.github/workflows/**] diff --git a/template/simple-github/.github/release-drafter.yml b/template/simple-github/.github/release-drafter.yml new file mode 100644 index 0000000..03f3266 --- /dev/null +++ b/template/simple-github/.github/release-drafter.yml @@ -0,0 +1,40 @@ +name-template: "v$RESOLVED_VERSION" +tag-template: "v$RESOLVED_VERSION" +template: | + # What's Changed + + $CHANGES + + **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION + +categories: + - title: "New" + label: "Type: Feature" + + - title: "Bug Fixes" + label: "Type: Bug" + + - title: "Improvements" + label: "Type: Enhancement" + + - title: "Other changes" + + - title: "Documentation" + label: "Documentation" + collapse-after: 5 + +version-resolver: + major: + labels: + - "Type: Breaking" + minor: + labels: + - "Type: Feature" + patch: + labels: + - "Type: Bug" + - "Documentation" + - "Type: Security" + +exclude-labels: + - "Skip-Changelog" diff --git a/.github/settings.yml b/template/simple-github/.github/settings.yml similarity index 78% rename from .github/settings.yml rename to template/simple-github/.github/settings.yml index e40331c..af8e5fa 100644 --- a/.github/settings.yml +++ b/template/simple-github/.github/settings.yml @@ -8,75 +8,75 @@ # To counteract this, please block force pushing and enable "Require CODE OWNER Approval" for Pull Requests to the main branch. labels: - - name: 'Type: CI' + - name: "Type: CI" color: 54b2ff description: A problem or enhancement related to continuous integration. - - name: 'Type: Breaking' + - name: "Type: Breaking" color: a90000 description: A problem or enhancement related to a breaking change. - - name: 'Type: Bug' + - name: "Type: Bug" color: e80c0c description: Something isn't working as expected. - - name: 'Type: Enhancement' + - name: "Type: Enhancement" color: 54b2ff description: Suggest an improvement for an existing feature. - - name: 'Type: Feature' + - name: "Type: Feature" color: 54b2ff description: Suggest a new feature. - - name: 'Type: Security' + - name: "Type: Security" color: fbff00 description: A problem or enhancement related to a security issue. - - name: 'Type: Question' + - name: "Type: Question" color: 9309ab description: Request for information. - - name: 'Type: Test' + - name: "Type: Test" color: ce54e3 description: A problem or enhancement related to a test. - - name: 'Status: Awaiting Review' + - name: "Status: Awaiting Review" color: 24d15d description: Ready for review. - - name: 'Status: WIP' + - name: "Status: WIP" color: 07b340 description: Currently being worked on. - - name: 'Status: Waiting' + - name: "Status: Waiting" color: 38C968 description: Waiting on something else to be ready. - - name: 'Status: Stale' + - name: "Status: Stale" color: 66b38a description: Has had no activity for some time. - - name: 'Status: DO NOT MERGE' + - name: "Status: DO NOT MERGE" color: E80C0C description: Will not be merged. - - name: 'Duplicate' + - name: "Duplicate" color: EB862D description: Duplicate of another issue. - - name: 'Invalid' + - name: "Invalid" color: faef50 description: This issue doesn't seem right. - - name: 'Priority: High +' + - name: "Priority: High +" color: ff008c description: Task is considered higher-priority. - - name: 'Priority: Low -' + - name: "Priority: Low -" color: 690a34 description: Task is considered lower-priority. - - name: 'Documentation' + - name: "Documentation" color: 2fbceb description: An issue/change with the documentation. @@ -84,30 +84,30 @@ labels: color: C8D9E6 description: Reported issue is working as intended. - - name: '3rd party issue' + - name: "3rd party issue" color: e88707 description: This issue might be caused by a 3rd party script/package/other reasons - - name: 'Os: Windows' + - name: "Os: Windows" color: AEB1C2 description: Is Windows-specific - - name: 'Os: Mac' + - name: "Os: Mac" color: AEB1C2 description: Is Mac-specific - - name: 'Os: Linux' + - name: "Os: Linux" color: AEB1C2 description: Is Linux-specific - - name: 'Skip-Changelog' + - name: "Skip-Changelog" color: AEB1C2 description: Skip changelog in release tag - - name: 'help wanted' + - name: "help wanted" color: 008672 description: Help wanted - - name: 'good first issue' + - name: "good first issue" color: 008672 description: Good first issue diff --git a/.github/workflows/draft-release-tag.yml b/template/simple-github/.github/workflows/draft-release-tag.yml similarity index 100% rename from .github/workflows/draft-release-tag.yml rename to template/simple-github/.github/workflows/draft-release-tag.yml diff --git a/template/.github/workflows/labeler.yml b/template/simple-github/.github/workflows/labeler.yml similarity index 86% rename from template/.github/workflows/labeler.yml rename to template/simple-github/.github/workflows/labeler.yml index c78c36b..64b4507 100644 --- a/template/.github/workflows/labeler.yml +++ b/template/simple-github/.github/workflows/labeler.yml @@ -13,4 +13,4 @@ jobs: steps: - uses: actions/labeler@v5 with: - repo-token: '${{ secrets.GITHUB_TOKEN }}' + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/template/.github/workflows/test-worker.yml b/template/simple-github/.github/workflows/test-worker.yml similarity index 93% rename from template/.github/workflows/test-worker.yml rename to template/simple-github/.github/workflows/test-worker.yml index cd50340..46f2397 100644 --- a/template/.github/workflows/test-worker.yml +++ b/template/simple-github/.github/workflows/test-worker.yml @@ -18,8 +18,8 @@ concurrency: jobs: # This test suite will run for every language version for every OS defined in the matrix tests-os-matrix: - name: '${{ matrix.language_version }} on ${{ matrix.os }}' - runs-on: '${{ matrix.os }}-latest' + name: "${{ matrix.language_version }} on ${{ matrix.os }}" + runs-on: "${{ matrix.os }}-latest" strategy: fail-fast: false @@ -29,7 +29,7 @@ jobs: - windows - macos # Place your language versions you want to test - language_version: ['v1.0.0', 'v2.0.0'] + language_version: ["v1.0.0", "v2.0.0"] steps: - name: Checkout repository @@ -61,7 +61,7 @@ jobs: # This test will run once tests: - name: 'Testing' + name: "Testing" runs-on: ubuntu-latest steps: diff --git a/template/CITATION.cff b/template/simple-github/CITATION.cff similarity index 82% rename from template/CITATION.cff rename to template/simple-github/CITATION.cff index 16975d9..062cd9c 100644 --- a/template/CITATION.cff +++ b/template/simple-github/CITATION.cff @@ -1,6 +1,6 @@ -abstract: {{PROJECT_NAME}} +abstract: { { PROJECT_NAME } } authors: - - alias: {{NAME}} + - alias: { { NAME } } identifiers: - type: url value: https://github.com/{{REPOSITORY}}/releases/tag/v0.0.0 @@ -12,6 +12,6 @@ keywords: license: MIT message: If you use this software, please cite it using these metadata. repository-code: https://github.com/{{REPOSITORY}} -title: {{PROJECT_NAME}} +title: { { PROJECT_NAME } } type: software version: 0.0.0 diff --git a/template/CONTRIBUTING.md b/template/simple-github/CONTRIBUTING.md similarity index 100% rename from template/CONTRIBUTING.md rename to template/simple-github/CONTRIBUTING.md diff --git a/template/LICENSE b/template/simple-github/LICENSE similarity index 100% rename from template/LICENSE rename to template/simple-github/LICENSE diff --git a/template/README.md b/template/simple-github/README.md similarity index 97% rename from template/README.md rename to template/simple-github/README.md index b63af7c..be97281 100644 --- a/template/README.md +++ b/template/simple-github/README.md @@ -89,7 +89,7 @@ _Below is an example of how you can install and use {{PROJECT_NAME}}_ -[template-repo]: https://github.com/caffeine-addictt/template +[template-repo]: https://github.com/caffeine-addictt/waku [hyprland]: https://github.com/hyprwm/Hyprland [hyprdots]: https://github.com/prasanthrangan/hyprdots [img-shields]: https://shields.io diff --git a/template/template.json b/template/template.json new file mode 100644 index 0000000..c39eac0 --- /dev/null +++ b/template/template.json @@ -0,0 +1,8 @@ +{ + "$schema": "../schema.json", + "styles": { + "simple github": { + "source": "simple-github" + } + } +} diff --git a/tests/io-util.test.ts b/tests/io-util.test.ts deleted file mode 100644 index 1746249..0000000 --- a/tests/io-util.test.ts +++ /dev/null @@ -1,82 +0,0 @@ -import fs from 'fs'; -import path from 'path'; - -import { ProjectInfo } from '../src/types'; -import { replaceInFile, withTempDir } from '../src/io-util'; - -// Setup -const TEST_FILE_TO_REPLACE = path.join('tests/', 'testing_replace.txt'); -const toReplace = ` -My name is: {{NAME}} - -The repo is {{REPOSITORY}} - -{{EMAIL}} {{DOCS_URL}} -{{PROJECT_SHORT_DESCRIPTION}} - -{{PROJECT_NAME}} -{{EMAIL}} ssssss - -{{PROJECT_LONG_DESCRIPTION}} -assignees: ['{{ASSIGNEES}}'] -`; -const replaced = ` -My name is: John - -The repo is johnny/repo - -HbVYf@example.com https://example.com/docs -Project with some description - -My Project -HbVYf@example.com ssssss - -Project with some description that is really long -assignees: ['John', 'Jane'] -`; - -const tmp = withTempDir( - 'io-util-test', - () => { - return; - }, - false, -); -afterAll(() => { - tmp.cleanup(); -}); - -describe('should create a temporary directory', () => { - test('Directory exists', () => { - expect(fs.existsSync(tmp.path)).toBe(true); - }); -}); - -describe('replace the correct content', () => { - beforeEach(() => { - fs.writeFileSync(TEST_FILE_TO_REPLACE, toReplace); - }); - - afterEach(() => { - fs.rmSync(TEST_FILE_TO_REPLACE); - }); - - const testData = { - name: 'John', - email: 'HbVYf@example.com', - username: 'johnny', - repository: 'repo', - proj_name: 'My Project', - proj_short_desc: 'Project with some description', - proj_long_desc: 'Project with some description that is really long', - docs_url: 'https://example.com/docs', - assignees: `John', 'Jane`, - } satisfies ProjectInfo; - - test('File content is replaced matches "replaced" string', async () => { - expect( - await replaceInFile(TEST_FILE_TO_REPLACE, tmp.path, testData), - ).toBeUndefined(); - expect(fs.readFileSync(TEST_FILE_TO_REPLACE, 'utf8')).toEqual(replaced); - }); -}); diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index a4d3614..0000000 --- a/tsconfig.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "compilerOptions": { - "outDir": "dist", - "rootDir": "src", - "module": "NodeNext", - "strict": true, - "allowSyntheticDefaultImports": true, - "forceConsistentCasingInFileNames": true, - "noUncheckedIndexedAccess": true, - "noFallthroughCasesInSwitch": true, - "useUnknownInCatchVariables": true - }, - "include": ["src/"] -}