├── .github ├── dependabot.yml └── workflows │ ├── check-go-task.yml │ ├── check-markdown-task.yml │ ├── check-prettier-formatting-task.yml │ ├── check-taskfiles.yml │ ├── release.yml │ └── sync-labels.yml ├── .gitignore ├── .markdown-link-check.json ├── .markdownlint.yml ├── .markdownlintignore ├── .prettierignore ├── LICENSE ├── README.md ├── Taskfile.yml ├── go.mod ├── go.sum ├── main.go ├── package-lock.json ├── package.json ├── package_index.template ├── patches ├── README.md └── picotool_mingw.patch ├── util_unix.go └── util_windows.go /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # See: https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#about-the-dependabotyml-file 2 | version: 2 3 | 4 | updates: 5 | # Configure check for outdated GitHub Actions actions in workflows. 6 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/dependabot/README.md 7 | # See: https://docs.github.com/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot 8 | - package-ecosystem: github-actions 9 | directory: / # Check the repository's workflows under /.github/workflows/ 10 | schedule: 11 | interval: daily 12 | labels: 13 | - "topic: infrastructure" 14 | -------------------------------------------------------------------------------- /.github/workflows/check-go-task.yml: -------------------------------------------------------------------------------- 1 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-go-task.md 2 | name: Check Go 3 | 4 | env: 5 | # See: https://github.com/actions/setup-go/tree/main#supported-version-syntax 6 | GO_VERSION: "1.16" 7 | 8 | # See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows 9 | on: 10 | create: 11 | push: 12 | paths: 13 | - ".github/workflows/check-go-task.ya?ml" 14 | - "Taskfile.ya?ml" 15 | - "**/go.mod" 16 | - "**/go.sum" 17 | - "**.go" 18 | pull_request: 19 | paths: 20 | - ".github/workflows/check-go-task.ya?ml" 21 | - "Taskfile.ya?ml" 22 | - "**/go.mod" 23 | - "**/go.sum" 24 | - "**.go" 25 | schedule: 26 | # Run periodically to catch breakage caused by external changes. 27 | - cron: "0 7 * * WED" 28 | workflow_dispatch: 29 | repository_dispatch: 30 | 31 | jobs: 32 | run-determination: 33 | runs-on: ubuntu-latest 34 | outputs: 35 | result: ${{ steps.determination.outputs.result }} 36 | steps: 37 | - name: Determine if the rest of the workflow should run 38 | id: determination 39 | run: | 40 | RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x" 41 | # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead. 42 | if [[ 43 | "${{ github.event_name }}" != "create" || 44 | "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX 45 | ]]; then 46 | # Run the other jobs. 47 | RESULT="true" 48 | else 49 | # There is no need to run the other jobs. 50 | RESULT="false" 51 | fi 52 | 53 | echo "::set-output name=result::$RESULT" 54 | 55 | check-errors: 56 | name: check-errors (${{ matrix.module.path }}) 57 | needs: run-determination 58 | if: needs.run-determination.outputs.result == 'true' 59 | runs-on: ubuntu-latest 60 | 61 | strategy: 62 | fail-fast: false 63 | 64 | matrix: 65 | module: 66 | - path: ./ 67 | 68 | steps: 69 | - name: Checkout repository 70 | uses: actions/checkout@v4 71 | 72 | - name: Install Go 73 | uses: actions/setup-go@v5 74 | with: 75 | go-version: ${{ env.GO_VERSION }} 76 | 77 | - name: Install Task 78 | uses: arduino/setup-task@v2 79 | with: 80 | repo-token: ${{ secrets.GITHUB_TOKEN }} 81 | version: 3.x 82 | 83 | - name: Check for errors 84 | env: 85 | GO_MODULE_PATH: ${{ matrix.module.path }} 86 | run: task go:vet 87 | 88 | check-outdated: 89 | name: check-outdated (${{ matrix.module.path }}) 90 | needs: run-determination 91 | if: needs.run-determination.outputs.result == 'true' 92 | runs-on: ubuntu-latest 93 | 94 | strategy: 95 | fail-fast: false 96 | 97 | matrix: 98 | module: 99 | - path: ./ 100 | 101 | steps: 102 | - name: Checkout repository 103 | uses: actions/checkout@v4 104 | 105 | - name: Install Go 106 | uses: actions/setup-go@v5 107 | with: 108 | go-version: ${{ env.GO_VERSION }} 109 | 110 | - name: Install Task 111 | uses: arduino/setup-task@v2 112 | with: 113 | repo-token: ${{ secrets.GITHUB_TOKEN }} 114 | version: 3.x 115 | 116 | - name: Modernize usages of outdated APIs 117 | env: 118 | GO_MODULE_PATH: ${{ matrix.module.path }} 119 | run: task go:fix 120 | 121 | - name: Check if any fixes were needed 122 | run: git diff --color --exit-code 123 | 124 | check-style: 125 | name: check-style (${{ matrix.module.path }}) 126 | needs: run-determination 127 | if: needs.run-determination.outputs.result == 'true' 128 | runs-on: ubuntu-latest 129 | 130 | strategy: 131 | fail-fast: false 132 | 133 | matrix: 134 | module: 135 | - path: ./ 136 | 137 | steps: 138 | - name: Checkout repository 139 | uses: actions/checkout@v4 140 | 141 | - name: Install Go 142 | uses: actions/setup-go@v5 143 | with: 144 | go-version: ${{ env.GO_VERSION }} 145 | 146 | - name: Install Task 147 | uses: arduino/setup-task@v2 148 | with: 149 | repo-token: ${{ secrets.GITHUB_TOKEN }} 150 | version: 3.x 151 | 152 | - name: Install golint 153 | run: go install golang.org/x/lint/golint@latest 154 | 155 | - name: Check style 156 | env: 157 | GO_MODULE_PATH: ${{ matrix.module.path }} 158 | run: task --silent go:lint 159 | 160 | check-formatting: 161 | name: check-formatting (${{ matrix.module.path }}) 162 | needs: run-determination 163 | if: needs.run-determination.outputs.result == 'true' 164 | runs-on: ubuntu-latest 165 | 166 | strategy: 167 | fail-fast: false 168 | 169 | matrix: 170 | module: 171 | - path: ./ 172 | 173 | steps: 174 | - name: Checkout repository 175 | uses: actions/checkout@v4 176 | 177 | - name: Install Go 178 | uses: actions/setup-go@v5 179 | with: 180 | go-version: ${{ env.GO_VERSION }} 181 | 182 | - name: Install Task 183 | uses: arduino/setup-task@v2 184 | with: 185 | repo-token: ${{ secrets.GITHUB_TOKEN }} 186 | version: 3.x 187 | 188 | - name: Format code 189 | env: 190 | GO_MODULE_PATH: ${{ matrix.module.path }} 191 | run: task go:format 192 | 193 | - name: Check formatting 194 | run: git diff --color --exit-code 195 | 196 | check-config: 197 | name: check-config (${{ matrix.module.path }}) 198 | needs: run-determination 199 | if: needs.run-determination.outputs.result == 'true' 200 | runs-on: ubuntu-latest 201 | 202 | strategy: 203 | fail-fast: false 204 | 205 | matrix: 206 | module: 207 | - path: ./ 208 | 209 | steps: 210 | - name: Checkout repository 211 | uses: actions/checkout@v4 212 | 213 | - name: Install Go 214 | uses: actions/setup-go@v5 215 | with: 216 | go-version: ${{ env.GO_VERSION }} 217 | 218 | - name: Run go mod tidy 219 | working-directory: ${{ matrix.module.path }} 220 | run: go mod tidy 221 | 222 | - name: Check whether any tidying was needed 223 | run: git diff --color --exit-code 224 | -------------------------------------------------------------------------------- /.github/workflows/check-markdown-task.yml: -------------------------------------------------------------------------------- 1 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-markdown-task.md 2 | name: Check Markdown 3 | 4 | env: 5 | # See: https://github.com/actions/setup-node/#readme 6 | NODE_VERSION: 16.x 7 | 8 | # See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows 9 | on: 10 | create: 11 | push: 12 | paths: 13 | - ".github/workflows/check-markdown-task.ya?ml" 14 | - ".markdown-link-check.json" 15 | - "package.json" 16 | - "package-lock.json" 17 | - "Taskfile.ya?ml" 18 | - "**/.markdownlint*" 19 | - "**.mdx?" 20 | - "**.mkdn" 21 | - "**.mdown" 22 | - "**.markdown" 23 | pull_request: 24 | paths: 25 | - ".github/workflows/check-markdown-task.ya?ml" 26 | - ".markdown-link-check.json" 27 | - "package.json" 28 | - "package-lock.json" 29 | - "Taskfile.ya?ml" 30 | - "**/.markdownlint*" 31 | - "**.mdx?" 32 | - "**.mkdn" 33 | - "**.mdown" 34 | - "**.markdown" 35 | schedule: 36 | # Run every Tuesday at 8 AM UTC to catch breakage caused by external changes. 37 | - cron: "0 8 * * TUE" 38 | workflow_dispatch: 39 | repository_dispatch: 40 | 41 | jobs: 42 | run-determination: 43 | runs-on: ubuntu-latest 44 | outputs: 45 | result: ${{ steps.determination.outputs.result }} 46 | steps: 47 | - name: Determine if the rest of the workflow should run 48 | id: determination 49 | run: | 50 | RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x" 51 | # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead. 52 | if [[ 53 | "${{ github.event_name }}" != "create" || 54 | "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX 55 | ]]; then 56 | # Run the other jobs. 57 | RESULT="true" 58 | else 59 | # There is no need to run the other jobs. 60 | RESULT="false" 61 | fi 62 | 63 | echo "::set-output name=result::$RESULT" 64 | 65 | lint: 66 | needs: run-determination 67 | if: needs.run-determination.outputs.result == 'true' 68 | runs-on: ubuntu-latest 69 | 70 | steps: 71 | - name: Checkout repository 72 | uses: actions/checkout@v4 73 | 74 | - name: Setup Node.js 75 | uses: actions/setup-node@v4 76 | with: 77 | node-version: ${{ env.NODE_VERSION }} 78 | 79 | - name: Initialize markdownlint-cli problem matcher 80 | uses: xt0rted/markdownlint-problem-matcher@v3 81 | 82 | - name: Install Task 83 | uses: arduino/setup-task@v2 84 | with: 85 | repo-token: ${{ secrets.GITHUB_TOKEN }} 86 | version: 3.x 87 | 88 | - name: Lint 89 | run: task markdown:lint 90 | 91 | links: 92 | needs: run-determination 93 | if: needs.run-determination.outputs.result == 'true' 94 | runs-on: ubuntu-latest 95 | 96 | steps: 97 | - name: Checkout repository 98 | uses: actions/checkout@v4 99 | 100 | - name: Setup Node.js 101 | uses: actions/setup-node@v4 102 | with: 103 | node-version: ${{ env.NODE_VERSION }} 104 | 105 | - name: Install Task 106 | uses: arduino/setup-task@v2 107 | with: 108 | repo-token: ${{ secrets.GITHUB_TOKEN }} 109 | version: 3.x 110 | 111 | - name: Check links 112 | run: task --silent markdown:check-links 113 | -------------------------------------------------------------------------------- /.github/workflows/check-prettier-formatting-task.yml: -------------------------------------------------------------------------------- 1 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-prettier-formatting-task.md 2 | name: Check Prettier Formatting 3 | 4 | env: 5 | # See: https://github.com/actions/setup-node/#readme 6 | NODE_VERSION: 16.x 7 | 8 | # See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows 9 | on: 10 | push: 11 | paths: 12 | - ".github/workflows/check-prettier-formatting-task.ya?ml" 13 | - "Taskfile.ya?ml" 14 | - "**/.prettierignore" 15 | - "**/.prettierrc*" 16 | # CSS 17 | - "**.css" 18 | - "**.wxss" 19 | # PostCSS 20 | - "**.pcss" 21 | - "**.postcss" 22 | # Less 23 | - "**.less" 24 | # SCSS 25 | - "**.scss" 26 | # GraphQL 27 | - "**.graphqls?" 28 | - "**.gql" 29 | # handlebars 30 | - "**.handlebars" 31 | - "**.hbs" 32 | # HTML 33 | - "**.mjml" 34 | - "**.html?" 35 | - "**.html.hl" 36 | - "**.st" 37 | - "**.xht" 38 | - "**.xhtml" 39 | # Vue 40 | - "**.vue" 41 | # JavaScript 42 | - "**.flow" 43 | - "**._?jsb?" 44 | - "**.bones" 45 | - "**.cjs" 46 | - "**.es6?" 47 | - "**.frag" 48 | - "**.gs" 49 | - "**.jake" 50 | - "**.jscad" 51 | - "**.jsfl" 52 | - "**.js[ms]" 53 | - "**.[mn]js" 54 | - "**.pac" 55 | - "**.wxs" 56 | - "**.[xs]s?js" 57 | - "**.xsjslib" 58 | # JSX 59 | - "**.jsx" 60 | # TypeScript 61 | - "**.ts" 62 | # TSX 63 | - "**.tsx" 64 | # JSON 65 | - "**/.eslintrc" 66 | - "**.json" 67 | - "**.avsc" 68 | - "**.geojson" 69 | - "**.gltf" 70 | - "**.har" 71 | - "**.ice" 72 | - "**.JSON-tmLanguage" 73 | - "**.mcmeta" 74 | - "**.tfstate" 75 | - "**.topojson" 76 | - "**.webapp" 77 | - "**.webmanifest" 78 | - "**.yyp?" 79 | # JSONC 80 | - "**/.babelrc" 81 | - "**/.jscsrc" 82 | - "**/.js[hl]intrc" 83 | - "**.jsonc" 84 | - "**.sublime-*" 85 | # JSON5 86 | - "**.json5" 87 | # Markdown 88 | - "**.mdx?" 89 | - "**.markdown" 90 | - "**.mk?down" 91 | - "**.mdwn" 92 | - "**.mkdn?" 93 | - "**.ronn" 94 | - "**.workbook" 95 | # YAML 96 | - "**/.clang-format" 97 | - "**/.clang-tidy" 98 | - "**/.gemrc" 99 | - "**/glide.lock" 100 | - "**.ya?ml*" 101 | - "**.mir" 102 | - "**.reek" 103 | - "**.rviz" 104 | - "**.sublime-syntax" 105 | - "**.syntax" 106 | pull_request: 107 | paths: 108 | - ".github/workflows/check-prettier-formatting-task.ya?ml" 109 | - "Taskfile.ya?ml" 110 | - "**/.prettierignore" 111 | - "**/.prettierrc*" 112 | # CSS 113 | - "**.css" 114 | - "**.wxss" 115 | # PostCSS 116 | - "**.pcss" 117 | - "**.postcss" 118 | # Less 119 | - "**.less" 120 | # SCSS 121 | - "**.scss" 122 | # GraphQL 123 | - "**.graphqls?" 124 | - "**.gql" 125 | # handlebars 126 | - "**.handlebars" 127 | - "**.hbs" 128 | # HTML 129 | - "**.mjml" 130 | - "**.html?" 131 | - "**.html.hl" 132 | - "**.st" 133 | - "**.xht" 134 | - "**.xhtml" 135 | # Vue 136 | - "**.vue" 137 | # JavaScript 138 | - "**.flow" 139 | - "**._?jsb?" 140 | - "**.bones" 141 | - "**.cjs" 142 | - "**.es6?" 143 | - "**.frag" 144 | - "**.gs" 145 | - "**.jake" 146 | - "**.jscad" 147 | - "**.jsfl" 148 | - "**.js[ms]" 149 | - "**.[mn]js" 150 | - "**.pac" 151 | - "**.wxs" 152 | - "**.[xs]s?js" 153 | - "**.xsjslib" 154 | # JSX 155 | - "**.jsx" 156 | # TypeScript 157 | - "**.ts" 158 | # TSX 159 | - "**.tsx" 160 | # JSON 161 | - "**/.eslintrc" 162 | - "**.json" 163 | - "**.avsc" 164 | - "**.geojson" 165 | - "**.gltf" 166 | - "**.har" 167 | - "**.ice" 168 | - "**.JSON-tmLanguage" 169 | - "**.mcmeta" 170 | - "**.tfstate" 171 | - "**.topojson" 172 | - "**.webapp" 173 | - "**.webmanifest" 174 | - "**.yyp?" 175 | # JSONC 176 | - "**/.babelrc" 177 | - "**/.jscsrc" 178 | - "**/.js[hl]intrc" 179 | - "**.jsonc" 180 | - "**.sublime-*" 181 | # JSON5 182 | - "**.json5" 183 | # Markdown 184 | - "**.mdx?" 185 | - "**.markdown" 186 | - "**.mk?down" 187 | - "**.mdwn" 188 | - "**.mkdn?" 189 | - "**.ronn" 190 | - "**.workbook" 191 | # YAML 192 | - "**/.clang-format" 193 | - "**/.clang-tidy" 194 | - "**/.gemrc" 195 | - "**/glide.lock" 196 | - "**.ya?ml*" 197 | - "**.mir" 198 | - "**.reek" 199 | - "**.rviz" 200 | - "**.sublime-syntax" 201 | - "**.syntax" 202 | schedule: 203 | # Run periodically to catch breakage caused by external changes. 204 | - cron: "0 4 * * WED" 205 | workflow_dispatch: 206 | repository_dispatch: 207 | 208 | jobs: 209 | check: 210 | runs-on: ubuntu-latest 211 | 212 | steps: 213 | - name: Checkout repository 214 | uses: actions/checkout@v4 215 | 216 | - name: Setup Node.js 217 | uses: actions/setup-node@v4 218 | with: 219 | node-version: ${{ env.NODE_VERSION }} 220 | 221 | - name: Install Task 222 | uses: arduino/setup-task@v2 223 | with: 224 | repo-token: ${{ secrets.GITHUB_TOKEN }} 225 | version: 3.x 226 | 227 | - name: Format with Prettier 228 | run: task general:format-prettier 229 | 230 | - name: Check formatting 231 | run: git diff --color --exit-code 232 | -------------------------------------------------------------------------------- /.github/workflows/check-taskfiles.yml: -------------------------------------------------------------------------------- 1 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-taskfiles.md 2 | name: Check Taskfiles 3 | 4 | env: 5 | # See: https://github.com/actions/setup-node/#readme 6 | NODE_VERSION: 16.x 7 | 8 | # See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows 9 | on: 10 | push: 11 | paths: 12 | - ".github/workflows/check-taskfiles.ya?ml" 13 | - "package.json" 14 | - "package-lock.json" 15 | - "**/Taskfile.ya?ml" 16 | pull_request: 17 | paths: 18 | - ".github/workflows/check-taskfiles.ya?ml" 19 | - "package.json" 20 | - "package-lock.json" 21 | - "**/Taskfile.ya?ml" 22 | schedule: 23 | # Run every Tuesday at 8 AM UTC to catch breakage resulting from changes to the JSON schema. 24 | - cron: "0 8 * * TUE" 25 | workflow_dispatch: 26 | repository_dispatch: 27 | 28 | jobs: 29 | validate: 30 | name: Validate ${{ matrix.file }} 31 | runs-on: ubuntu-latest 32 | 33 | strategy: 34 | fail-fast: false 35 | 36 | matrix: 37 | file: 38 | - ./**/Taskfile.yml 39 | 40 | steps: 41 | - name: Checkout repository 42 | uses: actions/checkout@v4 43 | 44 | - name: Setup Node.js 45 | uses: actions/setup-node@v4 46 | with: 47 | node-version: ${{ env.NODE_VERSION }} 48 | 49 | - name: Download JSON schema for Taskfiles 50 | id: download-schema 51 | uses: carlosperate/download-file-action@v2 52 | with: 53 | # See: https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/taskfile.json 54 | file-url: https://json.schemastore.org/taskfile.json 55 | location: ${{ runner.temp }}/taskfile-schema 56 | 57 | - name: Install JSON schema validator 58 | run: npm install 59 | 60 | - name: Validate ${{ matrix.file }} 61 | run: | 62 | # See: https://github.com/ajv-validator/ajv-cli#readme 63 | npx \ 64 | --package=ajv-cli \ 65 | --package=ajv-formats \ 66 | ajv validate \ 67 | --all-errors \ 68 | --strict=false \ 69 | -c ajv-formats \ 70 | -s "${{ steps.download-schema.outputs.file-path }}" \ 71 | -d "${{ matrix.file }}" 72 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: release 2 | 3 | on: 4 | push: 5 | tags: 6 | - "[0-9]+.[0-9]+.[0-9]+*" 7 | 8 | jobs: 9 | build: 10 | name: build (${{ matrix.config.os }}, ${{ matrix.config.arch }}) 11 | runs-on: ubuntu-latest 12 | env: 13 | LIBUSB_DIR: /opt/lib/libusb-1.0.20/libusb/ 14 | strategy: 15 | matrix: 16 | config: 17 | - os: linux 18 | arch: amd64 19 | cross_compile: x86_64-ubuntu16.04-linux-gnu 20 | - os: linux 21 | arch: 386 22 | cross_compile: i686-ubuntu16.04-linux-gnu 23 | - os: linux 24 | arch: arm 25 | cross_compile: arm-linux-gnueabihf 26 | - os: linux 27 | arch: arm64 28 | cross_compile: aarch64-linux-gnu 29 | - os: darwin 30 | arch: amd64 31 | cross_compile: x86_64-apple-darwin13 32 | cross_compiler: o64-clang 33 | - os: windows 34 | arch: 386 35 | cross_compile: i686-w64-mingw32 36 | extension: .exe 37 | 38 | container: 39 | image: ghcr.io/arduino/crossbuild:0.1.1 40 | credentials: 41 | username: ${{ github.actor }} 42 | password: ${{ secrets.RP2040_CI_PAT }} 43 | 44 | steps: 45 | - name: Checkout rp2040tools repository 46 | uses: actions/checkout@v4 47 | with: 48 | path: rp2040tools 49 | 50 | - name: Checkout picotool 51 | uses: actions/checkout@v4 52 | with: 53 | repository: raspberrypi/picotool 54 | path: picotool 55 | 56 | - name: Checkout pico-sdk 57 | uses: actions/checkout@v4 58 | with: 59 | repository: raspberrypi/pico-sdk 60 | path: pico-sdk 61 | 62 | - name: Set env vars 63 | run: echo "PICO_SDK_PATH=${GITHUB_WORKSPACE}/pico-sdk" >> $GITHUB_ENV 64 | 65 | - name: Set env vars for non-macos 66 | run: echo "LIBUSBUDEV=/opt/lib/${{ matrix.config.cross_compile }}/libusbudev.a" >> $GITHUB_ENV 67 | if: matrix.config.os != 'darwin' 68 | 69 | - name: Set env vars for macos 70 | run: echo "LIBUSBUDEV=$LIBUSB_DIR.libs/libusb-1.0.a" >> $GITHUB_ENV 71 | if: matrix.config.os == 'darwin' 72 | 73 | - name: Set env var for win 74 | run: echo "CFLAGS="-mno-ms-bitfields $CFLAGS"" >> $GITHUB_ENV 75 | if: matrix.config.os == 'windows' 76 | 77 | - name: Build picotool 78 | run: | 79 | cd $GITHUB_WORKSPACE/picotool 80 | if ls $GITHUB_WORKSPACE/rp2040tools/patches/picotool_*.patch 1> /dev/null 2>&1 81 | then git apply $GITHUB_WORKSPACE/rp2040tools/patches/picotool_*.patch 82 | fi 83 | mkdir build 84 | cd build 85 | if [ "${{ matrix.config.os }}" = "darwin" ]; then 86 | cmake -DCMAKE_C_COMPILER=${{ matrix.config.cross_compiler }} -DCMAKE_CXX_COMPILER=${{ matrix.config.cross_compiler }}++ -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -framework IOKit -framework Cocoa -pthread" -DLIBUSB_LIBRARIES=$LIBUSBUDEV -DLIBUSB_INCLUDE_DIR=$LIBUSB_DIR .. 87 | else 88 | cmake -DCMAKE_C_COMPILER=${{ matrix.config.cross_compile }}-gcc -DCMAKE_CXX_COMPILER=${{ matrix.config.cross_compile }}-g++ -DCMAKE_EXE_LINKER_FLAGS="-static-libgcc -static-libstdc++" -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -pthread" -DLIBUSB_LIBRARIES=$LIBUSBUDEV -DLIBUSB_INCLUDE_DIR=$LIBUSB_DIR .. 89 | fi 90 | make 91 | mv picotool${{ matrix.config.extension }} /tmp/ 92 | 93 | - name: Build elf2uf2 94 | run: | 95 | cd $GITHUB_WORKSPACE/pico-sdk/tools/elf2uf2/ 96 | if ls $GITHUB_WORKSPACE/rp2040tools/patches/elf2uf2_*.patch 1> /dev/null 2>&1 97 | then git apply $GITHUB_WORKSPACE/rp2040tools/patches/elf2uf2_*.patch 98 | fi 99 | mkdir build 100 | cd build 101 | if [ "${{ matrix.config.os }}" = "darwin" ]; then 102 | cmake -DCMAKE_C_COMPILER=${{ matrix.config.cross_compiler }} -DCMAKE_CXX_COMPILER=${{ matrix.config.cross_compiler }}++ -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -framework IOKit -framework Cocoa" .. 103 | else 104 | cmake -DCMAKE_C_COMPILER=${{ matrix.config.cross_compile }}-gcc -DCMAKE_CXX_COMPILER=${{ matrix.config.cross_compile }}-g++ -DCMAKE_EXE_LINKER_FLAGS="-static-libgcc -static-libstdc++" .. 105 | fi 106 | make 107 | mv elf2uf2${{ matrix.config.extension }} /tmp/ 108 | 109 | - name: Build pioasm 110 | run: | 111 | cd $GITHUB_WORKSPACE/pico-sdk/tools/pioasm/ 112 | if ls $GITHUB_WORKSPACE/rp2040tools/patches/pioasm_*.patch 1> /dev/null 2>&1 113 | then git apply $GITHUB_WORKSPACE/rp2040tools/patches/pioasm_*.patch 114 | fi 115 | mkdir build 116 | cd build 117 | if [ "${{ matrix.config.os }}" = "darwin" ]; then 118 | cmake -DCMAKE_C_COMPILER=${{ matrix.config.cross_compiler }} -DCMAKE_CXX_COMPILER=${{ matrix.config.cross_compiler }}++ -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -framework IOKit -framework Cocoa" .. 119 | else 120 | cmake -DCMAKE_C_COMPILER=${{ matrix.config.cross_compile }}-gcc -DCMAKE_CXX_COMPILER=${{ matrix.config.cross_compile }}-g++ -DCMAKE_EXE_LINKER_FLAGS="-static-libgcc -static-libstdc++" .. 121 | fi 122 | make 123 | mv pioasm${{ matrix.config.extension }} /tmp/ 124 | 125 | - name: Upload artifacts 126 | uses: actions/upload-artifact@v3 127 | with: 128 | name: tools_${{matrix.config.os}}_${{matrix.config.arch}} 129 | path: | 130 | /tmp/elf2uf2${{ matrix.config.extension }} 131 | /tmp/picotool${{ matrix.config.extension }} 132 | /tmp/pioasm${{ matrix.config.extension }} 133 | 134 | build-go: 135 | name: build-go (${{ matrix.config.os }}, ${{ matrix.config.arch }}) 136 | runs-on: ubuntu-latest 137 | strategy: 138 | matrix: 139 | config: 140 | - os: linux 141 | arch: amd64 142 | - os: linux 143 | arch: 386 144 | - os: linux 145 | arch: arm 146 | - os: linux 147 | arch: arm64 148 | - os: darwin 149 | arch: amd64 150 | - os: windows 151 | arch: 386 152 | extension: .exe 153 | 154 | steps: 155 | - name: Checkout rp2040tools repository 156 | uses: actions/checkout@v4 157 | 158 | - name: Install Go 159 | uses: actions/setup-go@v5 160 | with: 161 | go-version: "1.16.2" 162 | 163 | - name: Install Task 164 | uses: arduino/setup-task@v2 165 | with: 166 | repo-token: ${{ secrets.GITHUB_TOKEN }} 167 | version: 3.x 168 | 169 | - name: Build rp2040load 170 | run: task go:build 171 | env: 172 | GOOS: ${{ matrix.config.os }} 173 | GOARCH: ${{ matrix.config.arch }} 174 | CGO_ENABLED: 0 175 | 176 | - name: Upload artifacts 177 | uses: actions/upload-artifact@v3 178 | with: 179 | name: rp2040load_${{matrix.config.os}}_${{matrix.config.arch}} 180 | path: rp2040load${{ matrix.config.extension }} 181 | 182 | create-release: 183 | runs-on: ubuntu-latest 184 | environment: production 185 | needs: [build, build-go] 186 | permissions: 187 | contents: write 188 | id-token: write # This is required for requesting the JWT 189 | env: 190 | TARGET: "/tools/" 191 | AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} 192 | AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} 193 | AWS_REGION: "us-east-1" # or https://github.com/aws/aws-cli/issues/5623 194 | PROJECT_NAME: rp2040tools 195 | steps: 196 | - name: Checkout rp2040tools repository # we need package_index.template 197 | uses: actions/checkout@v4 198 | 199 | - name: Download artifact 200 | uses: actions/download-artifact@v3 # download all the artifacts 201 | 202 | - name: Prepare artifacts for the release and handle package_index 203 | run: | 204 | mkdir release 205 | package_index=`cat package_index.template | sed s/%%VERSION%%/${GITHUB_REF##*/}/` 206 | declare -a target_folders=("linux_amd64" "linux_386" "linux_arm64" "linux_arm" "darwin_amd64" "windows_386") 207 | for folder in "${target_folders[@]}" 208 | do 209 | chmod -v +x rp2040load_$folder/* && chmod -v +x tools_$folder/* 210 | mv -v rp2040load_$folder/rp2040load* tools_$folder/ 211 | FILENAME=rp2040tools-${GITHUB_REF##*/}-${folder}.tar.bz2 212 | tar -cvjf $FILENAME tools_$folder/ 213 | T_OS=`echo ${folder} | awk '{print toupper($0)}'` 214 | SHASUM=`sha256sum ${FILENAME} | cut -f1 -d" "` 215 | SIZE=`stat --printf="%s" ${FILENAME}` 216 | package_index=`echo "$package_index" | 217 | sed s/%%FILENAME_${T_OS}%%/${FILENAME}/ | 218 | sed s/%%FILENAME_${T_OS}%%/${FILENAME}/ | 219 | sed s/%%SIZE_${T_OS}%%/${SIZE}/ | 220 | sed s/%%SHA_${T_OS}%%/${SHASUM}/` 221 | done 222 | mv -v rp2040tools*.tar.bz2 release/ 223 | echo ================== CUT ME HERE ===================== 224 | echo "${package_index}" 225 | echo "${package_index}" > package_index_draft.json 226 | 227 | - name: Create Github Release and upload artifacts 228 | uses: ncipollo/release-action@v1 229 | with: 230 | token: ${{ secrets.GITHUB_TOKEN }} 231 | artifacts: "release/*,package_index_draft.json" 232 | 233 | - name: configure aws credentials 234 | uses: aws-actions/configure-aws-credentials@v4 235 | with: 236 | role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} 237 | role-session-name: "github_${{ env.PROJECT_NAME }}" 238 | aws-region: ${{ env.AWS_REGION }} 239 | 240 | - name: Upload release files on Arduino downloads servers 241 | run: aws s3 sync release/ s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.TARGET }} 242 | -------------------------------------------------------------------------------- /.github/workflows/sync-labels.yml: -------------------------------------------------------------------------------- 1 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/sync-labels.md 2 | name: Sync Labels 3 | 4 | # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows 5 | on: 6 | push: 7 | paths: 8 | - ".github/workflows/sync-labels.ya?ml" 9 | - ".github/label-configuration-files/*.ya?ml" 10 | pull_request: 11 | paths: 12 | - ".github/workflows/sync-labels.ya?ml" 13 | - ".github/label-configuration-files/*.ya?ml" 14 | schedule: 15 | # Run daily at 8 AM UTC to sync with changes to shared label configurations. 16 | - cron: "0 8 * * *" 17 | workflow_dispatch: 18 | repository_dispatch: 19 | 20 | env: 21 | CONFIGURATIONS_FOLDER: .github/label-configuration-files 22 | CONFIGURATIONS_ARTIFACT: label-configuration-files 23 | 24 | jobs: 25 | check: 26 | runs-on: ubuntu-latest 27 | 28 | steps: 29 | - name: Checkout repository 30 | uses: actions/checkout@v4 31 | 32 | - name: Download JSON schema for labels configuration file 33 | id: download-schema 34 | uses: carlosperate/download-file-action@v2 35 | with: 36 | file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/arduino-tooling-gh-label-configuration-schema.json 37 | location: ${{ runner.temp }}/label-configuration-schema 38 | 39 | - name: Install JSON schema validator 40 | run: | 41 | sudo npm install \ 42 | --global \ 43 | ajv-cli \ 44 | ajv-formats 45 | 46 | - name: Validate local labels configuration 47 | run: | 48 | # See: https://github.com/ajv-validator/ajv-cli#readme 49 | ajv validate \ 50 | --all-errors \ 51 | -c ajv-formats \ 52 | -s "${{ steps.download-schema.outputs.file-path }}" \ 53 | -d "${{ env.CONFIGURATIONS_FOLDER }}/*.{yml,yaml}" 54 | 55 | download: 56 | needs: check 57 | runs-on: ubuntu-latest 58 | 59 | strategy: 60 | matrix: 61 | filename: 62 | # Filenames of the shared configurations to apply to the repository in addition to the local configuration. 63 | # https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/sync-labels 64 | - universal.yml 65 | - tooling.yml 66 | 67 | steps: 68 | - name: Download 69 | uses: carlosperate/download-file-action@v2 70 | with: 71 | file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }} 72 | 73 | - name: Pass configuration files to next job via workflow artifact 74 | uses: actions/upload-artifact@v3 75 | with: 76 | path: | 77 | *.yaml 78 | *.yml 79 | if-no-files-found: error 80 | name: ${{ env.CONFIGURATIONS_ARTIFACT }} 81 | 82 | sync: 83 | needs: download 84 | runs-on: ubuntu-latest 85 | 86 | steps: 87 | - name: Set environment variables 88 | run: | 89 | # See: https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable 90 | echo "MERGED_CONFIGURATION_PATH=${{ runner.temp }}/labels.yml" >> "$GITHUB_ENV" 91 | 92 | - name: Determine whether to dry run 93 | id: dry-run 94 | if: > 95 | github.event_name == 'pull_request' || 96 | ( 97 | ( 98 | github.event_name == 'push' || 99 | github.event_name == 'workflow_dispatch' 100 | ) && 101 | github.ref != format('refs/heads/{0}', github.event.repository.default_branch) 102 | ) 103 | run: | 104 | # Use of this flag in the github-label-sync command will cause it to only check the validity of the 105 | # configuration. 106 | echo "::set-output name=flag::--dry-run" 107 | 108 | - name: Checkout repository 109 | uses: actions/checkout@v4 110 | 111 | - name: Download configuration files artifact 112 | uses: actions/download-artifact@v3 113 | with: 114 | name: ${{ env.CONFIGURATIONS_ARTIFACT }} 115 | path: ${{ env.CONFIGURATIONS_FOLDER }} 116 | 117 | - name: Remove unneeded artifact 118 | uses: geekyeggo/delete-artifact@v2 119 | with: 120 | name: ${{ env.CONFIGURATIONS_ARTIFACT }} 121 | 122 | - name: Merge label configuration files 123 | run: | 124 | # Merge all configuration files 125 | shopt -s extglob 126 | cat "${{ env.CONFIGURATIONS_FOLDER }}"/*.@(yml|yaml) > "${{ env.MERGED_CONFIGURATION_PATH }}" 127 | 128 | - name: Install github-label-sync 129 | run: sudo npm install --global github-label-sync 130 | 131 | - name: Sync labels 132 | env: 133 | GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} 134 | run: | 135 | # See: https://github.com/Financial-Times/github-label-sync 136 | github-label-sync \ 137 | --labels "${{ env.MERGED_CONFIGURATION_PATH }}" \ 138 | ${{ steps.dry-run.outputs.flag }} \ 139 | ${{ github.repository }} 140 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | -------------------------------------------------------------------------------- /.markdown-link-check.json: -------------------------------------------------------------------------------- 1 | { 2 | "httpHeaders": [ 3 | { 4 | "urls": ["https://docs.github.com/"], 5 | "headers": { 6 | "Accept-Encoding": "gzip, deflate, br" 7 | } 8 | } 9 | ], 10 | "retryOn429": true, 11 | "retryCount": 3, 12 | "aliveStatusCodes": [200, 206] 13 | } 14 | -------------------------------------------------------------------------------- /.markdownlint.yml: -------------------------------------------------------------------------------- 1 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-markdown/.markdownlint.yml 2 | # See: https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md 3 | # The code style defined in this file is the official standardized style to be used in all Arduino projects and should 4 | # not be modified. 5 | # Note: Rules disabled solely because they are redundant to Prettier are marked with a "Prettier" comment. 6 | 7 | default: false 8 | MD001: false 9 | MD002: false 10 | MD003: false # Prettier 11 | MD004: false # Prettier 12 | MD005: false # Prettier 13 | MD006: false # Prettier 14 | MD007: false # Prettier 15 | MD008: false # Prettier 16 | MD009: 17 | br_spaces: 0 18 | strict: true 19 | list_item_empty_lines: false # Prettier 20 | MD010: false # Prettier 21 | MD011: true 22 | MD012: false # Prettier 23 | MD013: false 24 | MD014: false 25 | MD018: true 26 | MD019: false # Prettier 27 | MD020: true 28 | MD021: false # Prettier 29 | MD022: false # Prettier 30 | MD023: false # Prettier 31 | MD024: false 32 | MD025: 33 | level: 1 34 | front_matter_title: '^\s*"?title"?\s*[:=]' 35 | MD026: false 36 | MD027: false # Prettier 37 | MD028: false 38 | MD029: 39 | style: one 40 | MD030: 41 | ul_single: 1 42 | ol_single: 1 43 | ul_multi: 1 44 | ol_multi: 1 45 | MD031: false # Prettier 46 | MD032: false # Prettier 47 | MD033: false 48 | MD034: false 49 | MD035: false # Prettier 50 | MD036: false 51 | MD037: true 52 | MD038: true 53 | MD039: true 54 | MD040: false 55 | MD041: false 56 | MD042: true 57 | MD043: false 58 | MD044: false 59 | MD045: true 60 | MD046: 61 | style: fenced 62 | MD047: false # Prettier 63 | -------------------------------------------------------------------------------- /.markdownlintignore: -------------------------------------------------------------------------------- 1 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-markdown/.markdownlintignore 2 | .licenses/ 3 | __pycache__/ 4 | node_modules/ 5 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | .licenses/ 2 | __pycache__/ 3 | node_modules/ 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Mozilla Public License Version 2.0 2 | ================================== 3 | 4 | 1. Definitions 5 | -------------- 6 | 7 | 1.1. "Contributor" 8 | means each individual or legal entity that creates, contributes to 9 | the creation of, or owns Covered Software. 10 | 11 | 1.2. "Contributor Version" 12 | means the combination of the Contributions of others (if any) used 13 | by a Contributor and that particular Contributor's Contribution. 14 | 15 | 1.3. "Contribution" 16 | means Covered Software of a particular Contributor. 17 | 18 | 1.4. "Covered Software" 19 | means Source Code Form to which the initial Contributor has attached 20 | the notice in Exhibit A, the Executable Form of such Source Code 21 | Form, and Modifications of such Source Code Form, in each case 22 | including portions thereof. 23 | 24 | 1.5. "Incompatible With Secondary Licenses" 25 | means 26 | 27 | (a) that the initial Contributor has attached the notice described 28 | in Exhibit B to the Covered Software; or 29 | 30 | (b) that the Covered Software was made available under the terms of 31 | version 1.1 or earlier of the License, but not also under the 32 | terms of a Secondary License. 33 | 34 | 1.6. "Executable Form" 35 | means any form of the work other than Source Code Form. 36 | 37 | 1.7. "Larger Work" 38 | means a work that combines Covered Software with other material, in 39 | a separate file or files, that is not Covered Software. 40 | 41 | 1.8. "License" 42 | means this document. 43 | 44 | 1.9. "Licensable" 45 | means having the right to grant, to the maximum extent possible, 46 | whether at the time of the initial grant or subsequently, any and 47 | all of the rights conveyed by this License. 48 | 49 | 1.10. "Modifications" 50 | means any of the following: 51 | 52 | (a) any file in Source Code Form that results from an addition to, 53 | deletion from, or modification of the contents of Covered 54 | Software; or 55 | 56 | (b) any new file in Source Code Form that contains any Covered 57 | Software. 58 | 59 | 1.11. "Patent Claims" of a Contributor 60 | means any patent claim(s), including without limitation, method, 61 | process, and apparatus claims, in any patent Licensable by such 62 | Contributor that would be infringed, but for the grant of the 63 | License, by the making, using, selling, offering for sale, having 64 | made, import, or transfer of either its Contributions or its 65 | Contributor Version. 66 | 67 | 1.12. "Secondary License" 68 | means either the GNU General Public License, Version 2.0, the GNU 69 | Lesser General Public License, Version 2.1, the GNU Affero General 70 | Public License, Version 3.0, or any later versions of those 71 | licenses. 72 | 73 | 1.13. "Source Code Form" 74 | means the form of the work preferred for making modifications. 75 | 76 | 1.14. "You" (or "Your") 77 | means an individual or a legal entity exercising rights under this 78 | License. For legal entities, "You" includes any entity that 79 | controls, is controlled by, or is under common control with You. For 80 | purposes of this definition, "control" means (a) the power, direct 81 | or indirect, to cause the direction or management of such entity, 82 | whether by contract or otherwise, or (b) ownership of more than 83 | fifty percent (50%) of the outstanding shares or beneficial 84 | ownership of such entity. 85 | 86 | 2. License Grants and Conditions 87 | -------------------------------- 88 | 89 | 2.1. Grants 90 | 91 | Each Contributor hereby grants You a world-wide, royalty-free, 92 | non-exclusive license: 93 | 94 | (a) under intellectual property rights (other than patent or trademark) 95 | Licensable by such Contributor to use, reproduce, make available, 96 | modify, display, perform, distribute, and otherwise exploit its 97 | Contributions, either on an unmodified basis, with Modifications, or 98 | as part of a Larger Work; and 99 | 100 | (b) under Patent Claims of such Contributor to make, use, sell, offer 101 | for sale, have made, import, and otherwise transfer either its 102 | Contributions or its Contributor Version. 103 | 104 | 2.2. Effective Date 105 | 106 | The licenses granted in Section 2.1 with respect to any Contribution 107 | become effective for each Contribution on the date the Contributor first 108 | distributes such Contribution. 109 | 110 | 2.3. Limitations on Grant Scope 111 | 112 | The licenses granted in this Section 2 are the only rights granted under 113 | this License. No additional rights or licenses will be implied from the 114 | distribution or licensing of Covered Software under this License. 115 | Notwithstanding Section 2.1(b) above, no patent license is granted by a 116 | Contributor: 117 | 118 | (a) for any code that a Contributor has removed from Covered Software; 119 | or 120 | 121 | (b) for infringements caused by: (i) Your and any other third party's 122 | modifications of Covered Software, or (ii) the combination of its 123 | Contributions with other software (except as part of its Contributor 124 | Version); or 125 | 126 | (c) under Patent Claims infringed by Covered Software in the absence of 127 | its Contributions. 128 | 129 | This License does not grant any rights in the trademarks, service marks, 130 | or logos of any Contributor (except as may be necessary to comply with 131 | the notice requirements in Section 3.4). 132 | 133 | 2.4. Subsequent Licenses 134 | 135 | No Contributor makes additional grants as a result of Your choice to 136 | distribute the Covered Software under a subsequent version of this 137 | License (see Section 10.2) or under the terms of a Secondary License (if 138 | permitted under the terms of Section 3.3). 139 | 140 | 2.5. Representation 141 | 142 | Each Contributor represents that the Contributor believes its 143 | Contributions are its original creation(s) or it has sufficient rights 144 | to grant the rights to its Contributions conveyed by this License. 145 | 146 | 2.6. Fair Use 147 | 148 | This License is not intended to limit any rights You have under 149 | applicable copyright doctrines of fair use, fair dealing, or other 150 | equivalents. 151 | 152 | 2.7. Conditions 153 | 154 | Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted 155 | in Section 2.1. 156 | 157 | 3. Responsibilities 158 | ------------------- 159 | 160 | 3.1. Distribution of Source Form 161 | 162 | All distribution of Covered Software in Source Code Form, including any 163 | Modifications that You create or to which You contribute, must be under 164 | the terms of this License. You must inform recipients that the Source 165 | Code Form of the Covered Software is governed by the terms of this 166 | License, and how they can obtain a copy of this License. You may not 167 | attempt to alter or restrict the recipients' rights in the Source Code 168 | Form. 169 | 170 | 3.2. Distribution of Executable Form 171 | 172 | If You distribute Covered Software in Executable Form then: 173 | 174 | (a) such Covered Software must also be made available in Source Code 175 | Form, as described in Section 3.1, and You must inform recipients of 176 | the Executable Form how they can obtain a copy of such Source Code 177 | Form by reasonable means in a timely manner, at a charge no more 178 | than the cost of distribution to the recipient; and 179 | 180 | (b) You may distribute such Executable Form under the terms of this 181 | License, or sublicense it under different terms, provided that the 182 | license for the Executable Form does not attempt to limit or alter 183 | the recipients' rights in the Source Code Form under this License. 184 | 185 | 3.3. Distribution of a Larger Work 186 | 187 | You may create and distribute a Larger Work under terms of Your choice, 188 | provided that You also comply with the requirements of this License for 189 | the Covered Software. If the Larger Work is a combination of Covered 190 | Software with a work governed by one or more Secondary Licenses, and the 191 | Covered Software is not Incompatible With Secondary Licenses, this 192 | License permits You to additionally distribute such Covered Software 193 | under the terms of such Secondary License(s), so that the recipient of 194 | the Larger Work may, at their option, further distribute the Covered 195 | Software under the terms of either this License or such Secondary 196 | License(s). 197 | 198 | 3.4. Notices 199 | 200 | You may not remove or alter the substance of any license notices 201 | (including copyright notices, patent notices, disclaimers of warranty, 202 | or limitations of liability) contained within the Source Code Form of 203 | the Covered Software, except that You may alter any license notices to 204 | the extent required to remedy known factual inaccuracies. 205 | 206 | 3.5. Application of Additional Terms 207 | 208 | You may choose to offer, and to charge a fee for, warranty, support, 209 | indemnity or liability obligations to one or more recipients of Covered 210 | Software. However, You may do so only on Your own behalf, and not on 211 | behalf of any Contributor. You must make it absolutely clear that any 212 | such warranty, support, indemnity, or liability obligation is offered by 213 | You alone, and You hereby agree to indemnify every Contributor for any 214 | liability incurred by such Contributor as a result of warranty, support, 215 | indemnity or liability terms You offer. You may include additional 216 | disclaimers of warranty and limitations of liability specific to any 217 | jurisdiction. 218 | 219 | 4. Inability to Comply Due to Statute or Regulation 220 | --------------------------------------------------- 221 | 222 | If it is impossible for You to comply with any of the terms of this 223 | License with respect to some or all of the Covered Software due to 224 | statute, judicial order, or regulation then You must: (a) comply with 225 | the terms of this License to the maximum extent possible; and (b) 226 | describe the limitations and the code they affect. Such description must 227 | be placed in a text file included with all distributions of the Covered 228 | Software under this License. Except to the extent prohibited by statute 229 | or regulation, such description must be sufficiently detailed for a 230 | recipient of ordinary skill to be able to understand it. 231 | 232 | 5. Termination 233 | -------------- 234 | 235 | 5.1. The rights granted under this License will terminate automatically 236 | if You fail to comply with any of its terms. However, if You become 237 | compliant, then the rights granted under this License from a particular 238 | Contributor are reinstated (a) provisionally, unless and until such 239 | Contributor explicitly and finally terminates Your grants, and (b) on an 240 | ongoing basis, if such Contributor fails to notify You of the 241 | non-compliance by some reasonable means prior to 60 days after You have 242 | come back into compliance. Moreover, Your grants from a particular 243 | Contributor are reinstated on an ongoing basis if such Contributor 244 | notifies You of the non-compliance by some reasonable means, this is the 245 | first time You have received notice of non-compliance with this License 246 | from such Contributor, and You become compliant prior to 30 days after 247 | Your receipt of the notice. 248 | 249 | 5.2. If You initiate litigation against any entity by asserting a patent 250 | infringement claim (excluding declaratory judgment actions, 251 | counter-claims, and cross-claims) alleging that a Contributor Version 252 | directly or indirectly infringes any patent, then the rights granted to 253 | You by any and all Contributors for the Covered Software under Section 254 | 2.1 of this License shall terminate. 255 | 256 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, all 257 | end user license agreements (excluding distributors and resellers) which 258 | have been validly granted by You or Your distributors under this License 259 | prior to termination shall survive termination. 260 | 261 | ************************************************************************ 262 | * * 263 | * 6. Disclaimer of Warranty * 264 | * ------------------------- * 265 | * * 266 | * Covered Software is provided under this License on an "as is" * 267 | * basis, without warranty of any kind, either expressed, implied, or * 268 | * statutory, including, without limitation, warranties that the * 269 | * Covered Software is free of defects, merchantable, fit for a * 270 | * particular purpose or non-infringing. The entire risk as to the * 271 | * quality and performance of the Covered Software is with You. * 272 | * Should any Covered Software prove defective in any respect, You * 273 | * (not any Contributor) assume the cost of any necessary servicing, * 274 | * repair, or correction. This disclaimer of warranty constitutes an * 275 | * essential part of this License. No use of any Covered Software is * 276 | * authorized under this License except under this disclaimer. * 277 | * * 278 | ************************************************************************ 279 | 280 | ************************************************************************ 281 | * * 282 | * 7. Limitation of Liability * 283 | * -------------------------- * 284 | * * 285 | * Under no circumstances and under no legal theory, whether tort * 286 | * (including negligence), contract, or otherwise, shall any * 287 | * Contributor, or anyone who distributes Covered Software as * 288 | * permitted above, be liable to You for any direct, indirect, * 289 | * special, incidental, or consequential damages of any character * 290 | * including, without limitation, damages for lost profits, loss of * 291 | * goodwill, work stoppage, computer failure or malfunction, or any * 292 | * and all other commercial damages or losses, even if such party * 293 | * shall have been informed of the possibility of such damages. This * 294 | * limitation of liability shall not apply to liability for death or * 295 | * personal injury resulting from such party's negligence to the * 296 | * extent applicable law prohibits such limitation. Some * 297 | * jurisdictions do not allow the exclusion or limitation of * 298 | * incidental or consequential damages, so this exclusion and * 299 | * limitation may not apply to You. * 300 | * * 301 | ************************************************************************ 302 | 303 | 8. Litigation 304 | ------------- 305 | 306 | Any litigation relating to this License may be brought only in the 307 | courts of a jurisdiction where the defendant maintains its principal 308 | place of business and such litigation shall be governed by laws of that 309 | jurisdiction, without reference to its conflict-of-law provisions. 310 | Nothing in this Section shall prevent a party's ability to bring 311 | cross-claims or counter-claims. 312 | 313 | 9. Miscellaneous 314 | ---------------- 315 | 316 | This License represents the complete agreement concerning the subject 317 | matter hereof. If any provision of this License is held to be 318 | unenforceable, such provision shall be reformed only to the extent 319 | necessary to make it enforceable. Any law or regulation which provides 320 | that the language of a contract shall be construed against the drafter 321 | shall not be used to construe this License against a Contributor. 322 | 323 | 10. Versions of the License 324 | --------------------------- 325 | 326 | 10.1. New Versions 327 | 328 | Mozilla Foundation is the license steward. Except as provided in Section 329 | 10.3, no one other than the license steward has the right to modify or 330 | publish new versions of this License. Each version will be given a 331 | distinguishing version number. 332 | 333 | 10.2. Effect of New Versions 334 | 335 | You may distribute the Covered Software under the terms of the version 336 | of the License under which You originally received the Covered Software, 337 | or under the terms of any subsequent version published by the license 338 | steward. 339 | 340 | 10.3. Modified Versions 341 | 342 | If you create software not governed by this License, and you want to 343 | create a new license for such software, you may create and use a 344 | modified version of this License if you rename the license and remove 345 | any references to the name of the license steward (except to note that 346 | such modified license differs from this License). 347 | 348 | 10.4. Distributing Source Code Form that is Incompatible With Secondary 349 | Licenses 350 | 351 | If You choose to distribute Source Code Form that is Incompatible With 352 | Secondary Licenses under the terms of this version of the License, the 353 | notice described in Exhibit B of this License must be attached. 354 | 355 | Exhibit A - Source Code Form License Notice 356 | ------------------------------------------- 357 | 358 | This Source Code Form is subject to the terms of the Mozilla Public 359 | License, v. 2.0. If a copy of the MPL was not distributed with this 360 | file, You can obtain one at http://mozilla.org/MPL/2.0/. 361 | 362 | If it is not possible or desirable to put the notice in a particular 363 | file, then You may include the notice in a location (such as a LICENSE 364 | file in a relevant directory) where a recipient would be likely to look 365 | for such a notice. 366 | 367 | You may add additional accurate notices of copyright ownership. 368 | 369 | Exhibit B - "Incompatible With Secondary Licenses" Notice 370 | --------------------------------------------------------- 371 | 372 | This Source Code Form is "Incompatible With Secondary Licenses", as 373 | defined by the Mozilla Public License, v. 2.0. 374 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # rp2040tools 2 | 3 | [![Check Go status](https://github.com/arduino/rp2040tools/actions/workflows/check-go-task.yml/badge.svg)](https://github.com/arduino/rp2040tools/actions/workflows/check-go-task.yml) 4 | [![Check Markdown status](https://github.com/arduino/rp2040tools/actions/workflows/check-markdown-task.yml/badge.svg)](https://github.com/arduino/rp2040tools/actions/workflows/check-markdown-task.yml) 5 | [![Check Prettier Formatting status](https://github.com/arduino/rp2040tools/actions/workflows/check-prettier-formatting-task.yml/badge.svg)](https://github.com/arduino/rp2040tools/actions/workflows/check-prettier-formatting-task.yml) 6 | [![Check Taskfiles status](https://github.com/arduino/rp2040tools/actions/workflows/check-taskfiles.yml/badge.svg)](https://github.com/arduino/rp2040tools/actions/workflows/check-taskfiles.yml) 7 | [![Sync Labels status](https://github.com/arduino/rp2040tools/actions/workflows/sync-labels.yml/badge.svg)](https://github.com/arduino/rp2040tools/actions/workflows/sync-labels.yml) 8 | 9 | This repo contains all the tools used by Arduino to upload compiled code to the boards that use the rp2040 processor. 10 | 11 | ## Tools 12 | 13 | - [**picotool**](https://github.com/raspberrypi/picotool): a tool for interacting with a RP2040 device in BOOTSEL mode, or with a RP2040 binary 14 | - [**elf2uf2**](https://github.com/raspberrypi/pico-sdk/tree/master/tools/elf2uf2): a tool to convert binary format 15 | - **rp2040load** is a go tool which orchestrates the other two 16 | - [**pioasm**](https://github.com/raspberrypi/pico-sdk/tree/master/tools/pioasm) 17 | 18 | ## CI 19 | 20 | The CI is responsible for building and uploading the tools 21 | The [release workflow](https://github.com/arduino/rp2040tools/blob/master/.github/workflows/release.yml) is divided in: 22 | 23 | - a job which uses a docker container (called crossbuild) with all the toolchains inside required to cross-compile the tools from raspberry pi. The binaries produced are as static and self-contained as possible. 24 | - a job that cross-compiles the go tool called rp2040load. 25 | - one last job used to move in the correct folders the binaries and to `tar.bz2` them and upload them in the [github release page](https://github.com/arduino/rp2040tools/releases) and on s3 download server. 26 | -------------------------------------------------------------------------------- /Taskfile.yml: -------------------------------------------------------------------------------- 1 | # See: https://taskfile.dev/#/usage 2 | version: "3" 3 | 4 | vars: 5 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/release-go-task/Taskfile.yml 6 | PROJECT_NAME: rp2040load 7 | DIST_DIR: "dist" 8 | # build vars 9 | COMMIT: 10 | sh: echo "$(git log --no-show-signature -n 1 --format=%h)" 11 | TIMESTAMP: 12 | sh: echo "$(date -u +"%Y-%m-%dT%H:%M:%SZ")" 13 | TIMESTAMP_SHORT: 14 | sh: echo "{{now | date "20060102"}}" 15 | TAG: 16 | sh: echo "$(git tag --points-at=HEAD 2> /dev/null | head -n1)" 17 | VERSION: "{{if .NIGHTLY}}nightly-{{.TIMESTAMP_SHORT}}{{else if .TAG}}{{.TAG}}{{else}}{{.PACKAGE_NAME_PREFIX}}git-snapshot{{end}}" 18 | CONFIGURATION_PACKAGE: main 19 | LDFLAGS: >- 20 | -ldflags 21 | ' 22 | -X {{.CONFIGURATION_PACKAGE}}.version={{.VERSION}} 23 | ' 24 | # Path of the project's primary Go module: 25 | DEFAULT_GO_MODULE_PATH: ./ 26 | DEFAULT_GO_PACKAGES: 27 | sh: | 28 | echo $(cd {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}} && go list ./... | tr '\n' ' ' || echo '"ERROR: Unable to discover Go packages"') 29 | 30 | tasks: 31 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/go-task/Taskfile.yml 32 | go:build: 33 | desc: Build the Go code 34 | dir: "{{.DEFAULT_GO_MODULE_PATH}}" 35 | cmds: 36 | - go build -v {{.LDFLAGS}} 37 | 38 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml 39 | go:fix: 40 | desc: Modernize usages of outdated APIs 41 | dir: "{{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}}" 42 | cmds: 43 | - go fix {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}} 44 | 45 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml 46 | go:format: 47 | desc: Format Go code 48 | dir: "{{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}}" 49 | cmds: 50 | - go fmt {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}} 51 | 52 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml 53 | go:lint: 54 | desc: Lint Go code 55 | dir: "{{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}}" 56 | cmds: 57 | - | 58 | if ! which golint &>/dev/null; then 59 | echo "golint not installed or not in PATH. Please install: https://github.com/golang/lint#installation" 60 | exit 1 61 | fi 62 | - | 63 | golint \ 64 | {{default "-min_confidence 0.8 -set_exit_status" .GO_LINT_FLAGS}} \ 65 | {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}} 66 | 67 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml 68 | go:vet: 69 | desc: Check for errors in Go code 70 | dir: "{{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}}" 71 | cmds: 72 | - go vet {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}} 73 | 74 | docs:generate: 75 | desc: Create all generated documentation content 76 | # This is an "umbrella" task used to call any documentation generation processes the project has. 77 | # It can be left empty if there are none. 78 | 79 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-markdown-task/Taskfile.yml 80 | markdown:check-links: 81 | desc: Check for broken links 82 | deps: 83 | - task: docs:generate 84 | - task: npm:install-deps 85 | cmds: 86 | - | 87 | if [[ "{{.OS}}" == "Windows_NT" ]]; then 88 | # npx --call uses the native shell, which makes it too difficult to use npx for this application on Windows, 89 | # so the Windows user is required to have markdown-link-check installed and in PATH. 90 | if ! which markdown-link-check &>/dev/null; then 91 | echo "markdown-link-check not found or not in PATH. Please install: https://github.com/tcort/markdown-link-check#readme" 92 | exit 1 93 | fi 94 | # Default behavior of the task on Windows is to exit the task when the first broken link causes a non-zero 95 | # exit status, but it's better to check all links before exiting. 96 | set +o errexit 97 | STATUS=0 98 | # Using -regex instead of -name to avoid Task's behavior of globbing even when quoted on Windows 99 | # The odd method for escaping . in the regex is required for windows compatibility because mvdan.cc/sh gives 100 | # \ characters special treatment on Windows in an attempt to support them as path separators. 101 | for file in $( 102 | find . \ 103 | -type d -name '.git' -prune -o \ 104 | -type d -name '.licenses' -prune -o \ 105 | -type d -name '__pycache__' -prune -o \ 106 | -type d -name 'node_modules' -prune -o \ 107 | -regex ".*[.]md" -print 108 | ); do 109 | markdown-link-check \ 110 | --quiet \ 111 | --config "./.markdown-link-check.json" \ 112 | "$file" 113 | STATUS=$(( $STATUS + $? )) 114 | done 115 | exit $STATUS 116 | else 117 | npx --package=markdown-link-check --call=' 118 | STATUS=0 119 | for file in $( 120 | find . \ 121 | -type d -name '.git' -prune -o \ 122 | -type d -name '.licenses' -prune -o \ 123 | -type d -name '__pycache__' -prune -o \ 124 | -type d -name 'node_modules' -prune -o \ 125 | -regex ".*[.]md" -print 126 | ); do 127 | markdown-link-check \ 128 | --quiet \ 129 | --config "./.markdown-link-check.json" \ 130 | "$file" 131 | STATUS=$(( $STATUS + $? )) 132 | done 133 | exit $STATUS 134 | ' 135 | fi 136 | 137 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-markdown-task/Taskfile.yml 138 | markdown:fix: 139 | desc: Automatically correct linting violations in Markdown files where possible 140 | deps: 141 | - task: npm:install-deps 142 | cmds: 143 | - npx markdownlint-cli --fix "**/*.md" 144 | 145 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-markdown-task/Taskfile.yml 146 | markdown:lint: 147 | desc: Check for problems in Markdown files 148 | deps: 149 | - task: npm:install-deps 150 | cmds: 151 | - npx markdownlint-cli "**/*.md" 152 | 153 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-prettier-formatting-task/Taskfile.yml 154 | general:format-prettier: 155 | desc: Format all supported files with Prettier 156 | deps: 157 | - task: npm:install-deps 158 | cmds: 159 | - npx prettier --write . 160 | 161 | # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/npm-task/Taskfile.yml 162 | npm:install-deps: 163 | desc: Install dependencies managed by npm 164 | cmds: 165 | - npm install 166 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/arduino/rp2040load 2 | 3 | go 1.16 4 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arduino/rp2040tools/1adfd1d74b52e63036576800d9e89b3e0cf85400/go.sum -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "bufio" 5 | "flag" 6 | "fmt" 7 | "io" 8 | "os" 9 | "os/exec" 10 | "path/filepath" 11 | "runtime" 12 | "time" 13 | ) 14 | 15 | var ( 16 | verbose = flag.Bool("v", false, "Show verbose logging") 17 | binary = flag.String("D", "", "Path of the elf file to load") 18 | verify = flag.Bool("y", false, "Verify flash after upload") 19 | version = "0.0.0-dev" // CI will take care of it 20 | ) 21 | 22 | // PrintlnVerbose executes Println of the interface if verbose 23 | func PrintlnVerbose(a ...interface{}) { 24 | if *verbose { 25 | fmt.Println(a...) 26 | } 27 | } 28 | 29 | // PrintVerbose executes Print of the interface if verbose 30 | func PrintVerbose(a ...interface{}) { 31 | if *verbose { 32 | fmt.Print(a...) 33 | } 34 | } 35 | 36 | func main() { 37 | name := filepath.Base(os.Args[0]) 38 | path, _ := filepath.Abs(filepath.Dir(os.Args[0])) 39 | flag.Parse() 40 | 41 | PrintlnVerbose(name + " " + version + " - compiled with " + runtime.Version()) 42 | 43 | convert := []string{filepath.Join(path, "elf2uf2"), *binary, *binary + ".uf2"} 44 | launchCommandAndWaitForOutput(convert, false, false) 45 | 46 | info := []string{filepath.Join(path, "picotool"), "info"} 47 | _, _, err := launchCommandAndWaitForOutput(info, false, true) 48 | for i := 0; i < 20 && err != nil; i++ { 49 | _, _, err = launchCommandAndWaitForOutput(info, false, true) 50 | time.Sleep(500 * time.Millisecond) 51 | } 52 | if err != nil { 53 | fmt.Println("") 54 | os.Exit(1) 55 | } 56 | 57 | load := []string{filepath.Join(path, "picotool"), "load"} 58 | if *verify { 59 | load = append(load, "-v") 60 | } 61 | load = append(load, *binary+".uf2") 62 | _, _, err = launchCommandAndWaitForOutput(load, true, false) 63 | if err != nil { 64 | fmt.Println("") 65 | os.Exit(1) 66 | } 67 | 68 | reboot := []string{filepath.Join(path, "picotool"), "reboot"} 69 | _, _, err = launchCommandAndWaitForOutput(reboot, false, false) 70 | if err != nil { 71 | fmt.Println("") 72 | os.Exit(1) 73 | } 74 | 75 | fmt.Println("") 76 | os.Exit(0) 77 | } 78 | 79 | func launchCommandAndWaitForOutput(command []string, printOutput bool, showSpinner bool) (bool, string, error) { 80 | oscmd := exec.Command(command[0], command[1:]...) 81 | tellCommandNotToSpawnShell(oscmd) 82 | stdout, _ := oscmd.StdoutPipe() 83 | stderr, _ := oscmd.StderrPipe() 84 | multi := io.MultiReader(stdout, stderr) 85 | 86 | if printOutput && *verbose { 87 | oscmd.Stdout = os.Stdout 88 | oscmd.Stderr = os.Stderr 89 | } 90 | err := oscmd.Start() 91 | in := bufio.NewScanner(multi) 92 | in.Split(bufio.ScanRunes) 93 | found := false 94 | out := "" 95 | if showSpinner { 96 | fmt.Printf(".") 97 | } 98 | lastPrint := time.Now() 99 | for in.Scan() { 100 | if showSpinner && time.Since(lastPrint) > time.Second { 101 | fmt.Printf(".") 102 | lastPrint = time.Now() 103 | } 104 | out += in.Text() 105 | } 106 | err = oscmd.Wait() 107 | return found, out, err 108 | } 109 | 110 | func launchCommandBackground(command []string) (bool, error) { 111 | oscmd := exec.Command(command[0], command[1:]...) 112 | tellCommandNotToSpawnShell(oscmd) 113 | err := oscmd.Start() 114 | return false, err 115 | } 116 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rp2040tools", 3 | "lockfileVersion": 2, 4 | "requires": true, 5 | "packages": { 6 | "": { 7 | "devDependencies": { 8 | "ajv-cli": "^5.0.0", 9 | "ajv-formats": "^2.1.1", 10 | "markdown-link-check": "^3.10.2", 11 | "markdownlint-cli": "^0.31.1", 12 | "prettier": "^2.7.1" 13 | } 14 | }, 15 | "node_modules/ajv": { 16 | "version": "8.11.0", 17 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", 18 | "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", 19 | "dev": true, 20 | "dependencies": { 21 | "fast-deep-equal": "^3.1.1", 22 | "json-schema-traverse": "^1.0.0", 23 | "require-from-string": "^2.0.2", 24 | "uri-js": "^4.2.2" 25 | }, 26 | "funding": { 27 | "type": "github", 28 | "url": "https://github.com/sponsors/epoberezkin" 29 | } 30 | }, 31 | "node_modules/ajv-cli": { 32 | "version": "5.0.0", 33 | "resolved": "https://registry.npmjs.org/ajv-cli/-/ajv-cli-5.0.0.tgz", 34 | "integrity": "sha512-LY4m6dUv44HTyhV+u2z5uX4EhPYTM38Iv1jdgDJJJCyOOuqB8KtZEGjPZ2T+sh5ZIJrXUfgErYx/j3gLd3+PlQ==", 35 | "dev": true, 36 | "dependencies": { 37 | "ajv": "^8.0.0", 38 | "fast-json-patch": "^2.0.0", 39 | "glob": "^7.1.0", 40 | "js-yaml": "^3.14.0", 41 | "json-schema-migrate": "^2.0.0", 42 | "json5": "^2.1.3", 43 | "minimist": "^1.2.0" 44 | }, 45 | "bin": { 46 | "ajv": "dist/index.js" 47 | }, 48 | "peerDependencies": { 49 | "ts-node": ">=9.0.0" 50 | }, 51 | "peerDependenciesMeta": { 52 | "ts-node": { 53 | "optional": true 54 | } 55 | } 56 | }, 57 | "node_modules/ajv-cli/node_modules/argparse": { 58 | "version": "1.0.10", 59 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 60 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 61 | "dev": true, 62 | "dependencies": { 63 | "sprintf-js": "~1.0.2" 64 | } 65 | }, 66 | "node_modules/ajv-cli/node_modules/js-yaml": { 67 | "version": "3.14.1", 68 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", 69 | "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", 70 | "dev": true, 71 | "dependencies": { 72 | "argparse": "^1.0.7", 73 | "esprima": "^4.0.0" 74 | }, 75 | "bin": { 76 | "js-yaml": "bin/js-yaml.js" 77 | } 78 | }, 79 | "node_modules/ajv-formats": { 80 | "version": "2.1.1", 81 | "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", 82 | "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", 83 | "dev": true, 84 | "dependencies": { 85 | "ajv": "^8.0.0" 86 | }, 87 | "peerDependencies": { 88 | "ajv": "^8.0.0" 89 | }, 90 | "peerDependenciesMeta": { 91 | "ajv": { 92 | "optional": true 93 | } 94 | } 95 | }, 96 | "node_modules/ansi-styles": { 97 | "version": "4.3.0", 98 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 99 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 100 | "dev": true, 101 | "dependencies": { 102 | "color-convert": "^2.0.1" 103 | }, 104 | "engines": { 105 | "node": ">=8" 106 | }, 107 | "funding": { 108 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 109 | } 110 | }, 111 | "node_modules/argparse": { 112 | "version": "2.0.1", 113 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 114 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 115 | "dev": true 116 | }, 117 | "node_modules/async": { 118 | "version": "3.2.4", 119 | "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", 120 | "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", 121 | "dev": true 122 | }, 123 | "node_modules/balanced-match": { 124 | "version": "1.0.2", 125 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 126 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 127 | "dev": true 128 | }, 129 | "node_modules/boolbase": { 130 | "version": "1.0.0", 131 | "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", 132 | "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", 133 | "dev": true 134 | }, 135 | "node_modules/brace-expansion": { 136 | "version": "1.1.11", 137 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 138 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 139 | "dev": true, 140 | "dependencies": { 141 | "balanced-match": "^1.0.0", 142 | "concat-map": "0.0.1" 143 | } 144 | }, 145 | "node_modules/chalk": { 146 | "version": "4.1.2", 147 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 148 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 149 | "dev": true, 150 | "dependencies": { 151 | "ansi-styles": "^4.1.0", 152 | "supports-color": "^7.1.0" 153 | }, 154 | "engines": { 155 | "node": ">=10" 156 | }, 157 | "funding": { 158 | "url": "https://github.com/chalk/chalk?sponsor=1" 159 | } 160 | }, 161 | "node_modules/cheerio": { 162 | "version": "1.0.0-rc.12", 163 | "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz", 164 | "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==", 165 | "dev": true, 166 | "dependencies": { 167 | "cheerio-select": "^2.1.0", 168 | "dom-serializer": "^2.0.0", 169 | "domhandler": "^5.0.3", 170 | "domutils": "^3.0.1", 171 | "htmlparser2": "^8.0.1", 172 | "parse5": "^7.0.0", 173 | "parse5-htmlparser2-tree-adapter": "^7.0.0" 174 | }, 175 | "engines": { 176 | "node": ">= 6" 177 | }, 178 | "funding": { 179 | "url": "https://github.com/cheeriojs/cheerio?sponsor=1" 180 | } 181 | }, 182 | "node_modules/cheerio-select": { 183 | "version": "2.1.0", 184 | "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz", 185 | "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==", 186 | "dev": true, 187 | "dependencies": { 188 | "boolbase": "^1.0.0", 189 | "css-select": "^5.1.0", 190 | "css-what": "^6.1.0", 191 | "domelementtype": "^2.3.0", 192 | "domhandler": "^5.0.3", 193 | "domutils": "^3.0.1" 194 | }, 195 | "funding": { 196 | "url": "https://github.com/sponsors/fb55" 197 | } 198 | }, 199 | "node_modules/color-convert": { 200 | "version": "2.0.1", 201 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 202 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 203 | "dev": true, 204 | "dependencies": { 205 | "color-name": "~1.1.4" 206 | }, 207 | "engines": { 208 | "node": ">=7.0.0" 209 | } 210 | }, 211 | "node_modules/color-name": { 212 | "version": "1.1.4", 213 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 214 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 215 | "dev": true 216 | }, 217 | "node_modules/commander": { 218 | "version": "6.2.1", 219 | "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", 220 | "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", 221 | "dev": true, 222 | "engines": { 223 | "node": ">= 6" 224 | } 225 | }, 226 | "node_modules/concat-map": { 227 | "version": "0.0.1", 228 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 229 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 230 | "dev": true 231 | }, 232 | "node_modules/css-select": { 233 | "version": "5.1.0", 234 | "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", 235 | "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", 236 | "dev": true, 237 | "dependencies": { 238 | "boolbase": "^1.0.0", 239 | "css-what": "^6.1.0", 240 | "domhandler": "^5.0.2", 241 | "domutils": "^3.0.1", 242 | "nth-check": "^2.0.1" 243 | }, 244 | "funding": { 245 | "url": "https://github.com/sponsors/fb55" 246 | } 247 | }, 248 | "node_modules/css-what": { 249 | "version": "6.1.0", 250 | "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", 251 | "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", 252 | "dev": true, 253 | "engines": { 254 | "node": ">= 6" 255 | }, 256 | "funding": { 257 | "url": "https://github.com/sponsors/fb55" 258 | } 259 | }, 260 | "node_modules/debug": { 261 | "version": "3.2.7", 262 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", 263 | "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", 264 | "dev": true, 265 | "dependencies": { 266 | "ms": "^2.1.1" 267 | } 268 | }, 269 | "node_modules/deep-extend": { 270 | "version": "0.6.0", 271 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", 272 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", 273 | "dev": true, 274 | "engines": { 275 | "node": ">=4.0.0" 276 | } 277 | }, 278 | "node_modules/dom-serializer": { 279 | "version": "2.0.0", 280 | "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", 281 | "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", 282 | "dev": true, 283 | "dependencies": { 284 | "domelementtype": "^2.3.0", 285 | "domhandler": "^5.0.2", 286 | "entities": "^4.2.0" 287 | }, 288 | "funding": { 289 | "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" 290 | } 291 | }, 292 | "node_modules/domelementtype": { 293 | "version": "2.3.0", 294 | "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", 295 | "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", 296 | "dev": true, 297 | "funding": [ 298 | { 299 | "type": "github", 300 | "url": "https://github.com/sponsors/fb55" 301 | } 302 | ] 303 | }, 304 | "node_modules/domhandler": { 305 | "version": "5.0.3", 306 | "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", 307 | "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", 308 | "dev": true, 309 | "dependencies": { 310 | "domelementtype": "^2.3.0" 311 | }, 312 | "engines": { 313 | "node": ">= 4" 314 | }, 315 | "funding": { 316 | "url": "https://github.com/fb55/domhandler?sponsor=1" 317 | } 318 | }, 319 | "node_modules/domutils": { 320 | "version": "3.0.1", 321 | "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.0.1.tgz", 322 | "integrity": "sha512-z08c1l761iKhDFtfXO04C7kTdPBLi41zwOZl00WS8b5eiaebNpY00HKbztwBq+e3vyqWNwWF3mP9YLUeqIrF+Q==", 323 | "dev": true, 324 | "dependencies": { 325 | "dom-serializer": "^2.0.0", 326 | "domelementtype": "^2.3.0", 327 | "domhandler": "^5.0.1" 328 | }, 329 | "funding": { 330 | "url": "https://github.com/fb55/domutils?sponsor=1" 331 | } 332 | }, 333 | "node_modules/entities": { 334 | "version": "4.3.1", 335 | "resolved": "https://registry.npmjs.org/entities/-/entities-4.3.1.tgz", 336 | "integrity": "sha512-o4q/dYJlmyjP2zfnaWDUC6A3BQFmVTX+tZPezK7k0GLSU9QYCauscf5Y+qcEPzKL+EixVouYDgLQK5H9GrLpkg==", 337 | "dev": true, 338 | "engines": { 339 | "node": ">=0.12" 340 | }, 341 | "funding": { 342 | "url": "https://github.com/fb55/entities?sponsor=1" 343 | } 344 | }, 345 | "node_modules/esprima": { 346 | "version": "4.0.1", 347 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 348 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 349 | "dev": true, 350 | "bin": { 351 | "esparse": "bin/esparse.js", 352 | "esvalidate": "bin/esvalidate.js" 353 | }, 354 | "engines": { 355 | "node": ">=4" 356 | } 357 | }, 358 | "node_modules/fast-deep-equal": { 359 | "version": "3.1.3", 360 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 361 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 362 | "dev": true 363 | }, 364 | "node_modules/fast-json-patch": { 365 | "version": "2.2.1", 366 | "resolved": "https://registry.npmjs.org/fast-json-patch/-/fast-json-patch-2.2.1.tgz", 367 | "integrity": "sha512-4j5uBaTnsYAV5ebkidvxiLUYOwjQ+JSFljeqfTxCrH9bDmlCQaOJFS84oDJ2rAXZq2yskmk3ORfoP9DCwqFNig==", 368 | "dev": true, 369 | "dependencies": { 370 | "fast-deep-equal": "^2.0.1" 371 | }, 372 | "engines": { 373 | "node": ">= 0.4.0" 374 | } 375 | }, 376 | "node_modules/fast-json-patch/node_modules/fast-deep-equal": { 377 | "version": "2.0.1", 378 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", 379 | "integrity": "sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==", 380 | "dev": true 381 | }, 382 | "node_modules/fs.realpath": { 383 | "version": "1.0.0", 384 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 385 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 386 | "dev": true 387 | }, 388 | "node_modules/get-stdin": { 389 | "version": "9.0.0", 390 | "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-9.0.0.tgz", 391 | "integrity": "sha512-dVKBjfWisLAicarI2Sf+JuBE/DghV4UzNAVe9yhEJuzeREd3JhOTE9cUaJTeSa77fsbQUK3pcOpJfM59+VKZaA==", 392 | "dev": true, 393 | "engines": { 394 | "node": ">=12" 395 | }, 396 | "funding": { 397 | "url": "https://github.com/sponsors/sindresorhus" 398 | } 399 | }, 400 | "node_modules/glob": { 401 | "version": "7.2.3", 402 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 403 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 404 | "dev": true, 405 | "dependencies": { 406 | "fs.realpath": "^1.0.0", 407 | "inflight": "^1.0.4", 408 | "inherits": "2", 409 | "minimatch": "^3.1.1", 410 | "once": "^1.3.0", 411 | "path-is-absolute": "^1.0.0" 412 | }, 413 | "engines": { 414 | "node": "*" 415 | }, 416 | "funding": { 417 | "url": "https://github.com/sponsors/isaacs" 418 | } 419 | }, 420 | "node_modules/glob/node_modules/minimatch": { 421 | "version": "3.1.2", 422 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 423 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 424 | "dev": true, 425 | "dependencies": { 426 | "brace-expansion": "^1.1.7" 427 | }, 428 | "engines": { 429 | "node": "*" 430 | } 431 | }, 432 | "node_modules/has-flag": { 433 | "version": "4.0.0", 434 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 435 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 436 | "dev": true, 437 | "engines": { 438 | "node": ">=8" 439 | } 440 | }, 441 | "node_modules/html-link-extractor": { 442 | "version": "1.0.5", 443 | "resolved": "https://registry.npmjs.org/html-link-extractor/-/html-link-extractor-1.0.5.tgz", 444 | "integrity": "sha512-ADd49pudM157uWHwHQPUSX4ssMsvR/yHIswOR5CUfBdK9g9ZYGMhVSE6KZVHJ6kCkR0gH4htsfzU6zECDNVwyw==", 445 | "dev": true, 446 | "dependencies": { 447 | "cheerio": "^1.0.0-rc.10" 448 | } 449 | }, 450 | "node_modules/htmlparser2": { 451 | "version": "8.0.1", 452 | "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.1.tgz", 453 | "integrity": "sha512-4lVbmc1diZC7GUJQtRQ5yBAeUCL1exyMwmForWkRLnwyzWBFxN633SALPMGYaWZvKe9j1pRZJpauvmxENSp/EA==", 454 | "dev": true, 455 | "funding": [ 456 | "https://github.com/fb55/htmlparser2?sponsor=1", 457 | { 458 | "type": "github", 459 | "url": "https://github.com/sponsors/fb55" 460 | } 461 | ], 462 | "dependencies": { 463 | "domelementtype": "^2.3.0", 464 | "domhandler": "^5.0.2", 465 | "domutils": "^3.0.1", 466 | "entities": "^4.3.0" 467 | } 468 | }, 469 | "node_modules/iconv-lite": { 470 | "version": "0.6.3", 471 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", 472 | "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", 473 | "dev": true, 474 | "dependencies": { 475 | "safer-buffer": ">= 2.1.2 < 3.0.0" 476 | }, 477 | "engines": { 478 | "node": ">=0.10.0" 479 | } 480 | }, 481 | "node_modules/ignore": { 482 | "version": "5.2.0", 483 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", 484 | "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", 485 | "dev": true, 486 | "engines": { 487 | "node": ">= 4" 488 | } 489 | }, 490 | "node_modules/inflight": { 491 | "version": "1.0.6", 492 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 493 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 494 | "dev": true, 495 | "dependencies": { 496 | "once": "^1.3.0", 497 | "wrappy": "1" 498 | } 499 | }, 500 | "node_modules/inherits": { 501 | "version": "2.0.4", 502 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 503 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 504 | "dev": true 505 | }, 506 | "node_modules/ini": { 507 | "version": "3.0.0", 508 | "resolved": "https://registry.npmjs.org/ini/-/ini-3.0.0.tgz", 509 | "integrity": "sha512-TxYQaeNW/N8ymDvwAxPyRbhMBtnEwuvaTYpOQkFx1nSeusgezHniEc/l35Vo4iCq/mMiTJbpD7oYxN98hFlfmw==", 510 | "dev": true, 511 | "engines": { 512 | "node": "^12.13.0 || ^14.15.0 || >=16.0.0" 513 | } 514 | }, 515 | "node_modules/is-absolute-url": { 516 | "version": "3.0.3", 517 | "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-3.0.3.tgz", 518 | "integrity": "sha512-opmNIX7uFnS96NtPmhWQgQx6/NYFgsUXYMllcfzwWKUMwfo8kku1TvE6hkNcH+Q1ts5cMVrsY7j0bxXQDciu9Q==", 519 | "dev": true, 520 | "engines": { 521 | "node": ">=8" 522 | } 523 | }, 524 | "node_modules/is-relative-url": { 525 | "version": "3.0.0", 526 | "resolved": "https://registry.npmjs.org/is-relative-url/-/is-relative-url-3.0.0.tgz", 527 | "integrity": "sha512-U1iSYRlY2GIMGuZx7gezlB5dp1Kheaym7zKzO1PV06mOihiWTXejLwm4poEJysPyXF+HtK/BEd0DVlcCh30pEA==", 528 | "dev": true, 529 | "dependencies": { 530 | "is-absolute-url": "^3.0.0" 531 | }, 532 | "engines": { 533 | "node": ">=8" 534 | } 535 | }, 536 | "node_modules/isemail": { 537 | "version": "3.2.0", 538 | "resolved": "https://registry.npmjs.org/isemail/-/isemail-3.2.0.tgz", 539 | "integrity": "sha512-zKqkK+O+dGqevc93KNsbZ/TqTUFd46MwWjYOoMrjIMZ51eU7DtQG3Wmd9SQQT7i7RVnuTPEiYEWHU3MSbxC1Tg==", 540 | "dev": true, 541 | "dependencies": { 542 | "punycode": "2.x.x" 543 | }, 544 | "engines": { 545 | "node": ">=4.0.0" 546 | } 547 | }, 548 | "node_modules/js-yaml": { 549 | "version": "4.1.0", 550 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 551 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 552 | "dev": true, 553 | "dependencies": { 554 | "argparse": "^2.0.1" 555 | }, 556 | "bin": { 557 | "js-yaml": "bin/js-yaml.js" 558 | } 559 | }, 560 | "node_modules/json-schema-migrate": { 561 | "version": "2.0.0", 562 | "resolved": "https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-2.0.0.tgz", 563 | "integrity": "sha512-r38SVTtojDRp4eD6WsCqiE0eNDt4v1WalBXb9cyZYw9ai5cGtBwzRNWjHzJl38w6TxFkXAIA7h+fyX3tnrAFhQ==", 564 | "dev": true, 565 | "dependencies": { 566 | "ajv": "^8.0.0" 567 | } 568 | }, 569 | "node_modules/json-schema-traverse": { 570 | "version": "1.0.0", 571 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", 572 | "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", 573 | "dev": true 574 | }, 575 | "node_modules/json5": { 576 | "version": "2.2.3", 577 | "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", 578 | "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", 579 | "dev": true, 580 | "bin": { 581 | "json5": "lib/cli.js" 582 | }, 583 | "engines": { 584 | "node": ">=6" 585 | } 586 | }, 587 | "node_modules/jsonc-parser": { 588 | "version": "3.0.0", 589 | "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz", 590 | "integrity": "sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA==", 591 | "dev": true 592 | }, 593 | "node_modules/link-check": { 594 | "version": "5.1.0", 595 | "resolved": "https://registry.npmjs.org/link-check/-/link-check-5.1.0.tgz", 596 | "integrity": "sha512-FHq/9tVnIE/3EVEPb91GcbD+K/Pv5K5DYqb7vXi3TTKIViMYPOWxYFVVENZ0rq63zfaGXGvLgPT9U6jOFc5JBw==", 597 | "dev": true, 598 | "dependencies": { 599 | "is-relative-url": "^3.0.0", 600 | "isemail": "^3.2.0", 601 | "ms": "^2.1.3", 602 | "needle": "^3.0.0" 603 | } 604 | }, 605 | "node_modules/linkify-it": { 606 | "version": "3.0.3", 607 | "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-3.0.3.tgz", 608 | "integrity": "sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==", 609 | "dev": true, 610 | "dependencies": { 611 | "uc.micro": "^1.0.1" 612 | } 613 | }, 614 | "node_modules/lodash": { 615 | "version": "4.17.21", 616 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 617 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", 618 | "dev": true 619 | }, 620 | "node_modules/markdown-it": { 621 | "version": "12.3.2", 622 | "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-12.3.2.tgz", 623 | "integrity": "sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==", 624 | "dev": true, 625 | "dependencies": { 626 | "argparse": "^2.0.1", 627 | "entities": "~2.1.0", 628 | "linkify-it": "^3.0.1", 629 | "mdurl": "^1.0.1", 630 | "uc.micro": "^1.0.5" 631 | }, 632 | "bin": { 633 | "markdown-it": "bin/markdown-it.js" 634 | } 635 | }, 636 | "node_modules/markdown-it/node_modules/entities": { 637 | "version": "2.1.0", 638 | "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz", 639 | "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==", 640 | "dev": true, 641 | "funding": { 642 | "url": "https://github.com/fb55/entities?sponsor=1" 643 | } 644 | }, 645 | "node_modules/markdown-link-check": { 646 | "version": "3.10.2", 647 | "resolved": "https://registry.npmjs.org/markdown-link-check/-/markdown-link-check-3.10.2.tgz", 648 | "integrity": "sha512-5yQEVtjLxAjxWy82+iTgxrekr1tuD4sKGgwXiyLrCep8RERFH3yCdpZdeA12em2S2SEwXGxp6qHI73jVhuScKA==", 649 | "dev": true, 650 | "dependencies": { 651 | "async": "^3.2.3", 652 | "chalk": "^4.1.2", 653 | "commander": "^6.2.0", 654 | "link-check": "^5.1.0", 655 | "lodash": "^4.17.21", 656 | "markdown-link-extractor": "^3.0.2", 657 | "needle": "^3.1.0", 658 | "progress": "^2.0.3" 659 | }, 660 | "bin": { 661 | "markdown-link-check": "markdown-link-check" 662 | } 663 | }, 664 | "node_modules/markdown-link-extractor": { 665 | "version": "3.0.2", 666 | "resolved": "https://registry.npmjs.org/markdown-link-extractor/-/markdown-link-extractor-3.0.2.tgz", 667 | "integrity": "sha512-vmTTAWSa49Lqojr6L4ALGLV0TLz4+1movDb6saDS6c6FLGGbPFSkhjevpXsQTXEYY9lCWYcVQqb7l41WEZsM7Q==", 668 | "dev": true, 669 | "dependencies": { 670 | "html-link-extractor": "^1.0.3", 671 | "marked": "^4.0.15" 672 | } 673 | }, 674 | "node_modules/markdownlint": { 675 | "version": "0.25.1", 676 | "resolved": "https://registry.npmjs.org/markdownlint/-/markdownlint-0.25.1.tgz", 677 | "integrity": "sha512-AG7UkLzNa1fxiOv5B+owPsPhtM4D6DoODhsJgiaNg1xowXovrYgOnLqAgOOFQpWOlHFVQUzjMY5ypNNTeov92g==", 678 | "dev": true, 679 | "dependencies": { 680 | "markdown-it": "12.3.2" 681 | }, 682 | "engines": { 683 | "node": ">=12" 684 | } 685 | }, 686 | "node_modules/markdownlint-cli": { 687 | "version": "0.31.1", 688 | "resolved": "https://registry.npmjs.org/markdownlint-cli/-/markdownlint-cli-0.31.1.tgz", 689 | "integrity": "sha512-keIOMwQn+Ch7MoBwA+TdkyVMuxAeZFEGmIIlvwgV0Z1TGS5MxPnRr29XCLhkNzCHU+uNKGjU+VEjLX+Z9kli6g==", 690 | "dev": true, 691 | "dependencies": { 692 | "commander": "~9.0.0", 693 | "get-stdin": "~9.0.0", 694 | "glob": "~7.2.0", 695 | "ignore": "~5.2.0", 696 | "js-yaml": "^4.1.0", 697 | "jsonc-parser": "~3.0.0", 698 | "markdownlint": "~0.25.1", 699 | "markdownlint-rule-helpers": "~0.16.0", 700 | "minimatch": "~3.0.5", 701 | "run-con": "~1.2.10" 702 | }, 703 | "bin": { 704 | "markdownlint": "markdownlint.js" 705 | }, 706 | "engines": { 707 | "node": ">=12" 708 | } 709 | }, 710 | "node_modules/markdownlint-cli/node_modules/commander": { 711 | "version": "9.0.0", 712 | "resolved": "https://registry.npmjs.org/commander/-/commander-9.0.0.tgz", 713 | "integrity": "sha512-JJfP2saEKbQqvW+FI93OYUB4ByV5cizMpFMiiJI8xDbBvQvSkIk0VvQdn1CZ8mqAO8Loq2h0gYTYtDFUZUeERw==", 714 | "dev": true, 715 | "engines": { 716 | "node": "^12.20.0 || >=14" 717 | } 718 | }, 719 | "node_modules/markdownlint-rule-helpers": { 720 | "version": "0.16.0", 721 | "resolved": "https://registry.npmjs.org/markdownlint-rule-helpers/-/markdownlint-rule-helpers-0.16.0.tgz", 722 | "integrity": "sha512-oEacRUVeTJ5D5hW1UYd2qExYI0oELdYK72k1TKGvIeYJIbqQWAz476NAc7LNixSySUhcNl++d02DvX0ccDk9/w==", 723 | "dev": true 724 | }, 725 | "node_modules/marked": { 726 | "version": "4.0.18", 727 | "resolved": "https://registry.npmjs.org/marked/-/marked-4.0.18.tgz", 728 | "integrity": "sha512-wbLDJ7Zh0sqA0Vdg6aqlbT+yPxqLblpAZh1mK2+AO2twQkPywvvqQNfEPVwSSRjZ7dZcdeVBIAgiO7MMp3Dszw==", 729 | "dev": true, 730 | "bin": { 731 | "marked": "bin/marked.js" 732 | }, 733 | "engines": { 734 | "node": ">= 12" 735 | } 736 | }, 737 | "node_modules/mdurl": { 738 | "version": "1.0.1", 739 | "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", 740 | "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==", 741 | "dev": true 742 | }, 743 | "node_modules/minimatch": { 744 | "version": "3.0.8", 745 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.8.tgz", 746 | "integrity": "sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==", 747 | "dev": true, 748 | "dependencies": { 749 | "brace-expansion": "^1.1.7" 750 | }, 751 | "engines": { 752 | "node": "*" 753 | } 754 | }, 755 | "node_modules/minimist": { 756 | "version": "1.2.6", 757 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", 758 | "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", 759 | "dev": true 760 | }, 761 | "node_modules/ms": { 762 | "version": "2.1.3", 763 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 764 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 765 | "dev": true 766 | }, 767 | "node_modules/needle": { 768 | "version": "3.1.0", 769 | "resolved": "https://registry.npmjs.org/needle/-/needle-3.1.0.tgz", 770 | "integrity": "sha512-gCE9weDhjVGCRqS8dwDR/D3GTAeyXLXuqp7I8EzH6DllZGXSUyxuqqLh+YX9rMAWaaTFyVAg6rHGL25dqvczKw==", 771 | "dev": true, 772 | "dependencies": { 773 | "debug": "^3.2.6", 774 | "iconv-lite": "^0.6.3", 775 | "sax": "^1.2.4" 776 | }, 777 | "bin": { 778 | "needle": "bin/needle" 779 | }, 780 | "engines": { 781 | "node": ">= 4.4.x" 782 | } 783 | }, 784 | "node_modules/nth-check": { 785 | "version": "2.1.1", 786 | "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", 787 | "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", 788 | "dev": true, 789 | "dependencies": { 790 | "boolbase": "^1.0.0" 791 | }, 792 | "funding": { 793 | "url": "https://github.com/fb55/nth-check?sponsor=1" 794 | } 795 | }, 796 | "node_modules/once": { 797 | "version": "1.4.0", 798 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 799 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 800 | "dev": true, 801 | "dependencies": { 802 | "wrappy": "1" 803 | } 804 | }, 805 | "node_modules/parse5": { 806 | "version": "7.0.0", 807 | "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.0.0.tgz", 808 | "integrity": "sha512-y/t8IXSPWTuRZqXc0ajH/UwDj4mnqLEbSttNbThcFhGrZuOyoyvNBO85PBp2jQa55wY9d07PBNjsK8ZP3K5U6g==", 809 | "dev": true, 810 | "dependencies": { 811 | "entities": "^4.3.0" 812 | }, 813 | "funding": { 814 | "url": "https://github.com/inikulin/parse5?sponsor=1" 815 | } 816 | }, 817 | "node_modules/parse5-htmlparser2-tree-adapter": { 818 | "version": "7.0.0", 819 | "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz", 820 | "integrity": "sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==", 821 | "dev": true, 822 | "dependencies": { 823 | "domhandler": "^5.0.2", 824 | "parse5": "^7.0.0" 825 | }, 826 | "funding": { 827 | "url": "https://github.com/inikulin/parse5?sponsor=1" 828 | } 829 | }, 830 | "node_modules/path-is-absolute": { 831 | "version": "1.0.1", 832 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 833 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 834 | "dev": true, 835 | "engines": { 836 | "node": ">=0.10.0" 837 | } 838 | }, 839 | "node_modules/prettier": { 840 | "version": "2.7.1", 841 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", 842 | "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", 843 | "dev": true, 844 | "bin": { 845 | "prettier": "bin-prettier.js" 846 | }, 847 | "engines": { 848 | "node": ">=10.13.0" 849 | }, 850 | "funding": { 851 | "url": "https://github.com/prettier/prettier?sponsor=1" 852 | } 853 | }, 854 | "node_modules/progress": { 855 | "version": "2.0.3", 856 | "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", 857 | "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", 858 | "dev": true, 859 | "engines": { 860 | "node": ">=0.4.0" 861 | } 862 | }, 863 | "node_modules/punycode": { 864 | "version": "2.1.1", 865 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 866 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", 867 | "dev": true, 868 | "engines": { 869 | "node": ">=6" 870 | } 871 | }, 872 | "node_modules/require-from-string": { 873 | "version": "2.0.2", 874 | "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", 875 | "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", 876 | "dev": true, 877 | "engines": { 878 | "node": ">=0.10.0" 879 | } 880 | }, 881 | "node_modules/run-con": { 882 | "version": "1.2.11", 883 | "resolved": "https://registry.npmjs.org/run-con/-/run-con-1.2.11.tgz", 884 | "integrity": "sha512-NEMGsUT+cglWkzEr4IFK21P4Jca45HqiAbIIZIBdX5+UZTB24Mb/21iNGgz9xZa8tL6vbW7CXmq7MFN42+VjNQ==", 885 | "dev": true, 886 | "dependencies": { 887 | "deep-extend": "^0.6.0", 888 | "ini": "~3.0.0", 889 | "minimist": "^1.2.6", 890 | "strip-json-comments": "~3.1.1" 891 | }, 892 | "bin": { 893 | "run-con": "cli.js" 894 | } 895 | }, 896 | "node_modules/safer-buffer": { 897 | "version": "2.1.2", 898 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 899 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", 900 | "dev": true 901 | }, 902 | "node_modules/sax": { 903 | "version": "1.2.4", 904 | "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", 905 | "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", 906 | "dev": true 907 | }, 908 | "node_modules/sprintf-js": { 909 | "version": "1.0.3", 910 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 911 | "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", 912 | "dev": true 913 | }, 914 | "node_modules/strip-json-comments": { 915 | "version": "3.1.1", 916 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 917 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 918 | "dev": true, 919 | "engines": { 920 | "node": ">=8" 921 | }, 922 | "funding": { 923 | "url": "https://github.com/sponsors/sindresorhus" 924 | } 925 | }, 926 | "node_modules/supports-color": { 927 | "version": "7.2.0", 928 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 929 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 930 | "dev": true, 931 | "dependencies": { 932 | "has-flag": "^4.0.0" 933 | }, 934 | "engines": { 935 | "node": ">=8" 936 | } 937 | }, 938 | "node_modules/uc.micro": { 939 | "version": "1.0.6", 940 | "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", 941 | "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", 942 | "dev": true 943 | }, 944 | "node_modules/uri-js": { 945 | "version": "4.4.1", 946 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 947 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 948 | "dev": true, 949 | "dependencies": { 950 | "punycode": "^2.1.0" 951 | } 952 | }, 953 | "node_modules/wrappy": { 954 | "version": "1.0.2", 955 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 956 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 957 | "dev": true 958 | } 959 | }, 960 | "dependencies": { 961 | "ajv": { 962 | "version": "8.11.0", 963 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", 964 | "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", 965 | "dev": true, 966 | "requires": { 967 | "fast-deep-equal": "^3.1.1", 968 | "json-schema-traverse": "^1.0.0", 969 | "require-from-string": "^2.0.2", 970 | "uri-js": "^4.2.2" 971 | } 972 | }, 973 | "ajv-cli": { 974 | "version": "5.0.0", 975 | "resolved": "https://registry.npmjs.org/ajv-cli/-/ajv-cli-5.0.0.tgz", 976 | "integrity": "sha512-LY4m6dUv44HTyhV+u2z5uX4EhPYTM38Iv1jdgDJJJCyOOuqB8KtZEGjPZ2T+sh5ZIJrXUfgErYx/j3gLd3+PlQ==", 977 | "dev": true, 978 | "requires": { 979 | "ajv": "^8.0.0", 980 | "fast-json-patch": "^2.0.0", 981 | "glob": "^7.1.0", 982 | "js-yaml": "^3.14.0", 983 | "json-schema-migrate": "^2.0.0", 984 | "json5": "^2.1.3", 985 | "minimist": "^1.2.0" 986 | }, 987 | "dependencies": { 988 | "argparse": { 989 | "version": "1.0.10", 990 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 991 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 992 | "dev": true, 993 | "requires": { 994 | "sprintf-js": "~1.0.2" 995 | } 996 | }, 997 | "js-yaml": { 998 | "version": "3.14.1", 999 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", 1000 | "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", 1001 | "dev": true, 1002 | "requires": { 1003 | "argparse": "^1.0.7", 1004 | "esprima": "^4.0.0" 1005 | } 1006 | } 1007 | } 1008 | }, 1009 | "ajv-formats": { 1010 | "version": "2.1.1", 1011 | "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", 1012 | "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", 1013 | "dev": true, 1014 | "requires": { 1015 | "ajv": "^8.0.0" 1016 | } 1017 | }, 1018 | "ansi-styles": { 1019 | "version": "4.3.0", 1020 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 1021 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 1022 | "dev": true, 1023 | "requires": { 1024 | "color-convert": "^2.0.1" 1025 | } 1026 | }, 1027 | "argparse": { 1028 | "version": "2.0.1", 1029 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 1030 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 1031 | "dev": true 1032 | }, 1033 | "async": { 1034 | "version": "3.2.4", 1035 | "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", 1036 | "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", 1037 | "dev": true 1038 | }, 1039 | "balanced-match": { 1040 | "version": "1.0.2", 1041 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 1042 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 1043 | "dev": true 1044 | }, 1045 | "boolbase": { 1046 | "version": "1.0.0", 1047 | "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", 1048 | "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", 1049 | "dev": true 1050 | }, 1051 | "brace-expansion": { 1052 | "version": "1.1.11", 1053 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 1054 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 1055 | "dev": true, 1056 | "requires": { 1057 | "balanced-match": "^1.0.0", 1058 | "concat-map": "0.0.1" 1059 | } 1060 | }, 1061 | "chalk": { 1062 | "version": "4.1.2", 1063 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 1064 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 1065 | "dev": true, 1066 | "requires": { 1067 | "ansi-styles": "^4.1.0", 1068 | "supports-color": "^7.1.0" 1069 | } 1070 | }, 1071 | "cheerio": { 1072 | "version": "1.0.0-rc.12", 1073 | "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz", 1074 | "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==", 1075 | "dev": true, 1076 | "requires": { 1077 | "cheerio-select": "^2.1.0", 1078 | "dom-serializer": "^2.0.0", 1079 | "domhandler": "^5.0.3", 1080 | "domutils": "^3.0.1", 1081 | "htmlparser2": "^8.0.1", 1082 | "parse5": "^7.0.0", 1083 | "parse5-htmlparser2-tree-adapter": "^7.0.0" 1084 | } 1085 | }, 1086 | "cheerio-select": { 1087 | "version": "2.1.0", 1088 | "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz", 1089 | "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==", 1090 | "dev": true, 1091 | "requires": { 1092 | "boolbase": "^1.0.0", 1093 | "css-select": "^5.1.0", 1094 | "css-what": "^6.1.0", 1095 | "domelementtype": "^2.3.0", 1096 | "domhandler": "^5.0.3", 1097 | "domutils": "^3.0.1" 1098 | } 1099 | }, 1100 | "color-convert": { 1101 | "version": "2.0.1", 1102 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 1103 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 1104 | "dev": true, 1105 | "requires": { 1106 | "color-name": "~1.1.4" 1107 | } 1108 | }, 1109 | "color-name": { 1110 | "version": "1.1.4", 1111 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 1112 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 1113 | "dev": true 1114 | }, 1115 | "commander": { 1116 | "version": "6.2.1", 1117 | "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", 1118 | "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", 1119 | "dev": true 1120 | }, 1121 | "concat-map": { 1122 | "version": "0.0.1", 1123 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 1124 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 1125 | "dev": true 1126 | }, 1127 | "css-select": { 1128 | "version": "5.1.0", 1129 | "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", 1130 | "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", 1131 | "dev": true, 1132 | "requires": { 1133 | "boolbase": "^1.0.0", 1134 | "css-what": "^6.1.0", 1135 | "domhandler": "^5.0.2", 1136 | "domutils": "^3.0.1", 1137 | "nth-check": "^2.0.1" 1138 | } 1139 | }, 1140 | "css-what": { 1141 | "version": "6.1.0", 1142 | "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", 1143 | "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", 1144 | "dev": true 1145 | }, 1146 | "debug": { 1147 | "version": "3.2.7", 1148 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", 1149 | "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", 1150 | "dev": true, 1151 | "requires": { 1152 | "ms": "^2.1.1" 1153 | } 1154 | }, 1155 | "deep-extend": { 1156 | "version": "0.6.0", 1157 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", 1158 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", 1159 | "dev": true 1160 | }, 1161 | "dom-serializer": { 1162 | "version": "2.0.0", 1163 | "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", 1164 | "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", 1165 | "dev": true, 1166 | "requires": { 1167 | "domelementtype": "^2.3.0", 1168 | "domhandler": "^5.0.2", 1169 | "entities": "^4.2.0" 1170 | } 1171 | }, 1172 | "domelementtype": { 1173 | "version": "2.3.0", 1174 | "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", 1175 | "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", 1176 | "dev": true 1177 | }, 1178 | "domhandler": { 1179 | "version": "5.0.3", 1180 | "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", 1181 | "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", 1182 | "dev": true, 1183 | "requires": { 1184 | "domelementtype": "^2.3.0" 1185 | } 1186 | }, 1187 | "domutils": { 1188 | "version": "3.0.1", 1189 | "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.0.1.tgz", 1190 | "integrity": "sha512-z08c1l761iKhDFtfXO04C7kTdPBLi41zwOZl00WS8b5eiaebNpY00HKbztwBq+e3vyqWNwWF3mP9YLUeqIrF+Q==", 1191 | "dev": true, 1192 | "requires": { 1193 | "dom-serializer": "^2.0.0", 1194 | "domelementtype": "^2.3.0", 1195 | "domhandler": "^5.0.1" 1196 | } 1197 | }, 1198 | "entities": { 1199 | "version": "4.3.1", 1200 | "resolved": "https://registry.npmjs.org/entities/-/entities-4.3.1.tgz", 1201 | "integrity": "sha512-o4q/dYJlmyjP2zfnaWDUC6A3BQFmVTX+tZPezK7k0GLSU9QYCauscf5Y+qcEPzKL+EixVouYDgLQK5H9GrLpkg==", 1202 | "dev": true 1203 | }, 1204 | "esprima": { 1205 | "version": "4.0.1", 1206 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 1207 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 1208 | "dev": true 1209 | }, 1210 | "fast-deep-equal": { 1211 | "version": "3.1.3", 1212 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 1213 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 1214 | "dev": true 1215 | }, 1216 | "fast-json-patch": { 1217 | "version": "2.2.1", 1218 | "resolved": "https://registry.npmjs.org/fast-json-patch/-/fast-json-patch-2.2.1.tgz", 1219 | "integrity": "sha512-4j5uBaTnsYAV5ebkidvxiLUYOwjQ+JSFljeqfTxCrH9bDmlCQaOJFS84oDJ2rAXZq2yskmk3ORfoP9DCwqFNig==", 1220 | "dev": true, 1221 | "requires": { 1222 | "fast-deep-equal": "^2.0.1" 1223 | }, 1224 | "dependencies": { 1225 | "fast-deep-equal": { 1226 | "version": "2.0.1", 1227 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", 1228 | "integrity": "sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==", 1229 | "dev": true 1230 | } 1231 | } 1232 | }, 1233 | "fs.realpath": { 1234 | "version": "1.0.0", 1235 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1236 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 1237 | "dev": true 1238 | }, 1239 | "get-stdin": { 1240 | "version": "9.0.0", 1241 | "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-9.0.0.tgz", 1242 | "integrity": "sha512-dVKBjfWisLAicarI2Sf+JuBE/DghV4UzNAVe9yhEJuzeREd3JhOTE9cUaJTeSa77fsbQUK3pcOpJfM59+VKZaA==", 1243 | "dev": true 1244 | }, 1245 | "glob": { 1246 | "version": "7.2.3", 1247 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 1248 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 1249 | "dev": true, 1250 | "requires": { 1251 | "fs.realpath": "^1.0.0", 1252 | "inflight": "^1.0.4", 1253 | "inherits": "2", 1254 | "minimatch": "^3.1.1", 1255 | "once": "^1.3.0", 1256 | "path-is-absolute": "^1.0.0" 1257 | }, 1258 | "dependencies": { 1259 | "minimatch": { 1260 | "version": "3.1.2", 1261 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1262 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1263 | "dev": true, 1264 | "requires": { 1265 | "brace-expansion": "^1.1.7" 1266 | } 1267 | } 1268 | } 1269 | }, 1270 | "has-flag": { 1271 | "version": "4.0.0", 1272 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1273 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1274 | "dev": true 1275 | }, 1276 | "html-link-extractor": { 1277 | "version": "1.0.5", 1278 | "resolved": "https://registry.npmjs.org/html-link-extractor/-/html-link-extractor-1.0.5.tgz", 1279 | "integrity": "sha512-ADd49pudM157uWHwHQPUSX4ssMsvR/yHIswOR5CUfBdK9g9ZYGMhVSE6KZVHJ6kCkR0gH4htsfzU6zECDNVwyw==", 1280 | "dev": true, 1281 | "requires": { 1282 | "cheerio": "^1.0.0-rc.10" 1283 | } 1284 | }, 1285 | "htmlparser2": { 1286 | "version": "8.0.1", 1287 | "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.1.tgz", 1288 | "integrity": "sha512-4lVbmc1diZC7GUJQtRQ5yBAeUCL1exyMwmForWkRLnwyzWBFxN633SALPMGYaWZvKe9j1pRZJpauvmxENSp/EA==", 1289 | "dev": true, 1290 | "requires": { 1291 | "domelementtype": "^2.3.0", 1292 | "domhandler": "^5.0.2", 1293 | "domutils": "^3.0.1", 1294 | "entities": "^4.3.0" 1295 | } 1296 | }, 1297 | "iconv-lite": { 1298 | "version": "0.6.3", 1299 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", 1300 | "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", 1301 | "dev": true, 1302 | "requires": { 1303 | "safer-buffer": ">= 2.1.2 < 3.0.0" 1304 | } 1305 | }, 1306 | "ignore": { 1307 | "version": "5.2.0", 1308 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", 1309 | "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", 1310 | "dev": true 1311 | }, 1312 | "inflight": { 1313 | "version": "1.0.6", 1314 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1315 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 1316 | "dev": true, 1317 | "requires": { 1318 | "once": "^1.3.0", 1319 | "wrappy": "1" 1320 | } 1321 | }, 1322 | "inherits": { 1323 | "version": "2.0.4", 1324 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1325 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1326 | "dev": true 1327 | }, 1328 | "ini": { 1329 | "version": "3.0.0", 1330 | "resolved": "https://registry.npmjs.org/ini/-/ini-3.0.0.tgz", 1331 | "integrity": "sha512-TxYQaeNW/N8ymDvwAxPyRbhMBtnEwuvaTYpOQkFx1nSeusgezHniEc/l35Vo4iCq/mMiTJbpD7oYxN98hFlfmw==", 1332 | "dev": true 1333 | }, 1334 | "is-absolute-url": { 1335 | "version": "3.0.3", 1336 | "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-3.0.3.tgz", 1337 | "integrity": "sha512-opmNIX7uFnS96NtPmhWQgQx6/NYFgsUXYMllcfzwWKUMwfo8kku1TvE6hkNcH+Q1ts5cMVrsY7j0bxXQDciu9Q==", 1338 | "dev": true 1339 | }, 1340 | "is-relative-url": { 1341 | "version": "3.0.0", 1342 | "resolved": "https://registry.npmjs.org/is-relative-url/-/is-relative-url-3.0.0.tgz", 1343 | "integrity": "sha512-U1iSYRlY2GIMGuZx7gezlB5dp1Kheaym7zKzO1PV06mOihiWTXejLwm4poEJysPyXF+HtK/BEd0DVlcCh30pEA==", 1344 | "dev": true, 1345 | "requires": { 1346 | "is-absolute-url": "^3.0.0" 1347 | } 1348 | }, 1349 | "isemail": { 1350 | "version": "3.2.0", 1351 | "resolved": "https://registry.npmjs.org/isemail/-/isemail-3.2.0.tgz", 1352 | "integrity": "sha512-zKqkK+O+dGqevc93KNsbZ/TqTUFd46MwWjYOoMrjIMZ51eU7DtQG3Wmd9SQQT7i7RVnuTPEiYEWHU3MSbxC1Tg==", 1353 | "dev": true, 1354 | "requires": { 1355 | "punycode": "2.x.x" 1356 | } 1357 | }, 1358 | "js-yaml": { 1359 | "version": "4.1.0", 1360 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 1361 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1362 | "dev": true, 1363 | "requires": { 1364 | "argparse": "^2.0.1" 1365 | } 1366 | }, 1367 | "json-schema-migrate": { 1368 | "version": "2.0.0", 1369 | "resolved": "https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-2.0.0.tgz", 1370 | "integrity": "sha512-r38SVTtojDRp4eD6WsCqiE0eNDt4v1WalBXb9cyZYw9ai5cGtBwzRNWjHzJl38w6TxFkXAIA7h+fyX3tnrAFhQ==", 1371 | "dev": true, 1372 | "requires": { 1373 | "ajv": "^8.0.0" 1374 | } 1375 | }, 1376 | "json-schema-traverse": { 1377 | "version": "1.0.0", 1378 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", 1379 | "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", 1380 | "dev": true 1381 | }, 1382 | "json5": { 1383 | "version": "2.2.3", 1384 | "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", 1385 | "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", 1386 | "dev": true 1387 | }, 1388 | "jsonc-parser": { 1389 | "version": "3.0.0", 1390 | "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz", 1391 | "integrity": "sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA==", 1392 | "dev": true 1393 | }, 1394 | "link-check": { 1395 | "version": "5.1.0", 1396 | "resolved": "https://registry.npmjs.org/link-check/-/link-check-5.1.0.tgz", 1397 | "integrity": "sha512-FHq/9tVnIE/3EVEPb91GcbD+K/Pv5K5DYqb7vXi3TTKIViMYPOWxYFVVENZ0rq63zfaGXGvLgPT9U6jOFc5JBw==", 1398 | "dev": true, 1399 | "requires": { 1400 | "is-relative-url": "^3.0.0", 1401 | "isemail": "^3.2.0", 1402 | "ms": "^2.1.3", 1403 | "needle": "^3.0.0" 1404 | } 1405 | }, 1406 | "linkify-it": { 1407 | "version": "3.0.3", 1408 | "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-3.0.3.tgz", 1409 | "integrity": "sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==", 1410 | "dev": true, 1411 | "requires": { 1412 | "uc.micro": "^1.0.1" 1413 | } 1414 | }, 1415 | "lodash": { 1416 | "version": "4.17.21", 1417 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 1418 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", 1419 | "dev": true 1420 | }, 1421 | "markdown-it": { 1422 | "version": "12.3.2", 1423 | "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-12.3.2.tgz", 1424 | "integrity": "sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==", 1425 | "dev": true, 1426 | "requires": { 1427 | "argparse": "^2.0.1", 1428 | "entities": "~2.1.0", 1429 | "linkify-it": "^3.0.1", 1430 | "mdurl": "^1.0.1", 1431 | "uc.micro": "^1.0.5" 1432 | }, 1433 | "dependencies": { 1434 | "entities": { 1435 | "version": "2.1.0", 1436 | "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz", 1437 | "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==", 1438 | "dev": true 1439 | } 1440 | } 1441 | }, 1442 | "markdown-link-check": { 1443 | "version": "3.10.2", 1444 | "resolved": "https://registry.npmjs.org/markdown-link-check/-/markdown-link-check-3.10.2.tgz", 1445 | "integrity": "sha512-5yQEVtjLxAjxWy82+iTgxrekr1tuD4sKGgwXiyLrCep8RERFH3yCdpZdeA12em2S2SEwXGxp6qHI73jVhuScKA==", 1446 | "dev": true, 1447 | "requires": { 1448 | "async": "^3.2.3", 1449 | "chalk": "^4.1.2", 1450 | "commander": "^6.2.0", 1451 | "link-check": "^5.1.0", 1452 | "lodash": "^4.17.21", 1453 | "markdown-link-extractor": "^3.0.2", 1454 | "needle": "^3.1.0", 1455 | "progress": "^2.0.3" 1456 | } 1457 | }, 1458 | "markdown-link-extractor": { 1459 | "version": "3.0.2", 1460 | "resolved": "https://registry.npmjs.org/markdown-link-extractor/-/markdown-link-extractor-3.0.2.tgz", 1461 | "integrity": "sha512-vmTTAWSa49Lqojr6L4ALGLV0TLz4+1movDb6saDS6c6FLGGbPFSkhjevpXsQTXEYY9lCWYcVQqb7l41WEZsM7Q==", 1462 | "dev": true, 1463 | "requires": { 1464 | "html-link-extractor": "^1.0.3", 1465 | "marked": "^4.0.15" 1466 | } 1467 | }, 1468 | "markdownlint": { 1469 | "version": "0.25.1", 1470 | "resolved": "https://registry.npmjs.org/markdownlint/-/markdownlint-0.25.1.tgz", 1471 | "integrity": "sha512-AG7UkLzNa1fxiOv5B+owPsPhtM4D6DoODhsJgiaNg1xowXovrYgOnLqAgOOFQpWOlHFVQUzjMY5ypNNTeov92g==", 1472 | "dev": true, 1473 | "requires": { 1474 | "markdown-it": "12.3.2" 1475 | } 1476 | }, 1477 | "markdownlint-cli": { 1478 | "version": "0.31.1", 1479 | "resolved": "https://registry.npmjs.org/markdownlint-cli/-/markdownlint-cli-0.31.1.tgz", 1480 | "integrity": "sha512-keIOMwQn+Ch7MoBwA+TdkyVMuxAeZFEGmIIlvwgV0Z1TGS5MxPnRr29XCLhkNzCHU+uNKGjU+VEjLX+Z9kli6g==", 1481 | "dev": true, 1482 | "requires": { 1483 | "commander": "~9.0.0", 1484 | "get-stdin": "~9.0.0", 1485 | "glob": "~7.2.0", 1486 | "ignore": "~5.2.0", 1487 | "js-yaml": "^4.1.0", 1488 | "jsonc-parser": "~3.0.0", 1489 | "markdownlint": "~0.25.1", 1490 | "markdownlint-rule-helpers": "~0.16.0", 1491 | "minimatch": "~3.0.5", 1492 | "run-con": "~1.2.10" 1493 | }, 1494 | "dependencies": { 1495 | "commander": { 1496 | "version": "9.0.0", 1497 | "resolved": "https://registry.npmjs.org/commander/-/commander-9.0.0.tgz", 1498 | "integrity": "sha512-JJfP2saEKbQqvW+FI93OYUB4ByV5cizMpFMiiJI8xDbBvQvSkIk0VvQdn1CZ8mqAO8Loq2h0gYTYtDFUZUeERw==", 1499 | "dev": true 1500 | } 1501 | } 1502 | }, 1503 | "markdownlint-rule-helpers": { 1504 | "version": "0.16.0", 1505 | "resolved": "https://registry.npmjs.org/markdownlint-rule-helpers/-/markdownlint-rule-helpers-0.16.0.tgz", 1506 | "integrity": "sha512-oEacRUVeTJ5D5hW1UYd2qExYI0oELdYK72k1TKGvIeYJIbqQWAz476NAc7LNixSySUhcNl++d02DvX0ccDk9/w==", 1507 | "dev": true 1508 | }, 1509 | "marked": { 1510 | "version": "4.0.18", 1511 | "resolved": "https://registry.npmjs.org/marked/-/marked-4.0.18.tgz", 1512 | "integrity": "sha512-wbLDJ7Zh0sqA0Vdg6aqlbT+yPxqLblpAZh1mK2+AO2twQkPywvvqQNfEPVwSSRjZ7dZcdeVBIAgiO7MMp3Dszw==", 1513 | "dev": true 1514 | }, 1515 | "mdurl": { 1516 | "version": "1.0.1", 1517 | "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", 1518 | "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==", 1519 | "dev": true 1520 | }, 1521 | "minimatch": { 1522 | "version": "3.0.8", 1523 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.8.tgz", 1524 | "integrity": "sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==", 1525 | "dev": true, 1526 | "requires": { 1527 | "brace-expansion": "^1.1.7" 1528 | } 1529 | }, 1530 | "minimist": { 1531 | "version": "1.2.6", 1532 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", 1533 | "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", 1534 | "dev": true 1535 | }, 1536 | "ms": { 1537 | "version": "2.1.3", 1538 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1539 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1540 | "dev": true 1541 | }, 1542 | "needle": { 1543 | "version": "3.1.0", 1544 | "resolved": "https://registry.npmjs.org/needle/-/needle-3.1.0.tgz", 1545 | "integrity": "sha512-gCE9weDhjVGCRqS8dwDR/D3GTAeyXLXuqp7I8EzH6DllZGXSUyxuqqLh+YX9rMAWaaTFyVAg6rHGL25dqvczKw==", 1546 | "dev": true, 1547 | "requires": { 1548 | "debug": "^3.2.6", 1549 | "iconv-lite": "^0.6.3", 1550 | "sax": "^1.2.4" 1551 | } 1552 | }, 1553 | "nth-check": { 1554 | "version": "2.1.1", 1555 | "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", 1556 | "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", 1557 | "dev": true, 1558 | "requires": { 1559 | "boolbase": "^1.0.0" 1560 | } 1561 | }, 1562 | "once": { 1563 | "version": "1.4.0", 1564 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1565 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 1566 | "dev": true, 1567 | "requires": { 1568 | "wrappy": "1" 1569 | } 1570 | }, 1571 | "parse5": { 1572 | "version": "7.0.0", 1573 | "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.0.0.tgz", 1574 | "integrity": "sha512-y/t8IXSPWTuRZqXc0ajH/UwDj4mnqLEbSttNbThcFhGrZuOyoyvNBO85PBp2jQa55wY9d07PBNjsK8ZP3K5U6g==", 1575 | "dev": true, 1576 | "requires": { 1577 | "entities": "^4.3.0" 1578 | } 1579 | }, 1580 | "parse5-htmlparser2-tree-adapter": { 1581 | "version": "7.0.0", 1582 | "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz", 1583 | "integrity": "sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==", 1584 | "dev": true, 1585 | "requires": { 1586 | "domhandler": "^5.0.2", 1587 | "parse5": "^7.0.0" 1588 | } 1589 | }, 1590 | "path-is-absolute": { 1591 | "version": "1.0.1", 1592 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1593 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 1594 | "dev": true 1595 | }, 1596 | "prettier": { 1597 | "version": "2.7.1", 1598 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", 1599 | "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", 1600 | "dev": true 1601 | }, 1602 | "progress": { 1603 | "version": "2.0.3", 1604 | "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", 1605 | "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", 1606 | "dev": true 1607 | }, 1608 | "punycode": { 1609 | "version": "2.1.1", 1610 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 1611 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", 1612 | "dev": true 1613 | }, 1614 | "require-from-string": { 1615 | "version": "2.0.2", 1616 | "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", 1617 | "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", 1618 | "dev": true 1619 | }, 1620 | "run-con": { 1621 | "version": "1.2.11", 1622 | "resolved": "https://registry.npmjs.org/run-con/-/run-con-1.2.11.tgz", 1623 | "integrity": "sha512-NEMGsUT+cglWkzEr4IFK21P4Jca45HqiAbIIZIBdX5+UZTB24Mb/21iNGgz9xZa8tL6vbW7CXmq7MFN42+VjNQ==", 1624 | "dev": true, 1625 | "requires": { 1626 | "deep-extend": "^0.6.0", 1627 | "ini": "~3.0.0", 1628 | "minimist": "^1.2.6", 1629 | "strip-json-comments": "~3.1.1" 1630 | } 1631 | }, 1632 | "safer-buffer": { 1633 | "version": "2.1.2", 1634 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1635 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", 1636 | "dev": true 1637 | }, 1638 | "sax": { 1639 | "version": "1.2.4", 1640 | "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", 1641 | "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", 1642 | "dev": true 1643 | }, 1644 | "sprintf-js": { 1645 | "version": "1.0.3", 1646 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 1647 | "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", 1648 | "dev": true 1649 | }, 1650 | "strip-json-comments": { 1651 | "version": "3.1.1", 1652 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 1653 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 1654 | "dev": true 1655 | }, 1656 | "supports-color": { 1657 | "version": "7.2.0", 1658 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 1659 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 1660 | "dev": true, 1661 | "requires": { 1662 | "has-flag": "^4.0.0" 1663 | } 1664 | }, 1665 | "uc.micro": { 1666 | "version": "1.0.6", 1667 | "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", 1668 | "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", 1669 | "dev": true 1670 | }, 1671 | "uri-js": { 1672 | "version": "4.4.1", 1673 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 1674 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 1675 | "dev": true, 1676 | "requires": { 1677 | "punycode": "^2.1.0" 1678 | } 1679 | }, 1680 | "wrappy": { 1681 | "version": "1.0.2", 1682 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1683 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 1684 | "dev": true 1685 | } 1686 | } 1687 | } 1688 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "devDependencies": { 3 | "ajv-cli": "^5.0.0", 4 | "ajv-formats": "^2.1.1", 5 | "markdown-link-check": "^3.10.2", 6 | "markdownlint-cli": "^0.31.1", 7 | "prettier": "^2.7.1" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /package_index.template: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rp2040tools", 3 | "version": "%%VERSION%%", 4 | "systems": [ 5 | { 6 | "host": "i386-apple-darwin11", 7 | "url": "http://downloads.arduino.cc/tools/%%FILENAME_DARWIN_AMD64%%", 8 | "archiveFileName": "%%FILENAME_DARWIN_AMD64%%", 9 | "size": "%%SIZE_DARWIN_AMD64%%", 10 | "checksum": "SHA-256:%%SHA_DARWIN_AMD64%%" 11 | }, 12 | { 13 | "host": "arm-linux-gnueabihf", 14 | "url": "http://downloads.arduino.cc/tools/%%FILENAME_LINUX_ARM%%", 15 | "archiveFileName": "%%FILENAME_LINUX_ARM%%", 16 | "size": "%%SIZE_LINUX_ARM%%", 17 | "checksum": "SHA-256:%%SHA_LINUX_ARM%%" 18 | }, 19 | { 20 | "host": "aarch64-linux-gnu", 21 | "url": "http://downloads.arduino.cc/tools/%%FILENAME_LINUX_ARM64%%", 22 | "archiveFileName": "%%FILENAME_LINUX_ARM64%%", 23 | "size": "%%SIZE_LINUX_ARM64%%", 24 | "checksum": "SHA-256:%%SHA_LINUX_ARM64%%" 25 | }, 26 | { 27 | "host": "x86_64-linux-gnu", 28 | "url": "http://downloads.arduino.cc/tools/%%FILENAME_LINUX_AMD64%%", 29 | "archiveFileName": "%%FILENAME_LINUX_AMD64%%", 30 | "size": "%%SIZE_LINUX_AMD64%%", 31 | "checksum": "SHA-256:%%SHA_LINUX_AMD64%%" 32 | }, 33 | { 34 | "host": "i686-linux-gnu", 35 | "url": "http://downloads.arduino.cc/tools/%%FILENAME_LINUX_386%%", 36 | "archiveFileName": "%%FILENAME_LINUX_386%%", 37 | "size": "%%SIZE_LINUX_386%%", 38 | "checksum": "SHA-256:%%SHA_LINUX_386%%" 39 | }, 40 | { 41 | "host": "i686-mingw32", 42 | "url": "http://downloads.arduino.cc/tools/%%FILENAME_WINDOWS_386%%", 43 | "archiveFileName": "%%FILENAME_WINDOWS_386%%", 44 | "size": "%%SIZE_WINDOWS_386%%", 45 | "checksum": "SHA-256:%%SHA_WINDOWS_386%%" 46 | } 47 | ] 48 | } 49 | -------------------------------------------------------------------------------- /patches/README.md: -------------------------------------------------------------------------------- 1 | # How to patch 2 | 3 | To generate a patch use `git`: `git diff > mypatch.patch` and save it in the `patch/` directory. 4 | 5 | **Important things to notice**: 6 | 7 | - if you whant to generate a patch for [`picotool`](https://github.com/raspberrypi/picotool) remember to name the patch `picotool_*.patch` 8 | - same thing applies to [`elf2uf2`](https://github.com/raspberrypi/pico-sdk/tree/master/tools/elf2uf2) 9 | - same thing applies to [`pioasm`](https://github.com/raspberrypi/pico-sdk/tree/master/tools/pioasm) 10 | 11 | The CI will apply automagically the patches (if they are present in the `patches/` directory) and it will search them using the name. see [here](../.github/workflows/release.yml#L81-L83) and [here](../.github/workflows/release.yml#L97-L99) and [here](../.github/workflows/release.yml#L113-L115) 12 | -------------------------------------------------------------------------------- /patches/picotool_mingw.patch: -------------------------------------------------------------------------------- 1 | diff --git a/main.cpp b/main.cpp 2 | index 76e5276..4c5a2eb 100644 3 | --- a/main.cpp 4 | +++ b/main.cpp 5 | @@ -1941,7 +1941,7 @@ void reboot_command::execute(device_map &devices) { 6 | #if defined(_WIN32) 7 | #define WIN32_LEAN_AND_MEAN 8 | #define VC_EXTRALEAN 9 | -#include 10 | +#include 11 | #elif defined(__linux__) || defined(__APPLE__) 12 | #include 13 | #endif 14 | -------------------------------------------------------------------------------- /util_unix.go: -------------------------------------------------------------------------------- 1 | // +build linux darwin 2 | 3 | package main 4 | 5 | import ( 6 | "os/exec" 7 | ) 8 | 9 | func tellCommandNotToSpawnShell(_ *exec.Cmd) { 10 | } 11 | -------------------------------------------------------------------------------- /util_windows.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "os/exec" 5 | "syscall" 6 | ) 7 | 8 | func tellCommandNotToSpawnShell(oscmd *exec.Cmd) { 9 | oscmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true} 10 | } 11 | --------------------------------------------------------------------------------