mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-11-05 01:35:32 +00:00
Compare commits
61
Commits
v4.2
...
debug-windows
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5a0f676ea8 | ||
|
|
451c40c4e1 | ||
|
|
d45ee42618 | ||
|
|
f95cd8710c | ||
|
|
61ee7954c6 | ||
|
|
cad8337f4e | ||
|
|
a4c8ae423e | ||
|
|
afa3c8c42b | ||
|
|
4db96194c3 | ||
|
|
2625dd350b | ||
|
|
f9e15a1be8 | ||
|
|
1c21f62d98 | ||
|
|
982fbca0f8 | ||
|
|
35cf70845a | ||
|
|
7cf65ded99 | ||
|
|
6ade4fc248 | ||
|
|
6e6e5a74f6 | ||
|
|
20980170aa | ||
|
|
02dfe76bef | ||
|
|
3548439624 | ||
|
|
9d3a8b144e | ||
|
|
14dc0be27c | ||
|
|
b5f58b2abc | ||
|
|
4e3dbecc19 | ||
|
|
2487ffc9aa | ||
|
|
118b7214ec | ||
|
|
d942048030 | ||
|
|
77cc1aee22 | ||
|
|
169ed2a5f2 | ||
|
|
9fffe05b88 | ||
|
|
5ce9ee0011 | ||
|
|
d577e74f98 | ||
|
|
7174288630 | ||
|
|
94a861f4b5 | ||
|
|
e9f61537d9 | ||
|
|
4cd05096c3 | ||
|
|
7768fe6bf0 | ||
|
|
7b290f7b85 | ||
|
|
949720bc7f | ||
|
|
d837751086 | ||
|
|
9869cbc19a | ||
|
|
03fe035094 | ||
|
|
887a942a15 | ||
|
|
d174a24c07 | ||
|
|
12c852e6ba | ||
|
|
180f8b4439 | ||
|
|
e3fb95a689 | ||
|
|
2af22b5b2d | ||
|
|
dd578776bb | ||
|
|
85aa0bf0c1 | ||
|
|
1f2cbfa7bb | ||
|
|
25b3ce6330 | ||
|
|
856099c958 | ||
|
|
e3017a763c | ||
|
|
3460fe1a9a | ||
|
|
884a30e33c | ||
|
|
f064c84ddb | ||
|
|
be4207d29e | ||
|
|
bdcda7e77f | ||
|
|
1e4d4ea9ff | ||
|
|
f0b64e0d53 |
@@ -14,6 +14,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 🚀 Run Release Drafter
|
||||
uses: release-drafter/release-drafter@v6.0.0
|
||||
uses: release-drafter/release-drafter@v6.1.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -11,6 +11,54 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
test-setup-cache:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
enable-cache: [ "true", "false", "auto" ]
|
||||
os: ["ubuntu-latest", "selfhosted-ubuntu-arm64"]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup with cache
|
||||
uses: ./
|
||||
with:
|
||||
enable-cache: ${{ matrix.enable-cache }}
|
||||
cache-suffix: ${{ github.run_id }}-${{ github.run_attempt }}-test-setup-cache-${{ matrix.os }}-${{ matrix.enable-cache }}
|
||||
- run: uv sync
|
||||
working-directory: __tests__/fixtures/uv-project
|
||||
test-restore-cache:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
enable-cache: [ "true", "false", "auto" ]
|
||||
os: [ "ubuntu-latest", "selfhosted-ubuntu-arm64" ]
|
||||
needs: test-setup-cache
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Restore with cache
|
||||
id: restore
|
||||
uses: ./
|
||||
with:
|
||||
enable-cache: ${{ matrix.enable-cache }}
|
||||
cache-suffix: ${{ github.run_id }}-${{ github.run_attempt }}-test-setup-cache-${{ matrix.os }}-${{ matrix.enable-cache }}
|
||||
- name: Cache was hit
|
||||
if: ${{ matrix.enable-cache == 'true' || (matrix.enable-cache == 'auto' && matrix.os == 'ubuntu-latest') }}
|
||||
run: |
|
||||
if [ "$CACHE_HIT" != "true" ]; then
|
||||
exit 1
|
||||
fi
|
||||
env:
|
||||
CACHE_HIT: ${{ steps.restore.outputs.cache-hit }}
|
||||
- name: Cache was not hit
|
||||
if: ${{ matrix.enable-cache == 'false' || (matrix.enable-cache == 'auto' && matrix.os == 'selfhosted-ubuntu-arm64') }}
|
||||
run: |
|
||||
if [ "$CACHE_HIT" == "true" ]; then
|
||||
exit 1
|
||||
fi
|
||||
env:
|
||||
CACHE_HIT: ${{ steps.restore.outputs.cache-hit }}
|
||||
- run: uv sync
|
||||
working-directory: __tests__/fixtures/uv-project
|
||||
test-setup-cache-requirements-txt:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -18,10 +66,12 @@ jobs:
|
||||
uses: ./
|
||||
with:
|
||||
enable-cache: true
|
||||
cache-suffix: ${{ github.run_id }}-${{ github.run_attempt }}-test-setup-cache
|
||||
- run: uv sync
|
||||
working-directory: __tests__/fixtures/uv-project
|
||||
test-restore-cache:
|
||||
cache-suffix: ${{ github.run_id }}-${{ github.run_attempt }}-test-setup-cache-requirements-txt
|
||||
- run: |
|
||||
uv venv
|
||||
uv pip install -r requirements.txt
|
||||
working-directory: __tests__/fixtures/requirements-txt-project
|
||||
test-restore-cache-requirements-txt:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test-setup-cache
|
||||
steps:
|
||||
@@ -31,7 +81,7 @@ jobs:
|
||||
uses: ./
|
||||
with:
|
||||
enable-cache: true
|
||||
cache-suffix: ${{ github.run_id }}-${{ github.run_attempt }}-test-setup-cache
|
||||
cache-suffix: ${{ github.run_id }}-${{ github.run_attempt }}-test-setup-cache-requirements-txt
|
||||
- name: Cache was hit
|
||||
run: |
|
||||
if [ "$CACHE_HIT" != "true" ]; then
|
||||
@@ -39,8 +89,10 @@ jobs:
|
||||
fi
|
||||
env:
|
||||
CACHE_HIT: ${{ steps.restore.outputs.cache-hit }}
|
||||
- run: uv sync
|
||||
working-directory: __tests__/fixtures/uv-project
|
||||
- run: |
|
||||
uv venv
|
||||
uv pip install -r requirements.txt
|
||||
working-directory: __tests__/fixtures/requirements-txt-project
|
||||
|
||||
test-setup-cache-dependency-glob:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -162,3 +214,16 @@ jobs:
|
||||
- name: Remove cache dependency glob file
|
||||
run: rm -f ~/uv-cache.glob
|
||||
shell: bash
|
||||
|
||||
test-no-python-version:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Fake pyproject.toml at root
|
||||
run: cp __tests__/fixtures/old-python-constraint-project/pyproject.toml pyproject.toml
|
||||
- name: Setup with cache
|
||||
uses: ./
|
||||
with:
|
||||
enable-cache: true
|
||||
- run: uv sync
|
||||
working-directory: __tests__/fixtures/old-python-constraint-project
|
||||
|
||||
@@ -23,5 +23,7 @@ jobs:
|
||||
}
|
||||
- name: Setup uv
|
||||
uses: ./
|
||||
- run: uv sync
|
||||
working-directory: __tests__\fixtures\uv-project
|
||||
with:
|
||||
python-version: "3.13"
|
||||
- run: ls
|
||||
- run: uv pip install -r __tests__/fixtures/requirements-txt-project/requirements.txt
|
||||
|
||||
@@ -64,6 +64,39 @@ jobs:
|
||||
fi
|
||||
env:
|
||||
UV_VERSION: ${{ steps.setup-uv.outputs.uv-version }}
|
||||
test-pyproject-file-version:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install version 0.5.14
|
||||
id: setup-uv
|
||||
uses: ./
|
||||
with:
|
||||
pyproject-file: "__tests__/fixtures/pyproject-toml-project/pyproject.toml"
|
||||
- name: Correct version gets installed
|
||||
run: |
|
||||
if [ "$UV_VERSION" != "0.5.14" ]; then
|
||||
exit 1
|
||||
fi
|
||||
env:
|
||||
UV_VERSION: ${{ steps.setup-uv.outputs.uv-version }}
|
||||
test-uv-file-version:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install version 0.5.15
|
||||
id: setup-uv
|
||||
uses: ./
|
||||
with:
|
||||
pyproject-file: "__tests__/fixtures/uv-toml-project/pyproject.toml"
|
||||
uv-file: "__tests__/fixtures/uv-toml-project/uv.toml"
|
||||
- name: Correct version gets installed
|
||||
run: |
|
||||
if [ "$UV_VERSION" != "0.5.15" ]; then
|
||||
exit 1
|
||||
fi
|
||||
env:
|
||||
UV_VERSION: ${{ steps.setup-uv.outputs.uv-version }}
|
||||
test-checksum:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
@@ -84,6 +117,8 @@ jobs:
|
||||
with:
|
||||
version: "0.3.2"
|
||||
checksum: ${{ matrix.checksum }}
|
||||
- run: uv sync
|
||||
working-directory: __tests__/fixtures/uv-project
|
||||
test-with-explicit-token:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -141,17 +176,39 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.12", "3.13t"]
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install latest version
|
||||
uses: ./
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
python-version: 3.13.1t
|
||||
- name: Verify UV_PYTHON is set to correct version
|
||||
run: |
|
||||
if [ "$UV_PYTHON" != "${{ matrix.python-version }}" ]; then
|
||||
echo "$UV_PYTHON"
|
||||
if [ "$UV_PYTHON" != "3.13.1t" ]; then
|
||||
exit 1
|
||||
fi
|
||||
shell: bash
|
||||
- name: Verify packages can be installed
|
||||
run: uv pip install --python=3.13.1t pip
|
||||
shell: bash
|
||||
- name: Verify python version is correct
|
||||
run: |
|
||||
python --version
|
||||
if [ "$(python --version)" != "Python 3.13.1" ]; then
|
||||
exit 1
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
test-malformed-pyproject-file-fallback:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install using malformed pyproject.toml
|
||||
id: setup-uv
|
||||
uses: ./
|
||||
with:
|
||||
pyproject-file: "__tests__/fixtures/malformed-pyproject-toml-project/pyproject.toml"
|
||||
- run: uv sync
|
||||
working-directory: __tests__/fixtures/uv-project
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
name: "Update known checksums"
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 4 * * *" # Run every day at 4am UTC
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -17,7 +19,7 @@ jobs:
|
||||
src/download/checksum/known-checksums.ts ${{ secrets.GITHUB_TOKEN }}
|
||||
- run: npm install && npm run all
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
|
||||
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6
|
||||
with:
|
||||
commit-message: "chore: update known checksums"
|
||||
title:
|
||||
|
||||
@@ -11,9 +11,11 @@ Set up your GitHub Actions workflow with a specific version of [uv](https://docs
|
||||
## Contents
|
||||
|
||||
- [Usage](#usage)
|
||||
- [Install the latest version (default)](#install-the-latest-version-default)
|
||||
- [Install a required-version or latest (default)](#install-a-required-version-or-latest-default)
|
||||
- [Install the latest version](#install-the-latest-version)
|
||||
- [Install a specific version](#install-a-specific-version)
|
||||
- [Install a version by supplying a semver range](#install-a-version-by-supplying-a-semver-range)
|
||||
- [Install a required-version](#install-a-required-version)
|
||||
- [Python version](#python-version)
|
||||
- [Validate checksum](#validate-checksum)
|
||||
- [Enable Caching](#enable-caching)
|
||||
@@ -30,23 +32,33 @@ Set up your GitHub Actions workflow with a specific version of [uv](https://docs
|
||||
|
||||
## Usage
|
||||
|
||||
### Install the latest version (default)
|
||||
### Install a required-version or latest (default)
|
||||
|
||||
```yaml
|
||||
- name: Install the latest version of uv
|
||||
uses: astral-sh/setup-uv@v4
|
||||
with:
|
||||
version: "latest"
|
||||
uses: astral-sh/setup-uv@v5
|
||||
```
|
||||
|
||||
If you do not specify a version, this action will look for a [required-version](https://docs.astral.sh/uv/reference/settings/#required-version)
|
||||
in a `uv.toml` or `pyproject.toml` file in the repository root. If none is found, the latest version will be installed.
|
||||
|
||||
For an example workflow, see
|
||||
[here](https://github.com/charliermarsh/autobot/blob/e42c66659bf97b90ca9ff305a19cc99952d0d43f/.github/workflows/ci.yaml).
|
||||
|
||||
### Install the latest version
|
||||
|
||||
```yaml
|
||||
- name: Install the latest version of uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: "latest"
|
||||
```
|
||||
|
||||
### Install a specific version
|
||||
|
||||
```yaml
|
||||
- name: Install a specific version of uv
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: "0.4.4"
|
||||
```
|
||||
@@ -58,29 +70,53 @@ to install the latest version that satisfies the range.
|
||||
|
||||
```yaml
|
||||
- name: Install a semver range of uv
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: ">=0.4.0"
|
||||
```
|
||||
|
||||
```yaml
|
||||
- name: Pinning a minor version of uv
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: "0.4.x"
|
||||
```
|
||||
|
||||
### Install a required-version
|
||||
|
||||
You can specify a [required-version](https://docs.astral.sh/uv/reference/settings/#required-version)
|
||||
in either a `uv.toml` or `pyproject.toml` file:
|
||||
|
||||
```yaml
|
||||
- name: Install required-version defined in uv.toml
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
uv-file: "path/to/uv.toml"
|
||||
```
|
||||
|
||||
```yaml
|
||||
- name: Install required-version defined in pyproject.toml
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
pyproject-file: "path/to/pyproject.toml"
|
||||
```
|
||||
|
||||
### Python version
|
||||
|
||||
You can use the input `python-version` to set the environment variable `UV_PYTHON` for the rest
|
||||
of your workflow.
|
||||
You can use the input `python-version` to
|
||||
|
||||
- set the environment variable `UV_PYTHON` for the rest of your workflow
|
||||
- create a new virtual environment with the specified python version
|
||||
- activate the virtual environment for the rest of your workflow
|
||||
|
||||
This will override any python version specifications in `pyproject.toml` and `.python-version`
|
||||
|
||||
```yaml
|
||||
- name: Install the latest version of uv and set the python version to 3.12
|
||||
uses: astral-sh/setup-uv@v4
|
||||
- name: Install the latest version of uv and set the python version to 3.13t
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
python-version: 3.13t
|
||||
- run: uv pip install --python=3.13t pip
|
||||
```
|
||||
|
||||
You can combine this with a matrix to test multiple python versions:
|
||||
@@ -95,7 +131,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install the latest version of uv and set the python version
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Test with python ${{ matrix.python-version }}
|
||||
@@ -110,7 +146,7 @@ are automatically verified by this action. The sha256 hashes can be found on the
|
||||
|
||||
```yaml
|
||||
- name: Install a specific version and validate the checksum
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: "0.3.1"
|
||||
checksum: "e11b01402ab645392c7ad6044db63d37e4fd1e745e015306993b07695ea5f9f8"
|
||||
@@ -131,7 +167,7 @@ You can optionally define a custom cache key suffix.
|
||||
```yaml
|
||||
- name: Enable caching and define a custom cache key suffix
|
||||
id: setup-uv
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
enable-cache: true
|
||||
cache-suffix: "optional-suffix"
|
||||
@@ -154,19 +190,24 @@ changes. If you use relative paths, they are relative to the repository root.
|
||||
|
||||
> [!NOTE]
|
||||
>
|
||||
> The default is `**/uv.lock`.
|
||||
> The default is
|
||||
> ```yaml
|
||||
> cache-dependency-glob: |
|
||||
> **/requirements*.txt
|
||||
> **/uv.lock
|
||||
> ```
|
||||
|
||||
```yaml
|
||||
- name: Define a cache dependency glob
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
enable-cache: true
|
||||
cache-dependency-glob: "**/requirements*.txt"
|
||||
cache-dependency-glob: "**/pyproject.toml"
|
||||
```
|
||||
|
||||
```yaml
|
||||
- name: Define a list of cache dependency globs
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
enable-cache: true
|
||||
cache-dependency-glob: |
|
||||
@@ -176,7 +217,7 @@ changes. If you use relative paths, they are relative to the repository root.
|
||||
|
||||
```yaml
|
||||
- name: Define an absolute cache dependency glob
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
enable-cache: true
|
||||
cache-dependency-glob: "/tmp/my-folder/requirements*.txt"
|
||||
@@ -184,7 +225,7 @@ changes. If you use relative paths, they are relative to the repository root.
|
||||
|
||||
```yaml
|
||||
- name: Never invalidate the cache
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
enable-cache: true
|
||||
cache-dependency-glob: ""
|
||||
@@ -199,7 +240,7 @@ It defaults to `setup-uv-cache` in the `TMP` dir, `D:\a\_temp\uv-tool-dir` on Wi
|
||||
|
||||
```yaml
|
||||
- name: Define a custom uv cache path
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
cache-local-path: "/path/to/cache"
|
||||
```
|
||||
@@ -218,7 +259,7 @@ input.
|
||||
|
||||
```yaml
|
||||
- name: Don't prune the cache before saving it
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
enable-cache: true
|
||||
prune-cache: false
|
||||
@@ -231,7 +272,7 @@ If you want to ignore this, set the `ignore-nothing-to-cache` input to `true`.
|
||||
|
||||
```yaml
|
||||
- name: Ignore nothing to cache
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
enable-cache: true
|
||||
ignore-nothing-to-cache: true
|
||||
@@ -249,7 +290,7 @@ are not sufficient, you can provide a custom GitHub token with the necessary per
|
||||
|
||||
```yaml
|
||||
- name: Install the latest version of uv with a custom GitHub token
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
github-token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
|
||||
```
|
||||
@@ -267,7 +308,7 @@ input:
|
||||
|
||||
```yaml
|
||||
- name: Install the latest version of uv with a custom tool dir
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
tool-dir: "/path/to/tool/dir"
|
||||
```
|
||||
@@ -286,7 +327,7 @@ If you want to change this behaviour (especially on self-hosted runners) you can
|
||||
|
||||
```yaml
|
||||
- name: Install the latest version of uv with a custom tool bin dir
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
tool-bin-dir: "/path/to/tool-bin/dir"
|
||||
```
|
||||
@@ -302,7 +343,7 @@ This action supports expanding the `~` character to the user's home directory fo
|
||||
|
||||
```yaml
|
||||
- name: Expand the tilde character
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
cache-local-path: "~/path/to/cache"
|
||||
tool-dir: "~/path/to/tool/dir"
|
||||
@@ -324,21 +365,22 @@ by name (`uv`).
|
||||
|
||||
### Do I still need `actions/setup-python` alongside `setup-uv`?
|
||||
|
||||
No. This action is modelled as a drop-in replacement for `actions/setup-python` when using uv. With
|
||||
`setup-uv`, you can install a specific version of Python using `uv python install` rather than
|
||||
With `setup-uv`, you can install a specific version of Python using `uv python install` rather than
|
||||
relying on `actions/setup-python`.
|
||||
|
||||
Using `actions/setup-python` can be faster, because GitHub caches the Python versions alongside the runner.
|
||||
|
||||
For example:
|
||||
|
||||
```yaml
|
||||
- name: Checkout the repository
|
||||
uses: actions/checkout@main
|
||||
- name: Install the latest version of uv
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
enable-cache: true
|
||||
- name: Test
|
||||
run: uv run --frozen pytest
|
||||
run: uv run --frozen pytest # Uses the Python version automatically installed by uv
|
||||
```
|
||||
|
||||
To install a specific version of Python, use
|
||||
@@ -346,7 +388,7 @@ To install a specific version of Python, use
|
||||
|
||||
```yaml
|
||||
- name: Install the latest version of uv
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
enable-cache: true
|
||||
- name: Install Python 3.12
|
||||
@@ -365,7 +407,7 @@ output:
|
||||
uses: actions/checkout@main
|
||||
- name: Install the default version of uv
|
||||
id: setup-uv
|
||||
uses: astral-sh/setup-uv@v4
|
||||
uses: astral-sh/setup-uv@v5
|
||||
- name: Print the installed version
|
||||
run: echo "Installed uv version is ${{ steps.setup-uv.outputs.uv-version }}"
|
||||
```
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
3.11
|
||||
@@ -0,0 +1,6 @@
|
||||
def main():
|
||||
print("Hello from malformed-pyproject-toml-project!")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,9 @@
|
||||
[project]
|
||||
name = "malformed-pyproject-toml-project"
|
||||
version = "0.1.0"
|
||||
description = "Add your description here"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.11"
|
||||
dependencies = []
|
||||
|
||||
[malformed-toml
|
||||
@@ -0,0 +1,13 @@
|
||||
[project]
|
||||
name = "old-python-constraint-project"
|
||||
version = "0.1.0"
|
||||
description = "Add your description here"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.8,<=3.9"
|
||||
dependencies = [
|
||||
"ruff>=0.6.2",
|
||||
]
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
def hello() -> str:
|
||||
return "Hello from uv-project!"
|
||||
@@ -0,0 +1,38 @@
|
||||
version = 1
|
||||
requires-python = ">=3.12"
|
||||
|
||||
[[package]]
|
||||
name = "ruff"
|
||||
version = "0.6.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/23/f4/279d044f66b79261fd37df76bf72b64471afab5d3b7906a01499c4451910/ruff-0.6.2.tar.gz", hash = "sha256:239ee6beb9e91feb8e0ec384204a763f36cb53fb895a1a364618c6abb076b3be", size = 2460281 }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/72/4b/47dd7a69287afb4069fa42c198e899463605460a58120196711bfcf0446b/ruff-0.6.2-py3-none-linux_armv6l.whl", hash = "sha256:5c8cbc6252deb3ea840ad6a20b0f8583caab0c5ef4f9cca21adc5a92b8f79f3c", size = 9695871 },
|
||||
{ url = "https://files.pythonhosted.org/packages/ae/c3/8aac62ac4638c14a740ee76a755a925f2d0d04580ab790a9887accb729f6/ruff-0.6.2-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:17002fe241e76544448a8e1e6118abecbe8cd10cf68fde635dad480dba594570", size = 9459354 },
|
||||
{ url = "https://files.pythonhosted.org/packages/2f/cf/77fbd8d4617b9b9c503f9bffb8552c4e3ea1a58dc36975e7a9104ffb0f85/ruff-0.6.2-py3-none-macosx_11_0_arm64.whl", hash = "sha256:3dbeac76ed13456f8158b8f4fe087bf87882e645c8e8b606dd17b0b66c2c1158", size = 9163871 },
|
||||
{ url = "https://files.pythonhosted.org/packages/05/1c/765192bab32b79efbb498b06f0b9dcb3629112b53b8777ae1d19b8209e09/ruff-0.6.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:094600ee88cda325988d3f54e3588c46de5c18dae09d683ace278b11f9d4d534", size = 10096250 },
|
||||
{ url = "https://files.pythonhosted.org/packages/08/d0/86f3cb0f6934c99f759c232984a5204d67a26745cad2d9edff6248adf7d2/ruff-0.6.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:316d418fe258c036ba05fbf7dfc1f7d3d4096db63431546163b472285668132b", size = 9475376 },
|
||||
{ url = "https://files.pythonhosted.org/packages/cd/cc/4c8d0e225b559a3fae6092ec310d7150d3b02b4669e9223f783ef64d82c0/ruff-0.6.2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d72b8b3abf8a2d51b7b9944a41307d2f442558ccb3859bbd87e6ae9be1694a5d", size = 10295634 },
|
||||
{ url = "https://files.pythonhosted.org/packages/db/96/d2699cfb1bb5a01c68122af43454c76c31331e1c8a9bd97d653d7c82524b/ruff-0.6.2-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:2aed7e243be68487aa8982e91c6e260982d00da3f38955873aecd5a9204b1d66", size = 11024941 },
|
||||
{ url = "https://files.pythonhosted.org/packages/8b/a9/6ecd66af8929e0f2a1ed308a4137f3521789f28f0eb97d32c2ca3aa7000c/ruff-0.6.2-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d371f7fc9cec83497fe7cf5eaf5b76e22a8efce463de5f775a1826197feb9df8", size = 10606894 },
|
||||
{ url = "https://files.pythonhosted.org/packages/e4/73/2ee4cd19f44992fedac1cc6db9e3d825966072f6dcbd4032f21cbd063170/ruff-0.6.2-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a8f310d63af08f583363dfb844ba8f9417b558199c58a5999215082036d795a1", size = 11552886 },
|
||||
{ url = "https://files.pythonhosted.org/packages/60/4c/c0f1cd35ce4a93c54a6bb1ee6934a3a205fa02198dd076678193853ceea1/ruff-0.6.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7db6880c53c56addb8638fe444818183385ec85eeada1d48fc5abe045301b2f1", size = 10264945 },
|
||||
{ url = "https://files.pythonhosted.org/packages/c4/89/e45c9359b9cdd4245512ea2b9f2bb128a997feaa5f726fc9e8c7a66afadf/ruff-0.6.2-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:1175d39faadd9a50718f478d23bfc1d4da5743f1ab56af81a2b6caf0a2394f23", size = 10100007 },
|
||||
{ url = "https://files.pythonhosted.org/packages/06/74/0bd4e0a7ed5f6908df87892f9bf60a2356c0fd74102d8097298bd9b4f346/ruff-0.6.2-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:5b939f9c86d51635fe486585389f54582f0d65b8238e08c327c1534844b3bb9a", size = 9559267 },
|
||||
{ url = "https://files.pythonhosted.org/packages/54/03/3dc6dc9419f276f05805bf888c279e3e0b631284abd548d9e87cebb93aec/ruff-0.6.2-py3-none-musllinux_1_2_i686.whl", hash = "sha256:d0d62ca91219f906caf9b187dea50d17353f15ec9bb15aae4a606cd697b49b4c", size = 9905304 },
|
||||
{ url = "https://files.pythonhosted.org/packages/5c/5b/d6a72a6a6bbf097c09de468326ef5fa1c9e7aa5e6e45979bc0d984b0dbe7/ruff-0.6.2-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:7438a7288f9d67ed3c8ce4d059e67f7ed65e9fe3aa2ab6f5b4b3610e57e3cb56", size = 10341480 },
|
||||
{ url = "https://files.pythonhosted.org/packages/79/a9/0f2f21fe15ba537c46598f96aa9ae4a3d4b9ec64926664617ca6a8c772f4/ruff-0.6.2-py3-none-win32.whl", hash = "sha256:279d5f7d86696df5f9549b56b9b6a7f6c72961b619022b5b7999b15db392a4da", size = 7961901 },
|
||||
{ url = "https://files.pythonhosted.org/packages/b0/80/fff12ffe11853d9f4ea3e5221e6dd2e93640a161c05c9579833e09ad40a7/ruff-0.6.2-py3-none-win_amd64.whl", hash = "sha256:d9f3469c7dd43cd22eb1c3fc16926fb8258d50cb1b216658a07be95dd117b0f2", size = 8783320 },
|
||||
{ url = "https://files.pythonhosted.org/packages/56/91/577cdd64cce5e74d3f8b5ecb93f29566def569c741eb008aed4f331ef821/ruff-0.6.2-py3-none-win_arm64.whl", hash = "sha256:f28fcd2cd0e02bdf739297516d5643a945cc7caf09bd9bcb4d932540a5ea4fa9", size = 8225886 },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "uv-project"
|
||||
version = "0.1.0"
|
||||
source = { editable = "." }
|
||||
dependencies = [
|
||||
{ name = "ruff" },
|
||||
]
|
||||
|
||||
[package.metadata]
|
||||
requires-dist = [{ name = "ruff" }]
|
||||
@@ -0,0 +1 @@
|
||||
3.11
|
||||
@@ -0,0 +1,6 @@
|
||||
def main():
|
||||
print("Hello from pyproject-toml-project!")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,19 @@
|
||||
[project]
|
||||
name = "pyproject-toml-project"
|
||||
version = "0.1.0"
|
||||
description = "Add your description here"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.11"
|
||||
dependencies = []
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"reuse==5.0.2",
|
||||
{include-group = "lint"},
|
||||
]
|
||||
lint = [
|
||||
"flake8==4.0.1",
|
||||
]
|
||||
|
||||
[tool.uv]
|
||||
required-version = "==0.5.14"
|
||||
@@ -0,0 +1 @@
|
||||
print("Hello world")
|
||||
@@ -0,0 +1 @@
|
||||
ruff>=0.6.2
|
||||
@@ -0,0 +1 @@
|
||||
3.11
|
||||
@@ -0,0 +1,6 @@
|
||||
def main():
|
||||
print("Hello from uv-toml-project!")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,10 @@
|
||||
[project]
|
||||
name = "uv-toml-project"
|
||||
version = "0.1.0"
|
||||
description = "Add your description here"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.11"
|
||||
dependencies = []
|
||||
|
||||
[tool.uv]
|
||||
required-version = "==0.5.14"
|
||||
@@ -0,0 +1 @@
|
||||
required-version = "==0.5.15"
|
||||
+14
-7
@@ -4,8 +4,14 @@ description:
|
||||
author: "astral-sh"
|
||||
inputs:
|
||||
version:
|
||||
description: "The version of uv to install"
|
||||
default: "latest"
|
||||
description: "The version of uv to install e.g., `0.5.0` Defaults to the version in pyproject.toml or 'latest'."
|
||||
default: ""
|
||||
pyproject-file:
|
||||
description: "Path to a pyproject.toml"
|
||||
default: ""
|
||||
uv-file:
|
||||
description: "Path to a uv.toml"
|
||||
default: ""
|
||||
python-version:
|
||||
description: "The version of Python to set UV_PYTHON to"
|
||||
required: false
|
||||
@@ -14,18 +20,19 @@ inputs:
|
||||
required: false
|
||||
github-token:
|
||||
description:
|
||||
"Used to increase the rate limit when retrieving versions and downloading
|
||||
uv."
|
||||
"Used to increase the rate limit when retrieving versions and downloading uv."
|
||||
required: false
|
||||
default: ${{ github.token }}
|
||||
enable-cache:
|
||||
description: "Enable caching of the uv cache"
|
||||
default: "false"
|
||||
description: "Enable uploading of the uv cache"
|
||||
default: "auto"
|
||||
cache-dependency-glob:
|
||||
description:
|
||||
"Glob pattern to match files relative to the repository root to control
|
||||
the cache."
|
||||
default: "**/uv.lock"
|
||||
default: |
|
||||
**/uv.lock
|
||||
**/requirements*.txt
|
||||
cache-suffix:
|
||||
description: "Suffix for the cache key"
|
||||
required: false
|
||||
|
||||
+9423
-244
@@ -44,7 +44,10 @@ const core = __importStar(__nccwpck_require__(7484));
|
||||
const path = __importStar(__nccwpck_require__(6928));
|
||||
const utils = __importStar(__nccwpck_require__(680));
|
||||
const cacheHttpClient = __importStar(__nccwpck_require__(5552));
|
||||
const cacheTwirpClient = __importStar(__nccwpck_require__(6819));
|
||||
const config_1 = __nccwpck_require__(7606);
|
||||
const tar_1 = __nccwpck_require__(5321);
|
||||
const constants_1 = __nccwpck_require__(8287);
|
||||
class ValidationError extends Error {
|
||||
constructor(message) {
|
||||
super(message);
|
||||
@@ -88,15 +91,39 @@ exports.isFeatureAvailable = isFeatureAvailable;
|
||||
* Restores cache from keys
|
||||
*
|
||||
* @param paths a list of file paths to restore from the cache
|
||||
* @param primaryKey an explicit key for restoring the cache
|
||||
* @param restoreKeys an optional ordered list of keys to use for restoring the cache if no cache hit occurred for key
|
||||
* @param primaryKey an explicit key for restoring the cache. Lookup is done with prefix matching.
|
||||
* @param restoreKeys an optional ordered list of keys to use for restoring the cache if no cache hit occurred for primaryKey
|
||||
* @param downloadOptions cache download options
|
||||
* @param enableCrossOsArchive an optional boolean enabled to restore on windows any cache created on any platform
|
||||
* @returns string returns the key for the cache hit, otherwise returns undefined
|
||||
*/
|
||||
function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const cacheServiceVersion = (0, config_1.getCacheServiceVersion)();
|
||||
core.debug(`Cache service version: ${cacheServiceVersion}`);
|
||||
checkPaths(paths);
|
||||
switch (cacheServiceVersion) {
|
||||
case 'v2':
|
||||
return yield restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
|
||||
case 'v1':
|
||||
default:
|
||||
return yield restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
|
||||
}
|
||||
});
|
||||
}
|
||||
exports.restoreCache = restoreCache;
|
||||
/**
|
||||
* Restores cache using the legacy Cache Service
|
||||
*
|
||||
* @param paths a list of file paths to restore from the cache
|
||||
* @param primaryKey an explicit key for restoring the cache. Lookup is done with prefix matching.
|
||||
* @param restoreKeys an optional ordered list of keys to use for restoring the cache if no cache hit occurred for primaryKey
|
||||
* @param options cache download options
|
||||
* @param enableCrossOsArchive an optional boolean enabled to restore on Windows any cache created on any platform
|
||||
* @returns string returns the key for the cache hit, otherwise returns undefined
|
||||
*/
|
||||
function restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
restoreKeys = restoreKeys || [];
|
||||
const keys = [primaryKey, ...restoreKeys];
|
||||
core.debug('Resolved Keys:');
|
||||
@@ -158,7 +185,85 @@ function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArch
|
||||
return undefined;
|
||||
});
|
||||
}
|
||||
exports.restoreCache = restoreCache;
|
||||
/**
|
||||
* Restores cache using Cache Service v2
|
||||
*
|
||||
* @param paths a list of file paths to restore from the cache
|
||||
* @param primaryKey an explicit key for restoring the cache. Lookup is done with prefix matching
|
||||
* @param restoreKeys an optional ordered list of keys to use for restoring the cache if no cache hit occurred for primaryKey
|
||||
* @param downloadOptions cache download options
|
||||
* @param enableCrossOsArchive an optional boolean enabled to restore on windows any cache created on any platform
|
||||
* @returns string returns the key for the cache hit, otherwise returns undefined
|
||||
*/
|
||||
function restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
// Override UploadOptions to force the use of Azure
|
||||
options = Object.assign(Object.assign({}, options), { useAzureSdk: true });
|
||||
restoreKeys = restoreKeys || [];
|
||||
const keys = [primaryKey, ...restoreKeys];
|
||||
core.debug('Resolved Keys:');
|
||||
core.debug(JSON.stringify(keys));
|
||||
if (keys.length > 10) {
|
||||
throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`);
|
||||
}
|
||||
for (const key of keys) {
|
||||
checkKey(key);
|
||||
}
|
||||
let archivePath = '';
|
||||
try {
|
||||
const twirpClient = cacheTwirpClient.internalCacheTwirpClient();
|
||||
const compressionMethod = yield utils.getCompressionMethod();
|
||||
const request = {
|
||||
key: primaryKey,
|
||||
restoreKeys,
|
||||
version: utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive)
|
||||
};
|
||||
const response = yield twirpClient.GetCacheEntryDownloadURL(request);
|
||||
if (!response.ok) {
|
||||
core.warning(`Cache not found for keys: ${keys.join(', ')}`);
|
||||
return undefined;
|
||||
}
|
||||
core.info(`Cache hit for: ${request.key}`);
|
||||
if (options === null || options === void 0 ? void 0 : options.lookupOnly) {
|
||||
core.info('Lookup only - skipping download');
|
||||
return response.matchedKey;
|
||||
}
|
||||
archivePath = path.join(yield utils.createTempDirectory(), utils.getCacheFileName(compressionMethod));
|
||||
core.debug(`Archive path: ${archivePath}`);
|
||||
core.debug(`Starting download of archive to: ${archivePath}`);
|
||||
yield cacheHttpClient.downloadCache(response.signedDownloadUrl, archivePath, options);
|
||||
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
||||
core.info(`Cache Size: ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B)`);
|
||||
if (core.isDebug()) {
|
||||
yield (0, tar_1.listTar)(archivePath, compressionMethod);
|
||||
}
|
||||
yield (0, tar_1.extractTar)(archivePath, compressionMethod);
|
||||
core.info('Cache restored successfully');
|
||||
return response.matchedKey;
|
||||
}
|
||||
catch (error) {
|
||||
const typedError = error;
|
||||
if (typedError.name === ValidationError.name) {
|
||||
throw error;
|
||||
}
|
||||
else {
|
||||
// Supress all non-validation cache related errors because caching should be optional
|
||||
core.warning(`Failed to restore: ${error.message}`);
|
||||
}
|
||||
}
|
||||
finally {
|
||||
try {
|
||||
if (archivePath) {
|
||||
yield utils.unlinkFile(archivePath);
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
core.debug(`Failed to delete archive: ${error}`);
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Saves a list of files with the specified key
|
||||
*
|
||||
@@ -169,10 +274,33 @@ exports.restoreCache = restoreCache;
|
||||
* @returns number returns cacheId if the cache was saved successfully and throws an error if save fails
|
||||
*/
|
||||
function saveCache(paths, key, options, enableCrossOsArchive = false) {
|
||||
var _a, _b, _c, _d, _e;
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const cacheServiceVersion = (0, config_1.getCacheServiceVersion)();
|
||||
core.debug(`Cache service version: ${cacheServiceVersion}`);
|
||||
checkPaths(paths);
|
||||
checkKey(key);
|
||||
switch (cacheServiceVersion) {
|
||||
case 'v2':
|
||||
return yield saveCacheV2(paths, key, options, enableCrossOsArchive);
|
||||
case 'v1':
|
||||
default:
|
||||
return yield saveCacheV1(paths, key, options, enableCrossOsArchive);
|
||||
}
|
||||
});
|
||||
}
|
||||
exports.saveCache = saveCache;
|
||||
/**
|
||||
* Save cache using the legacy Cache Service
|
||||
*
|
||||
* @param paths
|
||||
* @param key
|
||||
* @param options
|
||||
* @param enableCrossOsArchive
|
||||
* @returns
|
||||
*/
|
||||
function saveCacheV1(paths, key, options, enableCrossOsArchive = false) {
|
||||
var _a, _b, _c, _d, _e;
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const compressionMethod = yield utils.getCompressionMethod();
|
||||
let cacheId = -1;
|
||||
const cachePaths = yield utils.resolvePaths(paths);
|
||||
@@ -193,7 +321,7 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
|
||||
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
||||
core.debug(`File Size: ${archiveFileSize}`);
|
||||
// For GHES, this check will take place in ReserveCache API with enterprise file size limit
|
||||
if (archiveFileSize > fileSizeLimit && !utils.isGhes()) {
|
||||
if (archiveFileSize > fileSizeLimit && !(0, config_1.isGhes)()) {
|
||||
throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`);
|
||||
}
|
||||
core.debug('Reserving Cache');
|
||||
@@ -212,7 +340,95 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
|
||||
throw new ReserveCacheError(`Unable to reserve cache with key ${key}, another job may be creating this cache. More details: ${(_e = reserveCacheResponse === null || reserveCacheResponse === void 0 ? void 0 : reserveCacheResponse.error) === null || _e === void 0 ? void 0 : _e.message}`);
|
||||
}
|
||||
core.debug(`Saving Cache (ID: ${cacheId})`);
|
||||
yield cacheHttpClient.saveCache(cacheId, archivePath, options);
|
||||
yield cacheHttpClient.saveCache(cacheId, archivePath, '', options);
|
||||
}
|
||||
catch (error) {
|
||||
const typedError = error;
|
||||
if (typedError.name === ValidationError.name) {
|
||||
throw error;
|
||||
}
|
||||
else if (typedError.name === ReserveCacheError.name) {
|
||||
core.info(`Failed to save: ${typedError.message}`);
|
||||
}
|
||||
else {
|
||||
core.warning(`Failed to save: ${typedError.message}`);
|
||||
}
|
||||
}
|
||||
finally {
|
||||
// Try to delete the archive to save space
|
||||
try {
|
||||
yield utils.unlinkFile(archivePath);
|
||||
}
|
||||
catch (error) {
|
||||
core.debug(`Failed to delete archive: ${error}`);
|
||||
}
|
||||
}
|
||||
return cacheId;
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Save cache using Cache Service v2
|
||||
*
|
||||
* @param paths a list of file paths to restore from the cache
|
||||
* @param key an explicit key for restoring the cache
|
||||
* @param options cache upload options
|
||||
* @param enableCrossOsArchive an optional boolean enabled to save cache on windows which could be restored on any platform
|
||||
* @returns
|
||||
*/
|
||||
function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
// Override UploadOptions to force the use of Azure
|
||||
// ...options goes first because we want to override the default values
|
||||
// set in UploadOptions with these specific figures
|
||||
options = Object.assign(Object.assign({}, options), { uploadChunkSize: 64 * 1024 * 1024, uploadConcurrency: 8, useAzureSdk: true });
|
||||
const compressionMethod = yield utils.getCompressionMethod();
|
||||
const twirpClient = cacheTwirpClient.internalCacheTwirpClient();
|
||||
let cacheId = -1;
|
||||
const cachePaths = yield utils.resolvePaths(paths);
|
||||
core.debug('Cache Paths:');
|
||||
core.debug(`${JSON.stringify(cachePaths)}`);
|
||||
if (cachePaths.length === 0) {
|
||||
throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);
|
||||
}
|
||||
const archiveFolder = yield utils.createTempDirectory();
|
||||
const archivePath = path.join(archiveFolder, utils.getCacheFileName(compressionMethod));
|
||||
core.debug(`Archive Path: ${archivePath}`);
|
||||
try {
|
||||
yield (0, tar_1.createTar)(archiveFolder, cachePaths, compressionMethod);
|
||||
if (core.isDebug()) {
|
||||
yield (0, tar_1.listTar)(archivePath, compressionMethod);
|
||||
}
|
||||
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
||||
core.debug(`File Size: ${archiveFileSize}`);
|
||||
// For GHES, this check will take place in ReserveCache API with enterprise file size limit
|
||||
if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) {
|
||||
throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`);
|
||||
}
|
||||
// Set the archive size in the options, will be used to display the upload progress
|
||||
options.archiveSizeBytes = archiveFileSize;
|
||||
core.debug('Reserving Cache');
|
||||
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
||||
const request = {
|
||||
key,
|
||||
version
|
||||
};
|
||||
const response = yield twirpClient.CreateCacheEntry(request);
|
||||
if (!response.ok) {
|
||||
throw new ReserveCacheError(`Unable to reserve cache with key ${key}, another job may be creating this cache.`);
|
||||
}
|
||||
core.debug(`Attempting to upload cache located at: ${archivePath}`);
|
||||
yield cacheHttpClient.saveCache(cacheId, archivePath, response.signedUploadUrl, options);
|
||||
const finalizeRequest = {
|
||||
key,
|
||||
version,
|
||||
sizeBytes: `${archiveFileSize}`
|
||||
};
|
||||
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
||||
core.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
||||
if (!finalizeResponse.ok) {
|
||||
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
||||
}
|
||||
cacheId = parseInt(finalizeResponse.entryId);
|
||||
}
|
||||
catch (error) {
|
||||
const typedError = error;
|
||||
@@ -238,11 +454,1753 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
|
||||
return cacheId;
|
||||
});
|
||||
}
|
||||
exports.saveCache = saveCache;
|
||||
//# sourceMappingURL=cache.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8200:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.Timestamp = void 0;
|
||||
const runtime_1 = __nccwpck_require__(8886);
|
||||
const runtime_2 = __nccwpck_require__(8886);
|
||||
const runtime_3 = __nccwpck_require__(8886);
|
||||
const runtime_4 = __nccwpck_require__(8886);
|
||||
const runtime_5 = __nccwpck_require__(8886);
|
||||
const runtime_6 = __nccwpck_require__(8886);
|
||||
const runtime_7 = __nccwpck_require__(8886);
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class Timestamp$Type extends runtime_7.MessageType {
|
||||
constructor() {
|
||||
super("google.protobuf.Timestamp", [
|
||||
{ no: 1, name: "seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
||||
{ no: 2, name: "nanos", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
||||
]);
|
||||
}
|
||||
/**
|
||||
* Creates a new `Timestamp` for the current time.
|
||||
*/
|
||||
now() {
|
||||
const msg = this.create();
|
||||
const ms = Date.now();
|
||||
msg.seconds = runtime_6.PbLong.from(Math.floor(ms / 1000)).toString();
|
||||
msg.nanos = (ms % 1000) * 1000000;
|
||||
return msg;
|
||||
}
|
||||
/**
|
||||
* Converts a `Timestamp` to a JavaScript Date.
|
||||
*/
|
||||
toDate(message) {
|
||||
return new Date(runtime_6.PbLong.from(message.seconds).toNumber() * 1000 + Math.ceil(message.nanos / 1000000));
|
||||
}
|
||||
/**
|
||||
* Converts a JavaScript Date to a `Timestamp`.
|
||||
*/
|
||||
fromDate(date) {
|
||||
const msg = this.create();
|
||||
const ms = date.getTime();
|
||||
msg.seconds = runtime_6.PbLong.from(Math.floor(ms / 1000)).toString();
|
||||
msg.nanos = (ms % 1000) * 1000000;
|
||||
return msg;
|
||||
}
|
||||
/**
|
||||
* In JSON format, the `Timestamp` type is encoded as a string
|
||||
* in the RFC 3339 format.
|
||||
*/
|
||||
internalJsonWrite(message, options) {
|
||||
let ms = runtime_6.PbLong.from(message.seconds).toNumber() * 1000;
|
||||
if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
|
||||
throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
|
||||
if (message.nanos < 0)
|
||||
throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");
|
||||
let z = "Z";
|
||||
if (message.nanos > 0) {
|
||||
let nanosStr = (message.nanos + 1000000000).toString().substring(1);
|
||||
if (nanosStr.substring(3) === "000000")
|
||||
z = "." + nanosStr.substring(0, 3) + "Z";
|
||||
else if (nanosStr.substring(6) === "000")
|
||||
z = "." + nanosStr.substring(0, 6) + "Z";
|
||||
else
|
||||
z = "." + nanosStr + "Z";
|
||||
}
|
||||
return new Date(ms).toISOString().replace(".000Z", z);
|
||||
}
|
||||
/**
|
||||
* In JSON format, the `Timestamp` type is encoded as a string
|
||||
* in the RFC 3339 format.
|
||||
*/
|
||||
internalJsonRead(json, options, target) {
|
||||
if (typeof json !== "string")
|
||||
throw new Error("Unable to parse Timestamp from JSON " + (0, runtime_5.typeofJsonValue)(json) + ".");
|
||||
let matches = json.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);
|
||||
if (!matches)
|
||||
throw new Error("Unable to parse Timestamp from JSON. Invalid format.");
|
||||
let ms = Date.parse(matches[1] + "-" + matches[2] + "-" + matches[3] + "T" + matches[4] + ":" + matches[5] + ":" + matches[6] + (matches[8] ? matches[8] : "Z"));
|
||||
if (Number.isNaN(ms))
|
||||
throw new Error("Unable to parse Timestamp from JSON. Invalid value.");
|
||||
if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
|
||||
throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
|
||||
if (!target)
|
||||
target = this.create();
|
||||
target.seconds = runtime_6.PbLong.from(ms / 1000).toString();
|
||||
target.nanos = 0;
|
||||
if (matches[7])
|
||||
target.nanos = (parseInt("1" + matches[7] + "0".repeat(9 - matches[7].length)) - 1000000000);
|
||||
return target;
|
||||
}
|
||||
create(value) {
|
||||
const message = { seconds: "0", nanos: 0 };
|
||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||
if (value !== undefined)
|
||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader, length, options, target) {
|
||||
let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* int64 seconds */ 1:
|
||||
message.seconds = reader.int64().toString();
|
||||
break;
|
||||
case /* int32 nanos */ 2:
|
||||
message.nanos = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message, writer, options) {
|
||||
/* int64 seconds = 1; */
|
||||
if (message.seconds !== "0")
|
||||
writer.tag(1, runtime_1.WireType.Varint).int64(message.seconds);
|
||||
/* int32 nanos = 2; */
|
||||
if (message.nanos !== 0)
|
||||
writer.tag(2, runtime_1.WireType.Varint).int32(message.nanos);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message google.protobuf.Timestamp
|
||||
*/
|
||||
exports.Timestamp = new Timestamp$Type();
|
||||
//# sourceMappingURL=timestamp.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3156:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.CacheService = exports.LookupCacheEntryResponse = exports.LookupCacheEntryRequest = exports.ListCacheEntriesResponse = exports.ListCacheEntriesRequest = exports.DeleteCacheEntryResponse = exports.DeleteCacheEntryRequest = exports.GetCacheEntryDownloadURLResponse = exports.GetCacheEntryDownloadURLRequest = exports.FinalizeCacheEntryUploadResponse = exports.FinalizeCacheEntryUploadRequest = exports.CreateCacheEntryResponse = exports.CreateCacheEntryRequest = void 0;
|
||||
// @generated by protobuf-ts 2.9.1 with parameter long_type_string,client_none,generate_dependencies
|
||||
// @generated from protobuf file "results/api/v1/cache.proto" (package "github.actions.results.api.v1", syntax proto3)
|
||||
// tslint:disable
|
||||
const runtime_rpc_1 = __nccwpck_require__(4420);
|
||||
const runtime_1 = __nccwpck_require__(8886);
|
||||
const runtime_2 = __nccwpck_require__(8886);
|
||||
const runtime_3 = __nccwpck_require__(8886);
|
||||
const runtime_4 = __nccwpck_require__(8886);
|
||||
const runtime_5 = __nccwpck_require__(8886);
|
||||
const cacheentry_1 = __nccwpck_require__(5893);
|
||||
const cachemetadata_1 = __nccwpck_require__(9444);
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CreateCacheEntryRequest$Type extends runtime_5.MessageType {
|
||||
constructor() {
|
||||
super("github.actions.results.api.v1.CreateCacheEntryRequest", [
|
||||
{ no: 1, name: "metadata", kind: "message", T: () => cachemetadata_1.CacheMetadata },
|
||||
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value) {
|
||||
const message = { key: "", version: "" };
|
||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||
if (value !== undefined)
|
||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader, length, options, target) {
|
||||
let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* github.actions.results.entities.v1.CacheMetadata metadata */ 1:
|
||||
message.metadata = cachemetadata_1.CacheMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
|
||||
break;
|
||||
case /* string key */ 2:
|
||||
message.key = reader.string();
|
||||
break;
|
||||
case /* string version */ 3:
|
||||
message.version = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message, writer, options) {
|
||||
/* github.actions.results.entities.v1.CacheMetadata metadata = 1; */
|
||||
if (message.metadata)
|
||||
cachemetadata_1.CacheMetadata.internalBinaryWrite(message.metadata, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
||||
/* string key = 2; */
|
||||
if (message.key !== "")
|
||||
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.key);
|
||||
/* string version = 3; */
|
||||
if (message.version !== "")
|
||||
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.version);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message github.actions.results.api.v1.CreateCacheEntryRequest
|
||||
*/
|
||||
exports.CreateCacheEntryRequest = new CreateCacheEntryRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CreateCacheEntryResponse$Type extends runtime_5.MessageType {
|
||||
constructor() {
|
||||
super("github.actions.results.api.v1.CreateCacheEntryResponse", [
|
||||
{ no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value) {
|
||||
const message = { ok: false, signedUploadUrl: "" };
|
||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||
if (value !== undefined)
|
||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader, length, options, target) {
|
||||
let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* bool ok */ 1:
|
||||
message.ok = reader.bool();
|
||||
break;
|
||||
case /* string signed_upload_url */ 2:
|
||||
message.signedUploadUrl = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message, writer, options) {
|
||||
/* bool ok = 1; */
|
||||
if (message.ok !== false)
|
||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||
/* string signed_upload_url = 2; */
|
||||
if (message.signedUploadUrl !== "")
|
||||
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message github.actions.results.api.v1.CreateCacheEntryResponse
|
||||
*/
|
||||
exports.CreateCacheEntryResponse = new CreateCacheEntryResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class FinalizeCacheEntryUploadRequest$Type extends runtime_5.MessageType {
|
||||
constructor() {
|
||||
super("github.actions.results.api.v1.FinalizeCacheEntryUploadRequest", [
|
||||
{ no: 1, name: "metadata", kind: "message", T: () => cachemetadata_1.CacheMetadata },
|
||||
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "size_bytes", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
||||
{ no: 4, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value) {
|
||||
const message = { key: "", sizeBytes: "0", version: "" };
|
||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||
if (value !== undefined)
|
||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader, length, options, target) {
|
||||
let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* github.actions.results.entities.v1.CacheMetadata metadata */ 1:
|
||||
message.metadata = cachemetadata_1.CacheMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
|
||||
break;
|
||||
case /* string key */ 2:
|
||||
message.key = reader.string();
|
||||
break;
|
||||
case /* int64 size_bytes */ 3:
|
||||
message.sizeBytes = reader.int64().toString();
|
||||
break;
|
||||
case /* string version */ 4:
|
||||
message.version = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message, writer, options) {
|
||||
/* github.actions.results.entities.v1.CacheMetadata metadata = 1; */
|
||||
if (message.metadata)
|
||||
cachemetadata_1.CacheMetadata.internalBinaryWrite(message.metadata, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
||||
/* string key = 2; */
|
||||
if (message.key !== "")
|
||||
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.key);
|
||||
/* int64 size_bytes = 3; */
|
||||
if (message.sizeBytes !== "0")
|
||||
writer.tag(3, runtime_1.WireType.Varint).int64(message.sizeBytes);
|
||||
/* string version = 4; */
|
||||
if (message.version !== "")
|
||||
writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.version);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message github.actions.results.api.v1.FinalizeCacheEntryUploadRequest
|
||||
*/
|
||||
exports.FinalizeCacheEntryUploadRequest = new FinalizeCacheEntryUploadRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType {
|
||||
constructor() {
|
||||
super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse", [
|
||||
{ no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ }
|
||||
]);
|
||||
}
|
||||
create(value) {
|
||||
const message = { ok: false, entryId: "0" };
|
||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||
if (value !== undefined)
|
||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader, length, options, target) {
|
||||
let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* bool ok */ 1:
|
||||
message.ok = reader.bool();
|
||||
break;
|
||||
case /* int64 entry_id */ 2:
|
||||
message.entryId = reader.int64().toString();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message, writer, options) {
|
||||
/* bool ok = 1; */
|
||||
if (message.ok !== false)
|
||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||
/* int64 entry_id = 2; */
|
||||
if (message.entryId !== "0")
|
||||
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message github.actions.results.api.v1.FinalizeCacheEntryUploadResponse
|
||||
*/
|
||||
exports.FinalizeCacheEntryUploadResponse = new FinalizeCacheEntryUploadResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetCacheEntryDownloadURLRequest$Type extends runtime_5.MessageType {
|
||||
constructor() {
|
||||
super("github.actions.results.api.v1.GetCacheEntryDownloadURLRequest", [
|
||||
{ no: 1, name: "metadata", kind: "message", T: () => cachemetadata_1.CacheMetadata },
|
||||
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "restore_keys", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value) {
|
||||
const message = { key: "", restoreKeys: [], version: "" };
|
||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||
if (value !== undefined)
|
||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader, length, options, target) {
|
||||
let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* github.actions.results.entities.v1.CacheMetadata metadata */ 1:
|
||||
message.metadata = cachemetadata_1.CacheMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
|
||||
break;
|
||||
case /* string key */ 2:
|
||||
message.key = reader.string();
|
||||
break;
|
||||
case /* repeated string restore_keys */ 3:
|
||||
message.restoreKeys.push(reader.string());
|
||||
break;
|
||||
case /* string version */ 4:
|
||||
message.version = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message, writer, options) {
|
||||
/* github.actions.results.entities.v1.CacheMetadata metadata = 1; */
|
||||
if (message.metadata)
|
||||
cachemetadata_1.CacheMetadata.internalBinaryWrite(message.metadata, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
||||
/* string key = 2; */
|
||||
if (message.key !== "")
|
||||
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.key);
|
||||
/* repeated string restore_keys = 3; */
|
||||
for (let i = 0; i < message.restoreKeys.length; i++)
|
||||
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.restoreKeys[i]);
|
||||
/* string version = 4; */
|
||||
if (message.version !== "")
|
||||
writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.version);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message github.actions.results.api.v1.GetCacheEntryDownloadURLRequest
|
||||
*/
|
||||
exports.GetCacheEntryDownloadURLRequest = new GetCacheEntryDownloadURLRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetCacheEntryDownloadURLResponse$Type extends runtime_5.MessageType {
|
||||
constructor() {
|
||||
super("github.actions.results.api.v1.GetCacheEntryDownloadURLResponse", [
|
||||
{ no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 2, name: "signed_download_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "matched_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value) {
|
||||
const message = { ok: false, signedDownloadUrl: "", matchedKey: "" };
|
||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||
if (value !== undefined)
|
||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader, length, options, target) {
|
||||
let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* bool ok */ 1:
|
||||
message.ok = reader.bool();
|
||||
break;
|
||||
case /* string signed_download_url */ 2:
|
||||
message.signedDownloadUrl = reader.string();
|
||||
break;
|
||||
case /* string matched_key */ 3:
|
||||
message.matchedKey = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message, writer, options) {
|
||||
/* bool ok = 1; */
|
||||
if (message.ok !== false)
|
||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||
/* string signed_download_url = 2; */
|
||||
if (message.signedDownloadUrl !== "")
|
||||
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedDownloadUrl);
|
||||
/* string matched_key = 3; */
|
||||
if (message.matchedKey !== "")
|
||||
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.matchedKey);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message github.actions.results.api.v1.GetCacheEntryDownloadURLResponse
|
||||
*/
|
||||
exports.GetCacheEntryDownloadURLResponse = new GetCacheEntryDownloadURLResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class DeleteCacheEntryRequest$Type extends runtime_5.MessageType {
|
||||
constructor() {
|
||||
super("github.actions.results.api.v1.DeleteCacheEntryRequest", [
|
||||
{ no: 1, name: "metadata", kind: "message", T: () => cachemetadata_1.CacheMetadata },
|
||||
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value) {
|
||||
const message = { key: "" };
|
||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||
if (value !== undefined)
|
||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader, length, options, target) {
|
||||
let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* github.actions.results.entities.v1.CacheMetadata metadata */ 1:
|
||||
message.metadata = cachemetadata_1.CacheMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
|
||||
break;
|
||||
case /* string key */ 2:
|
||||
message.key = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message, writer, options) {
|
||||
/* github.actions.results.entities.v1.CacheMetadata metadata = 1; */
|
||||
if (message.metadata)
|
||||
cachemetadata_1.CacheMetadata.internalBinaryWrite(message.metadata, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
||||
/* string key = 2; */
|
||||
if (message.key !== "")
|
||||
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.key);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message github.actions.results.api.v1.DeleteCacheEntryRequest
|
||||
*/
|
||||
exports.DeleteCacheEntryRequest = new DeleteCacheEntryRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class DeleteCacheEntryResponse$Type extends runtime_5.MessageType {
|
||||
constructor() {
|
||||
super("github.actions.results.api.v1.DeleteCacheEntryResponse", [
|
||||
{ no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ }
|
||||
]);
|
||||
}
|
||||
create(value) {
|
||||
const message = { ok: false, entryId: "0" };
|
||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||
if (value !== undefined)
|
||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader, length, options, target) {
|
||||
let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* bool ok */ 1:
|
||||
message.ok = reader.bool();
|
||||
break;
|
||||
case /* int64 entry_id */ 2:
|
||||
message.entryId = reader.int64().toString();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message, writer, options) {
|
||||
/* bool ok = 1; */
|
||||
if (message.ok !== false)
|
||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||
/* int64 entry_id = 2; */
|
||||
if (message.entryId !== "0")
|
||||
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message github.actions.results.api.v1.DeleteCacheEntryResponse
|
||||
*/
|
||||
exports.DeleteCacheEntryResponse = new DeleteCacheEntryResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ListCacheEntriesRequest$Type extends runtime_5.MessageType {
|
||||
constructor() {
|
||||
super("github.actions.results.api.v1.ListCacheEntriesRequest", [
|
||||
{ no: 1, name: "metadata", kind: "message", T: () => cachemetadata_1.CacheMetadata },
|
||||
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "restore_keys", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value) {
|
||||
const message = { key: "", restoreKeys: [] };
|
||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||
if (value !== undefined)
|
||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader, length, options, target) {
|
||||
let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* github.actions.results.entities.v1.CacheMetadata metadata */ 1:
|
||||
message.metadata = cachemetadata_1.CacheMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
|
||||
break;
|
||||
case /* string key */ 2:
|
||||
message.key = reader.string();
|
||||
break;
|
||||
case /* repeated string restore_keys */ 3:
|
||||
message.restoreKeys.push(reader.string());
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message, writer, options) {
|
||||
/* github.actions.results.entities.v1.CacheMetadata metadata = 1; */
|
||||
if (message.metadata)
|
||||
cachemetadata_1.CacheMetadata.internalBinaryWrite(message.metadata, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
||||
/* string key = 2; */
|
||||
if (message.key !== "")
|
||||
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.key);
|
||||
/* repeated string restore_keys = 3; */
|
||||
for (let i = 0; i < message.restoreKeys.length; i++)
|
||||
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.restoreKeys[i]);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message github.actions.results.api.v1.ListCacheEntriesRequest
|
||||
*/
|
||||
exports.ListCacheEntriesRequest = new ListCacheEntriesRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ListCacheEntriesResponse$Type extends runtime_5.MessageType {
|
||||
constructor() {
|
||||
super("github.actions.results.api.v1.ListCacheEntriesResponse", [
|
||||
{ no: 1, name: "entries", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => cacheentry_1.CacheEntry }
|
||||
]);
|
||||
}
|
||||
create(value) {
|
||||
const message = { entries: [] };
|
||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||
if (value !== undefined)
|
||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader, length, options, target) {
|
||||
let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated github.actions.results.entities.v1.CacheEntry entries */ 1:
|
||||
message.entries.push(cacheentry_1.CacheEntry.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message, writer, options) {
|
||||
/* repeated github.actions.results.entities.v1.CacheEntry entries = 1; */
|
||||
for (let i = 0; i < message.entries.length; i++)
|
||||
cacheentry_1.CacheEntry.internalBinaryWrite(message.entries[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message github.actions.results.api.v1.ListCacheEntriesResponse
|
||||
*/
|
||||
exports.ListCacheEntriesResponse = new ListCacheEntriesResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class LookupCacheEntryRequest$Type extends runtime_5.MessageType {
|
||||
constructor() {
|
||||
super("github.actions.results.api.v1.LookupCacheEntryRequest", [
|
||||
{ no: 1, name: "metadata", kind: "message", T: () => cachemetadata_1.CacheMetadata },
|
||||
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "restore_keys", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value) {
|
||||
const message = { key: "", restoreKeys: [], version: "" };
|
||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||
if (value !== undefined)
|
||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader, length, options, target) {
|
||||
let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* github.actions.results.entities.v1.CacheMetadata metadata */ 1:
|
||||
message.metadata = cachemetadata_1.CacheMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
|
||||
break;
|
||||
case /* string key */ 2:
|
||||
message.key = reader.string();
|
||||
break;
|
||||
case /* repeated string restore_keys */ 3:
|
||||
message.restoreKeys.push(reader.string());
|
||||
break;
|
||||
case /* string version */ 4:
|
||||
message.version = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message, writer, options) {
|
||||
/* github.actions.results.entities.v1.CacheMetadata metadata = 1; */
|
||||
if (message.metadata)
|
||||
cachemetadata_1.CacheMetadata.internalBinaryWrite(message.metadata, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
||||
/* string key = 2; */
|
||||
if (message.key !== "")
|
||||
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.key);
|
||||
/* repeated string restore_keys = 3; */
|
||||
for (let i = 0; i < message.restoreKeys.length; i++)
|
||||
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.restoreKeys[i]);
|
||||
/* string version = 4; */
|
||||
if (message.version !== "")
|
||||
writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.version);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message github.actions.results.api.v1.LookupCacheEntryRequest
|
||||
*/
|
||||
exports.LookupCacheEntryRequest = new LookupCacheEntryRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class LookupCacheEntryResponse$Type extends runtime_5.MessageType {
|
||||
constructor() {
|
||||
super("github.actions.results.api.v1.LookupCacheEntryResponse", [
|
||||
{ no: 1, name: "exists", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 2, name: "entry", kind: "message", T: () => cacheentry_1.CacheEntry }
|
||||
]);
|
||||
}
|
||||
create(value) {
|
||||
const message = { exists: false };
|
||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||
if (value !== undefined)
|
||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader, length, options, target) {
|
||||
let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* bool exists */ 1:
|
||||
message.exists = reader.bool();
|
||||
break;
|
||||
case /* github.actions.results.entities.v1.CacheEntry entry */ 2:
|
||||
message.entry = cacheentry_1.CacheEntry.internalBinaryRead(reader, reader.uint32(), options, message.entry);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message, writer, options) {
|
||||
/* bool exists = 1; */
|
||||
if (message.exists !== false)
|
||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.exists);
|
||||
/* github.actions.results.entities.v1.CacheEntry entry = 2; */
|
||||
if (message.entry)
|
||||
cacheentry_1.CacheEntry.internalBinaryWrite(message.entry, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message github.actions.results.api.v1.LookupCacheEntryResponse
|
||||
*/
|
||||
exports.LookupCacheEntryResponse = new LookupCacheEntryResponse$Type();
|
||||
/**
|
||||
* @generated ServiceType for protobuf service github.actions.results.api.v1.CacheService
|
||||
*/
|
||||
exports.CacheService = new runtime_rpc_1.ServiceType("github.actions.results.api.v1.CacheService", [
|
||||
{ name: "CreateCacheEntry", options: {}, I: exports.CreateCacheEntryRequest, O: exports.CreateCacheEntryResponse },
|
||||
{ name: "FinalizeCacheEntryUpload", options: {}, I: exports.FinalizeCacheEntryUploadRequest, O: exports.FinalizeCacheEntryUploadResponse },
|
||||
{ name: "GetCacheEntryDownloadURL", options: {}, I: exports.GetCacheEntryDownloadURLRequest, O: exports.GetCacheEntryDownloadURLResponse },
|
||||
{ name: "DeleteCacheEntry", options: {}, I: exports.DeleteCacheEntryRequest, O: exports.DeleteCacheEntryResponse },
|
||||
{ name: "ListCacheEntries", options: {}, I: exports.ListCacheEntriesRequest, O: exports.ListCacheEntriesResponse },
|
||||
{ name: "LookupCacheEntry", options: {}, I: exports.LookupCacheEntryRequest, O: exports.LookupCacheEntryResponse }
|
||||
]);
|
||||
//# sourceMappingURL=cache.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 564:
|
||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.createCacheServiceServer = exports.CacheServiceMethodList = exports.CacheServiceMethod = exports.CacheServiceClientProtobuf = exports.CacheServiceClientJSON = void 0;
|
||||
const twirp_ts_1 = __nccwpck_require__(430);
|
||||
const cache_1 = __nccwpck_require__(3156);
|
||||
class CacheServiceClientJSON {
|
||||
constructor(rpc) {
|
||||
this.rpc = rpc;
|
||||
this.CreateCacheEntry.bind(this);
|
||||
this.FinalizeCacheEntryUpload.bind(this);
|
||||
this.GetCacheEntryDownloadURL.bind(this);
|
||||
this.DeleteCacheEntry.bind(this);
|
||||
this.ListCacheEntries.bind(this);
|
||||
this.LookupCacheEntry.bind(this);
|
||||
}
|
||||
CreateCacheEntry(request) {
|
||||
const data = cache_1.CreateCacheEntryRequest.toJson(request, {
|
||||
useProtoFieldName: true,
|
||||
emitDefaultValues: false,
|
||||
});
|
||||
const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "CreateCacheEntry", "application/json", data);
|
||||
return promise.then((data) => cache_1.CreateCacheEntryResponse.fromJson(data, {
|
||||
ignoreUnknownFields: true,
|
||||
}));
|
||||
}
|
||||
FinalizeCacheEntryUpload(request) {
|
||||
const data = cache_1.FinalizeCacheEntryUploadRequest.toJson(request, {
|
||||
useProtoFieldName: true,
|
||||
emitDefaultValues: false,
|
||||
});
|
||||
const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "FinalizeCacheEntryUpload", "application/json", data);
|
||||
return promise.then((data) => cache_1.FinalizeCacheEntryUploadResponse.fromJson(data, {
|
||||
ignoreUnknownFields: true,
|
||||
}));
|
||||
}
|
||||
GetCacheEntryDownloadURL(request) {
|
||||
const data = cache_1.GetCacheEntryDownloadURLRequest.toJson(request, {
|
||||
useProtoFieldName: true,
|
||||
emitDefaultValues: false,
|
||||
});
|
||||
const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "GetCacheEntryDownloadURL", "application/json", data);
|
||||
return promise.then((data) => cache_1.GetCacheEntryDownloadURLResponse.fromJson(data, {
|
||||
ignoreUnknownFields: true,
|
||||
}));
|
||||
}
|
||||
DeleteCacheEntry(request) {
|
||||
const data = cache_1.DeleteCacheEntryRequest.toJson(request, {
|
||||
useProtoFieldName: true,
|
||||
emitDefaultValues: false,
|
||||
});
|
||||
const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "DeleteCacheEntry", "application/json", data);
|
||||
return promise.then((data) => cache_1.DeleteCacheEntryResponse.fromJson(data, {
|
||||
ignoreUnknownFields: true,
|
||||
}));
|
||||
}
|
||||
ListCacheEntries(request) {
|
||||
const data = cache_1.ListCacheEntriesRequest.toJson(request, {
|
||||
useProtoFieldName: true,
|
||||
emitDefaultValues: false,
|
||||
});
|
||||
const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "ListCacheEntries", "application/json", data);
|
||||
return promise.then((data) => cache_1.ListCacheEntriesResponse.fromJson(data, {
|
||||
ignoreUnknownFields: true,
|
||||
}));
|
||||
}
|
||||
LookupCacheEntry(request) {
|
||||
const data = cache_1.LookupCacheEntryRequest.toJson(request, {
|
||||
useProtoFieldName: true,
|
||||
emitDefaultValues: false,
|
||||
});
|
||||
const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "LookupCacheEntry", "application/json", data);
|
||||
return promise.then((data) => cache_1.LookupCacheEntryResponse.fromJson(data, {
|
||||
ignoreUnknownFields: true,
|
||||
}));
|
||||
}
|
||||
}
|
||||
exports.CacheServiceClientJSON = CacheServiceClientJSON;
|
||||
class CacheServiceClientProtobuf {
|
||||
constructor(rpc) {
|
||||
this.rpc = rpc;
|
||||
this.CreateCacheEntry.bind(this);
|
||||
this.FinalizeCacheEntryUpload.bind(this);
|
||||
this.GetCacheEntryDownloadURL.bind(this);
|
||||
this.DeleteCacheEntry.bind(this);
|
||||
this.ListCacheEntries.bind(this);
|
||||
this.LookupCacheEntry.bind(this);
|
||||
}
|
||||
CreateCacheEntry(request) {
|
||||
const data = cache_1.CreateCacheEntryRequest.toBinary(request);
|
||||
const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "CreateCacheEntry", "application/protobuf", data);
|
||||
return promise.then((data) => cache_1.CreateCacheEntryResponse.fromBinary(data));
|
||||
}
|
||||
FinalizeCacheEntryUpload(request) {
|
||||
const data = cache_1.FinalizeCacheEntryUploadRequest.toBinary(request);
|
||||
const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "FinalizeCacheEntryUpload", "application/protobuf", data);
|
||||
return promise.then((data) => cache_1.FinalizeCacheEntryUploadResponse.fromBinary(data));
|
||||
}
|
||||
GetCacheEntryDownloadURL(request) {
|
||||
const data = cache_1.GetCacheEntryDownloadURLRequest.toBinary(request);
|
||||
const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "GetCacheEntryDownloadURL", "application/protobuf", data);
|
||||
return promise.then((data) => cache_1.GetCacheEntryDownloadURLResponse.fromBinary(data));
|
||||
}
|
||||
DeleteCacheEntry(request) {
|
||||
const data = cache_1.DeleteCacheEntryRequest.toBinary(request);
|
||||
const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "DeleteCacheEntry", "application/protobuf", data);
|
||||
return promise.then((data) => cache_1.DeleteCacheEntryResponse.fromBinary(data));
|
||||
}
|
||||
ListCacheEntries(request) {
|
||||
const data = cache_1.ListCacheEntriesRequest.toBinary(request);
|
||||
const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "ListCacheEntries", "application/protobuf", data);
|
||||
return promise.then((data) => cache_1.ListCacheEntriesResponse.fromBinary(data));
|
||||
}
|
||||
LookupCacheEntry(request) {
|
||||
const data = cache_1.LookupCacheEntryRequest.toBinary(request);
|
||||
const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "LookupCacheEntry", "application/protobuf", data);
|
||||
return promise.then((data) => cache_1.LookupCacheEntryResponse.fromBinary(data));
|
||||
}
|
||||
}
|
||||
exports.CacheServiceClientProtobuf = CacheServiceClientProtobuf;
|
||||
var CacheServiceMethod;
|
||||
(function (CacheServiceMethod) {
|
||||
CacheServiceMethod["CreateCacheEntry"] = "CreateCacheEntry";
|
||||
CacheServiceMethod["FinalizeCacheEntryUpload"] = "FinalizeCacheEntryUpload";
|
||||
CacheServiceMethod["GetCacheEntryDownloadURL"] = "GetCacheEntryDownloadURL";
|
||||
CacheServiceMethod["DeleteCacheEntry"] = "DeleteCacheEntry";
|
||||
CacheServiceMethod["ListCacheEntries"] = "ListCacheEntries";
|
||||
CacheServiceMethod["LookupCacheEntry"] = "LookupCacheEntry";
|
||||
})(CacheServiceMethod || (exports.CacheServiceMethod = CacheServiceMethod = {}));
|
||||
exports.CacheServiceMethodList = [
|
||||
CacheServiceMethod.CreateCacheEntry,
|
||||
CacheServiceMethod.FinalizeCacheEntryUpload,
|
||||
CacheServiceMethod.GetCacheEntryDownloadURL,
|
||||
CacheServiceMethod.DeleteCacheEntry,
|
||||
CacheServiceMethod.ListCacheEntries,
|
||||
CacheServiceMethod.LookupCacheEntry,
|
||||
];
|
||||
function createCacheServiceServer(service) {
|
||||
return new twirp_ts_1.TwirpServer({
|
||||
service,
|
||||
packageName: "github.actions.results.api.v1",
|
||||
serviceName: "CacheService",
|
||||
methodList: exports.CacheServiceMethodList,
|
||||
matchRoute: matchCacheServiceRoute,
|
||||
});
|
||||
}
|
||||
exports.createCacheServiceServer = createCacheServiceServer;
|
||||
function matchCacheServiceRoute(method, events) {
|
||||
switch (method) {
|
||||
case "CreateCacheEntry":
|
||||
return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {
|
||||
ctx = Object.assign(Object.assign({}, ctx), { methodName: "CreateCacheEntry" });
|
||||
yield events.onMatch(ctx);
|
||||
return handleCacheServiceCreateCacheEntryRequest(ctx, service, data, interceptors);
|
||||
});
|
||||
case "FinalizeCacheEntryUpload":
|
||||
return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {
|
||||
ctx = Object.assign(Object.assign({}, ctx), { methodName: "FinalizeCacheEntryUpload" });
|
||||
yield events.onMatch(ctx);
|
||||
return handleCacheServiceFinalizeCacheEntryUploadRequest(ctx, service, data, interceptors);
|
||||
});
|
||||
case "GetCacheEntryDownloadURL":
|
||||
return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {
|
||||
ctx = Object.assign(Object.assign({}, ctx), { methodName: "GetCacheEntryDownloadURL" });
|
||||
yield events.onMatch(ctx);
|
||||
return handleCacheServiceGetCacheEntryDownloadURLRequest(ctx, service, data, interceptors);
|
||||
});
|
||||
case "DeleteCacheEntry":
|
||||
return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {
|
||||
ctx = Object.assign(Object.assign({}, ctx), { methodName: "DeleteCacheEntry" });
|
||||
yield events.onMatch(ctx);
|
||||
return handleCacheServiceDeleteCacheEntryRequest(ctx, service, data, interceptors);
|
||||
});
|
||||
case "ListCacheEntries":
|
||||
return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {
|
||||
ctx = Object.assign(Object.assign({}, ctx), { methodName: "ListCacheEntries" });
|
||||
yield events.onMatch(ctx);
|
||||
return handleCacheServiceListCacheEntriesRequest(ctx, service, data, interceptors);
|
||||
});
|
||||
case "LookupCacheEntry":
|
||||
return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {
|
||||
ctx = Object.assign(Object.assign({}, ctx), { methodName: "LookupCacheEntry" });
|
||||
yield events.onMatch(ctx);
|
||||
return handleCacheServiceLookupCacheEntryRequest(ctx, service, data, interceptors);
|
||||
});
|
||||
default:
|
||||
events.onNotFound();
|
||||
const msg = `no handler found`;
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
|
||||
}
|
||||
}
|
||||
function handleCacheServiceCreateCacheEntryRequest(ctx, service, data, interceptors) {
|
||||
switch (ctx.contentType) {
|
||||
case twirp_ts_1.TwirpContentType.JSON:
|
||||
return handleCacheServiceCreateCacheEntryJSON(ctx, service, data, interceptors);
|
||||
case twirp_ts_1.TwirpContentType.Protobuf:
|
||||
return handleCacheServiceCreateCacheEntryProtobuf(ctx, service, data, interceptors);
|
||||
default:
|
||||
const msg = "unexpected Content-Type";
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
|
||||
}
|
||||
}
|
||||
function handleCacheServiceFinalizeCacheEntryUploadRequest(ctx, service, data, interceptors) {
|
||||
switch (ctx.contentType) {
|
||||
case twirp_ts_1.TwirpContentType.JSON:
|
||||
return handleCacheServiceFinalizeCacheEntryUploadJSON(ctx, service, data, interceptors);
|
||||
case twirp_ts_1.TwirpContentType.Protobuf:
|
||||
return handleCacheServiceFinalizeCacheEntryUploadProtobuf(ctx, service, data, interceptors);
|
||||
default:
|
||||
const msg = "unexpected Content-Type";
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
|
||||
}
|
||||
}
|
||||
function handleCacheServiceGetCacheEntryDownloadURLRequest(ctx, service, data, interceptors) {
|
||||
switch (ctx.contentType) {
|
||||
case twirp_ts_1.TwirpContentType.JSON:
|
||||
return handleCacheServiceGetCacheEntryDownloadURLJSON(ctx, service, data, interceptors);
|
||||
case twirp_ts_1.TwirpContentType.Protobuf:
|
||||
return handleCacheServiceGetCacheEntryDownloadURLProtobuf(ctx, service, data, interceptors);
|
||||
default:
|
||||
const msg = "unexpected Content-Type";
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
|
||||
}
|
||||
}
|
||||
function handleCacheServiceDeleteCacheEntryRequest(ctx, service, data, interceptors) {
|
||||
switch (ctx.contentType) {
|
||||
case twirp_ts_1.TwirpContentType.JSON:
|
||||
return handleCacheServiceDeleteCacheEntryJSON(ctx, service, data, interceptors);
|
||||
case twirp_ts_1.TwirpContentType.Protobuf:
|
||||
return handleCacheServiceDeleteCacheEntryProtobuf(ctx, service, data, interceptors);
|
||||
default:
|
||||
const msg = "unexpected Content-Type";
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
|
||||
}
|
||||
}
|
||||
function handleCacheServiceListCacheEntriesRequest(ctx, service, data, interceptors) {
|
||||
switch (ctx.contentType) {
|
||||
case twirp_ts_1.TwirpContentType.JSON:
|
||||
return handleCacheServiceListCacheEntriesJSON(ctx, service, data, interceptors);
|
||||
case twirp_ts_1.TwirpContentType.Protobuf:
|
||||
return handleCacheServiceListCacheEntriesProtobuf(ctx, service, data, interceptors);
|
||||
default:
|
||||
const msg = "unexpected Content-Type";
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
|
||||
}
|
||||
}
|
||||
function handleCacheServiceLookupCacheEntryRequest(ctx, service, data, interceptors) {
|
||||
switch (ctx.contentType) {
|
||||
case twirp_ts_1.TwirpContentType.JSON:
|
||||
return handleCacheServiceLookupCacheEntryJSON(ctx, service, data, interceptors);
|
||||
case twirp_ts_1.TwirpContentType.Protobuf:
|
||||
return handleCacheServiceLookupCacheEntryProtobuf(ctx, service, data, interceptors);
|
||||
default:
|
||||
const msg = "unexpected Content-Type";
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
|
||||
}
|
||||
}
|
||||
function handleCacheServiceCreateCacheEntryJSON(ctx, service, data, interceptors) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let request;
|
||||
let response;
|
||||
try {
|
||||
const body = JSON.parse(data.toString() || "{}");
|
||||
request = cache_1.CreateCacheEntryRequest.fromJson(body, {
|
||||
ignoreUnknownFields: true,
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof Error) {
|
||||
const msg = "the json request could not be decoded";
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
|
||||
}
|
||||
}
|
||||
if (interceptors && interceptors.length > 0) {
|
||||
const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
|
||||
response = yield interceptor(ctx, request, (ctx, inputReq) => {
|
||||
return service.CreateCacheEntry(ctx, inputReq);
|
||||
});
|
||||
}
|
||||
else {
|
||||
response = yield service.CreateCacheEntry(ctx, request);
|
||||
}
|
||||
return JSON.stringify(cache_1.CreateCacheEntryResponse.toJson(response, {
|
||||
useProtoFieldName: true,
|
||||
emitDefaultValues: false,
|
||||
}));
|
||||
});
|
||||
}
|
||||
function handleCacheServiceFinalizeCacheEntryUploadJSON(ctx, service, data, interceptors) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let request;
|
||||
let response;
|
||||
try {
|
||||
const body = JSON.parse(data.toString() || "{}");
|
||||
request = cache_1.FinalizeCacheEntryUploadRequest.fromJson(body, {
|
||||
ignoreUnknownFields: true,
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof Error) {
|
||||
const msg = "the json request could not be decoded";
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
|
||||
}
|
||||
}
|
||||
if (interceptors && interceptors.length > 0) {
|
||||
const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
|
||||
response = yield interceptor(ctx, request, (ctx, inputReq) => {
|
||||
return service.FinalizeCacheEntryUpload(ctx, inputReq);
|
||||
});
|
||||
}
|
||||
else {
|
||||
response = yield service.FinalizeCacheEntryUpload(ctx, request);
|
||||
}
|
||||
return JSON.stringify(cache_1.FinalizeCacheEntryUploadResponse.toJson(response, {
|
||||
useProtoFieldName: true,
|
||||
emitDefaultValues: false,
|
||||
}));
|
||||
});
|
||||
}
|
||||
function handleCacheServiceGetCacheEntryDownloadURLJSON(ctx, service, data, interceptors) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let request;
|
||||
let response;
|
||||
try {
|
||||
const body = JSON.parse(data.toString() || "{}");
|
||||
request = cache_1.GetCacheEntryDownloadURLRequest.fromJson(body, {
|
||||
ignoreUnknownFields: true,
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof Error) {
|
||||
const msg = "the json request could not be decoded";
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
|
||||
}
|
||||
}
|
||||
if (interceptors && interceptors.length > 0) {
|
||||
const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
|
||||
response = yield interceptor(ctx, request, (ctx, inputReq) => {
|
||||
return service.GetCacheEntryDownloadURL(ctx, inputReq);
|
||||
});
|
||||
}
|
||||
else {
|
||||
response = yield service.GetCacheEntryDownloadURL(ctx, request);
|
||||
}
|
||||
return JSON.stringify(cache_1.GetCacheEntryDownloadURLResponse.toJson(response, {
|
||||
useProtoFieldName: true,
|
||||
emitDefaultValues: false,
|
||||
}));
|
||||
});
|
||||
}
|
||||
function handleCacheServiceDeleteCacheEntryJSON(ctx, service, data, interceptors) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let request;
|
||||
let response;
|
||||
try {
|
||||
const body = JSON.parse(data.toString() || "{}");
|
||||
request = cache_1.DeleteCacheEntryRequest.fromJson(body, {
|
||||
ignoreUnknownFields: true,
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof Error) {
|
||||
const msg = "the json request could not be decoded";
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
|
||||
}
|
||||
}
|
||||
if (interceptors && interceptors.length > 0) {
|
||||
const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
|
||||
response = yield interceptor(ctx, request, (ctx, inputReq) => {
|
||||
return service.DeleteCacheEntry(ctx, inputReq);
|
||||
});
|
||||
}
|
||||
else {
|
||||
response = yield service.DeleteCacheEntry(ctx, request);
|
||||
}
|
||||
return JSON.stringify(cache_1.DeleteCacheEntryResponse.toJson(response, {
|
||||
useProtoFieldName: true,
|
||||
emitDefaultValues: false,
|
||||
}));
|
||||
});
|
||||
}
|
||||
function handleCacheServiceListCacheEntriesJSON(ctx, service, data, interceptors) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let request;
|
||||
let response;
|
||||
try {
|
||||
const body = JSON.parse(data.toString() || "{}");
|
||||
request = cache_1.ListCacheEntriesRequest.fromJson(body, {
|
||||
ignoreUnknownFields: true,
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof Error) {
|
||||
const msg = "the json request could not be decoded";
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
|
||||
}
|
||||
}
|
||||
if (interceptors && interceptors.length > 0) {
|
||||
const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
|
||||
response = yield interceptor(ctx, request, (ctx, inputReq) => {
|
||||
return service.ListCacheEntries(ctx, inputReq);
|
||||
});
|
||||
}
|
||||
else {
|
||||
response = yield service.ListCacheEntries(ctx, request);
|
||||
}
|
||||
return JSON.stringify(cache_1.ListCacheEntriesResponse.toJson(response, {
|
||||
useProtoFieldName: true,
|
||||
emitDefaultValues: false,
|
||||
}));
|
||||
});
|
||||
}
|
||||
function handleCacheServiceLookupCacheEntryJSON(ctx, service, data, interceptors) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let request;
|
||||
let response;
|
||||
try {
|
||||
const body = JSON.parse(data.toString() || "{}");
|
||||
request = cache_1.LookupCacheEntryRequest.fromJson(body, {
|
||||
ignoreUnknownFields: true,
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof Error) {
|
||||
const msg = "the json request could not be decoded";
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
|
||||
}
|
||||
}
|
||||
if (interceptors && interceptors.length > 0) {
|
||||
const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
|
||||
response = yield interceptor(ctx, request, (ctx, inputReq) => {
|
||||
return service.LookupCacheEntry(ctx, inputReq);
|
||||
});
|
||||
}
|
||||
else {
|
||||
response = yield service.LookupCacheEntry(ctx, request);
|
||||
}
|
||||
return JSON.stringify(cache_1.LookupCacheEntryResponse.toJson(response, {
|
||||
useProtoFieldName: true,
|
||||
emitDefaultValues: false,
|
||||
}));
|
||||
});
|
||||
}
|
||||
function handleCacheServiceCreateCacheEntryProtobuf(ctx, service, data, interceptors) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let request;
|
||||
let response;
|
||||
try {
|
||||
request = cache_1.CreateCacheEntryRequest.fromBinary(data);
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof Error) {
|
||||
const msg = "the protobuf request could not be decoded";
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
|
||||
}
|
||||
}
|
||||
if (interceptors && interceptors.length > 0) {
|
||||
const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
|
||||
response = yield interceptor(ctx, request, (ctx, inputReq) => {
|
||||
return service.CreateCacheEntry(ctx, inputReq);
|
||||
});
|
||||
}
|
||||
else {
|
||||
response = yield service.CreateCacheEntry(ctx, request);
|
||||
}
|
||||
return Buffer.from(cache_1.CreateCacheEntryResponse.toBinary(response));
|
||||
});
|
||||
}
|
||||
function handleCacheServiceFinalizeCacheEntryUploadProtobuf(ctx, service, data, interceptors) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let request;
|
||||
let response;
|
||||
try {
|
||||
request = cache_1.FinalizeCacheEntryUploadRequest.fromBinary(data);
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof Error) {
|
||||
const msg = "the protobuf request could not be decoded";
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
|
||||
}
|
||||
}
|
||||
if (interceptors && interceptors.length > 0) {
|
||||
const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
|
||||
response = yield interceptor(ctx, request, (ctx, inputReq) => {
|
||||
return service.FinalizeCacheEntryUpload(ctx, inputReq);
|
||||
});
|
||||
}
|
||||
else {
|
||||
response = yield service.FinalizeCacheEntryUpload(ctx, request);
|
||||
}
|
||||
return Buffer.from(cache_1.FinalizeCacheEntryUploadResponse.toBinary(response));
|
||||
});
|
||||
}
|
||||
function handleCacheServiceGetCacheEntryDownloadURLProtobuf(ctx, service, data, interceptors) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let request;
|
||||
let response;
|
||||
try {
|
||||
request = cache_1.GetCacheEntryDownloadURLRequest.fromBinary(data);
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof Error) {
|
||||
const msg = "the protobuf request could not be decoded";
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
|
||||
}
|
||||
}
|
||||
if (interceptors && interceptors.length > 0) {
|
||||
const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
|
||||
response = yield interceptor(ctx, request, (ctx, inputReq) => {
|
||||
return service.GetCacheEntryDownloadURL(ctx, inputReq);
|
||||
});
|
||||
}
|
||||
else {
|
||||
response = yield service.GetCacheEntryDownloadURL(ctx, request);
|
||||
}
|
||||
return Buffer.from(cache_1.GetCacheEntryDownloadURLResponse.toBinary(response));
|
||||
});
|
||||
}
|
||||
function handleCacheServiceDeleteCacheEntryProtobuf(ctx, service, data, interceptors) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let request;
|
||||
let response;
|
||||
try {
|
||||
request = cache_1.DeleteCacheEntryRequest.fromBinary(data);
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof Error) {
|
||||
const msg = "the protobuf request could not be decoded";
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
|
||||
}
|
||||
}
|
||||
if (interceptors && interceptors.length > 0) {
|
||||
const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
|
||||
response = yield interceptor(ctx, request, (ctx, inputReq) => {
|
||||
return service.DeleteCacheEntry(ctx, inputReq);
|
||||
});
|
||||
}
|
||||
else {
|
||||
response = yield service.DeleteCacheEntry(ctx, request);
|
||||
}
|
||||
return Buffer.from(cache_1.DeleteCacheEntryResponse.toBinary(response));
|
||||
});
|
||||
}
|
||||
function handleCacheServiceListCacheEntriesProtobuf(ctx, service, data, interceptors) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let request;
|
||||
let response;
|
||||
try {
|
||||
request = cache_1.ListCacheEntriesRequest.fromBinary(data);
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof Error) {
|
||||
const msg = "the protobuf request could not be decoded";
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
|
||||
}
|
||||
}
|
||||
if (interceptors && interceptors.length > 0) {
|
||||
const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
|
||||
response = yield interceptor(ctx, request, (ctx, inputReq) => {
|
||||
return service.ListCacheEntries(ctx, inputReq);
|
||||
});
|
||||
}
|
||||
else {
|
||||
response = yield service.ListCacheEntries(ctx, request);
|
||||
}
|
||||
return Buffer.from(cache_1.ListCacheEntriesResponse.toBinary(response));
|
||||
});
|
||||
}
|
||||
function handleCacheServiceLookupCacheEntryProtobuf(ctx, service, data, interceptors) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let request;
|
||||
let response;
|
||||
try {
|
||||
request = cache_1.LookupCacheEntryRequest.fromBinary(data);
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof Error) {
|
||||
const msg = "the protobuf request could not be decoded";
|
||||
throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
|
||||
}
|
||||
}
|
||||
if (interceptors && interceptors.length > 0) {
|
||||
const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
|
||||
response = yield interceptor(ctx, request, (ctx, inputReq) => {
|
||||
return service.LookupCacheEntry(ctx, inputReq);
|
||||
});
|
||||
}
|
||||
else {
|
||||
response = yield service.LookupCacheEntry(ctx, request);
|
||||
}
|
||||
return Buffer.from(cache_1.LookupCacheEntryResponse.toBinary(response));
|
||||
});
|
||||
}
|
||||
//# sourceMappingURL=cache.twirp.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5893:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.CacheEntry = void 0;
|
||||
const runtime_1 = __nccwpck_require__(8886);
|
||||
const runtime_2 = __nccwpck_require__(8886);
|
||||
const runtime_3 = __nccwpck_require__(8886);
|
||||
const runtime_4 = __nccwpck_require__(8886);
|
||||
const runtime_5 = __nccwpck_require__(8886);
|
||||
const timestamp_1 = __nccwpck_require__(8200);
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CacheEntry$Type extends runtime_5.MessageType {
|
||||
constructor() {
|
||||
super("github.actions.results.entities.v1.CacheEntry", [
|
||||
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "hash", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "size_bytes", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
||||
{ no: 4, name: "scope", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "created_at", kind: "message", T: () => timestamp_1.Timestamp },
|
||||
{ no: 7, name: "last_accessed_at", kind: "message", T: () => timestamp_1.Timestamp },
|
||||
{ no: 8, name: "expires_at", kind: "message", T: () => timestamp_1.Timestamp }
|
||||
]);
|
||||
}
|
||||
create(value) {
|
||||
const message = { key: "", hash: "", sizeBytes: "0", scope: "", version: "" };
|
||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||
if (value !== undefined)
|
||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader, length, options, target) {
|
||||
let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string key */ 1:
|
||||
message.key = reader.string();
|
||||
break;
|
||||
case /* string hash */ 2:
|
||||
message.hash = reader.string();
|
||||
break;
|
||||
case /* int64 size_bytes */ 3:
|
||||
message.sizeBytes = reader.int64().toString();
|
||||
break;
|
||||
case /* string scope */ 4:
|
||||
message.scope = reader.string();
|
||||
break;
|
||||
case /* string version */ 5:
|
||||
message.version = reader.string();
|
||||
break;
|
||||
case /* google.protobuf.Timestamp created_at */ 6:
|
||||
message.createdAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
||||
break;
|
||||
case /* google.protobuf.Timestamp last_accessed_at */ 7:
|
||||
message.lastAccessedAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastAccessedAt);
|
||||
break;
|
||||
case /* google.protobuf.Timestamp expires_at */ 8:
|
||||
message.expiresAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message, writer, options) {
|
||||
/* string key = 1; */
|
||||
if (message.key !== "")
|
||||
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.key);
|
||||
/* string hash = 2; */
|
||||
if (message.hash !== "")
|
||||
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.hash);
|
||||
/* int64 size_bytes = 3; */
|
||||
if (message.sizeBytes !== "0")
|
||||
writer.tag(3, runtime_1.WireType.Varint).int64(message.sizeBytes);
|
||||
/* string scope = 4; */
|
||||
if (message.scope !== "")
|
||||
writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.scope);
|
||||
/* string version = 5; */
|
||||
if (message.version !== "")
|
||||
writer.tag(5, runtime_1.WireType.LengthDelimited).string(message.version);
|
||||
/* google.protobuf.Timestamp created_at = 6; */
|
||||
if (message.createdAt)
|
||||
timestamp_1.Timestamp.internalBinaryWrite(message.createdAt, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
||||
/* google.protobuf.Timestamp last_accessed_at = 7; */
|
||||
if (message.lastAccessedAt)
|
||||
timestamp_1.Timestamp.internalBinaryWrite(message.lastAccessedAt, writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
||||
/* google.protobuf.Timestamp expires_at = 8; */
|
||||
if (message.expiresAt)
|
||||
timestamp_1.Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message github.actions.results.entities.v1.CacheEntry
|
||||
*/
|
||||
exports.CacheEntry = new CacheEntry$Type();
|
||||
//# sourceMappingURL=cacheentry.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9444:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.CacheMetadata = void 0;
|
||||
const runtime_1 = __nccwpck_require__(8886);
|
||||
const runtime_2 = __nccwpck_require__(8886);
|
||||
const runtime_3 = __nccwpck_require__(8886);
|
||||
const runtime_4 = __nccwpck_require__(8886);
|
||||
const runtime_5 = __nccwpck_require__(8886);
|
||||
const cachescope_1 = __nccwpck_require__(9425);
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CacheMetadata$Type extends runtime_5.MessageType {
|
||||
constructor() {
|
||||
super("github.actions.results.entities.v1.CacheMetadata", [
|
||||
{ no: 1, name: "repository_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
||||
{ no: 2, name: "scope", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => cachescope_1.CacheScope }
|
||||
]);
|
||||
}
|
||||
create(value) {
|
||||
const message = { repositoryId: "0", scope: [] };
|
||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||
if (value !== undefined)
|
||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader, length, options, target) {
|
||||
let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* int64 repository_id */ 1:
|
||||
message.repositoryId = reader.int64().toString();
|
||||
break;
|
||||
case /* repeated github.actions.results.entities.v1.CacheScope scope */ 2:
|
||||
message.scope.push(cachescope_1.CacheScope.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message, writer, options) {
|
||||
/* int64 repository_id = 1; */
|
||||
if (message.repositoryId !== "0")
|
||||
writer.tag(1, runtime_1.WireType.Varint).int64(message.repositoryId);
|
||||
/* repeated github.actions.results.entities.v1.CacheScope scope = 2; */
|
||||
for (let i = 0; i < message.scope.length; i++)
|
||||
cachescope_1.CacheScope.internalBinaryWrite(message.scope[i], writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message github.actions.results.entities.v1.CacheMetadata
|
||||
*/
|
||||
exports.CacheMetadata = new CacheMetadata$Type();
|
||||
//# sourceMappingURL=cachemetadata.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9425:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.CacheScope = void 0;
|
||||
const runtime_1 = __nccwpck_require__(8886);
|
||||
const runtime_2 = __nccwpck_require__(8886);
|
||||
const runtime_3 = __nccwpck_require__(8886);
|
||||
const runtime_4 = __nccwpck_require__(8886);
|
||||
const runtime_5 = __nccwpck_require__(8886);
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CacheScope$Type extends runtime_5.MessageType {
|
||||
constructor() {
|
||||
super("github.actions.results.entities.v1.CacheScope", [
|
||||
{ no: 1, name: "scope", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "permission", kind: "scalar", T: 3 /*ScalarType.INT64*/ }
|
||||
]);
|
||||
}
|
||||
create(value) {
|
||||
const message = { scope: "", permission: "0" };
|
||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||
if (value !== undefined)
|
||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader, length, options, target) {
|
||||
let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string scope */ 1:
|
||||
message.scope = reader.string();
|
||||
break;
|
||||
case /* int64 permission */ 2:
|
||||
message.permission = reader.int64().toString();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message, writer, options) {
|
||||
/* string scope = 1; */
|
||||
if (message.scope !== "")
|
||||
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.scope);
|
||||
/* int64 permission = 2; */
|
||||
if (message.permission !== "0")
|
||||
writer.tag(2, runtime_1.WireType.Varint).int64(message.permission);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message github.actions.results.entities.v1.CacheScope
|
||||
*/
|
||||
exports.CacheScope = new CacheScope$Type();
|
||||
//# sourceMappingURL=cachescope.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5552:
|
||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||
|
||||
@@ -281,20 +2239,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.saveCache = exports.reserveCache = exports.downloadCache = exports.getCacheEntry = exports.getCacheVersion = void 0;
|
||||
exports.saveCache = exports.reserveCache = exports.downloadCache = exports.getCacheEntry = void 0;
|
||||
const core = __importStar(__nccwpck_require__(7484));
|
||||
const http_client_1 = __nccwpck_require__(4844);
|
||||
const auth_1 = __nccwpck_require__(4552);
|
||||
const crypto = __importStar(__nccwpck_require__(6982));
|
||||
const fs = __importStar(__nccwpck_require__(9896));
|
||||
const url_1 = __nccwpck_require__(7016);
|
||||
const utils = __importStar(__nccwpck_require__(680));
|
||||
const uploadUtils_1 = __nccwpck_require__(5268);
|
||||
const downloadUtils_1 = __nccwpck_require__(5067);
|
||||
const options_1 = __nccwpck_require__(8356);
|
||||
const requestUtils_1 = __nccwpck_require__(2846);
|
||||
const versionSalt = '1.0';
|
||||
const config_1 = __nccwpck_require__(7606);
|
||||
const user_agent_1 = __nccwpck_require__(1899);
|
||||
function getCacheApiUrl(resource) {
|
||||
const baseUrl = process.env['ACTIONS_CACHE_URL'] || '';
|
||||
const baseUrl = (0, config_1.getCacheServiceURL)();
|
||||
if (!baseUrl) {
|
||||
throw new Error('Cache Service Url not found, unable to restore cache.');
|
||||
}
|
||||
@@ -316,29 +2275,12 @@ function getRequestOptions() {
|
||||
function createHttpClient() {
|
||||
const token = process.env['ACTIONS_RUNTIME_TOKEN'] || '';
|
||||
const bearerCredentialHandler = new auth_1.BearerCredentialHandler(token);
|
||||
return new http_client_1.HttpClient('actions/cache', [bearerCredentialHandler], getRequestOptions());
|
||||
return new http_client_1.HttpClient((0, user_agent_1.getUserAgentString)(), [bearerCredentialHandler], getRequestOptions());
|
||||
}
|
||||
function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) {
|
||||
// don't pass changes upstream
|
||||
const components = paths.slice();
|
||||
// Add compression method to cache version to restore
|
||||
// compressed cache as per compression method
|
||||
if (compressionMethod) {
|
||||
components.push(compressionMethod);
|
||||
}
|
||||
// Only check for windows platforms if enableCrossOsArchive is false
|
||||
if (process.platform === 'win32' && !enableCrossOsArchive) {
|
||||
components.push('windows-only');
|
||||
}
|
||||
// Add salt to cache version to support breaking changes in cache entry
|
||||
components.push(versionSalt);
|
||||
return crypto.createHash('sha256').update(components.join('|')).digest('hex');
|
||||
}
|
||||
exports.getCacheVersion = getCacheVersion;
|
||||
function getCacheEntry(keys, paths, options) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const httpClient = createHttpClient();
|
||||
const version = getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod, options === null || options === void 0 ? void 0 : options.enableCrossOsArchive);
|
||||
const version = utils.getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod, options === null || options === void 0 ? void 0 : options.enableCrossOsArchive);
|
||||
const resource = `cache?keys=${encodeURIComponent(keys.join(','))}&version=${version}`;
|
||||
const response = yield (0, requestUtils_1.retryTypedResponse)('getCacheEntry', () => __awaiter(this, void 0, void 0, function* () { return httpClient.getJson(getCacheApiUrl(resource)); }));
|
||||
// Cache not found
|
||||
@@ -409,7 +2351,7 @@ exports.downloadCache = downloadCache;
|
||||
function reserveCache(key, paths, options) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const httpClient = createHttpClient();
|
||||
const version = getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod, options === null || options === void 0 ? void 0 : options.enableCrossOsArchive);
|
||||
const version = utils.getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod, options === null || options === void 0 ? void 0 : options.enableCrossOsArchive);
|
||||
const reserveCacheRequest = {
|
||||
key,
|
||||
version,
|
||||
@@ -491,20 +2433,30 @@ function commitCache(httpClient, cacheId, filesize) {
|
||||
}));
|
||||
});
|
||||
}
|
||||
function saveCache(cacheId, archivePath, options) {
|
||||
function saveCache(cacheId, archivePath, signedUploadURL, options) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const httpClient = createHttpClient();
|
||||
core.debug('Upload cache');
|
||||
yield uploadFile(httpClient, cacheId, archivePath, options);
|
||||
// Commit Cache
|
||||
core.debug('Commiting cache');
|
||||
const cacheSize = utils.getArchiveFileSizeInBytes(archivePath);
|
||||
core.info(`Cache Size: ~${Math.round(cacheSize / (1024 * 1024))} MB (${cacheSize} B)`);
|
||||
const commitCacheResponse = yield commitCache(httpClient, cacheId, cacheSize);
|
||||
if (!(0, requestUtils_1.isSuccessStatusCode)(commitCacheResponse.statusCode)) {
|
||||
throw new Error(`Cache service responded with ${commitCacheResponse.statusCode} during commit cache.`);
|
||||
const uploadOptions = (0, options_1.getUploadOptions)(options);
|
||||
if (uploadOptions.useAzureSdk) {
|
||||
// Use Azure storage SDK to upload caches directly to Azure
|
||||
if (!signedUploadURL) {
|
||||
throw new Error('Azure Storage SDK can only be used when a signed URL is provided.');
|
||||
}
|
||||
yield (0, uploadUtils_1.uploadCacheArchiveSDK)(signedUploadURL, archivePath, options);
|
||||
}
|
||||
else {
|
||||
const httpClient = createHttpClient();
|
||||
core.debug('Upload cache');
|
||||
yield uploadFile(httpClient, cacheId, archivePath, options);
|
||||
// Commit Cache
|
||||
core.debug('Commiting cache');
|
||||
const cacheSize = utils.getArchiveFileSizeInBytes(archivePath);
|
||||
core.info(`Cache Size: ~${Math.round(cacheSize / (1024 * 1024))} MB (${cacheSize} B)`);
|
||||
const commitCacheResponse = yield commitCache(httpClient, cacheId, cacheSize);
|
||||
if (!(0, requestUtils_1.isSuccessStatusCode)(commitCacheResponse.statusCode)) {
|
||||
throw new Error(`Cache service responded with ${commitCacheResponse.statusCode} during commit cache.`);
|
||||
}
|
||||
core.info('Cache saved successfully');
|
||||
}
|
||||
core.info('Cache saved successfully');
|
||||
});
|
||||
}
|
||||
exports.saveCache = saveCache;
|
||||
@@ -557,7 +2509,7 @@ var __asyncValues = (this && this.__asyncValues) || function (o) {
|
||||
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.isGhes = exports.assertDefined = exports.getGnuTarPathOnWindows = exports.getCacheFileName = exports.getCompressionMethod = exports.unlinkFile = exports.resolvePaths = exports.getArchiveFileSizeInBytes = exports.createTempDirectory = void 0;
|
||||
exports.getRuntimeToken = exports.getCacheVersion = exports.assertDefined = exports.getGnuTarPathOnWindows = exports.getCacheFileName = exports.getCompressionMethod = exports.unlinkFile = exports.resolvePaths = exports.getArchiveFileSizeInBytes = exports.createTempDirectory = void 0;
|
||||
const core = __importStar(__nccwpck_require__(7484));
|
||||
const exec = __importStar(__nccwpck_require__(5236));
|
||||
const glob = __importStar(__nccwpck_require__(9688));
|
||||
@@ -568,6 +2520,7 @@ const path = __importStar(__nccwpck_require__(6928));
|
||||
const semver = __importStar(__nccwpck_require__(9318));
|
||||
const util = __importStar(__nccwpck_require__(9023));
|
||||
const constants_1 = __nccwpck_require__(8287);
|
||||
const versionSalt = '1.0';
|
||||
// From https://github.com/actions/toolkit/blob/main/packages/tool-cache/src/tool-cache.ts#L23
|
||||
function createTempDirectory() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
@@ -705,15 +2658,76 @@ function assertDefined(name, value) {
|
||||
return value;
|
||||
}
|
||||
exports.assertDefined = assertDefined;
|
||||
function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) {
|
||||
// don't pass changes upstream
|
||||
const components = paths.slice();
|
||||
// Add compression method to cache version to restore
|
||||
// compressed cache as per compression method
|
||||
if (compressionMethod) {
|
||||
components.push(compressionMethod);
|
||||
}
|
||||
// Only check for windows platforms if enableCrossOsArchive is false
|
||||
if (process.platform === 'win32' && !enableCrossOsArchive) {
|
||||
components.push('windows-only');
|
||||
}
|
||||
// Add salt to cache version to support breaking changes in cache entry
|
||||
components.push(versionSalt);
|
||||
return crypto.createHash('sha256').update(components.join('|')).digest('hex');
|
||||
}
|
||||
exports.getCacheVersion = getCacheVersion;
|
||||
function getRuntimeToken() {
|
||||
const token = process.env['ACTIONS_RUNTIME_TOKEN'];
|
||||
if (!token) {
|
||||
throw new Error('Unable to get the ACTIONS_RUNTIME_TOKEN env variable');
|
||||
}
|
||||
return token;
|
||||
}
|
||||
exports.getRuntimeToken = getRuntimeToken;
|
||||
//# sourceMappingURL=cacheUtils.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7606:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.getCacheServiceURL = exports.getCacheServiceVersion = exports.isGhes = void 0;
|
||||
function isGhes() {
|
||||
const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
|
||||
const hostname = ghUrl.hostname.trimEnd().toUpperCase();
|
||||
const isGitHubHost = hostname === 'GITHUB.COM';
|
||||
const isGheHost = hostname.endsWith('.GHE.COM') || hostname.endsWith('.GHE.LOCALHOST');
|
||||
return !isGitHubHost && !isGheHost;
|
||||
const isGheHost = hostname.endsWith('.GHE.COM');
|
||||
const isLocalHost = hostname.endsWith('.LOCALHOST');
|
||||
return !isGitHubHost && !isGheHost && !isLocalHost;
|
||||
}
|
||||
exports.isGhes = isGhes;
|
||||
//# sourceMappingURL=cacheUtils.js.map
|
||||
function getCacheServiceVersion() {
|
||||
// Cache service v2 is not supported on GHES. We will default to
|
||||
// cache service v1 even if the feature flag was enabled by user.
|
||||
if (isGhes())
|
||||
return 'v1';
|
||||
return process.env['ACTIONS_CACHE_SERVICE_V2'] ? 'v2' : 'v1';
|
||||
}
|
||||
exports.getCacheServiceVersion = getCacheServiceVersion;
|
||||
function getCacheServiceURL() {
|
||||
const version = getCacheServiceVersion();
|
||||
// Based on the version of the cache service, we will determine which
|
||||
// URL to use.
|
||||
switch (version) {
|
||||
case 'v1':
|
||||
return (process.env['ACTIONS_CACHE_URL'] ||
|
||||
process.env['ACTIONS_RESULTS_URL'] ||
|
||||
'');
|
||||
case 'v2':
|
||||
return process.env['ACTIONS_RESULTS_URL'] || '';
|
||||
default:
|
||||
throw new Error(`Unsupported cache service version: ${version}`);
|
||||
}
|
||||
}
|
||||
exports.getCacheServiceURL = getCacheServiceURL;
|
||||
//# sourceMappingURL=config.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
@@ -723,7 +2737,7 @@ exports.isGhes = isGhes;
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.ManifestFilename = exports.TarFilename = exports.SystemTarPathOnWindows = exports.GnuTarPathOnWindows = exports.SocketTimeout = exports.DefaultRetryDelay = exports.DefaultRetryAttempts = exports.ArchiveToolType = exports.CompressionMethod = exports.CacheFilename = void 0;
|
||||
exports.CacheFileSizeLimit = exports.ManifestFilename = exports.TarFilename = exports.SystemTarPathOnWindows = exports.GnuTarPathOnWindows = exports.SocketTimeout = exports.DefaultRetryDelay = exports.DefaultRetryAttempts = exports.ArchiveToolType = exports.CompressionMethod = exports.CacheFilename = void 0;
|
||||
var CacheFilename;
|
||||
(function (CacheFilename) {
|
||||
CacheFilename["Gzip"] = "cache.tgz";
|
||||
@@ -756,6 +2770,7 @@ exports.GnuTarPathOnWindows = `${process.env['PROGRAMFILES']}\\Git\\usr\\bin\\ta
|
||||
exports.SystemTarPathOnWindows = `${process.env['SYSTEMDRIVE']}\\Windows\\System32\\tar.exe`;
|
||||
exports.TarFilename = 'cache.tar';
|
||||
exports.ManifestFilename = 'manifest.txt';
|
||||
exports.CacheFileSizeLimit = 10 * Math.pow(1024, 3); // 10GiB per repository
|
||||
//# sourceMappingURL=constants.js.map
|
||||
|
||||
/***/ }),
|
||||
@@ -1289,6 +3304,270 @@ exports.retryHttpClientResponse = retryHttpClientResponse;
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6819:
|
||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.internalCacheTwirpClient = void 0;
|
||||
const core_1 = __nccwpck_require__(7484);
|
||||
const user_agent_1 = __nccwpck_require__(1899);
|
||||
const errors_1 = __nccwpck_require__(263);
|
||||
const config_1 = __nccwpck_require__(7606);
|
||||
const cacheUtils_1 = __nccwpck_require__(680);
|
||||
const auth_1 = __nccwpck_require__(4552);
|
||||
const http_client_1 = __nccwpck_require__(4844);
|
||||
const cache_twirp_1 = __nccwpck_require__(564);
|
||||
/**
|
||||
* This class is a wrapper around the CacheServiceClientJSON class generated by Twirp.
|
||||
*
|
||||
* It adds retry logic to the request method, which is not present in the generated client.
|
||||
*
|
||||
* This class is used to interact with cache service v2.
|
||||
*/
|
||||
class CacheServiceClient {
|
||||
constructor(userAgent, maxAttempts, baseRetryIntervalMilliseconds, retryMultiplier) {
|
||||
this.maxAttempts = 5;
|
||||
this.baseRetryIntervalMilliseconds = 3000;
|
||||
this.retryMultiplier = 1.5;
|
||||
const token = (0, cacheUtils_1.getRuntimeToken)();
|
||||
this.baseUrl = (0, config_1.getCacheServiceURL)();
|
||||
if (maxAttempts) {
|
||||
this.maxAttempts = maxAttempts;
|
||||
}
|
||||
if (baseRetryIntervalMilliseconds) {
|
||||
this.baseRetryIntervalMilliseconds = baseRetryIntervalMilliseconds;
|
||||
}
|
||||
if (retryMultiplier) {
|
||||
this.retryMultiplier = retryMultiplier;
|
||||
}
|
||||
this.httpClient = new http_client_1.HttpClient(userAgent, [
|
||||
new auth_1.BearerCredentialHandler(token)
|
||||
]);
|
||||
}
|
||||
// This function satisfies the Rpc interface. It is compatible with the JSON
|
||||
// JSON generated client.
|
||||
request(service, method, contentType, data) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = new URL(`/twirp/${service}/${method}`, this.baseUrl).href;
|
||||
(0, core_1.debug)(`[Request] ${method} ${url}`);
|
||||
const headers = {
|
||||
'Content-Type': contentType
|
||||
};
|
||||
try {
|
||||
const { body } = yield this.retryableRequest(() => __awaiter(this, void 0, void 0, function* () { return this.httpClient.post(url, JSON.stringify(data), headers); }));
|
||||
return body;
|
||||
}
|
||||
catch (error) {
|
||||
throw new Error(`Failed to ${method}: ${error.message}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
retryableRequest(operation) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let attempt = 0;
|
||||
let errorMessage = '';
|
||||
let rawBody = '';
|
||||
while (attempt < this.maxAttempts) {
|
||||
let isRetryable = false;
|
||||
try {
|
||||
const response = yield operation();
|
||||
const statusCode = response.message.statusCode;
|
||||
rawBody = yield response.readBody();
|
||||
(0, core_1.debug)(`[Response] - ${response.message.statusCode}`);
|
||||
(0, core_1.debug)(`Headers: ${JSON.stringify(response.message.headers, null, 2)}`);
|
||||
const body = JSON.parse(rawBody);
|
||||
(0, core_1.debug)(`Body: ${JSON.stringify(body, null, 2)}`);
|
||||
if (this.isSuccessStatusCode(statusCode)) {
|
||||
return { response, body };
|
||||
}
|
||||
isRetryable = this.isRetryableHttpStatusCode(statusCode);
|
||||
errorMessage = `Failed request: (${statusCode}) ${response.message.statusMessage}`;
|
||||
if (body.msg) {
|
||||
if (errors_1.UsageError.isUsageErrorMessage(body.msg)) {
|
||||
throw new errors_1.UsageError();
|
||||
}
|
||||
errorMessage = `${errorMessage}: ${body.msg}`;
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
if (error instanceof SyntaxError) {
|
||||
(0, core_1.debug)(`Raw Body: ${rawBody}`);
|
||||
}
|
||||
if (error instanceof errors_1.UsageError) {
|
||||
throw error;
|
||||
}
|
||||
if (errors_1.NetworkError.isNetworkErrorCode(error === null || error === void 0 ? void 0 : error.code)) {
|
||||
throw new errors_1.NetworkError(error === null || error === void 0 ? void 0 : error.code);
|
||||
}
|
||||
isRetryable = true;
|
||||
errorMessage = error.message;
|
||||
}
|
||||
if (!isRetryable) {
|
||||
throw new Error(`Received non-retryable error: ${errorMessage}`);
|
||||
}
|
||||
if (attempt + 1 === this.maxAttempts) {
|
||||
throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${errorMessage}`);
|
||||
}
|
||||
const retryTimeMilliseconds = this.getExponentialRetryTimeMilliseconds(attempt);
|
||||
(0, core_1.info)(`Attempt ${attempt + 1} of ${this.maxAttempts} failed with error: ${errorMessage}. Retrying request in ${retryTimeMilliseconds} ms...`);
|
||||
yield this.sleep(retryTimeMilliseconds);
|
||||
attempt++;
|
||||
}
|
||||
throw new Error(`Request failed`);
|
||||
});
|
||||
}
|
||||
isSuccessStatusCode(statusCode) {
|
||||
if (!statusCode)
|
||||
return false;
|
||||
return statusCode >= 200 && statusCode < 300;
|
||||
}
|
||||
isRetryableHttpStatusCode(statusCode) {
|
||||
if (!statusCode)
|
||||
return false;
|
||||
const retryableStatusCodes = [
|
||||
http_client_1.HttpCodes.BadGateway,
|
||||
http_client_1.HttpCodes.GatewayTimeout,
|
||||
http_client_1.HttpCodes.InternalServerError,
|
||||
http_client_1.HttpCodes.ServiceUnavailable,
|
||||
http_client_1.HttpCodes.TooManyRequests
|
||||
];
|
||||
return retryableStatusCodes.includes(statusCode);
|
||||
}
|
||||
sleep(milliseconds) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return new Promise(resolve => setTimeout(resolve, milliseconds));
|
||||
});
|
||||
}
|
||||
getExponentialRetryTimeMilliseconds(attempt) {
|
||||
if (attempt < 0) {
|
||||
throw new Error('attempt should be a positive integer');
|
||||
}
|
||||
if (attempt === 0) {
|
||||
return this.baseRetryIntervalMilliseconds;
|
||||
}
|
||||
const minTime = this.baseRetryIntervalMilliseconds * Math.pow(this.retryMultiplier, attempt);
|
||||
const maxTime = minTime * this.retryMultiplier;
|
||||
// returns a random number between minTime and maxTime (exclusive)
|
||||
return Math.trunc(Math.random() * (maxTime - minTime) + minTime);
|
||||
}
|
||||
}
|
||||
function internalCacheTwirpClient(options) {
|
||||
const client = new CacheServiceClient((0, user_agent_1.getUserAgentString)(), options === null || options === void 0 ? void 0 : options.maxAttempts, options === null || options === void 0 ? void 0 : options.retryIntervalMs, options === null || options === void 0 ? void 0 : options.retryMultiplier);
|
||||
return new cache_twirp_1.CacheServiceClientJSON(client);
|
||||
}
|
||||
exports.internalCacheTwirpClient = internalCacheTwirpClient;
|
||||
//# sourceMappingURL=cacheTwirpClient.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 263:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.UsageError = exports.NetworkError = exports.GHESNotSupportedError = exports.CacheNotFoundError = exports.InvalidResponseError = exports.FilesNotFoundError = void 0;
|
||||
class FilesNotFoundError extends Error {
|
||||
constructor(files = []) {
|
||||
let message = 'No files were found to upload';
|
||||
if (files.length > 0) {
|
||||
message += `: ${files.join(', ')}`;
|
||||
}
|
||||
super(message);
|
||||
this.files = files;
|
||||
this.name = 'FilesNotFoundError';
|
||||
}
|
||||
}
|
||||
exports.FilesNotFoundError = FilesNotFoundError;
|
||||
class InvalidResponseError extends Error {
|
||||
constructor(message) {
|
||||
super(message);
|
||||
this.name = 'InvalidResponseError';
|
||||
}
|
||||
}
|
||||
exports.InvalidResponseError = InvalidResponseError;
|
||||
class CacheNotFoundError extends Error {
|
||||
constructor(message = 'Cache not found') {
|
||||
super(message);
|
||||
this.name = 'CacheNotFoundError';
|
||||
}
|
||||
}
|
||||
exports.CacheNotFoundError = CacheNotFoundError;
|
||||
class GHESNotSupportedError extends Error {
|
||||
constructor(message = '@actions/cache v4.1.4+, actions/cache/save@v4+ and actions/cache/restore@v4+ are not currently supported on GHES.') {
|
||||
super(message);
|
||||
this.name = 'GHESNotSupportedError';
|
||||
}
|
||||
}
|
||||
exports.GHESNotSupportedError = GHESNotSupportedError;
|
||||
class NetworkError extends Error {
|
||||
constructor(code) {
|
||||
const message = `Unable to make request: ${code}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;
|
||||
super(message);
|
||||
this.code = code;
|
||||
this.name = 'NetworkError';
|
||||
}
|
||||
}
|
||||
exports.NetworkError = NetworkError;
|
||||
NetworkError.isNetworkErrorCode = (code) => {
|
||||
if (!code)
|
||||
return false;
|
||||
return [
|
||||
'ECONNRESET',
|
||||
'ENOTFOUND',
|
||||
'ETIMEDOUT',
|
||||
'ECONNREFUSED',
|
||||
'EHOSTUNREACH'
|
||||
].includes(code);
|
||||
};
|
||||
class UsageError extends Error {
|
||||
constructor() {
|
||||
const message = `Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.\nMore info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;
|
||||
super(message);
|
||||
this.name = 'UsageError';
|
||||
}
|
||||
}
|
||||
exports.UsageError = UsageError;
|
||||
UsageError.isUsageErrorMessage = (msg) => {
|
||||
if (!msg)
|
||||
return false;
|
||||
return msg.includes('insufficient usage');
|
||||
};
|
||||
//# sourceMappingURL=errors.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1899:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.getUserAgentString = void 0;
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports
|
||||
const packageJson = __nccwpck_require__(4012);
|
||||
/**
|
||||
* Ensure that this User Agent String is used in all HTTP calls so that we can monitor telemetry between different versions of this package
|
||||
*/
|
||||
function getUserAgentString() {
|
||||
return `@actions/cache-${packageJson.version}`;
|
||||
}
|
||||
exports.getUserAgentString = getUserAgentString;
|
||||
//# sourceMappingURL=user-agent.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5321:
|
||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||
|
||||
@@ -1568,6 +3847,180 @@ exports.createTar = createTar;
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5268:
|
||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.uploadCacheArchiveSDK = exports.UploadProgress = void 0;
|
||||
const core = __importStar(__nccwpck_require__(7484));
|
||||
const storage_blob_1 = __nccwpck_require__(1012);
|
||||
const errors_1 = __nccwpck_require__(263);
|
||||
/**
|
||||
* Class for tracking the upload state and displaying stats.
|
||||
*/
|
||||
class UploadProgress {
|
||||
constructor(contentLength) {
|
||||
this.contentLength = contentLength;
|
||||
this.sentBytes = 0;
|
||||
this.displayedComplete = false;
|
||||
this.startTime = Date.now();
|
||||
}
|
||||
/**
|
||||
* Sets the number of bytes sent
|
||||
*
|
||||
* @param sentBytes the number of bytes sent
|
||||
*/
|
||||
setSentBytes(sentBytes) {
|
||||
this.sentBytes = sentBytes;
|
||||
}
|
||||
/**
|
||||
* Returns the total number of bytes transferred.
|
||||
*/
|
||||
getTransferredBytes() {
|
||||
return this.sentBytes;
|
||||
}
|
||||
/**
|
||||
* Returns true if the upload is complete.
|
||||
*/
|
||||
isDone() {
|
||||
return this.getTransferredBytes() === this.contentLength;
|
||||
}
|
||||
/**
|
||||
* Prints the current upload stats. Once the upload completes, this will print one
|
||||
* last line and then stop.
|
||||
*/
|
||||
display() {
|
||||
if (this.displayedComplete) {
|
||||
return;
|
||||
}
|
||||
const transferredBytes = this.sentBytes;
|
||||
const percentage = (100 * (transferredBytes / this.contentLength)).toFixed(1);
|
||||
const elapsedTime = Date.now() - this.startTime;
|
||||
const uploadSpeed = (transferredBytes /
|
||||
(1024 * 1024) /
|
||||
(elapsedTime / 1000)).toFixed(1);
|
||||
core.info(`Sent ${transferredBytes} of ${this.contentLength} (${percentage}%), ${uploadSpeed} MBs/sec`);
|
||||
if (this.isDone()) {
|
||||
this.displayedComplete = true;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Returns a function used to handle TransferProgressEvents.
|
||||
*/
|
||||
onProgress() {
|
||||
return (progress) => {
|
||||
this.setSentBytes(progress.loadedBytes);
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Starts the timer that displays the stats.
|
||||
*
|
||||
* @param delayInMs the delay between each write
|
||||
*/
|
||||
startDisplayTimer(delayInMs = 1000) {
|
||||
const displayCallback = () => {
|
||||
this.display();
|
||||
if (!this.isDone()) {
|
||||
this.timeoutHandle = setTimeout(displayCallback, delayInMs);
|
||||
}
|
||||
};
|
||||
this.timeoutHandle = setTimeout(displayCallback, delayInMs);
|
||||
}
|
||||
/**
|
||||
* Stops the timer that displays the stats. As this typically indicates the upload
|
||||
* is complete, this will display one last line, unless the last line has already
|
||||
* been written.
|
||||
*/
|
||||
stopDisplayTimer() {
|
||||
if (this.timeoutHandle) {
|
||||
clearTimeout(this.timeoutHandle);
|
||||
this.timeoutHandle = undefined;
|
||||
}
|
||||
this.display();
|
||||
}
|
||||
}
|
||||
exports.UploadProgress = UploadProgress;
|
||||
/**
|
||||
* Uploads a cache archive directly to Azure Blob Storage using the Azure SDK.
|
||||
* This function will display progress information to the console. Concurrency of the
|
||||
* upload is determined by the calling functions.
|
||||
*
|
||||
* @param signedUploadURL
|
||||
* @param archivePath
|
||||
* @param options
|
||||
* @returns
|
||||
*/
|
||||
function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
|
||||
var _a;
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const blobClient = new storage_blob_1.BlobClient(signedUploadURL);
|
||||
const blockBlobClient = blobClient.getBlockBlobClient();
|
||||
const uploadProgress = new UploadProgress((_a = options === null || options === void 0 ? void 0 : options.archiveSizeBytes) !== null && _a !== void 0 ? _a : 0);
|
||||
// Specify data transfer options
|
||||
const uploadOptions = {
|
||||
blockSize: options === null || options === void 0 ? void 0 : options.uploadChunkSize,
|
||||
concurrency: options === null || options === void 0 ? void 0 : options.uploadConcurrency,
|
||||
maxSingleShotSize: 128 * 1024 * 1024,
|
||||
onProgress: uploadProgress.onProgress()
|
||||
};
|
||||
try {
|
||||
uploadProgress.startDisplayTimer();
|
||||
core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`);
|
||||
const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions);
|
||||
// TODO: better management of non-retryable errors
|
||||
if (response._response.status >= 400) {
|
||||
throw new errors_1.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${response._response.status}`);
|
||||
}
|
||||
return response;
|
||||
}
|
||||
catch (error) {
|
||||
core.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${error.message}`);
|
||||
throw error;
|
||||
}
|
||||
finally {
|
||||
uploadProgress.stopDisplayTimer();
|
||||
}
|
||||
});
|
||||
}
|
||||
exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK;
|
||||
//# sourceMappingURL=uploadUtils.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8356:
|
||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||
|
||||
@@ -1605,11 +4058,16 @@ const core = __importStar(__nccwpck_require__(7484));
|
||||
* @param copy the original upload options
|
||||
*/
|
||||
function getUploadOptions(copy) {
|
||||
// Defaults if not overriden
|
||||
const result = {
|
||||
useAzureSdk: false,
|
||||
uploadConcurrency: 4,
|
||||
uploadChunkSize: 32 * 1024 * 1024
|
||||
};
|
||||
if (copy) {
|
||||
if (typeof copy.useAzureSdk === 'boolean') {
|
||||
result.useAzureSdk = copy.useAzureSdk;
|
||||
}
|
||||
if (typeof copy.uploadConcurrency === 'number') {
|
||||
result.uploadConcurrency = copy.uploadConcurrency;
|
||||
}
|
||||
@@ -1617,6 +4075,18 @@ function getUploadOptions(copy) {
|
||||
result.uploadChunkSize = copy.uploadChunkSize;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Add env var overrides
|
||||
*/
|
||||
// Cap the uploadConcurrency at 32
|
||||
result.uploadConcurrency = !isNaN(Number(process.env['CACHE_UPLOAD_CONCURRENCY']))
|
||||
? Math.min(32, Number(process.env['CACHE_UPLOAD_CONCURRENCY']))
|
||||
: result.uploadConcurrency;
|
||||
// Cap the uploadChunkSize at 128MiB
|
||||
result.uploadChunkSize = !isNaN(Number(process.env['CACHE_UPLOAD_CHUNK_SIZE']))
|
||||
? Math.min(128 * 1024 * 1024, Number(process.env['CACHE_UPLOAD_CHUNK_SIZE']) * 1024 * 1024)
|
||||
: result.uploadChunkSize;
|
||||
core.debug(`Use Azure SDK: ${result.useAzureSdk}`);
|
||||
core.debug(`Upload concurrency: ${result.uploadConcurrency}`);
|
||||
core.debug(`Upload chunk size: ${result.uploadChunkSize}`);
|
||||
return result;
|
||||
@@ -47196,6 +49666,4940 @@ exports.VERSION = void 0;
|
||||
exports.VERSION = '1.4.1';
|
||||
//# sourceMappingURL=version.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7889:
|
||||
/***/ (function(__unused_webpack_module, exports) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.ClientStreamingCall = void 0;
|
||||
/**
|
||||
* A client streaming RPC call. This means that the clients sends 0, 1, or
|
||||
* more messages to the server, and the server replies with exactly one
|
||||
* message.
|
||||
*/
|
||||
class ClientStreamingCall {
|
||||
constructor(method, requestHeaders, request, headers, response, status, trailers) {
|
||||
this.method = method;
|
||||
this.requestHeaders = requestHeaders;
|
||||
this.requests = request;
|
||||
this.headers = headers;
|
||||
this.response = response;
|
||||
this.status = status;
|
||||
this.trailers = trailers;
|
||||
}
|
||||
/**
|
||||
* Instead of awaiting the response status and trailers, you can
|
||||
* just as well await this call itself to receive the server outcome.
|
||||
* Note that it may still be valid to send more request messages.
|
||||
*/
|
||||
then(onfulfilled, onrejected) {
|
||||
return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));
|
||||
}
|
||||
promiseFinished() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let [headers, response, status, trailers] = yield Promise.all([this.headers, this.response, this.status, this.trailers]);
|
||||
return {
|
||||
method: this.method,
|
||||
requestHeaders: this.requestHeaders,
|
||||
headers,
|
||||
response,
|
||||
status,
|
||||
trailers
|
||||
};
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.ClientStreamingCall = ClientStreamingCall;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1409:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.Deferred = exports.DeferredState = void 0;
|
||||
var DeferredState;
|
||||
(function (DeferredState) {
|
||||
DeferredState[DeferredState["PENDING"] = 0] = "PENDING";
|
||||
DeferredState[DeferredState["REJECTED"] = 1] = "REJECTED";
|
||||
DeferredState[DeferredState["RESOLVED"] = 2] = "RESOLVED";
|
||||
})(DeferredState = exports.DeferredState || (exports.DeferredState = {}));
|
||||
/**
|
||||
* A deferred promise. This is a "controller" for a promise, which lets you
|
||||
* pass a promise around and reject or resolve it from the outside.
|
||||
*
|
||||
* Warning: This class is to be used with care. Using it can make code very
|
||||
* difficult to read. It is intended for use in library code that exposes
|
||||
* promises, not for regular business logic.
|
||||
*/
|
||||
class Deferred {
|
||||
/**
|
||||
* @param preventUnhandledRejectionWarning - prevents the warning
|
||||
* "Unhandled Promise rejection" by adding a noop rejection handler.
|
||||
* Working with calls returned from the runtime-rpc package in an
|
||||
* async function usually means awaiting one call property after
|
||||
* the other. This means that the "status" is not being awaited when
|
||||
* an earlier await for the "headers" is rejected. This causes the
|
||||
* "unhandled promise reject" warning. A more correct behaviour for
|
||||
* calls might be to become aware whether at least one of the
|
||||
* promises is handled and swallow the rejection warning for the
|
||||
* others.
|
||||
*/
|
||||
constructor(preventUnhandledRejectionWarning = true) {
|
||||
this._state = DeferredState.PENDING;
|
||||
this._promise = new Promise((resolve, reject) => {
|
||||
this._resolve = resolve;
|
||||
this._reject = reject;
|
||||
});
|
||||
if (preventUnhandledRejectionWarning) {
|
||||
this._promise.catch(_ => { });
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Get the current state of the promise.
|
||||
*/
|
||||
get state() {
|
||||
return this._state;
|
||||
}
|
||||
/**
|
||||
* Get the deferred promise.
|
||||
*/
|
||||
get promise() {
|
||||
return this._promise;
|
||||
}
|
||||
/**
|
||||
* Resolve the promise. Throws if the promise is already resolved or rejected.
|
||||
*/
|
||||
resolve(value) {
|
||||
if (this.state !== DeferredState.PENDING)
|
||||
throw new Error(`cannot resolve ${DeferredState[this.state].toLowerCase()}`);
|
||||
this._resolve(value);
|
||||
this._state = DeferredState.RESOLVED;
|
||||
}
|
||||
/**
|
||||
* Reject the promise. Throws if the promise is already resolved or rejected.
|
||||
*/
|
||||
reject(reason) {
|
||||
if (this.state !== DeferredState.PENDING)
|
||||
throw new Error(`cannot reject ${DeferredState[this.state].toLowerCase()}`);
|
||||
this._reject(reason);
|
||||
this._state = DeferredState.REJECTED;
|
||||
}
|
||||
/**
|
||||
* Resolve the promise. Ignore if not pending.
|
||||
*/
|
||||
resolvePending(val) {
|
||||
if (this._state === DeferredState.PENDING)
|
||||
this.resolve(val);
|
||||
}
|
||||
/**
|
||||
* Reject the promise. Ignore if not pending.
|
||||
*/
|
||||
rejectPending(reason) {
|
||||
if (this._state === DeferredState.PENDING)
|
||||
this.reject(reason);
|
||||
}
|
||||
}
|
||||
exports.Deferred = Deferred;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6826:
|
||||
/***/ (function(__unused_webpack_module, exports) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.DuplexStreamingCall = void 0;
|
||||
/**
|
||||
* A duplex streaming RPC call. This means that the clients sends an
|
||||
* arbitrary amount of messages to the server, while at the same time,
|
||||
* the server sends an arbitrary amount of messages to the client.
|
||||
*/
|
||||
class DuplexStreamingCall {
|
||||
constructor(method, requestHeaders, request, headers, response, status, trailers) {
|
||||
this.method = method;
|
||||
this.requestHeaders = requestHeaders;
|
||||
this.requests = request;
|
||||
this.headers = headers;
|
||||
this.responses = response;
|
||||
this.status = status;
|
||||
this.trailers = trailers;
|
||||
}
|
||||
/**
|
||||
* Instead of awaiting the response status and trailers, you can
|
||||
* just as well await this call itself to receive the server outcome.
|
||||
* Note that it may still be valid to send more request messages.
|
||||
*/
|
||||
then(onfulfilled, onrejected) {
|
||||
return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));
|
||||
}
|
||||
promiseFinished() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let [headers, status, trailers] = yield Promise.all([this.headers, this.status, this.trailers]);
|
||||
return {
|
||||
method: this.method,
|
||||
requestHeaders: this.requestHeaders,
|
||||
headers,
|
||||
status,
|
||||
trailers,
|
||||
};
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.DuplexStreamingCall = DuplexStreamingCall;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4420:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
// Public API of the rpc runtime.
|
||||
// Note: we do not use `export * from ...` to help tree shakers,
|
||||
// webpack verbose output hints that this should be useful
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
var service_type_1 = __nccwpck_require__(6892);
|
||||
Object.defineProperty(exports, "ServiceType", ({ enumerable: true, get: function () { return service_type_1.ServiceType; } }));
|
||||
var reflection_info_1 = __nccwpck_require__(2496);
|
||||
Object.defineProperty(exports, "readMethodOptions", ({ enumerable: true, get: function () { return reflection_info_1.readMethodOptions; } }));
|
||||
Object.defineProperty(exports, "readMethodOption", ({ enumerable: true, get: function () { return reflection_info_1.readMethodOption; } }));
|
||||
Object.defineProperty(exports, "readServiceOption", ({ enumerable: true, get: function () { return reflection_info_1.readServiceOption; } }));
|
||||
var rpc_error_1 = __nccwpck_require__(8636);
|
||||
Object.defineProperty(exports, "RpcError", ({ enumerable: true, get: function () { return rpc_error_1.RpcError; } }));
|
||||
var rpc_options_1 = __nccwpck_require__(8576);
|
||||
Object.defineProperty(exports, "mergeRpcOptions", ({ enumerable: true, get: function () { return rpc_options_1.mergeRpcOptions; } }));
|
||||
var rpc_output_stream_1 = __nccwpck_require__(2726);
|
||||
Object.defineProperty(exports, "RpcOutputStreamController", ({ enumerable: true, get: function () { return rpc_output_stream_1.RpcOutputStreamController; } }));
|
||||
var test_transport_1 = __nccwpck_require__(9122);
|
||||
Object.defineProperty(exports, "TestTransport", ({ enumerable: true, get: function () { return test_transport_1.TestTransport; } }));
|
||||
var deferred_1 = __nccwpck_require__(1409);
|
||||
Object.defineProperty(exports, "Deferred", ({ enumerable: true, get: function () { return deferred_1.Deferred; } }));
|
||||
Object.defineProperty(exports, "DeferredState", ({ enumerable: true, get: function () { return deferred_1.DeferredState; } }));
|
||||
var duplex_streaming_call_1 = __nccwpck_require__(6826);
|
||||
Object.defineProperty(exports, "DuplexStreamingCall", ({ enumerable: true, get: function () { return duplex_streaming_call_1.DuplexStreamingCall; } }));
|
||||
var client_streaming_call_1 = __nccwpck_require__(7889);
|
||||
Object.defineProperty(exports, "ClientStreamingCall", ({ enumerable: true, get: function () { return client_streaming_call_1.ClientStreamingCall; } }));
|
||||
var server_streaming_call_1 = __nccwpck_require__(6173);
|
||||
Object.defineProperty(exports, "ServerStreamingCall", ({ enumerable: true, get: function () { return server_streaming_call_1.ServerStreamingCall; } }));
|
||||
var unary_call_1 = __nccwpck_require__(9288);
|
||||
Object.defineProperty(exports, "UnaryCall", ({ enumerable: true, get: function () { return unary_call_1.UnaryCall; } }));
|
||||
var rpc_interceptor_1 = __nccwpck_require__(2849);
|
||||
Object.defineProperty(exports, "stackIntercept", ({ enumerable: true, get: function () { return rpc_interceptor_1.stackIntercept; } }));
|
||||
Object.defineProperty(exports, "stackDuplexStreamingInterceptors", ({ enumerable: true, get: function () { return rpc_interceptor_1.stackDuplexStreamingInterceptors; } }));
|
||||
Object.defineProperty(exports, "stackClientStreamingInterceptors", ({ enumerable: true, get: function () { return rpc_interceptor_1.stackClientStreamingInterceptors; } }));
|
||||
Object.defineProperty(exports, "stackServerStreamingInterceptors", ({ enumerable: true, get: function () { return rpc_interceptor_1.stackServerStreamingInterceptors; } }));
|
||||
Object.defineProperty(exports, "stackUnaryInterceptors", ({ enumerable: true, get: function () { return rpc_interceptor_1.stackUnaryInterceptors; } }));
|
||||
var server_call_context_1 = __nccwpck_require__(3352);
|
||||
Object.defineProperty(exports, "ServerCallContextController", ({ enumerable: true, get: function () { return server_call_context_1.ServerCallContextController; } }));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2496:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.readServiceOption = exports.readMethodOption = exports.readMethodOptions = exports.normalizeMethodInfo = void 0;
|
||||
const runtime_1 = __nccwpck_require__(8886);
|
||||
/**
|
||||
* Turns PartialMethodInfo into MethodInfo.
|
||||
*/
|
||||
function normalizeMethodInfo(method, service) {
|
||||
var _a, _b, _c;
|
||||
let m = method;
|
||||
m.service = service;
|
||||
m.localName = (_a = m.localName) !== null && _a !== void 0 ? _a : runtime_1.lowerCamelCase(m.name);
|
||||
// noinspection PointlessBooleanExpressionJS
|
||||
m.serverStreaming = !!m.serverStreaming;
|
||||
// noinspection PointlessBooleanExpressionJS
|
||||
m.clientStreaming = !!m.clientStreaming;
|
||||
m.options = (_b = m.options) !== null && _b !== void 0 ? _b : {};
|
||||
m.idempotency = (_c = m.idempotency) !== null && _c !== void 0 ? _c : undefined;
|
||||
return m;
|
||||
}
|
||||
exports.normalizeMethodInfo = normalizeMethodInfo;
|
||||
/**
|
||||
* Read custom method options from a generated service client.
|
||||
*
|
||||
* @deprecated use readMethodOption()
|
||||
*/
|
||||
function readMethodOptions(service, methodName, extensionName, extensionType) {
|
||||
var _a;
|
||||
const options = (_a = service.methods.find((m, i) => m.localName === methodName || i === methodName)) === null || _a === void 0 ? void 0 : _a.options;
|
||||
return options && options[extensionName] ? extensionType.fromJson(options[extensionName]) : undefined;
|
||||
}
|
||||
exports.readMethodOptions = readMethodOptions;
|
||||
function readMethodOption(service, methodName, extensionName, extensionType) {
|
||||
var _a;
|
||||
const options = (_a = service.methods.find((m, i) => m.localName === methodName || i === methodName)) === null || _a === void 0 ? void 0 : _a.options;
|
||||
if (!options) {
|
||||
return undefined;
|
||||
}
|
||||
const optionVal = options[extensionName];
|
||||
if (optionVal === undefined) {
|
||||
return optionVal;
|
||||
}
|
||||
return extensionType ? extensionType.fromJson(optionVal) : optionVal;
|
||||
}
|
||||
exports.readMethodOption = readMethodOption;
|
||||
function readServiceOption(service, extensionName, extensionType) {
|
||||
const options = service.options;
|
||||
if (!options) {
|
||||
return undefined;
|
||||
}
|
||||
const optionVal = options[extensionName];
|
||||
if (optionVal === undefined) {
|
||||
return optionVal;
|
||||
}
|
||||
return extensionType ? extensionType.fromJson(optionVal) : optionVal;
|
||||
}
|
||||
exports.readServiceOption = readServiceOption;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8636:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.RpcError = void 0;
|
||||
/**
|
||||
* An error that occurred while calling a RPC method.
|
||||
*/
|
||||
class RpcError extends Error {
|
||||
constructor(message, code = 'UNKNOWN', meta) {
|
||||
super(message);
|
||||
this.name = 'RpcError';
|
||||
// see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-2.html#example
|
||||
Object.setPrototypeOf(this, new.target.prototype);
|
||||
this.code = code;
|
||||
this.meta = meta !== null && meta !== void 0 ? meta : {};
|
||||
}
|
||||
toString() {
|
||||
const l = [this.name + ': ' + this.message];
|
||||
if (this.code) {
|
||||
l.push('');
|
||||
l.push('Code: ' + this.code);
|
||||
}
|
||||
if (this.serviceName && this.methodName) {
|
||||
l.push('Method: ' + this.serviceName + '/' + this.methodName);
|
||||
}
|
||||
let m = Object.entries(this.meta);
|
||||
if (m.length) {
|
||||
l.push('');
|
||||
l.push('Meta:');
|
||||
for (let [k, v] of m) {
|
||||
l.push(` ${k}: ${v}`);
|
||||
}
|
||||
}
|
||||
return l.join('\n');
|
||||
}
|
||||
}
|
||||
exports.RpcError = RpcError;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2849:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.stackDuplexStreamingInterceptors = exports.stackClientStreamingInterceptors = exports.stackServerStreamingInterceptors = exports.stackUnaryInterceptors = exports.stackIntercept = void 0;
|
||||
const runtime_1 = __nccwpck_require__(8886);
|
||||
/**
|
||||
* Creates a "stack" of of all interceptors specified in the given `RpcOptions`.
|
||||
* Used by generated client implementations.
|
||||
* @internal
|
||||
*/
|
||||
function stackIntercept(kind, transport, method, options, input) {
|
||||
var _a, _b, _c, _d;
|
||||
if (kind == "unary") {
|
||||
let tail = (mtd, inp, opt) => transport.unary(mtd, inp, opt);
|
||||
for (const curr of ((_a = options.interceptors) !== null && _a !== void 0 ? _a : []).filter(i => i.interceptUnary).reverse()) {
|
||||
const next = tail;
|
||||
tail = (mtd, inp, opt) => curr.interceptUnary(next, mtd, inp, opt);
|
||||
}
|
||||
return tail(method, input, options);
|
||||
}
|
||||
if (kind == "serverStreaming") {
|
||||
let tail = (mtd, inp, opt) => transport.serverStreaming(mtd, inp, opt);
|
||||
for (const curr of ((_b = options.interceptors) !== null && _b !== void 0 ? _b : []).filter(i => i.interceptServerStreaming).reverse()) {
|
||||
const next = tail;
|
||||
tail = (mtd, inp, opt) => curr.interceptServerStreaming(next, mtd, inp, opt);
|
||||
}
|
||||
return tail(method, input, options);
|
||||
}
|
||||
if (kind == "clientStreaming") {
|
||||
let tail = (mtd, opt) => transport.clientStreaming(mtd, opt);
|
||||
for (const curr of ((_c = options.interceptors) !== null && _c !== void 0 ? _c : []).filter(i => i.interceptClientStreaming).reverse()) {
|
||||
const next = tail;
|
||||
tail = (mtd, opt) => curr.interceptClientStreaming(next, mtd, opt);
|
||||
}
|
||||
return tail(method, options);
|
||||
}
|
||||
if (kind == "duplex") {
|
||||
let tail = (mtd, opt) => transport.duplex(mtd, opt);
|
||||
for (const curr of ((_d = options.interceptors) !== null && _d !== void 0 ? _d : []).filter(i => i.interceptDuplex).reverse()) {
|
||||
const next = tail;
|
||||
tail = (mtd, opt) => curr.interceptDuplex(next, mtd, opt);
|
||||
}
|
||||
return tail(method, options);
|
||||
}
|
||||
runtime_1.assertNever(kind);
|
||||
}
|
||||
exports.stackIntercept = stackIntercept;
|
||||
/**
|
||||
* @deprecated replaced by `stackIntercept()`, still here to support older generated code
|
||||
*/
|
||||
function stackUnaryInterceptors(transport, method, input, options) {
|
||||
return stackIntercept("unary", transport, method, options, input);
|
||||
}
|
||||
exports.stackUnaryInterceptors = stackUnaryInterceptors;
|
||||
/**
|
||||
* @deprecated replaced by `stackIntercept()`, still here to support older generated code
|
||||
*/
|
||||
function stackServerStreamingInterceptors(transport, method, input, options) {
|
||||
return stackIntercept("serverStreaming", transport, method, options, input);
|
||||
}
|
||||
exports.stackServerStreamingInterceptors = stackServerStreamingInterceptors;
|
||||
/**
|
||||
* @deprecated replaced by `stackIntercept()`, still here to support older generated code
|
||||
*/
|
||||
function stackClientStreamingInterceptors(transport, method, options) {
|
||||
return stackIntercept("clientStreaming", transport, method, options);
|
||||
}
|
||||
exports.stackClientStreamingInterceptors = stackClientStreamingInterceptors;
|
||||
/**
|
||||
* @deprecated replaced by `stackIntercept()`, still here to support older generated code
|
||||
*/
|
||||
function stackDuplexStreamingInterceptors(transport, method, options) {
|
||||
return stackIntercept("duplex", transport, method, options);
|
||||
}
|
||||
exports.stackDuplexStreamingInterceptors = stackDuplexStreamingInterceptors;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8576:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.mergeRpcOptions = void 0;
|
||||
const runtime_1 = __nccwpck_require__(8886);
|
||||
/**
|
||||
* Merges custom RPC options with defaults. Returns a new instance and keeps
|
||||
* the "defaults" and the "options" unmodified.
|
||||
*
|
||||
* Merges `RpcMetadata` "meta", overwriting values from "defaults" with
|
||||
* values from "options". Does not append values to existing entries.
|
||||
*
|
||||
* Merges "jsonOptions", including "jsonOptions.typeRegistry", by creating
|
||||
* a new array that contains types from "options.jsonOptions.typeRegistry"
|
||||
* first, then types from "defaults.jsonOptions.typeRegistry".
|
||||
*
|
||||
* Merges "binaryOptions".
|
||||
*
|
||||
* Merges "interceptors" by creating a new array that contains interceptors
|
||||
* from "defaults" first, then interceptors from "options".
|
||||
*
|
||||
* Works with objects that extend `RpcOptions`, but only if the added
|
||||
* properties are of type Date, primitive like string, boolean, or Array
|
||||
* of primitives. If you have other property types, you have to merge them
|
||||
* yourself.
|
||||
*/
|
||||
function mergeRpcOptions(defaults, options) {
|
||||
if (!options)
|
||||
return defaults;
|
||||
let o = {};
|
||||
copy(defaults, o);
|
||||
copy(options, o);
|
||||
for (let key of Object.keys(options)) {
|
||||
let val = options[key];
|
||||
switch (key) {
|
||||
case "jsonOptions":
|
||||
o.jsonOptions = runtime_1.mergeJsonOptions(defaults.jsonOptions, o.jsonOptions);
|
||||
break;
|
||||
case "binaryOptions":
|
||||
o.binaryOptions = runtime_1.mergeBinaryOptions(defaults.binaryOptions, o.binaryOptions);
|
||||
break;
|
||||
case "meta":
|
||||
o.meta = {};
|
||||
copy(defaults.meta, o.meta);
|
||||
copy(options.meta, o.meta);
|
||||
break;
|
||||
case "interceptors":
|
||||
o.interceptors = defaults.interceptors ? defaults.interceptors.concat(val) : val.concat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return o;
|
||||
}
|
||||
exports.mergeRpcOptions = mergeRpcOptions;
|
||||
function copy(a, into) {
|
||||
if (!a)
|
||||
return;
|
||||
let c = into;
|
||||
for (let [k, v] of Object.entries(a)) {
|
||||
if (v instanceof Date)
|
||||
c[k] = new Date(v.getTime());
|
||||
else if (Array.isArray(v))
|
||||
c[k] = v.concat();
|
||||
else
|
||||
c[k] = v;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2726:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.RpcOutputStreamController = void 0;
|
||||
const deferred_1 = __nccwpck_require__(1409);
|
||||
const runtime_1 = __nccwpck_require__(8886);
|
||||
/**
|
||||
* A `RpcOutputStream` that you control.
|
||||
*/
|
||||
class RpcOutputStreamController {
|
||||
constructor() {
|
||||
this._lis = {
|
||||
nxt: [],
|
||||
msg: [],
|
||||
err: [],
|
||||
cmp: [],
|
||||
};
|
||||
this._closed = false;
|
||||
}
|
||||
// --- RpcOutputStream callback API
|
||||
onNext(callback) {
|
||||
return this.addLis(callback, this._lis.nxt);
|
||||
}
|
||||
onMessage(callback) {
|
||||
return this.addLis(callback, this._lis.msg);
|
||||
}
|
||||
onError(callback) {
|
||||
return this.addLis(callback, this._lis.err);
|
||||
}
|
||||
onComplete(callback) {
|
||||
return this.addLis(callback, this._lis.cmp);
|
||||
}
|
||||
addLis(callback, list) {
|
||||
list.push(callback);
|
||||
return () => {
|
||||
let i = list.indexOf(callback);
|
||||
if (i >= 0)
|
||||
list.splice(i, 1);
|
||||
};
|
||||
}
|
||||
// remove all listeners
|
||||
clearLis() {
|
||||
for (let l of Object.values(this._lis))
|
||||
l.splice(0, l.length);
|
||||
}
|
||||
// --- Controller API
|
||||
/**
|
||||
* Is this stream already closed by a completion or error?
|
||||
*/
|
||||
get closed() {
|
||||
return this._closed !== false;
|
||||
}
|
||||
/**
|
||||
* Emit message, close with error, or close successfully, but only one
|
||||
* at a time.
|
||||
* Can be used to wrap a stream by using the other stream's `onNext`.
|
||||
*/
|
||||
notifyNext(message, error, complete) {
|
||||
runtime_1.assert((message ? 1 : 0) + (error ? 1 : 0) + (complete ? 1 : 0) <= 1, 'only one emission at a time');
|
||||
if (message)
|
||||
this.notifyMessage(message);
|
||||
if (error)
|
||||
this.notifyError(error);
|
||||
if (complete)
|
||||
this.notifyComplete();
|
||||
}
|
||||
/**
|
||||
* Emits a new message. Throws if stream is closed.
|
||||
*
|
||||
* Triggers onNext and onMessage callbacks.
|
||||
*/
|
||||
notifyMessage(message) {
|
||||
runtime_1.assert(!this.closed, 'stream is closed');
|
||||
this.pushIt({ value: message, done: false });
|
||||
this._lis.msg.forEach(l => l(message));
|
||||
this._lis.nxt.forEach(l => l(message, undefined, false));
|
||||
}
|
||||
/**
|
||||
* Closes the stream with an error. Throws if stream is closed.
|
||||
*
|
||||
* Triggers onNext and onError callbacks.
|
||||
*/
|
||||
notifyError(error) {
|
||||
runtime_1.assert(!this.closed, 'stream is closed');
|
||||
this._closed = error;
|
||||
this.pushIt(error);
|
||||
this._lis.err.forEach(l => l(error));
|
||||
this._lis.nxt.forEach(l => l(undefined, error, false));
|
||||
this.clearLis();
|
||||
}
|
||||
/**
|
||||
* Closes the stream successfully. Throws if stream is closed.
|
||||
*
|
||||
* Triggers onNext and onComplete callbacks.
|
||||
*/
|
||||
notifyComplete() {
|
||||
runtime_1.assert(!this.closed, 'stream is closed');
|
||||
this._closed = true;
|
||||
this.pushIt({ value: null, done: true });
|
||||
this._lis.cmp.forEach(l => l());
|
||||
this._lis.nxt.forEach(l => l(undefined, undefined, true));
|
||||
this.clearLis();
|
||||
}
|
||||
/**
|
||||
* Creates an async iterator (that can be used with `for await {...}`)
|
||||
* to consume the stream.
|
||||
*
|
||||
* Some things to note:
|
||||
* - If an error occurs, the `for await` will throw it.
|
||||
* - If an error occurred before the `for await` was started, `for await`
|
||||
* will re-throw it.
|
||||
* - If the stream is already complete, the `for await` will be empty.
|
||||
* - If your `for await` consumes slower than the stream produces,
|
||||
* for example because you are relaying messages in a slow operation,
|
||||
* messages are queued.
|
||||
*/
|
||||
[Symbol.asyncIterator]() {
|
||||
// init the iterator state, enabling pushIt()
|
||||
if (!this._itState) {
|
||||
this._itState = { q: [] };
|
||||
}
|
||||
// if we are closed, we are definitely not receiving any more messages.
|
||||
// but we can't let the iterator get stuck. we want to either:
|
||||
// a) finish the new iterator immediately, because we are completed
|
||||
// b) reject the new iterator, because we errored
|
||||
if (this._closed === true)
|
||||
this.pushIt({ value: null, done: true });
|
||||
else if (this._closed !== false)
|
||||
this.pushIt(this._closed);
|
||||
// the async iterator
|
||||
return {
|
||||
next: () => {
|
||||
let state = this._itState;
|
||||
runtime_1.assert(state, "bad state"); // if we don't have a state here, code is broken
|
||||
// there should be no pending result.
|
||||
// did the consumer call next() before we resolved our previous result promise?
|
||||
runtime_1.assert(!state.p, "iterator contract broken");
|
||||
// did we produce faster than the iterator consumed?
|
||||
// return the oldest result from the queue.
|
||||
let first = state.q.shift();
|
||||
if (first)
|
||||
return ("value" in first) ? Promise.resolve(first) : Promise.reject(first);
|
||||
// we have no result ATM, but we promise one.
|
||||
// as soon as we have a result, we must resolve promise.
|
||||
state.p = new deferred_1.Deferred();
|
||||
return state.p.promise;
|
||||
},
|
||||
};
|
||||
}
|
||||
// "push" a new iterator result.
|
||||
// this either resolves a pending promise, or enqueues the result.
|
||||
pushIt(result) {
|
||||
let state = this._itState;
|
||||
if (!state)
|
||||
return;
|
||||
// is the consumer waiting for us?
|
||||
if (state.p) {
|
||||
// yes, consumer is waiting for this promise.
|
||||
const p = state.p;
|
||||
runtime_1.assert(p.state == deferred_1.DeferredState.PENDING, "iterator contract broken");
|
||||
// resolve the promise
|
||||
("value" in result) ? p.resolve(result) : p.reject(result);
|
||||
// must cleanup, otherwise iterator.next() would pick it up again.
|
||||
delete state.p;
|
||||
}
|
||||
else {
|
||||
// we are producing faster than the iterator consumes.
|
||||
// push result onto queue.
|
||||
state.q.push(result);
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.RpcOutputStreamController = RpcOutputStreamController;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3352:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.ServerCallContextController = void 0;
|
||||
class ServerCallContextController {
|
||||
constructor(method, headers, deadline, sendResponseHeadersFn, defaultStatus = { code: 'OK', detail: '' }) {
|
||||
this._cancelled = false;
|
||||
this._listeners = [];
|
||||
this.method = method;
|
||||
this.headers = headers;
|
||||
this.deadline = deadline;
|
||||
this.trailers = {};
|
||||
this._sendRH = sendResponseHeadersFn;
|
||||
this.status = defaultStatus;
|
||||
}
|
||||
/**
|
||||
* Set the call cancelled.
|
||||
*
|
||||
* Invokes all callbacks registered with onCancel() and
|
||||
* sets `cancelled = true`.
|
||||
*/
|
||||
notifyCancelled() {
|
||||
if (!this._cancelled) {
|
||||
this._cancelled = true;
|
||||
for (let l of this._listeners) {
|
||||
l();
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Send response headers.
|
||||
*/
|
||||
sendResponseHeaders(data) {
|
||||
this._sendRH(data);
|
||||
}
|
||||
/**
|
||||
* Is the call cancelled?
|
||||
*
|
||||
* When the client closes the connection before the server
|
||||
* is done, the call is cancelled.
|
||||
*
|
||||
* If you want to cancel a request on the server, throw a
|
||||
* RpcError with the CANCELLED status code.
|
||||
*/
|
||||
get cancelled() {
|
||||
return this._cancelled;
|
||||
}
|
||||
/**
|
||||
* Add a callback for cancellation.
|
||||
*/
|
||||
onCancel(callback) {
|
||||
const l = this._listeners;
|
||||
l.push(callback);
|
||||
return () => {
|
||||
let i = l.indexOf(callback);
|
||||
if (i >= 0)
|
||||
l.splice(i, 1);
|
||||
};
|
||||
}
|
||||
}
|
||||
exports.ServerCallContextController = ServerCallContextController;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6173:
|
||||
/***/ (function(__unused_webpack_module, exports) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.ServerStreamingCall = void 0;
|
||||
/**
|
||||
* A server streaming RPC call. The client provides exactly one input message
|
||||
* but the server may respond with 0, 1, or more messages.
|
||||
*/
|
||||
class ServerStreamingCall {
|
||||
constructor(method, requestHeaders, request, headers, response, status, trailers) {
|
||||
this.method = method;
|
||||
this.requestHeaders = requestHeaders;
|
||||
this.request = request;
|
||||
this.headers = headers;
|
||||
this.responses = response;
|
||||
this.status = status;
|
||||
this.trailers = trailers;
|
||||
}
|
||||
/**
|
||||
* Instead of awaiting the response status and trailers, you can
|
||||
* just as well await this call itself to receive the server outcome.
|
||||
* You should first setup some listeners to the `request` to
|
||||
* see the actual messages the server replied with.
|
||||
*/
|
||||
then(onfulfilled, onrejected) {
|
||||
return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));
|
||||
}
|
||||
promiseFinished() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let [headers, status, trailers] = yield Promise.all([this.headers, this.status, this.trailers]);
|
||||
return {
|
||||
method: this.method,
|
||||
requestHeaders: this.requestHeaders,
|
||||
request: this.request,
|
||||
headers,
|
||||
status,
|
||||
trailers,
|
||||
};
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.ServerStreamingCall = ServerStreamingCall;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6892:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.ServiceType = void 0;
|
||||
const reflection_info_1 = __nccwpck_require__(2496);
|
||||
class ServiceType {
|
||||
constructor(typeName, methods, options) {
|
||||
this.typeName = typeName;
|
||||
this.methods = methods.map(i => reflection_info_1.normalizeMethodInfo(i, this));
|
||||
this.options = options !== null && options !== void 0 ? options : {};
|
||||
}
|
||||
}
|
||||
exports.ServiceType = ServiceType;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9122:
|
||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.TestTransport = void 0;
|
||||
const rpc_error_1 = __nccwpck_require__(8636);
|
||||
const runtime_1 = __nccwpck_require__(8886);
|
||||
const rpc_output_stream_1 = __nccwpck_require__(2726);
|
||||
const rpc_options_1 = __nccwpck_require__(8576);
|
||||
const unary_call_1 = __nccwpck_require__(9288);
|
||||
const server_streaming_call_1 = __nccwpck_require__(6173);
|
||||
const client_streaming_call_1 = __nccwpck_require__(7889);
|
||||
const duplex_streaming_call_1 = __nccwpck_require__(6826);
|
||||
/**
|
||||
* Transport for testing.
|
||||
*/
|
||||
class TestTransport {
|
||||
/**
|
||||
* Initialize with mock data. Omitted fields have default value.
|
||||
*/
|
||||
constructor(data) {
|
||||
/**
|
||||
* Suppress warning / error about uncaught rejections of
|
||||
* "status" and "trailers".
|
||||
*/
|
||||
this.suppressUncaughtRejections = true;
|
||||
this.headerDelay = 10;
|
||||
this.responseDelay = 50;
|
||||
this.betweenResponseDelay = 10;
|
||||
this.afterResponseDelay = 10;
|
||||
this.data = data !== null && data !== void 0 ? data : {};
|
||||
}
|
||||
/**
|
||||
* Sent message(s) during the last operation.
|
||||
*/
|
||||
get sentMessages() {
|
||||
if (this.lastInput instanceof TestInputStream) {
|
||||
return this.lastInput.sent;
|
||||
}
|
||||
else if (typeof this.lastInput == "object") {
|
||||
return [this.lastInput.single];
|
||||
}
|
||||
return [];
|
||||
}
|
||||
/**
|
||||
* Sending message(s) completed?
|
||||
*/
|
||||
get sendComplete() {
|
||||
if (this.lastInput instanceof TestInputStream) {
|
||||
return this.lastInput.completed;
|
||||
}
|
||||
else if (typeof this.lastInput == "object") {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
// Creates a promise for response headers from the mock data.
|
||||
promiseHeaders() {
|
||||
var _a;
|
||||
const headers = (_a = this.data.headers) !== null && _a !== void 0 ? _a : TestTransport.defaultHeaders;
|
||||
return headers instanceof rpc_error_1.RpcError
|
||||
? Promise.reject(headers)
|
||||
: Promise.resolve(headers);
|
||||
}
|
||||
// Creates a promise for a single, valid, message from the mock data.
|
||||
promiseSingleResponse(method) {
|
||||
if (this.data.response instanceof rpc_error_1.RpcError) {
|
||||
return Promise.reject(this.data.response);
|
||||
}
|
||||
let r;
|
||||
if (Array.isArray(this.data.response)) {
|
||||
runtime_1.assert(this.data.response.length > 0);
|
||||
r = this.data.response[0];
|
||||
}
|
||||
else if (this.data.response !== undefined) {
|
||||
r = this.data.response;
|
||||
}
|
||||
else {
|
||||
r = method.O.create();
|
||||
}
|
||||
runtime_1.assert(method.O.is(r));
|
||||
return Promise.resolve(r);
|
||||
}
|
||||
/**
|
||||
* Pushes response messages from the mock data to the output stream.
|
||||
* If an error response, status or trailers are mocked, the stream is
|
||||
* closed with the respective error.
|
||||
* Otherwise, stream is completed successfully.
|
||||
*
|
||||
* The returned promise resolves when the stream is closed. It should
|
||||
* not reject. If it does, code is broken.
|
||||
*/
|
||||
streamResponses(method, stream, abort) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
// normalize "data.response" into an array of valid output messages
|
||||
const messages = [];
|
||||
if (this.data.response === undefined) {
|
||||
messages.push(method.O.create());
|
||||
}
|
||||
else if (Array.isArray(this.data.response)) {
|
||||
for (let msg of this.data.response) {
|
||||
runtime_1.assert(method.O.is(msg));
|
||||
messages.push(msg);
|
||||
}
|
||||
}
|
||||
else if (!(this.data.response instanceof rpc_error_1.RpcError)) {
|
||||
runtime_1.assert(method.O.is(this.data.response));
|
||||
messages.push(this.data.response);
|
||||
}
|
||||
// start the stream with an initial delay.
|
||||
// if the request is cancelled, notify() error and exit.
|
||||
try {
|
||||
yield delay(this.responseDelay, abort)(undefined);
|
||||
}
|
||||
catch (error) {
|
||||
stream.notifyError(error);
|
||||
return;
|
||||
}
|
||||
// if error response was mocked, notify() error (stream is now closed with error) and exit.
|
||||
if (this.data.response instanceof rpc_error_1.RpcError) {
|
||||
stream.notifyError(this.data.response);
|
||||
return;
|
||||
}
|
||||
// regular response messages were mocked. notify() them.
|
||||
for (let msg of messages) {
|
||||
stream.notifyMessage(msg);
|
||||
// add a short delay between responses
|
||||
// if the request is cancelled, notify() error and exit.
|
||||
try {
|
||||
yield delay(this.betweenResponseDelay, abort)(undefined);
|
||||
}
|
||||
catch (error) {
|
||||
stream.notifyError(error);
|
||||
return;
|
||||
}
|
||||
}
|
||||
// error status was mocked, notify() error (stream is now closed with error) and exit.
|
||||
if (this.data.status instanceof rpc_error_1.RpcError) {
|
||||
stream.notifyError(this.data.status);
|
||||
return;
|
||||
}
|
||||
// error trailers were mocked, notify() error (stream is now closed with error) and exit.
|
||||
if (this.data.trailers instanceof rpc_error_1.RpcError) {
|
||||
stream.notifyError(this.data.trailers);
|
||||
return;
|
||||
}
|
||||
// stream completed successfully
|
||||
stream.notifyComplete();
|
||||
});
|
||||
}
|
||||
// Creates a promise for response status from the mock data.
|
||||
promiseStatus() {
|
||||
var _a;
|
||||
const status = (_a = this.data.status) !== null && _a !== void 0 ? _a : TestTransport.defaultStatus;
|
||||
return status instanceof rpc_error_1.RpcError
|
||||
? Promise.reject(status)
|
||||
: Promise.resolve(status);
|
||||
}
|
||||
// Creates a promise for response trailers from the mock data.
|
||||
promiseTrailers() {
|
||||
var _a;
|
||||
const trailers = (_a = this.data.trailers) !== null && _a !== void 0 ? _a : TestTransport.defaultTrailers;
|
||||
return trailers instanceof rpc_error_1.RpcError
|
||||
? Promise.reject(trailers)
|
||||
: Promise.resolve(trailers);
|
||||
}
|
||||
maybeSuppressUncaught(...promise) {
|
||||
if (this.suppressUncaughtRejections) {
|
||||
for (let p of promise) {
|
||||
p.catch(() => {
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
mergeOptions(options) {
|
||||
return rpc_options_1.mergeRpcOptions({}, options);
|
||||
}
|
||||
unary(method, input, options) {
|
||||
var _a;
|
||||
const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()
|
||||
.then(delay(this.headerDelay, options.abort)), responsePromise = headersPromise
|
||||
.catch(_ => {
|
||||
})
|
||||
.then(delay(this.responseDelay, options.abort))
|
||||
.then(_ => this.promiseSingleResponse(method)), statusPromise = responsePromise
|
||||
.catch(_ => {
|
||||
})
|
||||
.then(delay(this.afterResponseDelay, options.abort))
|
||||
.then(_ => this.promiseStatus()), trailersPromise = responsePromise
|
||||
.catch(_ => {
|
||||
})
|
||||
.then(delay(this.afterResponseDelay, options.abort))
|
||||
.then(_ => this.promiseTrailers());
|
||||
this.maybeSuppressUncaught(statusPromise, trailersPromise);
|
||||
this.lastInput = { single: input };
|
||||
return new unary_call_1.UnaryCall(method, requestHeaders, input, headersPromise, responsePromise, statusPromise, trailersPromise);
|
||||
}
|
||||
serverStreaming(method, input, options) {
|
||||
var _a;
|
||||
const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()
|
||||
.then(delay(this.headerDelay, options.abort)), outputStream = new rpc_output_stream_1.RpcOutputStreamController(), responseStreamClosedPromise = headersPromise
|
||||
.then(delay(this.responseDelay, options.abort))
|
||||
.catch(() => {
|
||||
})
|
||||
.then(() => this.streamResponses(method, outputStream, options.abort))
|
||||
.then(delay(this.afterResponseDelay, options.abort)), statusPromise = responseStreamClosedPromise
|
||||
.then(() => this.promiseStatus()), trailersPromise = responseStreamClosedPromise
|
||||
.then(() => this.promiseTrailers());
|
||||
this.maybeSuppressUncaught(statusPromise, trailersPromise);
|
||||
this.lastInput = { single: input };
|
||||
return new server_streaming_call_1.ServerStreamingCall(method, requestHeaders, input, headersPromise, outputStream, statusPromise, trailersPromise);
|
||||
}
|
||||
clientStreaming(method, options) {
|
||||
var _a;
|
||||
const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()
|
||||
.then(delay(this.headerDelay, options.abort)), responsePromise = headersPromise
|
||||
.catch(_ => {
|
||||
})
|
||||
.then(delay(this.responseDelay, options.abort))
|
||||
.then(_ => this.promiseSingleResponse(method)), statusPromise = responsePromise
|
||||
.catch(_ => {
|
||||
})
|
||||
.then(delay(this.afterResponseDelay, options.abort))
|
||||
.then(_ => this.promiseStatus()), trailersPromise = responsePromise
|
||||
.catch(_ => {
|
||||
})
|
||||
.then(delay(this.afterResponseDelay, options.abort))
|
||||
.then(_ => this.promiseTrailers());
|
||||
this.maybeSuppressUncaught(statusPromise, trailersPromise);
|
||||
this.lastInput = new TestInputStream(this.data, options.abort);
|
||||
return new client_streaming_call_1.ClientStreamingCall(method, requestHeaders, this.lastInput, headersPromise, responsePromise, statusPromise, trailersPromise);
|
||||
}
|
||||
duplex(method, options) {
|
||||
var _a;
|
||||
const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()
|
||||
.then(delay(this.headerDelay, options.abort)), outputStream = new rpc_output_stream_1.RpcOutputStreamController(), responseStreamClosedPromise = headersPromise
|
||||
.then(delay(this.responseDelay, options.abort))
|
||||
.catch(() => {
|
||||
})
|
||||
.then(() => this.streamResponses(method, outputStream, options.abort))
|
||||
.then(delay(this.afterResponseDelay, options.abort)), statusPromise = responseStreamClosedPromise
|
||||
.then(() => this.promiseStatus()), trailersPromise = responseStreamClosedPromise
|
||||
.then(() => this.promiseTrailers());
|
||||
this.maybeSuppressUncaught(statusPromise, trailersPromise);
|
||||
this.lastInput = new TestInputStream(this.data, options.abort);
|
||||
return new duplex_streaming_call_1.DuplexStreamingCall(method, requestHeaders, this.lastInput, headersPromise, outputStream, statusPromise, trailersPromise);
|
||||
}
|
||||
}
|
||||
exports.TestTransport = TestTransport;
|
||||
TestTransport.defaultHeaders = {
|
||||
responseHeader: "test"
|
||||
};
|
||||
TestTransport.defaultStatus = {
|
||||
code: "OK", detail: "all good"
|
||||
};
|
||||
TestTransport.defaultTrailers = {
|
||||
responseTrailer: "test"
|
||||
};
|
||||
function delay(ms, abort) {
|
||||
return (v) => new Promise((resolve, reject) => {
|
||||
if (abort === null || abort === void 0 ? void 0 : abort.aborted) {
|
||||
reject(new rpc_error_1.RpcError("user cancel", "CANCELLED"));
|
||||
}
|
||||
else {
|
||||
const id = setTimeout(() => resolve(v), ms);
|
||||
if (abort) {
|
||||
abort.addEventListener("abort", ev => {
|
||||
clearTimeout(id);
|
||||
reject(new rpc_error_1.RpcError("user cancel", "CANCELLED"));
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
class TestInputStream {
|
||||
constructor(data, abort) {
|
||||
this._completed = false;
|
||||
this._sent = [];
|
||||
this.data = data;
|
||||
this.abort = abort;
|
||||
}
|
||||
get sent() {
|
||||
return this._sent;
|
||||
}
|
||||
get completed() {
|
||||
return this._completed;
|
||||
}
|
||||
send(message) {
|
||||
if (this.data.inputMessage instanceof rpc_error_1.RpcError) {
|
||||
return Promise.reject(this.data.inputMessage);
|
||||
}
|
||||
const delayMs = this.data.inputMessage === undefined
|
||||
? 10
|
||||
: this.data.inputMessage;
|
||||
return Promise.resolve(undefined)
|
||||
.then(() => {
|
||||
this._sent.push(message);
|
||||
})
|
||||
.then(delay(delayMs, this.abort));
|
||||
}
|
||||
complete() {
|
||||
if (this.data.inputComplete instanceof rpc_error_1.RpcError) {
|
||||
return Promise.reject(this.data.inputComplete);
|
||||
}
|
||||
const delayMs = this.data.inputComplete === undefined
|
||||
? 10
|
||||
: this.data.inputComplete;
|
||||
return Promise.resolve(undefined)
|
||||
.then(() => {
|
||||
this._completed = true;
|
||||
})
|
||||
.then(delay(delayMs, this.abort));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9288:
|
||||
/***/ (function(__unused_webpack_module, exports) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.UnaryCall = void 0;
|
||||
/**
|
||||
* A unary RPC call. Unary means there is exactly one input message and
|
||||
* exactly one output message unless an error occurred.
|
||||
*/
|
||||
class UnaryCall {
|
||||
constructor(method, requestHeaders, request, headers, response, status, trailers) {
|
||||
this.method = method;
|
||||
this.requestHeaders = requestHeaders;
|
||||
this.request = request;
|
||||
this.headers = headers;
|
||||
this.response = response;
|
||||
this.status = status;
|
||||
this.trailers = trailers;
|
||||
}
|
||||
/**
|
||||
* If you are only interested in the final outcome of this call,
|
||||
* you can await it to receive a `FinishedUnaryCall`.
|
||||
*/
|
||||
then(onfulfilled, onrejected) {
|
||||
return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));
|
||||
}
|
||||
promiseFinished() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let [headers, response, status, trailers] = yield Promise.all([this.headers, this.response, this.status, this.trailers]);
|
||||
return {
|
||||
method: this.method,
|
||||
requestHeaders: this.requestHeaders,
|
||||
request: this.request,
|
||||
headers,
|
||||
response,
|
||||
status,
|
||||
trailers
|
||||
};
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.UnaryCall = UnaryCall;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8602:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.assertFloat32 = exports.assertUInt32 = exports.assertInt32 = exports.assertNever = exports.assert = void 0;
|
||||
/**
|
||||
* assert that condition is true or throw error (with message)
|
||||
*/
|
||||
function assert(condition, msg) {
|
||||
if (!condition) {
|
||||
throw new Error(msg);
|
||||
}
|
||||
}
|
||||
exports.assert = assert;
|
||||
/**
|
||||
* assert that value cannot exist = type `never`. throw runtime error if it does.
|
||||
*/
|
||||
function assertNever(value, msg) {
|
||||
throw new Error(msg !== null && msg !== void 0 ? msg : 'Unexpected object: ' + value);
|
||||
}
|
||||
exports.assertNever = assertNever;
|
||||
const FLOAT32_MAX = 3.4028234663852886e+38, FLOAT32_MIN = -3.4028234663852886e+38, UINT32_MAX = 0xFFFFFFFF, INT32_MAX = 0X7FFFFFFF, INT32_MIN = -0X80000000;
|
||||
function assertInt32(arg) {
|
||||
if (typeof arg !== "number")
|
||||
throw new Error('invalid int 32: ' + typeof arg);
|
||||
if (!Number.isInteger(arg) || arg > INT32_MAX || arg < INT32_MIN)
|
||||
throw new Error('invalid int 32: ' + arg);
|
||||
}
|
||||
exports.assertInt32 = assertInt32;
|
||||
function assertUInt32(arg) {
|
||||
if (typeof arg !== "number")
|
||||
throw new Error('invalid uint 32: ' + typeof arg);
|
||||
if (!Number.isInteger(arg) || arg > UINT32_MAX || arg < 0)
|
||||
throw new Error('invalid uint 32: ' + arg);
|
||||
}
|
||||
exports.assertUInt32 = assertUInt32;
|
||||
function assertFloat32(arg) {
|
||||
if (typeof arg !== "number")
|
||||
throw new Error('invalid float 32: ' + typeof arg);
|
||||
if (!Number.isFinite(arg))
|
||||
return;
|
||||
if (arg > FLOAT32_MAX || arg < FLOAT32_MIN)
|
||||
throw new Error('invalid float 32: ' + arg);
|
||||
}
|
||||
exports.assertFloat32 = assertFloat32;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6335:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.base64encode = exports.base64decode = void 0;
|
||||
// lookup table from base64 character to byte
|
||||
let encTable = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');
|
||||
// lookup table from base64 character *code* to byte because lookup by number is fast
|
||||
let decTable = [];
|
||||
for (let i = 0; i < encTable.length; i++)
|
||||
decTable[encTable[i].charCodeAt(0)] = i;
|
||||
// support base64url variants
|
||||
decTable["-".charCodeAt(0)] = encTable.indexOf("+");
|
||||
decTable["_".charCodeAt(0)] = encTable.indexOf("/");
|
||||
/**
|
||||
* Decodes a base64 string to a byte array.
|
||||
*
|
||||
* - ignores white-space, including line breaks and tabs
|
||||
* - allows inner padding (can decode concatenated base64 strings)
|
||||
* - does not require padding
|
||||
* - understands base64url encoding:
|
||||
* "-" instead of "+",
|
||||
* "_" instead of "/",
|
||||
* no padding
|
||||
*/
|
||||
function base64decode(base64Str) {
|
||||
// estimate byte size, not accounting for inner padding and whitespace
|
||||
let es = base64Str.length * 3 / 4;
|
||||
// if (es % 3 !== 0)
|
||||
// throw new Error('invalid base64 string');
|
||||
if (base64Str[base64Str.length - 2] == '=')
|
||||
es -= 2;
|
||||
else if (base64Str[base64Str.length - 1] == '=')
|
||||
es -= 1;
|
||||
let bytes = new Uint8Array(es), bytePos = 0, // position in byte array
|
||||
groupPos = 0, // position in base64 group
|
||||
b, // current byte
|
||||
p = 0 // previous byte
|
||||
;
|
||||
for (let i = 0; i < base64Str.length; i++) {
|
||||
b = decTable[base64Str.charCodeAt(i)];
|
||||
if (b === undefined) {
|
||||
// noinspection FallThroughInSwitchStatementJS
|
||||
switch (base64Str[i]) {
|
||||
case '=':
|
||||
groupPos = 0; // reset state when padding found
|
||||
case '\n':
|
||||
case '\r':
|
||||
case '\t':
|
||||
case ' ':
|
||||
continue; // skip white-space, and padding
|
||||
default:
|
||||
throw Error(`invalid base64 string.`);
|
||||
}
|
||||
}
|
||||
switch (groupPos) {
|
||||
case 0:
|
||||
p = b;
|
||||
groupPos = 1;
|
||||
break;
|
||||
case 1:
|
||||
bytes[bytePos++] = p << 2 | (b & 48) >> 4;
|
||||
p = b;
|
||||
groupPos = 2;
|
||||
break;
|
||||
case 2:
|
||||
bytes[bytePos++] = (p & 15) << 4 | (b & 60) >> 2;
|
||||
p = b;
|
||||
groupPos = 3;
|
||||
break;
|
||||
case 3:
|
||||
bytes[bytePos++] = (p & 3) << 6 | b;
|
||||
groupPos = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (groupPos == 1)
|
||||
throw Error(`invalid base64 string.`);
|
||||
return bytes.subarray(0, bytePos);
|
||||
}
|
||||
exports.base64decode = base64decode;
|
||||
/**
|
||||
* Encodes a byte array to a base64 string.
|
||||
* Adds padding at the end.
|
||||
* Does not insert newlines.
|
||||
*/
|
||||
function base64encode(bytes) {
|
||||
let base64 = '', groupPos = 0, // position in base64 group
|
||||
b, // current byte
|
||||
p = 0; // carry over from previous byte
|
||||
for (let i = 0; i < bytes.length; i++) {
|
||||
b = bytes[i];
|
||||
switch (groupPos) {
|
||||
case 0:
|
||||
base64 += encTable[b >> 2];
|
||||
p = (b & 3) << 4;
|
||||
groupPos = 1;
|
||||
break;
|
||||
case 1:
|
||||
base64 += encTable[p | b >> 4];
|
||||
p = (b & 15) << 2;
|
||||
groupPos = 2;
|
||||
break;
|
||||
case 2:
|
||||
base64 += encTable[p | b >> 6];
|
||||
base64 += encTable[b & 63];
|
||||
groupPos = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
// padding required?
|
||||
if (groupPos) {
|
||||
base64 += encTable[p];
|
||||
base64 += '=';
|
||||
if (groupPos == 1)
|
||||
base64 += '=';
|
||||
}
|
||||
return base64;
|
||||
}
|
||||
exports.base64encode = base64encode;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4816:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.WireType = exports.mergeBinaryOptions = exports.UnknownFieldHandler = void 0;
|
||||
/**
|
||||
* This handler implements the default behaviour for unknown fields.
|
||||
* When reading data, unknown fields are stored on the message, in a
|
||||
* symbol property.
|
||||
* When writing data, the symbol property is queried and unknown fields
|
||||
* are serialized into the output again.
|
||||
*/
|
||||
var UnknownFieldHandler;
|
||||
(function (UnknownFieldHandler) {
|
||||
/**
|
||||
* The symbol used to store unknown fields for a message.
|
||||
* The property must conform to `UnknownFieldContainer`.
|
||||
*/
|
||||
UnknownFieldHandler.symbol = Symbol.for("protobuf-ts/unknown");
|
||||
/**
|
||||
* Store an unknown field during binary read directly on the message.
|
||||
* This method is compatible with `BinaryReadOptions.readUnknownField`.
|
||||
*/
|
||||
UnknownFieldHandler.onRead = (typeName, message, fieldNo, wireType, data) => {
|
||||
let container = is(message) ? message[UnknownFieldHandler.symbol] : message[UnknownFieldHandler.symbol] = [];
|
||||
container.push({ no: fieldNo, wireType, data });
|
||||
};
|
||||
/**
|
||||
* Write unknown fields stored for the message to the writer.
|
||||
* This method is compatible with `BinaryWriteOptions.writeUnknownFields`.
|
||||
*/
|
||||
UnknownFieldHandler.onWrite = (typeName, message, writer) => {
|
||||
for (let { no, wireType, data } of UnknownFieldHandler.list(message))
|
||||
writer.tag(no, wireType).raw(data);
|
||||
};
|
||||
/**
|
||||
* List unknown fields stored for the message.
|
||||
* Note that there may be multiples fields with the same number.
|
||||
*/
|
||||
UnknownFieldHandler.list = (message, fieldNo) => {
|
||||
if (is(message)) {
|
||||
let all = message[UnknownFieldHandler.symbol];
|
||||
return fieldNo ? all.filter(uf => uf.no == fieldNo) : all;
|
||||
}
|
||||
return [];
|
||||
};
|
||||
/**
|
||||
* Returns the last unknown field by field number.
|
||||
*/
|
||||
UnknownFieldHandler.last = (message, fieldNo) => UnknownFieldHandler.list(message, fieldNo).slice(-1)[0];
|
||||
const is = (message) => message && Array.isArray(message[UnknownFieldHandler.symbol]);
|
||||
})(UnknownFieldHandler = exports.UnknownFieldHandler || (exports.UnknownFieldHandler = {}));
|
||||
/**
|
||||
* Merges binary write or read options. Later values override earlier values.
|
||||
*/
|
||||
function mergeBinaryOptions(a, b) {
|
||||
return Object.assign(Object.assign({}, a), b);
|
||||
}
|
||||
exports.mergeBinaryOptions = mergeBinaryOptions;
|
||||
/**
|
||||
* Protobuf binary format wire types.
|
||||
*
|
||||
* A wire type provides just enough information to find the length of the
|
||||
* following value.
|
||||
*
|
||||
* See https://developers.google.com/protocol-buffers/docs/encoding#structure
|
||||
*/
|
||||
var WireType;
|
||||
(function (WireType) {
|
||||
/**
|
||||
* Used for int32, int64, uint32, uint64, sint32, sint64, bool, enum
|
||||
*/
|
||||
WireType[WireType["Varint"] = 0] = "Varint";
|
||||
/**
|
||||
* Used for fixed64, sfixed64, double.
|
||||
* Always 8 bytes with little-endian byte order.
|
||||
*/
|
||||
WireType[WireType["Bit64"] = 1] = "Bit64";
|
||||
/**
|
||||
* Used for string, bytes, embedded messages, packed repeated fields
|
||||
*
|
||||
* Only repeated numeric types (types which use the varint, 32-bit,
|
||||
* or 64-bit wire types) can be packed. In proto3, such fields are
|
||||
* packed by default.
|
||||
*/
|
||||
WireType[WireType["LengthDelimited"] = 2] = "LengthDelimited";
|
||||
/**
|
||||
* Used for groups
|
||||
* @deprecated
|
||||
*/
|
||||
WireType[WireType["StartGroup"] = 3] = "StartGroup";
|
||||
/**
|
||||
* Used for groups
|
||||
* @deprecated
|
||||
*/
|
||||
WireType[WireType["EndGroup"] = 4] = "EndGroup";
|
||||
/**
|
||||
* Used for fixed32, sfixed32, float.
|
||||
* Always 4 bytes with little-endian byte order.
|
||||
*/
|
||||
WireType[WireType["Bit32"] = 5] = "Bit32";
|
||||
})(WireType = exports.WireType || (exports.WireType = {}));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2889:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.BinaryReader = exports.binaryReadOptions = void 0;
|
||||
const binary_format_contract_1 = __nccwpck_require__(4816);
|
||||
const pb_long_1 = __nccwpck_require__(1753);
|
||||
const goog_varint_1 = __nccwpck_require__(3223);
|
||||
const defaultsRead = {
|
||||
readUnknownField: true,
|
||||
readerFactory: bytes => new BinaryReader(bytes),
|
||||
};
|
||||
/**
|
||||
* Make options for reading binary data form partial options.
|
||||
*/
|
||||
function binaryReadOptions(options) {
|
||||
return options ? Object.assign(Object.assign({}, defaultsRead), options) : defaultsRead;
|
||||
}
|
||||
exports.binaryReadOptions = binaryReadOptions;
|
||||
class BinaryReader {
|
||||
constructor(buf, textDecoder) {
|
||||
this.varint64 = goog_varint_1.varint64read; // dirty cast for `this`
|
||||
/**
|
||||
* Read a `uint32` field, an unsigned 32 bit varint.
|
||||
*/
|
||||
this.uint32 = goog_varint_1.varint32read; // dirty cast for `this` and access to protected `buf`
|
||||
this.buf = buf;
|
||||
this.len = buf.length;
|
||||
this.pos = 0;
|
||||
this.view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);
|
||||
this.textDecoder = textDecoder !== null && textDecoder !== void 0 ? textDecoder : new TextDecoder("utf-8", {
|
||||
fatal: true,
|
||||
ignoreBOM: true,
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Reads a tag - field number and wire type.
|
||||
*/
|
||||
tag() {
|
||||
let tag = this.uint32(), fieldNo = tag >>> 3, wireType = tag & 7;
|
||||
if (fieldNo <= 0 || wireType < 0 || wireType > 5)
|
||||
throw new Error("illegal tag: field no " + fieldNo + " wire type " + wireType);
|
||||
return [fieldNo, wireType];
|
||||
}
|
||||
/**
|
||||
* Skip one element on the wire and return the skipped data.
|
||||
* Supports WireType.StartGroup since v2.0.0-alpha.23.
|
||||
*/
|
||||
skip(wireType) {
|
||||
let start = this.pos;
|
||||
// noinspection FallThroughInSwitchStatementJS
|
||||
switch (wireType) {
|
||||
case binary_format_contract_1.WireType.Varint:
|
||||
while (this.buf[this.pos++] & 0x80) {
|
||||
// ignore
|
||||
}
|
||||
break;
|
||||
case binary_format_contract_1.WireType.Bit64:
|
||||
this.pos += 4;
|
||||
case binary_format_contract_1.WireType.Bit32:
|
||||
this.pos += 4;
|
||||
break;
|
||||
case binary_format_contract_1.WireType.LengthDelimited:
|
||||
let len = this.uint32();
|
||||
this.pos += len;
|
||||
break;
|
||||
case binary_format_contract_1.WireType.StartGroup:
|
||||
// From descriptor.proto: Group type is deprecated, not supported in proto3.
|
||||
// But we must still be able to parse and treat as unknown.
|
||||
let t;
|
||||
while ((t = this.tag()[1]) !== binary_format_contract_1.WireType.EndGroup) {
|
||||
this.skip(t);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw new Error("cant skip wire type " + wireType);
|
||||
}
|
||||
this.assertBounds();
|
||||
return this.buf.subarray(start, this.pos);
|
||||
}
|
||||
/**
|
||||
* Throws error if position in byte array is out of range.
|
||||
*/
|
||||
assertBounds() {
|
||||
if (this.pos > this.len)
|
||||
throw new RangeError("premature EOF");
|
||||
}
|
||||
/**
|
||||
* Read a `int32` field, a signed 32 bit varint.
|
||||
*/
|
||||
int32() {
|
||||
return this.uint32() | 0;
|
||||
}
|
||||
/**
|
||||
* Read a `sint32` field, a signed, zigzag-encoded 32-bit varint.
|
||||
*/
|
||||
sint32() {
|
||||
let zze = this.uint32();
|
||||
// decode zigzag
|
||||
return (zze >>> 1) ^ -(zze & 1);
|
||||
}
|
||||
/**
|
||||
* Read a `int64` field, a signed 64-bit varint.
|
||||
*/
|
||||
int64() {
|
||||
return new pb_long_1.PbLong(...this.varint64());
|
||||
}
|
||||
/**
|
||||
* Read a `uint64` field, an unsigned 64-bit varint.
|
||||
*/
|
||||
uint64() {
|
||||
return new pb_long_1.PbULong(...this.varint64());
|
||||
}
|
||||
/**
|
||||
* Read a `sint64` field, a signed, zig-zag-encoded 64-bit varint.
|
||||
*/
|
||||
sint64() {
|
||||
let [lo, hi] = this.varint64();
|
||||
// decode zig zag
|
||||
let s = -(lo & 1);
|
||||
lo = ((lo >>> 1 | (hi & 1) << 31) ^ s);
|
||||
hi = (hi >>> 1 ^ s);
|
||||
return new pb_long_1.PbLong(lo, hi);
|
||||
}
|
||||
/**
|
||||
* Read a `bool` field, a variant.
|
||||
*/
|
||||
bool() {
|
||||
let [lo, hi] = this.varint64();
|
||||
return lo !== 0 || hi !== 0;
|
||||
}
|
||||
/**
|
||||
* Read a `fixed32` field, an unsigned, fixed-length 32-bit integer.
|
||||
*/
|
||||
fixed32() {
|
||||
return this.view.getUint32((this.pos += 4) - 4, true);
|
||||
}
|
||||
/**
|
||||
* Read a `sfixed32` field, a signed, fixed-length 32-bit integer.
|
||||
*/
|
||||
sfixed32() {
|
||||
return this.view.getInt32((this.pos += 4) - 4, true);
|
||||
}
|
||||
/**
|
||||
* Read a `fixed64` field, an unsigned, fixed-length 64 bit integer.
|
||||
*/
|
||||
fixed64() {
|
||||
return new pb_long_1.PbULong(this.sfixed32(), this.sfixed32());
|
||||
}
|
||||
/**
|
||||
* Read a `fixed64` field, a signed, fixed-length 64-bit integer.
|
||||
*/
|
||||
sfixed64() {
|
||||
return new pb_long_1.PbLong(this.sfixed32(), this.sfixed32());
|
||||
}
|
||||
/**
|
||||
* Read a `float` field, 32-bit floating point number.
|
||||
*/
|
||||
float() {
|
||||
return this.view.getFloat32((this.pos += 4) - 4, true);
|
||||
}
|
||||
/**
|
||||
* Read a `double` field, a 64-bit floating point number.
|
||||
*/
|
||||
double() {
|
||||
return this.view.getFloat64((this.pos += 8) - 8, true);
|
||||
}
|
||||
/**
|
||||
* Read a `bytes` field, length-delimited arbitrary data.
|
||||
*/
|
||||
bytes() {
|
||||
let len = this.uint32();
|
||||
let start = this.pos;
|
||||
this.pos += len;
|
||||
this.assertBounds();
|
||||
return this.buf.subarray(start, start + len);
|
||||
}
|
||||
/**
|
||||
* Read a `string` field, length-delimited data converted to UTF-8 text.
|
||||
*/
|
||||
string() {
|
||||
return this.textDecoder.decode(this.bytes());
|
||||
}
|
||||
}
|
||||
exports.BinaryReader = BinaryReader;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3957:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.BinaryWriter = exports.binaryWriteOptions = void 0;
|
||||
const pb_long_1 = __nccwpck_require__(1753);
|
||||
const goog_varint_1 = __nccwpck_require__(3223);
|
||||
const assert_1 = __nccwpck_require__(8602);
|
||||
const defaultsWrite = {
|
||||
writeUnknownFields: true,
|
||||
writerFactory: () => new BinaryWriter(),
|
||||
};
|
||||
/**
|
||||
* Make options for writing binary data form partial options.
|
||||
*/
|
||||
function binaryWriteOptions(options) {
|
||||
return options ? Object.assign(Object.assign({}, defaultsWrite), options) : defaultsWrite;
|
||||
}
|
||||
exports.binaryWriteOptions = binaryWriteOptions;
|
||||
class BinaryWriter {
|
||||
constructor(textEncoder) {
|
||||
/**
|
||||
* Previous fork states.
|
||||
*/
|
||||
this.stack = [];
|
||||
this.textEncoder = textEncoder !== null && textEncoder !== void 0 ? textEncoder : new TextEncoder();
|
||||
this.chunks = [];
|
||||
this.buf = [];
|
||||
}
|
||||
/**
|
||||
* Return all bytes written and reset this writer.
|
||||
*/
|
||||
finish() {
|
||||
this.chunks.push(new Uint8Array(this.buf)); // flush the buffer
|
||||
let len = 0;
|
||||
for (let i = 0; i < this.chunks.length; i++)
|
||||
len += this.chunks[i].length;
|
||||
let bytes = new Uint8Array(len);
|
||||
let offset = 0;
|
||||
for (let i = 0; i < this.chunks.length; i++) {
|
||||
bytes.set(this.chunks[i], offset);
|
||||
offset += this.chunks[i].length;
|
||||
}
|
||||
this.chunks = [];
|
||||
return bytes;
|
||||
}
|
||||
/**
|
||||
* Start a new fork for length-delimited data like a message
|
||||
* or a packed repeated field.
|
||||
*
|
||||
* Must be joined later with `join()`.
|
||||
*/
|
||||
fork() {
|
||||
this.stack.push({ chunks: this.chunks, buf: this.buf });
|
||||
this.chunks = [];
|
||||
this.buf = [];
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* Join the last fork. Write its length and bytes, then
|
||||
* return to the previous state.
|
||||
*/
|
||||
join() {
|
||||
// get chunk of fork
|
||||
let chunk = this.finish();
|
||||
// restore previous state
|
||||
let prev = this.stack.pop();
|
||||
if (!prev)
|
||||
throw new Error('invalid state, fork stack empty');
|
||||
this.chunks = prev.chunks;
|
||||
this.buf = prev.buf;
|
||||
// write length of chunk as varint
|
||||
this.uint32(chunk.byteLength);
|
||||
return this.raw(chunk);
|
||||
}
|
||||
/**
|
||||
* Writes a tag (field number and wire type).
|
||||
*
|
||||
* Equivalent to `uint32( (fieldNo << 3 | type) >>> 0 )`.
|
||||
*
|
||||
* Generated code should compute the tag ahead of time and call `uint32()`.
|
||||
*/
|
||||
tag(fieldNo, type) {
|
||||
return this.uint32((fieldNo << 3 | type) >>> 0);
|
||||
}
|
||||
/**
|
||||
* Write a chunk of raw bytes.
|
||||
*/
|
||||
raw(chunk) {
|
||||
if (this.buf.length) {
|
||||
this.chunks.push(new Uint8Array(this.buf));
|
||||
this.buf = [];
|
||||
}
|
||||
this.chunks.push(chunk);
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* Write a `uint32` value, an unsigned 32 bit varint.
|
||||
*/
|
||||
uint32(value) {
|
||||
assert_1.assertUInt32(value);
|
||||
// write value as varint 32, inlined for speed
|
||||
while (value > 0x7f) {
|
||||
this.buf.push((value & 0x7f) | 0x80);
|
||||
value = value >>> 7;
|
||||
}
|
||||
this.buf.push(value);
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* Write a `int32` value, a signed 32 bit varint.
|
||||
*/
|
||||
int32(value) {
|
||||
assert_1.assertInt32(value);
|
||||
goog_varint_1.varint32write(value, this.buf);
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* Write a `bool` value, a variant.
|
||||
*/
|
||||
bool(value) {
|
||||
this.buf.push(value ? 1 : 0);
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* Write a `bytes` value, length-delimited arbitrary data.
|
||||
*/
|
||||
bytes(value) {
|
||||
this.uint32(value.byteLength); // write length of chunk as varint
|
||||
return this.raw(value);
|
||||
}
|
||||
/**
|
||||
* Write a `string` value, length-delimited data converted to UTF-8 text.
|
||||
*/
|
||||
string(value) {
|
||||
let chunk = this.textEncoder.encode(value);
|
||||
this.uint32(chunk.byteLength); // write length of chunk as varint
|
||||
return this.raw(chunk);
|
||||
}
|
||||
/**
|
||||
* Write a `float` value, 32-bit floating point number.
|
||||
*/
|
||||
float(value) {
|
||||
assert_1.assertFloat32(value);
|
||||
let chunk = new Uint8Array(4);
|
||||
new DataView(chunk.buffer).setFloat32(0, value, true);
|
||||
return this.raw(chunk);
|
||||
}
|
||||
/**
|
||||
* Write a `double` value, a 64-bit floating point number.
|
||||
*/
|
||||
double(value) {
|
||||
let chunk = new Uint8Array(8);
|
||||
new DataView(chunk.buffer).setFloat64(0, value, true);
|
||||
return this.raw(chunk);
|
||||
}
|
||||
/**
|
||||
* Write a `fixed32` value, an unsigned, fixed-length 32-bit integer.
|
||||
*/
|
||||
fixed32(value) {
|
||||
assert_1.assertUInt32(value);
|
||||
let chunk = new Uint8Array(4);
|
||||
new DataView(chunk.buffer).setUint32(0, value, true);
|
||||
return this.raw(chunk);
|
||||
}
|
||||
/**
|
||||
* Write a `sfixed32` value, a signed, fixed-length 32-bit integer.
|
||||
*/
|
||||
sfixed32(value) {
|
||||
assert_1.assertInt32(value);
|
||||
let chunk = new Uint8Array(4);
|
||||
new DataView(chunk.buffer).setInt32(0, value, true);
|
||||
return this.raw(chunk);
|
||||
}
|
||||
/**
|
||||
* Write a `sint32` value, a signed, zigzag-encoded 32-bit varint.
|
||||
*/
|
||||
sint32(value) {
|
||||
assert_1.assertInt32(value);
|
||||
// zigzag encode
|
||||
value = ((value << 1) ^ (value >> 31)) >>> 0;
|
||||
goog_varint_1.varint32write(value, this.buf);
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* Write a `fixed64` value, a signed, fixed-length 64-bit integer.
|
||||
*/
|
||||
sfixed64(value) {
|
||||
let chunk = new Uint8Array(8);
|
||||
let view = new DataView(chunk.buffer);
|
||||
let long = pb_long_1.PbLong.from(value);
|
||||
view.setInt32(0, long.lo, true);
|
||||
view.setInt32(4, long.hi, true);
|
||||
return this.raw(chunk);
|
||||
}
|
||||
/**
|
||||
* Write a `fixed64` value, an unsigned, fixed-length 64 bit integer.
|
||||
*/
|
||||
fixed64(value) {
|
||||
let chunk = new Uint8Array(8);
|
||||
let view = new DataView(chunk.buffer);
|
||||
let long = pb_long_1.PbULong.from(value);
|
||||
view.setInt32(0, long.lo, true);
|
||||
view.setInt32(4, long.hi, true);
|
||||
return this.raw(chunk);
|
||||
}
|
||||
/**
|
||||
* Write a `int64` value, a signed 64-bit varint.
|
||||
*/
|
||||
int64(value) {
|
||||
let long = pb_long_1.PbLong.from(value);
|
||||
goog_varint_1.varint64write(long.lo, long.hi, this.buf);
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* Write a `sint64` value, a signed, zig-zag-encoded 64-bit varint.
|
||||
*/
|
||||
sint64(value) {
|
||||
let long = pb_long_1.PbLong.from(value),
|
||||
// zigzag encode
|
||||
sign = long.hi >> 31, lo = (long.lo << 1) ^ sign, hi = ((long.hi << 1) | (long.lo >>> 31)) ^ sign;
|
||||
goog_varint_1.varint64write(lo, hi, this.buf);
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* Write a `uint64` value, an unsigned 64-bit varint.
|
||||
*/
|
||||
uint64(value) {
|
||||
let long = pb_long_1.PbULong.from(value);
|
||||
goog_varint_1.varint64write(long.lo, long.hi, this.buf);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
exports.BinaryWriter = BinaryWriter;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 257:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.listEnumNumbers = exports.listEnumNames = exports.listEnumValues = exports.isEnumObject = void 0;
|
||||
/**
|
||||
* Is this a lookup object generated by Typescript, for a Typescript enum
|
||||
* generated by protobuf-ts?
|
||||
*
|
||||
* - No `const enum` (enum must not be inlined, we need reverse mapping).
|
||||
* - No string enum (we need int32 for protobuf).
|
||||
* - Must have a value for 0 (otherwise, we would need to support custom default values).
|
||||
*/
|
||||
function isEnumObject(arg) {
|
||||
if (typeof arg != 'object' || arg === null) {
|
||||
return false;
|
||||
}
|
||||
if (!arg.hasOwnProperty(0)) {
|
||||
return false;
|
||||
}
|
||||
for (let k of Object.keys(arg)) {
|
||||
let num = parseInt(k);
|
||||
if (!Number.isNaN(num)) {
|
||||
// is there a name for the number?
|
||||
let nam = arg[num];
|
||||
if (nam === undefined)
|
||||
return false;
|
||||
// does the name resolve back to the number?
|
||||
if (arg[nam] !== num)
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
// is there a number for the name?
|
||||
let num = arg[k];
|
||||
if (num === undefined)
|
||||
return false;
|
||||
// is it a string enum?
|
||||
if (typeof num !== 'number')
|
||||
return false;
|
||||
// do we know the number?
|
||||
if (arg[num] === undefined)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
exports.isEnumObject = isEnumObject;
|
||||
/**
|
||||
* Lists all values of a Typescript enum, as an array of objects with a "name"
|
||||
* property and a "number" property.
|
||||
*
|
||||
* Note that it is possible that a number appears more than once, because it is
|
||||
* possible to have aliases in an enum.
|
||||
*
|
||||
* Throws if the enum does not adhere to the rules of enums generated by
|
||||
* protobuf-ts. See `isEnumObject()`.
|
||||
*/
|
||||
function listEnumValues(enumObject) {
|
||||
if (!isEnumObject(enumObject))
|
||||
throw new Error("not a typescript enum object");
|
||||
let values = [];
|
||||
for (let [name, number] of Object.entries(enumObject))
|
||||
if (typeof number == "number")
|
||||
values.push({ name, number });
|
||||
return values;
|
||||
}
|
||||
exports.listEnumValues = listEnumValues;
|
||||
/**
|
||||
* Lists the names of a Typescript enum.
|
||||
*
|
||||
* Throws if the enum does not adhere to the rules of enums generated by
|
||||
* protobuf-ts. See `isEnumObject()`.
|
||||
*/
|
||||
function listEnumNames(enumObject) {
|
||||
return listEnumValues(enumObject).map(val => val.name);
|
||||
}
|
||||
exports.listEnumNames = listEnumNames;
|
||||
/**
|
||||
* Lists the numbers of a Typescript enum.
|
||||
*
|
||||
* Throws if the enum does not adhere to the rules of enums generated by
|
||||
* protobuf-ts. See `isEnumObject()`.
|
||||
*/
|
||||
function listEnumNumbers(enumObject) {
|
||||
return listEnumValues(enumObject)
|
||||
.map(val => val.number)
|
||||
.filter((num, index, arr) => arr.indexOf(num) == index);
|
||||
}
|
||||
exports.listEnumNumbers = listEnumNumbers;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3223:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Code generated by the Protocol Buffer compiler is owned by the owner
|
||||
// of the input file used when generating it. This code is not
|
||||
// standalone and requires a support library to be linked with it. This
|
||||
// support library is itself covered by the above license.
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.varint32read = exports.varint32write = exports.int64toString = exports.int64fromString = exports.varint64write = exports.varint64read = void 0;
|
||||
/**
|
||||
* Read a 64 bit varint as two JS numbers.
|
||||
*
|
||||
* Returns tuple:
|
||||
* [0]: low bits
|
||||
* [0]: high bits
|
||||
*
|
||||
* Copyright 2008 Google Inc. All rights reserved.
|
||||
*
|
||||
* See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175
|
||||
*/
|
||||
function varint64read() {
|
||||
let lowBits = 0;
|
||||
let highBits = 0;
|
||||
for (let shift = 0; shift < 28; shift += 7) {
|
||||
let b = this.buf[this.pos++];
|
||||
lowBits |= (b & 0x7F) << shift;
|
||||
if ((b & 0x80) == 0) {
|
||||
this.assertBounds();
|
||||
return [lowBits, highBits];
|
||||
}
|
||||
}
|
||||
let middleByte = this.buf[this.pos++];
|
||||
// last four bits of the first 32 bit number
|
||||
lowBits |= (middleByte & 0x0F) << 28;
|
||||
// 3 upper bits are part of the next 32 bit number
|
||||
highBits = (middleByte & 0x70) >> 4;
|
||||
if ((middleByte & 0x80) == 0) {
|
||||
this.assertBounds();
|
||||
return [lowBits, highBits];
|
||||
}
|
||||
for (let shift = 3; shift <= 31; shift += 7) {
|
||||
let b = this.buf[this.pos++];
|
||||
highBits |= (b & 0x7F) << shift;
|
||||
if ((b & 0x80) == 0) {
|
||||
this.assertBounds();
|
||||
return [lowBits, highBits];
|
||||
}
|
||||
}
|
||||
throw new Error('invalid varint');
|
||||
}
|
||||
exports.varint64read = varint64read;
|
||||
/**
|
||||
* Write a 64 bit varint, given as two JS numbers, to the given bytes array.
|
||||
*
|
||||
* Copyright 2008 Google Inc. All rights reserved.
|
||||
*
|
||||
* See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344
|
||||
*/
|
||||
function varint64write(lo, hi, bytes) {
|
||||
for (let i = 0; i < 28; i = i + 7) {
|
||||
const shift = lo >>> i;
|
||||
const hasNext = !((shift >>> 7) == 0 && hi == 0);
|
||||
const byte = (hasNext ? shift | 0x80 : shift) & 0xFF;
|
||||
bytes.push(byte);
|
||||
if (!hasNext) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
const splitBits = ((lo >>> 28) & 0x0F) | ((hi & 0x07) << 4);
|
||||
const hasMoreBits = !((hi >> 3) == 0);
|
||||
bytes.push((hasMoreBits ? splitBits | 0x80 : splitBits) & 0xFF);
|
||||
if (!hasMoreBits) {
|
||||
return;
|
||||
}
|
||||
for (let i = 3; i < 31; i = i + 7) {
|
||||
const shift = hi >>> i;
|
||||
const hasNext = !((shift >>> 7) == 0);
|
||||
const byte = (hasNext ? shift | 0x80 : shift) & 0xFF;
|
||||
bytes.push(byte);
|
||||
if (!hasNext) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
bytes.push((hi >>> 31) & 0x01);
|
||||
}
|
||||
exports.varint64write = varint64write;
|
||||
// constants for binary math
|
||||
const TWO_PWR_32_DBL = (1 << 16) * (1 << 16);
|
||||
/**
|
||||
* Parse decimal string of 64 bit integer value as two JS numbers.
|
||||
*
|
||||
* Returns tuple:
|
||||
* [0]: minus sign?
|
||||
* [1]: low bits
|
||||
* [2]: high bits
|
||||
*
|
||||
* Copyright 2008 Google Inc.
|
||||
*/
|
||||
function int64fromString(dec) {
|
||||
// Check for minus sign.
|
||||
let minus = dec[0] == '-';
|
||||
if (minus)
|
||||
dec = dec.slice(1);
|
||||
// Work 6 decimal digits at a time, acting like we're converting base 1e6
|
||||
// digits to binary. This is safe to do with floating point math because
|
||||
// Number.isSafeInteger(ALL_32_BITS * 1e6) == true.
|
||||
const base = 1e6;
|
||||
let lowBits = 0;
|
||||
let highBits = 0;
|
||||
function add1e6digit(begin, end) {
|
||||
// Note: Number('') is 0.
|
||||
const digit1e6 = Number(dec.slice(begin, end));
|
||||
highBits *= base;
|
||||
lowBits = lowBits * base + digit1e6;
|
||||
// Carry bits from lowBits to highBits
|
||||
if (lowBits >= TWO_PWR_32_DBL) {
|
||||
highBits = highBits + ((lowBits / TWO_PWR_32_DBL) | 0);
|
||||
lowBits = lowBits % TWO_PWR_32_DBL;
|
||||
}
|
||||
}
|
||||
add1e6digit(-24, -18);
|
||||
add1e6digit(-18, -12);
|
||||
add1e6digit(-12, -6);
|
||||
add1e6digit(-6);
|
||||
return [minus, lowBits, highBits];
|
||||
}
|
||||
exports.int64fromString = int64fromString;
|
||||
/**
|
||||
* Format 64 bit integer value (as two JS numbers) to decimal string.
|
||||
*
|
||||
* Copyright 2008 Google Inc.
|
||||
*/
|
||||
function int64toString(bitsLow, bitsHigh) {
|
||||
// Skip the expensive conversion if the number is small enough to use the
|
||||
// built-in conversions.
|
||||
if ((bitsHigh >>> 0) <= 0x1FFFFF) {
|
||||
return '' + (TWO_PWR_32_DBL * bitsHigh + (bitsLow >>> 0));
|
||||
}
|
||||
// What this code is doing is essentially converting the input number from
|
||||
// base-2 to base-1e7, which allows us to represent the 64-bit range with
|
||||
// only 3 (very large) digits. Those digits are then trivial to convert to
|
||||
// a base-10 string.
|
||||
// The magic numbers used here are -
|
||||
// 2^24 = 16777216 = (1,6777216) in base-1e7.
|
||||
// 2^48 = 281474976710656 = (2,8147497,6710656) in base-1e7.
|
||||
// Split 32:32 representation into 16:24:24 representation so our
|
||||
// intermediate digits don't overflow.
|
||||
let low = bitsLow & 0xFFFFFF;
|
||||
let mid = (((bitsLow >>> 24) | (bitsHigh << 8)) >>> 0) & 0xFFFFFF;
|
||||
let high = (bitsHigh >> 16) & 0xFFFF;
|
||||
// Assemble our three base-1e7 digits, ignoring carries. The maximum
|
||||
// value in a digit at this step is representable as a 48-bit integer, which
|
||||
// can be stored in a 64-bit floating point number.
|
||||
let digitA = low + (mid * 6777216) + (high * 6710656);
|
||||
let digitB = mid + (high * 8147497);
|
||||
let digitC = (high * 2);
|
||||
// Apply carries from A to B and from B to C.
|
||||
let base = 10000000;
|
||||
if (digitA >= base) {
|
||||
digitB += Math.floor(digitA / base);
|
||||
digitA %= base;
|
||||
}
|
||||
if (digitB >= base) {
|
||||
digitC += Math.floor(digitB / base);
|
||||
digitB %= base;
|
||||
}
|
||||
// Convert base-1e7 digits to base-10, with optional leading zeroes.
|
||||
function decimalFrom1e7(digit1e7, needLeadingZeros) {
|
||||
let partial = digit1e7 ? String(digit1e7) : '';
|
||||
if (needLeadingZeros) {
|
||||
return '0000000'.slice(partial.length) + partial;
|
||||
}
|
||||
return partial;
|
||||
}
|
||||
return decimalFrom1e7(digitC, /*needLeadingZeros=*/ 0) +
|
||||
decimalFrom1e7(digitB, /*needLeadingZeros=*/ digitC) +
|
||||
// If the final 1e7 digit didn't need leading zeros, we would have
|
||||
// returned via the trivial code path at the top.
|
||||
decimalFrom1e7(digitA, /*needLeadingZeros=*/ 1);
|
||||
}
|
||||
exports.int64toString = int64toString;
|
||||
/**
|
||||
* Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)`
|
||||
*
|
||||
* Copyright 2008 Google Inc. All rights reserved.
|
||||
*
|
||||
* See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144
|
||||
*/
|
||||
function varint32write(value, bytes) {
|
||||
if (value >= 0) {
|
||||
// write value as varint 32
|
||||
while (value > 0x7f) {
|
||||
bytes.push((value & 0x7f) | 0x80);
|
||||
value = value >>> 7;
|
||||
}
|
||||
bytes.push(value);
|
||||
}
|
||||
else {
|
||||
for (let i = 0; i < 9; i++) {
|
||||
bytes.push(value & 127 | 128);
|
||||
value = value >> 7;
|
||||
}
|
||||
bytes.push(1);
|
||||
}
|
||||
}
|
||||
exports.varint32write = varint32write;
|
||||
/**
|
||||
* Read an unsigned 32 bit varint.
|
||||
*
|
||||
* See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220
|
||||
*/
|
||||
function varint32read() {
|
||||
let b = this.buf[this.pos++];
|
||||
let result = b & 0x7F;
|
||||
if ((b & 0x80) == 0) {
|
||||
this.assertBounds();
|
||||
return result;
|
||||
}
|
||||
b = this.buf[this.pos++];
|
||||
result |= (b & 0x7F) << 7;
|
||||
if ((b & 0x80) == 0) {
|
||||
this.assertBounds();
|
||||
return result;
|
||||
}
|
||||
b = this.buf[this.pos++];
|
||||
result |= (b & 0x7F) << 14;
|
||||
if ((b & 0x80) == 0) {
|
||||
this.assertBounds();
|
||||
return result;
|
||||
}
|
||||
b = this.buf[this.pos++];
|
||||
result |= (b & 0x7F) << 21;
|
||||
if ((b & 0x80) == 0) {
|
||||
this.assertBounds();
|
||||
return result;
|
||||
}
|
||||
// Extract only last 4 bits
|
||||
b = this.buf[this.pos++];
|
||||
result |= (b & 0x0F) << 28;
|
||||
for (let readBytes = 5; ((b & 0x80) !== 0) && readBytes < 10; readBytes++)
|
||||
b = this.buf[this.pos++];
|
||||
if ((b & 0x80) != 0)
|
||||
throw new Error('invalid varint');
|
||||
this.assertBounds();
|
||||
// Result can have 32 bits, convert it to unsigned
|
||||
return result >>> 0;
|
||||
}
|
||||
exports.varint32read = varint32read;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8886:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
// Public API of the protobuf-ts runtime.
|
||||
// Note: we do not use `export * from ...` to help tree shakers,
|
||||
// webpack verbose output hints that this should be useful
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
// Convenience JSON typings and corresponding type guards
|
||||
var json_typings_1 = __nccwpck_require__(9999);
|
||||
Object.defineProperty(exports, "typeofJsonValue", ({ enumerable: true, get: function () { return json_typings_1.typeofJsonValue; } }));
|
||||
Object.defineProperty(exports, "isJsonObject", ({ enumerable: true, get: function () { return json_typings_1.isJsonObject; } }));
|
||||
// Base 64 encoding
|
||||
var base64_1 = __nccwpck_require__(6335);
|
||||
Object.defineProperty(exports, "base64decode", ({ enumerable: true, get: function () { return base64_1.base64decode; } }));
|
||||
Object.defineProperty(exports, "base64encode", ({ enumerable: true, get: function () { return base64_1.base64encode; } }));
|
||||
// UTF8 encoding
|
||||
var protobufjs_utf8_1 = __nccwpck_require__(8950);
|
||||
Object.defineProperty(exports, "utf8read", ({ enumerable: true, get: function () { return protobufjs_utf8_1.utf8read; } }));
|
||||
// Binary format contracts, options for reading and writing, for example
|
||||
var binary_format_contract_1 = __nccwpck_require__(4816);
|
||||
Object.defineProperty(exports, "WireType", ({ enumerable: true, get: function () { return binary_format_contract_1.WireType; } }));
|
||||
Object.defineProperty(exports, "mergeBinaryOptions", ({ enumerable: true, get: function () { return binary_format_contract_1.mergeBinaryOptions; } }));
|
||||
Object.defineProperty(exports, "UnknownFieldHandler", ({ enumerable: true, get: function () { return binary_format_contract_1.UnknownFieldHandler; } }));
|
||||
// Standard IBinaryReader implementation
|
||||
var binary_reader_1 = __nccwpck_require__(2889);
|
||||
Object.defineProperty(exports, "BinaryReader", ({ enumerable: true, get: function () { return binary_reader_1.BinaryReader; } }));
|
||||
Object.defineProperty(exports, "binaryReadOptions", ({ enumerable: true, get: function () { return binary_reader_1.binaryReadOptions; } }));
|
||||
// Standard IBinaryWriter implementation
|
||||
var binary_writer_1 = __nccwpck_require__(3957);
|
||||
Object.defineProperty(exports, "BinaryWriter", ({ enumerable: true, get: function () { return binary_writer_1.BinaryWriter; } }));
|
||||
Object.defineProperty(exports, "binaryWriteOptions", ({ enumerable: true, get: function () { return binary_writer_1.binaryWriteOptions; } }));
|
||||
// Int64 and UInt64 implementations required for the binary format
|
||||
var pb_long_1 = __nccwpck_require__(1753);
|
||||
Object.defineProperty(exports, "PbLong", ({ enumerable: true, get: function () { return pb_long_1.PbLong; } }));
|
||||
Object.defineProperty(exports, "PbULong", ({ enumerable: true, get: function () { return pb_long_1.PbULong; } }));
|
||||
// JSON format contracts, options for reading and writing, for example
|
||||
var json_format_contract_1 = __nccwpck_require__(9367);
|
||||
Object.defineProperty(exports, "jsonReadOptions", ({ enumerable: true, get: function () { return json_format_contract_1.jsonReadOptions; } }));
|
||||
Object.defineProperty(exports, "jsonWriteOptions", ({ enumerable: true, get: function () { return json_format_contract_1.jsonWriteOptions; } }));
|
||||
Object.defineProperty(exports, "mergeJsonOptions", ({ enumerable: true, get: function () { return json_format_contract_1.mergeJsonOptions; } }));
|
||||
// Message type contract
|
||||
var message_type_contract_1 = __nccwpck_require__(3785);
|
||||
Object.defineProperty(exports, "MESSAGE_TYPE", ({ enumerable: true, get: function () { return message_type_contract_1.MESSAGE_TYPE; } }));
|
||||
// Message type implementation via reflection
|
||||
var message_type_1 = __nccwpck_require__(5106);
|
||||
Object.defineProperty(exports, "MessageType", ({ enumerable: true, get: function () { return message_type_1.MessageType; } }));
|
||||
// Reflection info, generated by the plugin, exposed to the user, used by reflection ops
|
||||
var reflection_info_1 = __nccwpck_require__(7910);
|
||||
Object.defineProperty(exports, "ScalarType", ({ enumerable: true, get: function () { return reflection_info_1.ScalarType; } }));
|
||||
Object.defineProperty(exports, "LongType", ({ enumerable: true, get: function () { return reflection_info_1.LongType; } }));
|
||||
Object.defineProperty(exports, "RepeatType", ({ enumerable: true, get: function () { return reflection_info_1.RepeatType; } }));
|
||||
Object.defineProperty(exports, "normalizeFieldInfo", ({ enumerable: true, get: function () { return reflection_info_1.normalizeFieldInfo; } }));
|
||||
Object.defineProperty(exports, "readFieldOptions", ({ enumerable: true, get: function () { return reflection_info_1.readFieldOptions; } }));
|
||||
Object.defineProperty(exports, "readFieldOption", ({ enumerable: true, get: function () { return reflection_info_1.readFieldOption; } }));
|
||||
Object.defineProperty(exports, "readMessageOption", ({ enumerable: true, get: function () { return reflection_info_1.readMessageOption; } }));
|
||||
// Message operations via reflection
|
||||
var reflection_type_check_1 = __nccwpck_require__(5167);
|
||||
Object.defineProperty(exports, "ReflectionTypeCheck", ({ enumerable: true, get: function () { return reflection_type_check_1.ReflectionTypeCheck; } }));
|
||||
var reflection_create_1 = __nccwpck_require__(5726);
|
||||
Object.defineProperty(exports, "reflectionCreate", ({ enumerable: true, get: function () { return reflection_create_1.reflectionCreate; } }));
|
||||
var reflection_scalar_default_1 = __nccwpck_require__(9526);
|
||||
Object.defineProperty(exports, "reflectionScalarDefault", ({ enumerable: true, get: function () { return reflection_scalar_default_1.reflectionScalarDefault; } }));
|
||||
var reflection_merge_partial_1 = __nccwpck_require__(8044);
|
||||
Object.defineProperty(exports, "reflectionMergePartial", ({ enumerable: true, get: function () { return reflection_merge_partial_1.reflectionMergePartial; } }));
|
||||
var reflection_equals_1 = __nccwpck_require__(4827);
|
||||
Object.defineProperty(exports, "reflectionEquals", ({ enumerable: true, get: function () { return reflection_equals_1.reflectionEquals; } }));
|
||||
var reflection_binary_reader_1 = __nccwpck_require__(9611);
|
||||
Object.defineProperty(exports, "ReflectionBinaryReader", ({ enumerable: true, get: function () { return reflection_binary_reader_1.ReflectionBinaryReader; } }));
|
||||
var reflection_binary_writer_1 = __nccwpck_require__(6907);
|
||||
Object.defineProperty(exports, "ReflectionBinaryWriter", ({ enumerable: true, get: function () { return reflection_binary_writer_1.ReflectionBinaryWriter; } }));
|
||||
var reflection_json_reader_1 = __nccwpck_require__(6790);
|
||||
Object.defineProperty(exports, "ReflectionJsonReader", ({ enumerable: true, get: function () { return reflection_json_reader_1.ReflectionJsonReader; } }));
|
||||
var reflection_json_writer_1 = __nccwpck_require__(1094);
|
||||
Object.defineProperty(exports, "ReflectionJsonWriter", ({ enumerable: true, get: function () { return reflection_json_writer_1.ReflectionJsonWriter; } }));
|
||||
var reflection_contains_message_type_1 = __nccwpck_require__(7565);
|
||||
Object.defineProperty(exports, "containsMessageType", ({ enumerable: true, get: function () { return reflection_contains_message_type_1.containsMessageType; } }));
|
||||
// Oneof helpers
|
||||
var oneof_1 = __nccwpck_require__(8063);
|
||||
Object.defineProperty(exports, "isOneofGroup", ({ enumerable: true, get: function () { return oneof_1.isOneofGroup; } }));
|
||||
Object.defineProperty(exports, "setOneofValue", ({ enumerable: true, get: function () { return oneof_1.setOneofValue; } }));
|
||||
Object.defineProperty(exports, "getOneofValue", ({ enumerable: true, get: function () { return oneof_1.getOneofValue; } }));
|
||||
Object.defineProperty(exports, "clearOneofValue", ({ enumerable: true, get: function () { return oneof_1.clearOneofValue; } }));
|
||||
Object.defineProperty(exports, "getSelectedOneofValue", ({ enumerable: true, get: function () { return oneof_1.getSelectedOneofValue; } }));
|
||||
// Enum object type guard and reflection util, may be interesting to the user.
|
||||
var enum_object_1 = __nccwpck_require__(257);
|
||||
Object.defineProperty(exports, "listEnumValues", ({ enumerable: true, get: function () { return enum_object_1.listEnumValues; } }));
|
||||
Object.defineProperty(exports, "listEnumNames", ({ enumerable: true, get: function () { return enum_object_1.listEnumNames; } }));
|
||||
Object.defineProperty(exports, "listEnumNumbers", ({ enumerable: true, get: function () { return enum_object_1.listEnumNumbers; } }));
|
||||
Object.defineProperty(exports, "isEnumObject", ({ enumerable: true, get: function () { return enum_object_1.isEnumObject; } }));
|
||||
// lowerCamelCase() is exported for plugin, rpc-runtime and other rpc packages
|
||||
var lower_camel_case_1 = __nccwpck_require__(4073);
|
||||
Object.defineProperty(exports, "lowerCamelCase", ({ enumerable: true, get: function () { return lower_camel_case_1.lowerCamelCase; } }));
|
||||
// assertion functions are exported for plugin, may also be useful to user
|
||||
var assert_1 = __nccwpck_require__(8602);
|
||||
Object.defineProperty(exports, "assert", ({ enumerable: true, get: function () { return assert_1.assert; } }));
|
||||
Object.defineProperty(exports, "assertNever", ({ enumerable: true, get: function () { return assert_1.assertNever; } }));
|
||||
Object.defineProperty(exports, "assertInt32", ({ enumerable: true, get: function () { return assert_1.assertInt32; } }));
|
||||
Object.defineProperty(exports, "assertUInt32", ({ enumerable: true, get: function () { return assert_1.assertUInt32; } }));
|
||||
Object.defineProperty(exports, "assertFloat32", ({ enumerable: true, get: function () { return assert_1.assertFloat32; } }));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9367:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.mergeJsonOptions = exports.jsonWriteOptions = exports.jsonReadOptions = void 0;
|
||||
const defaultsWrite = {
|
||||
emitDefaultValues: false,
|
||||
enumAsInteger: false,
|
||||
useProtoFieldName: false,
|
||||
prettySpaces: 0,
|
||||
}, defaultsRead = {
|
||||
ignoreUnknownFields: false,
|
||||
};
|
||||
/**
|
||||
* Make options for reading JSON data from partial options.
|
||||
*/
|
||||
function jsonReadOptions(options) {
|
||||
return options ? Object.assign(Object.assign({}, defaultsRead), options) : defaultsRead;
|
||||
}
|
||||
exports.jsonReadOptions = jsonReadOptions;
|
||||
/**
|
||||
* Make options for writing JSON data from partial options.
|
||||
*/
|
||||
function jsonWriteOptions(options) {
|
||||
return options ? Object.assign(Object.assign({}, defaultsWrite), options) : defaultsWrite;
|
||||
}
|
||||
exports.jsonWriteOptions = jsonWriteOptions;
|
||||
/**
|
||||
* Merges JSON write or read options. Later values override earlier values. Type registries are merged.
|
||||
*/
|
||||
function mergeJsonOptions(a, b) {
|
||||
var _a, _b;
|
||||
let c = Object.assign(Object.assign({}, a), b);
|
||||
c.typeRegistry = [...((_a = a === null || a === void 0 ? void 0 : a.typeRegistry) !== null && _a !== void 0 ? _a : []), ...((_b = b === null || b === void 0 ? void 0 : b.typeRegistry) !== null && _b !== void 0 ? _b : [])];
|
||||
return c;
|
||||
}
|
||||
exports.mergeJsonOptions = mergeJsonOptions;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9999:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.isJsonObject = exports.typeofJsonValue = void 0;
|
||||
/**
|
||||
* Get the type of a JSON value.
|
||||
* Distinguishes between array, null and object.
|
||||
*/
|
||||
function typeofJsonValue(value) {
|
||||
let t = typeof value;
|
||||
if (t == "object") {
|
||||
if (Array.isArray(value))
|
||||
return "array";
|
||||
if (value === null)
|
||||
return "null";
|
||||
}
|
||||
return t;
|
||||
}
|
||||
exports.typeofJsonValue = typeofJsonValue;
|
||||
/**
|
||||
* Is this a JSON object (instead of an array or null)?
|
||||
*/
|
||||
function isJsonObject(value) {
|
||||
return value !== null && typeof value == "object" && !Array.isArray(value);
|
||||
}
|
||||
exports.isJsonObject = isJsonObject;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4073:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.lowerCamelCase = void 0;
|
||||
/**
|
||||
* Converts snake_case to lowerCamelCase.
|
||||
*
|
||||
* Should behave like protoc:
|
||||
* https://github.com/protocolbuffers/protobuf/blob/e8ae137c96444ea313485ed1118c5e43b2099cf1/src/google/protobuf/compiler/java/java_helpers.cc#L118
|
||||
*/
|
||||
function lowerCamelCase(snakeCase) {
|
||||
let capNext = false;
|
||||
const sb = [];
|
||||
for (let i = 0; i < snakeCase.length; i++) {
|
||||
let next = snakeCase.charAt(i);
|
||||
if (next == '_') {
|
||||
capNext = true;
|
||||
}
|
||||
else if (/\d/.test(next)) {
|
||||
sb.push(next);
|
||||
capNext = true;
|
||||
}
|
||||
else if (capNext) {
|
||||
sb.push(next.toUpperCase());
|
||||
capNext = false;
|
||||
}
|
||||
else if (i == 0) {
|
||||
sb.push(next.toLowerCase());
|
||||
}
|
||||
else {
|
||||
sb.push(next);
|
||||
}
|
||||
}
|
||||
return sb.join('');
|
||||
}
|
||||
exports.lowerCamelCase = lowerCamelCase;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3785:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.MESSAGE_TYPE = void 0;
|
||||
/**
|
||||
* The symbol used as a key on message objects to store the message type.
|
||||
*
|
||||
* Note that this is an experimental feature - it is here to stay, but
|
||||
* implementation details may change without notice.
|
||||
*/
|
||||
exports.MESSAGE_TYPE = Symbol.for("protobuf-ts/message-type");
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5106:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.MessageType = void 0;
|
||||
const message_type_contract_1 = __nccwpck_require__(3785);
|
||||
const reflection_info_1 = __nccwpck_require__(7910);
|
||||
const reflection_type_check_1 = __nccwpck_require__(5167);
|
||||
const reflection_json_reader_1 = __nccwpck_require__(6790);
|
||||
const reflection_json_writer_1 = __nccwpck_require__(1094);
|
||||
const reflection_binary_reader_1 = __nccwpck_require__(9611);
|
||||
const reflection_binary_writer_1 = __nccwpck_require__(6907);
|
||||
const reflection_create_1 = __nccwpck_require__(5726);
|
||||
const reflection_merge_partial_1 = __nccwpck_require__(8044);
|
||||
const json_typings_1 = __nccwpck_require__(9999);
|
||||
const json_format_contract_1 = __nccwpck_require__(9367);
|
||||
const reflection_equals_1 = __nccwpck_require__(4827);
|
||||
const binary_writer_1 = __nccwpck_require__(3957);
|
||||
const binary_reader_1 = __nccwpck_require__(2889);
|
||||
const baseDescriptors = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));
|
||||
/**
|
||||
* This standard message type provides reflection-based
|
||||
* operations to work with a message.
|
||||
*/
|
||||
class MessageType {
|
||||
constructor(name, fields, options) {
|
||||
this.defaultCheckDepth = 16;
|
||||
this.typeName = name;
|
||||
this.fields = fields.map(reflection_info_1.normalizeFieldInfo);
|
||||
this.options = options !== null && options !== void 0 ? options : {};
|
||||
this.messagePrototype = Object.create(null, Object.assign(Object.assign({}, baseDescriptors), { [message_type_contract_1.MESSAGE_TYPE]: { value: this } }));
|
||||
this.refTypeCheck = new reflection_type_check_1.ReflectionTypeCheck(this);
|
||||
this.refJsonReader = new reflection_json_reader_1.ReflectionJsonReader(this);
|
||||
this.refJsonWriter = new reflection_json_writer_1.ReflectionJsonWriter(this);
|
||||
this.refBinReader = new reflection_binary_reader_1.ReflectionBinaryReader(this);
|
||||
this.refBinWriter = new reflection_binary_writer_1.ReflectionBinaryWriter(this);
|
||||
}
|
||||
create(value) {
|
||||
let message = reflection_create_1.reflectionCreate(this);
|
||||
if (value !== undefined) {
|
||||
reflection_merge_partial_1.reflectionMergePartial(this, message, value);
|
||||
}
|
||||
return message;
|
||||
}
|
||||
/**
|
||||
* Clone the message.
|
||||
*
|
||||
* Unknown fields are discarded.
|
||||
*/
|
||||
clone(message) {
|
||||
let copy = this.create();
|
||||
reflection_merge_partial_1.reflectionMergePartial(this, copy, message);
|
||||
return copy;
|
||||
}
|
||||
/**
|
||||
* Determines whether two message of the same type have the same field values.
|
||||
* Checks for deep equality, traversing repeated fields, oneof groups, maps
|
||||
* and messages recursively.
|
||||
* Will also return true if both messages are `undefined`.
|
||||
*/
|
||||
equals(a, b) {
|
||||
return reflection_equals_1.reflectionEquals(this, a, b);
|
||||
}
|
||||
/**
|
||||
* Is the given value assignable to our message type
|
||||
* and contains no [excess properties](https://www.typescriptlang.org/docs/handbook/interfaces.html#excess-property-checks)?
|
||||
*/
|
||||
is(arg, depth = this.defaultCheckDepth) {
|
||||
return this.refTypeCheck.is(arg, depth, false);
|
||||
}
|
||||
/**
|
||||
* Is the given value assignable to our message type,
|
||||
* regardless of [excess properties](https://www.typescriptlang.org/docs/handbook/interfaces.html#excess-property-checks)?
|
||||
*/
|
||||
isAssignable(arg, depth = this.defaultCheckDepth) {
|
||||
return this.refTypeCheck.is(arg, depth, true);
|
||||
}
|
||||
/**
|
||||
* Copy partial data into the target message.
|
||||
*/
|
||||
mergePartial(target, source) {
|
||||
reflection_merge_partial_1.reflectionMergePartial(this, target, source);
|
||||
}
|
||||
/**
|
||||
* Create a new message from binary format.
|
||||
*/
|
||||
fromBinary(data, options) {
|
||||
let opt = binary_reader_1.binaryReadOptions(options);
|
||||
return this.internalBinaryRead(opt.readerFactory(data), data.byteLength, opt);
|
||||
}
|
||||
/**
|
||||
* Read a new message from a JSON value.
|
||||
*/
|
||||
fromJson(json, options) {
|
||||
return this.internalJsonRead(json, json_format_contract_1.jsonReadOptions(options));
|
||||
}
|
||||
/**
|
||||
* Read a new message from a JSON string.
|
||||
* This is equivalent to `T.fromJson(JSON.parse(json))`.
|
||||
*/
|
||||
fromJsonString(json, options) {
|
||||
let value = JSON.parse(json);
|
||||
return this.fromJson(value, options);
|
||||
}
|
||||
/**
|
||||
* Write the message to canonical JSON value.
|
||||
*/
|
||||
toJson(message, options) {
|
||||
return this.internalJsonWrite(message, json_format_contract_1.jsonWriteOptions(options));
|
||||
}
|
||||
/**
|
||||
* Convert the message to canonical JSON string.
|
||||
* This is equivalent to `JSON.stringify(T.toJson(t))`
|
||||
*/
|
||||
toJsonString(message, options) {
|
||||
var _a;
|
||||
let value = this.toJson(message, options);
|
||||
return JSON.stringify(value, null, (_a = options === null || options === void 0 ? void 0 : options.prettySpaces) !== null && _a !== void 0 ? _a : 0);
|
||||
}
|
||||
/**
|
||||
* Write the message to binary format.
|
||||
*/
|
||||
toBinary(message, options) {
|
||||
let opt = binary_writer_1.binaryWriteOptions(options);
|
||||
return this.internalBinaryWrite(message, opt.writerFactory(), opt).finish();
|
||||
}
|
||||
/**
|
||||
* This is an internal method. If you just want to read a message from
|
||||
* JSON, use `fromJson()` or `fromJsonString()`.
|
||||
*
|
||||
* Reads JSON value and merges the fields into the target
|
||||
* according to protobuf rules. If the target is omitted,
|
||||
* a new instance is created first.
|
||||
*/
|
||||
internalJsonRead(json, options, target) {
|
||||
if (json !== null && typeof json == "object" && !Array.isArray(json)) {
|
||||
let message = target !== null && target !== void 0 ? target : this.create();
|
||||
this.refJsonReader.read(json, message, options);
|
||||
return message;
|
||||
}
|
||||
throw new Error(`Unable to parse message ${this.typeName} from JSON ${json_typings_1.typeofJsonValue(json)}.`);
|
||||
}
|
||||
/**
|
||||
* This is an internal method. If you just want to write a message
|
||||
* to JSON, use `toJson()` or `toJsonString().
|
||||
*
|
||||
* Writes JSON value and returns it.
|
||||
*/
|
||||
internalJsonWrite(message, options) {
|
||||
return this.refJsonWriter.write(message, options);
|
||||
}
|
||||
/**
|
||||
* This is an internal method. If you just want to write a message
|
||||
* in binary format, use `toBinary()`.
|
||||
*
|
||||
* Serializes the message in binary format and appends it to the given
|
||||
* writer. Returns passed writer.
|
||||
*/
|
||||
internalBinaryWrite(message, writer, options) {
|
||||
this.refBinWriter.write(message, writer, options);
|
||||
return writer;
|
||||
}
|
||||
/**
|
||||
* This is an internal method. If you just want to read a message from
|
||||
* binary data, use `fromBinary()`.
|
||||
*
|
||||
* Reads data from binary format and merges the fields into
|
||||
* the target according to protobuf rules. If the target is
|
||||
* omitted, a new instance is created first.
|
||||
*/
|
||||
internalBinaryRead(reader, length, options, target) {
|
||||
let message = target !== null && target !== void 0 ? target : this.create();
|
||||
this.refBinReader.read(reader, message, options, length);
|
||||
return message;
|
||||
}
|
||||
}
|
||||
exports.MessageType = MessageType;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8063:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.getSelectedOneofValue = exports.clearOneofValue = exports.setUnknownOneofValue = exports.setOneofValue = exports.getOneofValue = exports.isOneofGroup = void 0;
|
||||
/**
|
||||
* Is the given value a valid oneof group?
|
||||
*
|
||||
* We represent protobuf `oneof` as algebraic data types (ADT) in generated
|
||||
* code. But when working with messages of unknown type, the ADT does not
|
||||
* help us.
|
||||
*
|
||||
* This type guard checks if the given object adheres to the ADT rules, which
|
||||
* are as follows:
|
||||
*
|
||||
* 1) Must be an object.
|
||||
*
|
||||
* 2) Must have a "oneofKind" discriminator property.
|
||||
*
|
||||
* 3) If "oneofKind" is `undefined`, no member field is selected. The object
|
||||
* must not have any other properties.
|
||||
*
|
||||
* 4) If "oneofKind" is a `string`, the member field with this name is
|
||||
* selected.
|
||||
*
|
||||
* 5) If a member field is selected, the object must have a second property
|
||||
* with this name. The property must not be `undefined`.
|
||||
*
|
||||
* 6) No extra properties are allowed. The object has either one property
|
||||
* (no selection) or two properties (selection).
|
||||
*
|
||||
*/
|
||||
function isOneofGroup(any) {
|
||||
if (typeof any != 'object' || any === null || !any.hasOwnProperty('oneofKind')) {
|
||||
return false;
|
||||
}
|
||||
switch (typeof any.oneofKind) {
|
||||
case "string":
|
||||
if (any[any.oneofKind] === undefined)
|
||||
return false;
|
||||
return Object.keys(any).length == 2;
|
||||
case "undefined":
|
||||
return Object.keys(any).length == 1;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
exports.isOneofGroup = isOneofGroup;
|
||||
/**
|
||||
* Returns the value of the given field in a oneof group.
|
||||
*/
|
||||
function getOneofValue(oneof, kind) {
|
||||
return oneof[kind];
|
||||
}
|
||||
exports.getOneofValue = getOneofValue;
|
||||
function setOneofValue(oneof, kind, value) {
|
||||
if (oneof.oneofKind !== undefined) {
|
||||
delete oneof[oneof.oneofKind];
|
||||
}
|
||||
oneof.oneofKind = kind;
|
||||
if (value !== undefined) {
|
||||
oneof[kind] = value;
|
||||
}
|
||||
}
|
||||
exports.setOneofValue = setOneofValue;
|
||||
function setUnknownOneofValue(oneof, kind, value) {
|
||||
if (oneof.oneofKind !== undefined) {
|
||||
delete oneof[oneof.oneofKind];
|
||||
}
|
||||
oneof.oneofKind = kind;
|
||||
if (value !== undefined && kind !== undefined) {
|
||||
oneof[kind] = value;
|
||||
}
|
||||
}
|
||||
exports.setUnknownOneofValue = setUnknownOneofValue;
|
||||
/**
|
||||
* Removes the selected field in a oneof group.
|
||||
*
|
||||
* Note that the recommended way to modify a oneof group is to set
|
||||
* a new object:
|
||||
*
|
||||
* ```ts
|
||||
* message.result = { oneofKind: undefined };
|
||||
* ```
|
||||
*/
|
||||
function clearOneofValue(oneof) {
|
||||
if (oneof.oneofKind !== undefined) {
|
||||
delete oneof[oneof.oneofKind];
|
||||
}
|
||||
oneof.oneofKind = undefined;
|
||||
}
|
||||
exports.clearOneofValue = clearOneofValue;
|
||||
/**
|
||||
* Returns the selected value of the given oneof group.
|
||||
*
|
||||
* Not that the recommended way to access a oneof group is to check
|
||||
* the "oneofKind" property and let TypeScript narrow down the union
|
||||
* type for you:
|
||||
*
|
||||
* ```ts
|
||||
* if (message.result.oneofKind === "error") {
|
||||
* message.result.error; // string
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* In the rare case you just need the value, and do not care about
|
||||
* which protobuf field is selected, you can use this function
|
||||
* for convenience.
|
||||
*/
|
||||
function getSelectedOneofValue(oneof) {
|
||||
if (oneof.oneofKind === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
return oneof[oneof.oneofKind];
|
||||
}
|
||||
exports.getSelectedOneofValue = getSelectedOneofValue;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1753:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.PbLong = exports.PbULong = exports.detectBi = void 0;
|
||||
const goog_varint_1 = __nccwpck_require__(3223);
|
||||
let BI;
|
||||
function detectBi() {
|
||||
const dv = new DataView(new ArrayBuffer(8));
|
||||
const ok = globalThis.BigInt !== undefined
|
||||
&& typeof dv.getBigInt64 === "function"
|
||||
&& typeof dv.getBigUint64 === "function"
|
||||
&& typeof dv.setBigInt64 === "function"
|
||||
&& typeof dv.setBigUint64 === "function";
|
||||
BI = ok ? {
|
||||
MIN: BigInt("-9223372036854775808"),
|
||||
MAX: BigInt("9223372036854775807"),
|
||||
UMIN: BigInt("0"),
|
||||
UMAX: BigInt("18446744073709551615"),
|
||||
C: BigInt,
|
||||
V: dv,
|
||||
} : undefined;
|
||||
}
|
||||
exports.detectBi = detectBi;
|
||||
detectBi();
|
||||
function assertBi(bi) {
|
||||
if (!bi)
|
||||
throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support");
|
||||
}
|
||||
// used to validate from(string) input (when bigint is unavailable)
|
||||
const RE_DECIMAL_STR = /^-?[0-9]+$/;
|
||||
// constants for binary math
|
||||
const TWO_PWR_32_DBL = 0x100000000;
|
||||
const HALF_2_PWR_32 = 0x080000000;
|
||||
// base class for PbLong and PbULong provides shared code
|
||||
class SharedPbLong {
|
||||
/**
|
||||
* Create a new instance with the given bits.
|
||||
*/
|
||||
constructor(lo, hi) {
|
||||
this.lo = lo | 0;
|
||||
this.hi = hi | 0;
|
||||
}
|
||||
/**
|
||||
* Is this instance equal to 0?
|
||||
*/
|
||||
isZero() {
|
||||
return this.lo == 0 && this.hi == 0;
|
||||
}
|
||||
/**
|
||||
* Convert to a native number.
|
||||
*/
|
||||
toNumber() {
|
||||
let result = this.hi * TWO_PWR_32_DBL + (this.lo >>> 0);
|
||||
if (!Number.isSafeInteger(result))
|
||||
throw new Error("cannot convert to safe number");
|
||||
return result;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 64-bit unsigned integer as two 32-bit values.
|
||||
* Converts between `string`, `number` and `bigint` representations.
|
||||
*/
|
||||
class PbULong extends SharedPbLong {
|
||||
/**
|
||||
* Create instance from a `string`, `number` or `bigint`.
|
||||
*/
|
||||
static from(value) {
|
||||
if (BI)
|
||||
// noinspection FallThroughInSwitchStatementJS
|
||||
switch (typeof value) {
|
||||
case "string":
|
||||
if (value == "0")
|
||||
return this.ZERO;
|
||||
if (value == "")
|
||||
throw new Error('string is no integer');
|
||||
value = BI.C(value);
|
||||
case "number":
|
||||
if (value === 0)
|
||||
return this.ZERO;
|
||||
value = BI.C(value);
|
||||
case "bigint":
|
||||
if (!value)
|
||||
return this.ZERO;
|
||||
if (value < BI.UMIN)
|
||||
throw new Error('signed value for ulong');
|
||||
if (value > BI.UMAX)
|
||||
throw new Error('ulong too large');
|
||||
BI.V.setBigUint64(0, value, true);
|
||||
return new PbULong(BI.V.getInt32(0, true), BI.V.getInt32(4, true));
|
||||
}
|
||||
else
|
||||
switch (typeof value) {
|
||||
case "string":
|
||||
if (value == "0")
|
||||
return this.ZERO;
|
||||
value = value.trim();
|
||||
if (!RE_DECIMAL_STR.test(value))
|
||||
throw new Error('string is no integer');
|
||||
let [minus, lo, hi] = goog_varint_1.int64fromString(value);
|
||||
if (minus)
|
||||
throw new Error('signed value for ulong');
|
||||
return new PbULong(lo, hi);
|
||||
case "number":
|
||||
if (value == 0)
|
||||
return this.ZERO;
|
||||
if (!Number.isSafeInteger(value))
|
||||
throw new Error('number is no integer');
|
||||
if (value < 0)
|
||||
throw new Error('signed value for ulong');
|
||||
return new PbULong(value, value / TWO_PWR_32_DBL);
|
||||
}
|
||||
throw new Error('unknown value ' + typeof value);
|
||||
}
|
||||
/**
|
||||
* Convert to decimal string.
|
||||
*/
|
||||
toString() {
|
||||
return BI ? this.toBigInt().toString() : goog_varint_1.int64toString(this.lo, this.hi);
|
||||
}
|
||||
/**
|
||||
* Convert to native bigint.
|
||||
*/
|
||||
toBigInt() {
|
||||
assertBi(BI);
|
||||
BI.V.setInt32(0, this.lo, true);
|
||||
BI.V.setInt32(4, this.hi, true);
|
||||
return BI.V.getBigUint64(0, true);
|
||||
}
|
||||
}
|
||||
exports.PbULong = PbULong;
|
||||
/**
|
||||
* ulong 0 singleton.
|
||||
*/
|
||||
PbULong.ZERO = new PbULong(0, 0);
|
||||
/**
|
||||
* 64-bit signed integer as two 32-bit values.
|
||||
* Converts between `string`, `number` and `bigint` representations.
|
||||
*/
|
||||
class PbLong extends SharedPbLong {
|
||||
/**
|
||||
* Create instance from a `string`, `number` or `bigint`.
|
||||
*/
|
||||
static from(value) {
|
||||
if (BI)
|
||||
// noinspection FallThroughInSwitchStatementJS
|
||||
switch (typeof value) {
|
||||
case "string":
|
||||
if (value == "0")
|
||||
return this.ZERO;
|
||||
if (value == "")
|
||||
throw new Error('string is no integer');
|
||||
value = BI.C(value);
|
||||
case "number":
|
||||
if (value === 0)
|
||||
return this.ZERO;
|
||||
value = BI.C(value);
|
||||
case "bigint":
|
||||
if (!value)
|
||||
return this.ZERO;
|
||||
if (value < BI.MIN)
|
||||
throw new Error('signed long too small');
|
||||
if (value > BI.MAX)
|
||||
throw new Error('signed long too large');
|
||||
BI.V.setBigInt64(0, value, true);
|
||||
return new PbLong(BI.V.getInt32(0, true), BI.V.getInt32(4, true));
|
||||
}
|
||||
else
|
||||
switch (typeof value) {
|
||||
case "string":
|
||||
if (value == "0")
|
||||
return this.ZERO;
|
||||
value = value.trim();
|
||||
if (!RE_DECIMAL_STR.test(value))
|
||||
throw new Error('string is no integer');
|
||||
let [minus, lo, hi] = goog_varint_1.int64fromString(value);
|
||||
if (minus) {
|
||||
if (hi > HALF_2_PWR_32 || (hi == HALF_2_PWR_32 && lo != 0))
|
||||
throw new Error('signed long too small');
|
||||
}
|
||||
else if (hi >= HALF_2_PWR_32)
|
||||
throw new Error('signed long too large');
|
||||
let pbl = new PbLong(lo, hi);
|
||||
return minus ? pbl.negate() : pbl;
|
||||
case "number":
|
||||
if (value == 0)
|
||||
return this.ZERO;
|
||||
if (!Number.isSafeInteger(value))
|
||||
throw new Error('number is no integer');
|
||||
return value > 0
|
||||
? new PbLong(value, value / TWO_PWR_32_DBL)
|
||||
: new PbLong(-value, -value / TWO_PWR_32_DBL).negate();
|
||||
}
|
||||
throw new Error('unknown value ' + typeof value);
|
||||
}
|
||||
/**
|
||||
* Do we have a minus sign?
|
||||
*/
|
||||
isNegative() {
|
||||
return (this.hi & HALF_2_PWR_32) !== 0;
|
||||
}
|
||||
/**
|
||||
* Negate two's complement.
|
||||
* Invert all the bits and add one to the result.
|
||||
*/
|
||||
negate() {
|
||||
let hi = ~this.hi, lo = this.lo;
|
||||
if (lo)
|
||||
lo = ~lo + 1;
|
||||
else
|
||||
hi += 1;
|
||||
return new PbLong(lo, hi);
|
||||
}
|
||||
/**
|
||||
* Convert to decimal string.
|
||||
*/
|
||||
toString() {
|
||||
if (BI)
|
||||
return this.toBigInt().toString();
|
||||
if (this.isNegative()) {
|
||||
let n = this.negate();
|
||||
return '-' + goog_varint_1.int64toString(n.lo, n.hi);
|
||||
}
|
||||
return goog_varint_1.int64toString(this.lo, this.hi);
|
||||
}
|
||||
/**
|
||||
* Convert to native bigint.
|
||||
*/
|
||||
toBigInt() {
|
||||
assertBi(BI);
|
||||
BI.V.setInt32(0, this.lo, true);
|
||||
BI.V.setInt32(4, this.hi, true);
|
||||
return BI.V.getBigInt64(0, true);
|
||||
}
|
||||
}
|
||||
exports.PbLong = PbLong;
|
||||
/**
|
||||
* long 0 singleton.
|
||||
*/
|
||||
PbLong.ZERO = new PbLong(0, 0);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8950:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
// Copyright (c) 2016, Daniel Wirtz All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
// * Neither the name of its author, nor the names of its contributors
|
||||
// may be used to endorse or promote products derived from this software
|
||||
// without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.utf8read = void 0;
|
||||
const fromCharCodes = (chunk) => String.fromCharCode.apply(String, chunk);
|
||||
/**
|
||||
* @deprecated This function will no longer be exported with the next major
|
||||
* release, since protobuf-ts has switch to TextDecoder API. If you need this
|
||||
* function, please migrate to @protobufjs/utf8. For context, see
|
||||
* https://github.com/timostamm/protobuf-ts/issues/184
|
||||
*
|
||||
* Reads UTF8 bytes as a string.
|
||||
*
|
||||
* See [protobufjs / utf8](https://github.com/protobufjs/protobuf.js/blob/9893e35b854621cce64af4bf6be2cff4fb892796/lib/utf8/index.js#L40)
|
||||
*
|
||||
* Copyright (c) 2016, Daniel Wirtz
|
||||
*/
|
||||
function utf8read(bytes) {
|
||||
if (bytes.length < 1)
|
||||
return "";
|
||||
let pos = 0, // position in bytes
|
||||
parts = [], chunk = [], i = 0, // char offset
|
||||
t; // temporary
|
||||
let len = bytes.length;
|
||||
while (pos < len) {
|
||||
t = bytes[pos++];
|
||||
if (t < 128)
|
||||
chunk[i++] = t;
|
||||
else if (t > 191 && t < 224)
|
||||
chunk[i++] = (t & 31) << 6 | bytes[pos++] & 63;
|
||||
else if (t > 239 && t < 365) {
|
||||
t = ((t & 7) << 18 | (bytes[pos++] & 63) << 12 | (bytes[pos++] & 63) << 6 | bytes[pos++] & 63) - 0x10000;
|
||||
chunk[i++] = 0xD800 + (t >> 10);
|
||||
chunk[i++] = 0xDC00 + (t & 1023);
|
||||
}
|
||||
else
|
||||
chunk[i++] = (t & 15) << 12 | (bytes[pos++] & 63) << 6 | bytes[pos++] & 63;
|
||||
if (i > 8191) {
|
||||
parts.push(fromCharCodes(chunk));
|
||||
i = 0;
|
||||
}
|
||||
}
|
||||
if (parts.length) {
|
||||
if (i)
|
||||
parts.push(fromCharCodes(chunk.slice(0, i)));
|
||||
return parts.join("");
|
||||
}
|
||||
return fromCharCodes(chunk.slice(0, i));
|
||||
}
|
||||
exports.utf8read = utf8read;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9611:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.ReflectionBinaryReader = void 0;
|
||||
const binary_format_contract_1 = __nccwpck_require__(4816);
|
||||
const reflection_info_1 = __nccwpck_require__(7910);
|
||||
const reflection_long_convert_1 = __nccwpck_require__(3402);
|
||||
const reflection_scalar_default_1 = __nccwpck_require__(9526);
|
||||
/**
|
||||
* Reads proto3 messages in binary format using reflection information.
|
||||
*
|
||||
* https://developers.google.com/protocol-buffers/docs/encoding
|
||||
*/
|
||||
class ReflectionBinaryReader {
|
||||
constructor(info) {
|
||||
this.info = info;
|
||||
}
|
||||
prepare() {
|
||||
var _a;
|
||||
if (!this.fieldNoToField) {
|
||||
const fieldsInput = (_a = this.info.fields) !== null && _a !== void 0 ? _a : [];
|
||||
this.fieldNoToField = new Map(fieldsInput.map(field => [field.no, field]));
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Reads a message from binary format into the target message.
|
||||
*
|
||||
* Repeated fields are appended. Map entries are added, overwriting
|
||||
* existing keys.
|
||||
*
|
||||
* If a message field is already present, it will be merged with the
|
||||
* new data.
|
||||
*/
|
||||
read(reader, message, options, length) {
|
||||
this.prepare();
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
// read the tag and find the field
|
||||
const [fieldNo, wireType] = reader.tag(), field = this.fieldNoToField.get(fieldNo);
|
||||
if (!field) {
|
||||
let u = options.readUnknownField;
|
||||
if (u == "throw")
|
||||
throw new Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.info.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? binary_format_contract_1.UnknownFieldHandler.onRead : u)(this.info.typeName, message, fieldNo, wireType, d);
|
||||
continue;
|
||||
}
|
||||
// target object for the field we are reading
|
||||
let target = message, repeated = field.repeat, localName = field.localName;
|
||||
// if field is member of oneof ADT, use ADT as target
|
||||
if (field.oneof) {
|
||||
target = target[field.oneof];
|
||||
// if other oneof member selected, set new ADT
|
||||
if (target.oneofKind !== localName)
|
||||
target = message[field.oneof] = {
|
||||
oneofKind: localName
|
||||
};
|
||||
}
|
||||
// we have handled oneof above, we just have read the value into `target[localName]`
|
||||
switch (field.kind) {
|
||||
case "scalar":
|
||||
case "enum":
|
||||
let T = field.kind == "enum" ? reflection_info_1.ScalarType.INT32 : field.T;
|
||||
let L = field.kind == "scalar" ? field.L : undefined;
|
||||
if (repeated) {
|
||||
let arr = target[localName]; // safe to assume presence of array, oneof cannot contain repeated values
|
||||
if (wireType == binary_format_contract_1.WireType.LengthDelimited && T != reflection_info_1.ScalarType.STRING && T != reflection_info_1.ScalarType.BYTES) {
|
||||
let e = reader.uint32() + reader.pos;
|
||||
while (reader.pos < e)
|
||||
arr.push(this.scalar(reader, T, L));
|
||||
}
|
||||
else
|
||||
arr.push(this.scalar(reader, T, L));
|
||||
}
|
||||
else
|
||||
target[localName] = this.scalar(reader, T, L);
|
||||
break;
|
||||
case "message":
|
||||
if (repeated) {
|
||||
let arr = target[localName]; // safe to assume presence of array, oneof cannot contain repeated values
|
||||
let msg = field.T().internalBinaryRead(reader, reader.uint32(), options);
|
||||
arr.push(msg);
|
||||
}
|
||||
else
|
||||
target[localName] = field.T().internalBinaryRead(reader, reader.uint32(), options, target[localName]);
|
||||
break;
|
||||
case "map":
|
||||
let [mapKey, mapVal] = this.mapEntry(field, reader, options);
|
||||
// safe to assume presence of map object, oneof cannot contain repeated values
|
||||
target[localName][mapKey] = mapVal;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Read a map field, expecting key field = 1, value field = 2
|
||||
*/
|
||||
mapEntry(field, reader, options) {
|
||||
let length = reader.uint32();
|
||||
let end = reader.pos + length;
|
||||
let key = undefined; // javascript only allows number or string for object properties
|
||||
let val = undefined;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case 1:
|
||||
if (field.K == reflection_info_1.ScalarType.BOOL)
|
||||
key = reader.bool().toString();
|
||||
else
|
||||
// long types are read as string, number types are okay as number
|
||||
key = this.scalar(reader, field.K, reflection_info_1.LongType.STRING);
|
||||
break;
|
||||
case 2:
|
||||
switch (field.V.kind) {
|
||||
case "scalar":
|
||||
val = this.scalar(reader, field.V.T, field.V.L);
|
||||
break;
|
||||
case "enum":
|
||||
val = reader.int32();
|
||||
break;
|
||||
case "message":
|
||||
val = field.V.T().internalBinaryRead(reader, reader.uint32(), options);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw new Error(`Unknown field ${fieldNo} (wire type ${wireType}) in map entry for ${this.info.typeName}#${field.name}`);
|
||||
}
|
||||
}
|
||||
if (key === undefined) {
|
||||
let keyRaw = reflection_scalar_default_1.reflectionScalarDefault(field.K);
|
||||
key = field.K == reflection_info_1.ScalarType.BOOL ? keyRaw.toString() : keyRaw;
|
||||
}
|
||||
if (val === undefined)
|
||||
switch (field.V.kind) {
|
||||
case "scalar":
|
||||
val = reflection_scalar_default_1.reflectionScalarDefault(field.V.T, field.V.L);
|
||||
break;
|
||||
case "enum":
|
||||
val = 0;
|
||||
break;
|
||||
case "message":
|
||||
val = field.V.T().create();
|
||||
break;
|
||||
}
|
||||
return [key, val];
|
||||
}
|
||||
scalar(reader, type, longType) {
|
||||
switch (type) {
|
||||
case reflection_info_1.ScalarType.INT32:
|
||||
return reader.int32();
|
||||
case reflection_info_1.ScalarType.STRING:
|
||||
return reader.string();
|
||||
case reflection_info_1.ScalarType.BOOL:
|
||||
return reader.bool();
|
||||
case reflection_info_1.ScalarType.DOUBLE:
|
||||
return reader.double();
|
||||
case reflection_info_1.ScalarType.FLOAT:
|
||||
return reader.float();
|
||||
case reflection_info_1.ScalarType.INT64:
|
||||
return reflection_long_convert_1.reflectionLongConvert(reader.int64(), longType);
|
||||
case reflection_info_1.ScalarType.UINT64:
|
||||
return reflection_long_convert_1.reflectionLongConvert(reader.uint64(), longType);
|
||||
case reflection_info_1.ScalarType.FIXED64:
|
||||
return reflection_long_convert_1.reflectionLongConvert(reader.fixed64(), longType);
|
||||
case reflection_info_1.ScalarType.FIXED32:
|
||||
return reader.fixed32();
|
||||
case reflection_info_1.ScalarType.BYTES:
|
||||
return reader.bytes();
|
||||
case reflection_info_1.ScalarType.UINT32:
|
||||
return reader.uint32();
|
||||
case reflection_info_1.ScalarType.SFIXED32:
|
||||
return reader.sfixed32();
|
||||
case reflection_info_1.ScalarType.SFIXED64:
|
||||
return reflection_long_convert_1.reflectionLongConvert(reader.sfixed64(), longType);
|
||||
case reflection_info_1.ScalarType.SINT32:
|
||||
return reader.sint32();
|
||||
case reflection_info_1.ScalarType.SINT64:
|
||||
return reflection_long_convert_1.reflectionLongConvert(reader.sint64(), longType);
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.ReflectionBinaryReader = ReflectionBinaryReader;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6907:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.ReflectionBinaryWriter = void 0;
|
||||
const binary_format_contract_1 = __nccwpck_require__(4816);
|
||||
const reflection_info_1 = __nccwpck_require__(7910);
|
||||
const assert_1 = __nccwpck_require__(8602);
|
||||
const pb_long_1 = __nccwpck_require__(1753);
|
||||
/**
|
||||
* Writes proto3 messages in binary format using reflection information.
|
||||
*
|
||||
* https://developers.google.com/protocol-buffers/docs/encoding
|
||||
*/
|
||||
class ReflectionBinaryWriter {
|
||||
constructor(info) {
|
||||
this.info = info;
|
||||
}
|
||||
prepare() {
|
||||
if (!this.fields) {
|
||||
const fieldsInput = this.info.fields ? this.info.fields.concat() : [];
|
||||
this.fields = fieldsInput.sort((a, b) => a.no - b.no);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Writes the message to binary format.
|
||||
*/
|
||||
write(message, writer, options) {
|
||||
this.prepare();
|
||||
for (const field of this.fields) {
|
||||
let value, // this will be our field value, whether it is member of a oneof or not
|
||||
emitDefault, // whether we emit the default value (only true for oneof members)
|
||||
repeated = field.repeat, localName = field.localName;
|
||||
// handle oneof ADT
|
||||
if (field.oneof) {
|
||||
const group = message[field.oneof];
|
||||
if (group.oneofKind !== localName)
|
||||
continue; // if field is not selected, skip
|
||||
value = group[localName];
|
||||
emitDefault = true;
|
||||
}
|
||||
else {
|
||||
value = message[localName];
|
||||
emitDefault = false;
|
||||
}
|
||||
// we have handled oneof above. we just have to honor `emitDefault`.
|
||||
switch (field.kind) {
|
||||
case "scalar":
|
||||
case "enum":
|
||||
let T = field.kind == "enum" ? reflection_info_1.ScalarType.INT32 : field.T;
|
||||
if (repeated) {
|
||||
assert_1.assert(Array.isArray(value));
|
||||
if (repeated == reflection_info_1.RepeatType.PACKED)
|
||||
this.packed(writer, T, field.no, value);
|
||||
else
|
||||
for (const item of value)
|
||||
this.scalar(writer, T, field.no, item, true);
|
||||
}
|
||||
else if (value === undefined)
|
||||
assert_1.assert(field.opt);
|
||||
else
|
||||
this.scalar(writer, T, field.no, value, emitDefault || field.opt);
|
||||
break;
|
||||
case "message":
|
||||
if (repeated) {
|
||||
assert_1.assert(Array.isArray(value));
|
||||
for (const item of value)
|
||||
this.message(writer, options, field.T(), field.no, item);
|
||||
}
|
||||
else {
|
||||
this.message(writer, options, field.T(), field.no, value);
|
||||
}
|
||||
break;
|
||||
case "map":
|
||||
assert_1.assert(typeof value == 'object' && value !== null);
|
||||
for (const [key, val] of Object.entries(value))
|
||||
this.mapEntry(writer, options, field, key, val);
|
||||
break;
|
||||
}
|
||||
}
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u === true ? binary_format_contract_1.UnknownFieldHandler.onWrite : u)(this.info.typeName, message, writer);
|
||||
}
|
||||
mapEntry(writer, options, field, key, value) {
|
||||
writer.tag(field.no, binary_format_contract_1.WireType.LengthDelimited);
|
||||
writer.fork();
|
||||
// javascript only allows number or string for object properties
|
||||
// we convert from our representation to the protobuf type
|
||||
let keyValue = key;
|
||||
switch (field.K) {
|
||||
case reflection_info_1.ScalarType.INT32:
|
||||
case reflection_info_1.ScalarType.FIXED32:
|
||||
case reflection_info_1.ScalarType.UINT32:
|
||||
case reflection_info_1.ScalarType.SFIXED32:
|
||||
case reflection_info_1.ScalarType.SINT32:
|
||||
keyValue = Number.parseInt(key);
|
||||
break;
|
||||
case reflection_info_1.ScalarType.BOOL:
|
||||
assert_1.assert(key == 'true' || key == 'false');
|
||||
keyValue = key == 'true';
|
||||
break;
|
||||
}
|
||||
// write key, expecting key field number = 1
|
||||
this.scalar(writer, field.K, 1, keyValue, true);
|
||||
// write value, expecting value field number = 2
|
||||
switch (field.V.kind) {
|
||||
case 'scalar':
|
||||
this.scalar(writer, field.V.T, 2, value, true);
|
||||
break;
|
||||
case 'enum':
|
||||
this.scalar(writer, reflection_info_1.ScalarType.INT32, 2, value, true);
|
||||
break;
|
||||
case 'message':
|
||||
this.message(writer, options, field.V.T(), 2, value);
|
||||
break;
|
||||
}
|
||||
writer.join();
|
||||
}
|
||||
message(writer, options, handler, fieldNo, value) {
|
||||
if (value === undefined)
|
||||
return;
|
||||
handler.internalBinaryWrite(value, writer.tag(fieldNo, binary_format_contract_1.WireType.LengthDelimited).fork(), options);
|
||||
writer.join();
|
||||
}
|
||||
/**
|
||||
* Write a single scalar value.
|
||||
*/
|
||||
scalar(writer, type, fieldNo, value, emitDefault) {
|
||||
let [wireType, method, isDefault] = this.scalarInfo(type, value);
|
||||
if (!isDefault || emitDefault) {
|
||||
writer.tag(fieldNo, wireType);
|
||||
writer[method](value);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Write an array of scalar values in packed format.
|
||||
*/
|
||||
packed(writer, type, fieldNo, value) {
|
||||
if (!value.length)
|
||||
return;
|
||||
assert_1.assert(type !== reflection_info_1.ScalarType.BYTES && type !== reflection_info_1.ScalarType.STRING);
|
||||
// write tag
|
||||
writer.tag(fieldNo, binary_format_contract_1.WireType.LengthDelimited);
|
||||
// begin length-delimited
|
||||
writer.fork();
|
||||
// write values without tags
|
||||
let [, method,] = this.scalarInfo(type);
|
||||
for (let i = 0; i < value.length; i++)
|
||||
writer[method](value[i]);
|
||||
// end length delimited
|
||||
writer.join();
|
||||
}
|
||||
/**
|
||||
* Get information for writing a scalar value.
|
||||
*
|
||||
* Returns tuple:
|
||||
* [0]: appropriate WireType
|
||||
* [1]: name of the appropriate method of IBinaryWriter
|
||||
* [2]: whether the given value is a default value
|
||||
*
|
||||
* If argument `value` is omitted, [2] is always false.
|
||||
*/
|
||||
scalarInfo(type, value) {
|
||||
let t = binary_format_contract_1.WireType.Varint;
|
||||
let m;
|
||||
let i = value === undefined;
|
||||
let d = value === 0;
|
||||
switch (type) {
|
||||
case reflection_info_1.ScalarType.INT32:
|
||||
m = "int32";
|
||||
break;
|
||||
case reflection_info_1.ScalarType.STRING:
|
||||
d = i || !value.length;
|
||||
t = binary_format_contract_1.WireType.LengthDelimited;
|
||||
m = "string";
|
||||
break;
|
||||
case reflection_info_1.ScalarType.BOOL:
|
||||
d = value === false;
|
||||
m = "bool";
|
||||
break;
|
||||
case reflection_info_1.ScalarType.UINT32:
|
||||
m = "uint32";
|
||||
break;
|
||||
case reflection_info_1.ScalarType.DOUBLE:
|
||||
t = binary_format_contract_1.WireType.Bit64;
|
||||
m = "double";
|
||||
break;
|
||||
case reflection_info_1.ScalarType.FLOAT:
|
||||
t = binary_format_contract_1.WireType.Bit32;
|
||||
m = "float";
|
||||
break;
|
||||
case reflection_info_1.ScalarType.INT64:
|
||||
d = i || pb_long_1.PbLong.from(value).isZero();
|
||||
m = "int64";
|
||||
break;
|
||||
case reflection_info_1.ScalarType.UINT64:
|
||||
d = i || pb_long_1.PbULong.from(value).isZero();
|
||||
m = "uint64";
|
||||
break;
|
||||
case reflection_info_1.ScalarType.FIXED64:
|
||||
d = i || pb_long_1.PbULong.from(value).isZero();
|
||||
t = binary_format_contract_1.WireType.Bit64;
|
||||
m = "fixed64";
|
||||
break;
|
||||
case reflection_info_1.ScalarType.BYTES:
|
||||
d = i || !value.byteLength;
|
||||
t = binary_format_contract_1.WireType.LengthDelimited;
|
||||
m = "bytes";
|
||||
break;
|
||||
case reflection_info_1.ScalarType.FIXED32:
|
||||
t = binary_format_contract_1.WireType.Bit32;
|
||||
m = "fixed32";
|
||||
break;
|
||||
case reflection_info_1.ScalarType.SFIXED32:
|
||||
t = binary_format_contract_1.WireType.Bit32;
|
||||
m = "sfixed32";
|
||||
break;
|
||||
case reflection_info_1.ScalarType.SFIXED64:
|
||||
d = i || pb_long_1.PbLong.from(value).isZero();
|
||||
t = binary_format_contract_1.WireType.Bit64;
|
||||
m = "sfixed64";
|
||||
break;
|
||||
case reflection_info_1.ScalarType.SINT32:
|
||||
m = "sint32";
|
||||
break;
|
||||
case reflection_info_1.ScalarType.SINT64:
|
||||
d = i || pb_long_1.PbLong.from(value).isZero();
|
||||
m = "sint64";
|
||||
break;
|
||||
}
|
||||
return [t, m, i || d];
|
||||
}
|
||||
}
|
||||
exports.ReflectionBinaryWriter = ReflectionBinaryWriter;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7565:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.containsMessageType = void 0;
|
||||
const message_type_contract_1 = __nccwpck_require__(3785);
|
||||
/**
|
||||
* Check if the provided object is a proto message.
|
||||
*
|
||||
* Note that this is an experimental feature - it is here to stay, but
|
||||
* implementation details may change without notice.
|
||||
*/
|
||||
function containsMessageType(msg) {
|
||||
return msg[message_type_contract_1.MESSAGE_TYPE] != null;
|
||||
}
|
||||
exports.containsMessageType = containsMessageType;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5726:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.reflectionCreate = void 0;
|
||||
const reflection_scalar_default_1 = __nccwpck_require__(9526);
|
||||
const message_type_contract_1 = __nccwpck_require__(3785);
|
||||
/**
|
||||
* Creates an instance of the generic message, using the field
|
||||
* information.
|
||||
*/
|
||||
function reflectionCreate(type) {
|
||||
/**
|
||||
* This ternary can be removed in the next major version.
|
||||
* The `Object.create()` code path utilizes a new `messagePrototype`
|
||||
* property on the `IMessageType` which has this same `MESSAGE_TYPE`
|
||||
* non-enumerable property on it. Doing it this way means that we only
|
||||
* pay the cost of `Object.defineProperty()` once per `IMessageType`
|
||||
* class of once per "instance". The falsy code path is only provided
|
||||
* for backwards compatibility in cases where the runtime library is
|
||||
* updated without also updating the generated code.
|
||||
*/
|
||||
const msg = type.messagePrototype
|
||||
? Object.create(type.messagePrototype)
|
||||
: Object.defineProperty({}, message_type_contract_1.MESSAGE_TYPE, { value: type });
|
||||
for (let field of type.fields) {
|
||||
let name = field.localName;
|
||||
if (field.opt)
|
||||
continue;
|
||||
if (field.oneof)
|
||||
msg[field.oneof] = { oneofKind: undefined };
|
||||
else if (field.repeat)
|
||||
msg[name] = [];
|
||||
else
|
||||
switch (field.kind) {
|
||||
case "scalar":
|
||||
msg[name] = reflection_scalar_default_1.reflectionScalarDefault(field.T, field.L);
|
||||
break;
|
||||
case "enum":
|
||||
// we require 0 to be default value for all enums
|
||||
msg[name] = 0;
|
||||
break;
|
||||
case "map":
|
||||
msg[name] = {};
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
exports.reflectionCreate = reflectionCreate;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4827:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.reflectionEquals = void 0;
|
||||
const reflection_info_1 = __nccwpck_require__(7910);
|
||||
/**
|
||||
* Determines whether two message of the same type have the same field values.
|
||||
* Checks for deep equality, traversing repeated fields, oneof groups, maps
|
||||
* and messages recursively.
|
||||
* Will also return true if both messages are `undefined`.
|
||||
*/
|
||||
function reflectionEquals(info, a, b) {
|
||||
if (a === b)
|
||||
return true;
|
||||
if (!a || !b)
|
||||
return false;
|
||||
for (let field of info.fields) {
|
||||
let localName = field.localName;
|
||||
let val_a = field.oneof ? a[field.oneof][localName] : a[localName];
|
||||
let val_b = field.oneof ? b[field.oneof][localName] : b[localName];
|
||||
switch (field.kind) {
|
||||
case "enum":
|
||||
case "scalar":
|
||||
let t = field.kind == "enum" ? reflection_info_1.ScalarType.INT32 : field.T;
|
||||
if (!(field.repeat
|
||||
? repeatedPrimitiveEq(t, val_a, val_b)
|
||||
: primitiveEq(t, val_a, val_b)))
|
||||
return false;
|
||||
break;
|
||||
case "map":
|
||||
if (!(field.V.kind == "message"
|
||||
? repeatedMsgEq(field.V.T(), objectValues(val_a), objectValues(val_b))
|
||||
: repeatedPrimitiveEq(field.V.kind == "enum" ? reflection_info_1.ScalarType.INT32 : field.V.T, objectValues(val_a), objectValues(val_b))))
|
||||
return false;
|
||||
break;
|
||||
case "message":
|
||||
let T = field.T();
|
||||
if (!(field.repeat
|
||||
? repeatedMsgEq(T, val_a, val_b)
|
||||
: T.equals(val_a, val_b)))
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
exports.reflectionEquals = reflectionEquals;
|
||||
const objectValues = Object.values;
|
||||
function primitiveEq(type, a, b) {
|
||||
if (a === b)
|
||||
return true;
|
||||
if (type !== reflection_info_1.ScalarType.BYTES)
|
||||
return false;
|
||||
let ba = a;
|
||||
let bb = b;
|
||||
if (ba.length !== bb.length)
|
||||
return false;
|
||||
for (let i = 0; i < ba.length; i++)
|
||||
if (ba[i] != bb[i])
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
function repeatedPrimitiveEq(type, a, b) {
|
||||
if (a.length !== b.length)
|
||||
return false;
|
||||
for (let i = 0; i < a.length; i++)
|
||||
if (!primitiveEq(type, a[i], b[i]))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
function repeatedMsgEq(type, a, b) {
|
||||
if (a.length !== b.length)
|
||||
return false;
|
||||
for (let i = 0; i < a.length; i++)
|
||||
if (!type.equals(a[i], b[i]))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7910:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.readMessageOption = exports.readFieldOption = exports.readFieldOptions = exports.normalizeFieldInfo = exports.RepeatType = exports.LongType = exports.ScalarType = void 0;
|
||||
const lower_camel_case_1 = __nccwpck_require__(4073);
|
||||
/**
|
||||
* Scalar value types. This is a subset of field types declared by protobuf
|
||||
* enum google.protobuf.FieldDescriptorProto.Type The types GROUP and MESSAGE
|
||||
* are omitted, but the numerical values are identical.
|
||||
*/
|
||||
var ScalarType;
|
||||
(function (ScalarType) {
|
||||
// 0 is reserved for errors.
|
||||
// Order is weird for historical reasons.
|
||||
ScalarType[ScalarType["DOUBLE"] = 1] = "DOUBLE";
|
||||
ScalarType[ScalarType["FLOAT"] = 2] = "FLOAT";
|
||||
// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
|
||||
// negative values are likely.
|
||||
ScalarType[ScalarType["INT64"] = 3] = "INT64";
|
||||
ScalarType[ScalarType["UINT64"] = 4] = "UINT64";
|
||||
// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
|
||||
// negative values are likely.
|
||||
ScalarType[ScalarType["INT32"] = 5] = "INT32";
|
||||
ScalarType[ScalarType["FIXED64"] = 6] = "FIXED64";
|
||||
ScalarType[ScalarType["FIXED32"] = 7] = "FIXED32";
|
||||
ScalarType[ScalarType["BOOL"] = 8] = "BOOL";
|
||||
ScalarType[ScalarType["STRING"] = 9] = "STRING";
|
||||
// Tag-delimited aggregate.
|
||||
// Group type is deprecated and not supported in proto3. However, Proto3
|
||||
// implementations should still be able to parse the group wire format and
|
||||
// treat group fields as unknown fields.
|
||||
// TYPE_GROUP = 10,
|
||||
// TYPE_MESSAGE = 11, // Length-delimited aggregate.
|
||||
// New in version 2.
|
||||
ScalarType[ScalarType["BYTES"] = 12] = "BYTES";
|
||||
ScalarType[ScalarType["UINT32"] = 13] = "UINT32";
|
||||
// TYPE_ENUM = 14,
|
||||
ScalarType[ScalarType["SFIXED32"] = 15] = "SFIXED32";
|
||||
ScalarType[ScalarType["SFIXED64"] = 16] = "SFIXED64";
|
||||
ScalarType[ScalarType["SINT32"] = 17] = "SINT32";
|
||||
ScalarType[ScalarType["SINT64"] = 18] = "SINT64";
|
||||
})(ScalarType = exports.ScalarType || (exports.ScalarType = {}));
|
||||
/**
|
||||
* JavaScript representation of 64 bit integral types. Equivalent to the
|
||||
* field option "jstype".
|
||||
*
|
||||
* By default, protobuf-ts represents 64 bit types as `bigint`.
|
||||
*
|
||||
* You can change the default behaviour by enabling the plugin parameter
|
||||
* `long_type_string`, which will represent 64 bit types as `string`.
|
||||
*
|
||||
* Alternatively, you can change the behaviour for individual fields
|
||||
* with the field option "jstype":
|
||||
*
|
||||
* ```protobuf
|
||||
* uint64 my_field = 1 [jstype = JS_STRING];
|
||||
* uint64 other_field = 2 [jstype = JS_NUMBER];
|
||||
* ```
|
||||
*/
|
||||
var LongType;
|
||||
(function (LongType) {
|
||||
/**
|
||||
* Use JavaScript `bigint`.
|
||||
*
|
||||
* Field option `[jstype = JS_NORMAL]`.
|
||||
*/
|
||||
LongType[LongType["BIGINT"] = 0] = "BIGINT";
|
||||
/**
|
||||
* Use JavaScript `string`.
|
||||
*
|
||||
* Field option `[jstype = JS_STRING]`.
|
||||
*/
|
||||
LongType[LongType["STRING"] = 1] = "STRING";
|
||||
/**
|
||||
* Use JavaScript `number`.
|
||||
*
|
||||
* Large values will loose precision.
|
||||
*
|
||||
* Field option `[jstype = JS_NUMBER]`.
|
||||
*/
|
||||
LongType[LongType["NUMBER"] = 2] = "NUMBER";
|
||||
})(LongType = exports.LongType || (exports.LongType = {}));
|
||||
/**
|
||||
* Protobuf 2.1.0 introduced packed repeated fields.
|
||||
* Setting the field option `[packed = true]` enables packing.
|
||||
*
|
||||
* In proto3, all repeated fields are packed by default.
|
||||
* Setting the field option `[packed = false]` disables packing.
|
||||
*
|
||||
* Packed repeated fields are encoded with a single tag,
|
||||
* then a length-delimiter, then the element values.
|
||||
*
|
||||
* Unpacked repeated fields are encoded with a tag and
|
||||
* value for each element.
|
||||
*
|
||||
* `bytes` and `string` cannot be packed.
|
||||
*/
|
||||
var RepeatType;
|
||||
(function (RepeatType) {
|
||||
/**
|
||||
* The field is not repeated.
|
||||
*/
|
||||
RepeatType[RepeatType["NO"] = 0] = "NO";
|
||||
/**
|
||||
* The field is repeated and should be packed.
|
||||
* Invalid for `bytes` and `string`, they cannot be packed.
|
||||
*/
|
||||
RepeatType[RepeatType["PACKED"] = 1] = "PACKED";
|
||||
/**
|
||||
* The field is repeated but should not be packed.
|
||||
* The only valid repeat type for repeated `bytes` and `string`.
|
||||
*/
|
||||
RepeatType[RepeatType["UNPACKED"] = 2] = "UNPACKED";
|
||||
})(RepeatType = exports.RepeatType || (exports.RepeatType = {}));
|
||||
/**
|
||||
* Turns PartialFieldInfo into FieldInfo.
|
||||
*/
|
||||
function normalizeFieldInfo(field) {
|
||||
var _a, _b, _c, _d;
|
||||
field.localName = (_a = field.localName) !== null && _a !== void 0 ? _a : lower_camel_case_1.lowerCamelCase(field.name);
|
||||
field.jsonName = (_b = field.jsonName) !== null && _b !== void 0 ? _b : lower_camel_case_1.lowerCamelCase(field.name);
|
||||
field.repeat = (_c = field.repeat) !== null && _c !== void 0 ? _c : RepeatType.NO;
|
||||
field.opt = (_d = field.opt) !== null && _d !== void 0 ? _d : (field.repeat ? false : field.oneof ? false : field.kind == "message");
|
||||
return field;
|
||||
}
|
||||
exports.normalizeFieldInfo = normalizeFieldInfo;
|
||||
/**
|
||||
* Read custom field options from a generated message type.
|
||||
*
|
||||
* @deprecated use readFieldOption()
|
||||
*/
|
||||
function readFieldOptions(messageType, fieldName, extensionName, extensionType) {
|
||||
var _a;
|
||||
const options = (_a = messageType.fields.find((m, i) => m.localName == fieldName || i == fieldName)) === null || _a === void 0 ? void 0 : _a.options;
|
||||
return options && options[extensionName] ? extensionType.fromJson(options[extensionName]) : undefined;
|
||||
}
|
||||
exports.readFieldOptions = readFieldOptions;
|
||||
function readFieldOption(messageType, fieldName, extensionName, extensionType) {
|
||||
var _a;
|
||||
const options = (_a = messageType.fields.find((m, i) => m.localName == fieldName || i == fieldName)) === null || _a === void 0 ? void 0 : _a.options;
|
||||
if (!options) {
|
||||
return undefined;
|
||||
}
|
||||
const optionVal = options[extensionName];
|
||||
if (optionVal === undefined) {
|
||||
return optionVal;
|
||||
}
|
||||
return extensionType ? extensionType.fromJson(optionVal) : optionVal;
|
||||
}
|
||||
exports.readFieldOption = readFieldOption;
|
||||
function readMessageOption(messageType, extensionName, extensionType) {
|
||||
const options = messageType.options;
|
||||
const optionVal = options[extensionName];
|
||||
if (optionVal === undefined) {
|
||||
return optionVal;
|
||||
}
|
||||
return extensionType ? extensionType.fromJson(optionVal) : optionVal;
|
||||
}
|
||||
exports.readMessageOption = readMessageOption;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6790:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.ReflectionJsonReader = void 0;
|
||||
const json_typings_1 = __nccwpck_require__(9999);
|
||||
const base64_1 = __nccwpck_require__(6335);
|
||||
const reflection_info_1 = __nccwpck_require__(7910);
|
||||
const pb_long_1 = __nccwpck_require__(1753);
|
||||
const assert_1 = __nccwpck_require__(8602);
|
||||
const reflection_long_convert_1 = __nccwpck_require__(3402);
|
||||
/**
|
||||
* Reads proto3 messages in canonical JSON format using reflection information.
|
||||
*
|
||||
* https://developers.google.com/protocol-buffers/docs/proto3#json
|
||||
*/
|
||||
class ReflectionJsonReader {
|
||||
constructor(info) {
|
||||
this.info = info;
|
||||
}
|
||||
prepare() {
|
||||
var _a;
|
||||
if (this.fMap === undefined) {
|
||||
this.fMap = {};
|
||||
const fieldsInput = (_a = this.info.fields) !== null && _a !== void 0 ? _a : [];
|
||||
for (const field of fieldsInput) {
|
||||
this.fMap[field.name] = field;
|
||||
this.fMap[field.jsonName] = field;
|
||||
this.fMap[field.localName] = field;
|
||||
}
|
||||
}
|
||||
}
|
||||
// Cannot parse JSON <type of jsonValue> for <type name>#<fieldName>.
|
||||
assert(condition, fieldName, jsonValue) {
|
||||
if (!condition) {
|
||||
let what = json_typings_1.typeofJsonValue(jsonValue);
|
||||
if (what == "number" || what == "boolean")
|
||||
what = jsonValue.toString();
|
||||
throw new Error(`Cannot parse JSON ${what} for ${this.info.typeName}#${fieldName}`);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Reads a message from canonical JSON format into the target message.
|
||||
*
|
||||
* Repeated fields are appended. Map entries are added, overwriting
|
||||
* existing keys.
|
||||
*
|
||||
* If a message field is already present, it will be merged with the
|
||||
* new data.
|
||||
*/
|
||||
read(input, message, options) {
|
||||
this.prepare();
|
||||
const oneofsHandled = [];
|
||||
for (const [jsonKey, jsonValue] of Object.entries(input)) {
|
||||
const field = this.fMap[jsonKey];
|
||||
if (!field) {
|
||||
if (!options.ignoreUnknownFields)
|
||||
throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${jsonKey}`);
|
||||
continue;
|
||||
}
|
||||
const localName = field.localName;
|
||||
// handle oneof ADT
|
||||
let target; // this will be the target for the field value, whether it is member of a oneof or not
|
||||
if (field.oneof) {
|
||||
if (jsonValue === null && (field.kind !== 'enum' || field.T()[0] !== 'google.protobuf.NullValue')) {
|
||||
continue;
|
||||
}
|
||||
// since json objects are unordered by specification, it is not possible to take the last of multiple oneofs
|
||||
if (oneofsHandled.includes(field.oneof))
|
||||
throw new Error(`Multiple members of the oneof group "${field.oneof}" of ${this.info.typeName} are present in JSON.`);
|
||||
oneofsHandled.push(field.oneof);
|
||||
target = message[field.oneof] = {
|
||||
oneofKind: localName
|
||||
};
|
||||
}
|
||||
else {
|
||||
target = message;
|
||||
}
|
||||
// we have handled oneof above. we just have read the value into `target`.
|
||||
if (field.kind == 'map') {
|
||||
if (jsonValue === null) {
|
||||
continue;
|
||||
}
|
||||
// check input
|
||||
this.assert(json_typings_1.isJsonObject(jsonValue), field.name, jsonValue);
|
||||
// our target to put map entries into
|
||||
const fieldObj = target[localName];
|
||||
// read entries
|
||||
for (const [jsonObjKey, jsonObjValue] of Object.entries(jsonValue)) {
|
||||
this.assert(jsonObjValue !== null, field.name + " map value", null);
|
||||
// read value
|
||||
let val;
|
||||
switch (field.V.kind) {
|
||||
case "message":
|
||||
val = field.V.T().internalJsonRead(jsonObjValue, options);
|
||||
break;
|
||||
case "enum":
|
||||
val = this.enum(field.V.T(), jsonObjValue, field.name, options.ignoreUnknownFields);
|
||||
if (val === false)
|
||||
continue;
|
||||
break;
|
||||
case "scalar":
|
||||
val = this.scalar(jsonObjValue, field.V.T, field.V.L, field.name);
|
||||
break;
|
||||
}
|
||||
this.assert(val !== undefined, field.name + " map value", jsonObjValue);
|
||||
// read key
|
||||
let key = jsonObjKey;
|
||||
if (field.K == reflection_info_1.ScalarType.BOOL)
|
||||
key = key == "true" ? true : key == "false" ? false : key;
|
||||
key = this.scalar(key, field.K, reflection_info_1.LongType.STRING, field.name).toString();
|
||||
fieldObj[key] = val;
|
||||
}
|
||||
}
|
||||
else if (field.repeat) {
|
||||
if (jsonValue === null)
|
||||
continue;
|
||||
// check input
|
||||
this.assert(Array.isArray(jsonValue), field.name, jsonValue);
|
||||
// our target to put array entries into
|
||||
const fieldArr = target[localName];
|
||||
// read array entries
|
||||
for (const jsonItem of jsonValue) {
|
||||
this.assert(jsonItem !== null, field.name, null);
|
||||
let val;
|
||||
switch (field.kind) {
|
||||
case "message":
|
||||
val = field.T().internalJsonRead(jsonItem, options);
|
||||
break;
|
||||
case "enum":
|
||||
val = this.enum(field.T(), jsonItem, field.name, options.ignoreUnknownFields);
|
||||
if (val === false)
|
||||
continue;
|
||||
break;
|
||||
case "scalar":
|
||||
val = this.scalar(jsonItem, field.T, field.L, field.name);
|
||||
break;
|
||||
}
|
||||
this.assert(val !== undefined, field.name, jsonValue);
|
||||
fieldArr.push(val);
|
||||
}
|
||||
}
|
||||
else {
|
||||
switch (field.kind) {
|
||||
case "message":
|
||||
if (jsonValue === null && field.T().typeName != 'google.protobuf.Value') {
|
||||
this.assert(field.oneof === undefined, field.name + " (oneof member)", null);
|
||||
continue;
|
||||
}
|
||||
target[localName] = field.T().internalJsonRead(jsonValue, options, target[localName]);
|
||||
break;
|
||||
case "enum":
|
||||
let val = this.enum(field.T(), jsonValue, field.name, options.ignoreUnknownFields);
|
||||
if (val === false)
|
||||
continue;
|
||||
target[localName] = val;
|
||||
break;
|
||||
case "scalar":
|
||||
target[localName] = this.scalar(jsonValue, field.T, field.L, field.name);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Returns `false` for unrecognized string representations.
|
||||
*
|
||||
* google.protobuf.NullValue accepts only JSON `null` (or the old `"NULL_VALUE"`).
|
||||
*/
|
||||
enum(type, json, fieldName, ignoreUnknownFields) {
|
||||
if (type[0] == 'google.protobuf.NullValue')
|
||||
assert_1.assert(json === null || json === "NULL_VALUE", `Unable to parse field ${this.info.typeName}#${fieldName}, enum ${type[0]} only accepts null.`);
|
||||
if (json === null)
|
||||
// we require 0 to be default value for all enums
|
||||
return 0;
|
||||
switch (typeof json) {
|
||||
case "number":
|
||||
assert_1.assert(Number.isInteger(json), `Unable to parse field ${this.info.typeName}#${fieldName}, enum can only be integral number, got ${json}.`);
|
||||
return json;
|
||||
case "string":
|
||||
let localEnumName = json;
|
||||
if (type[2] && json.substring(0, type[2].length) === type[2])
|
||||
// lookup without the shared prefix
|
||||
localEnumName = json.substring(type[2].length);
|
||||
let enumNumber = type[1][localEnumName];
|
||||
if (typeof enumNumber === 'undefined' && ignoreUnknownFields) {
|
||||
return false;
|
||||
}
|
||||
assert_1.assert(typeof enumNumber == "number", `Unable to parse field ${this.info.typeName}#${fieldName}, enum ${type[0]} has no value for "${json}".`);
|
||||
return enumNumber;
|
||||
}
|
||||
assert_1.assert(false, `Unable to parse field ${this.info.typeName}#${fieldName}, cannot parse enum value from ${typeof json}".`);
|
||||
}
|
||||
scalar(json, type, longType, fieldName) {
|
||||
let e;
|
||||
try {
|
||||
switch (type) {
|
||||
// float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity".
|
||||
// Either numbers or strings are accepted. Exponent notation is also accepted.
|
||||
case reflection_info_1.ScalarType.DOUBLE:
|
||||
case reflection_info_1.ScalarType.FLOAT:
|
||||
if (json === null)
|
||||
return .0;
|
||||
if (json === "NaN")
|
||||
return Number.NaN;
|
||||
if (json === "Infinity")
|
||||
return Number.POSITIVE_INFINITY;
|
||||
if (json === "-Infinity")
|
||||
return Number.NEGATIVE_INFINITY;
|
||||
if (json === "") {
|
||||
e = "empty string";
|
||||
break;
|
||||
}
|
||||
if (typeof json == "string" && json.trim().length !== json.length) {
|
||||
e = "extra whitespace";
|
||||
break;
|
||||
}
|
||||
if (typeof json != "string" && typeof json != "number") {
|
||||
break;
|
||||
}
|
||||
let float = Number(json);
|
||||
if (Number.isNaN(float)) {
|
||||
e = "not a number";
|
||||
break;
|
||||
}
|
||||
if (!Number.isFinite(float)) {
|
||||
// infinity and -infinity are handled by string representation above, so this is an error
|
||||
e = "too large or small";
|
||||
break;
|
||||
}
|
||||
if (type == reflection_info_1.ScalarType.FLOAT)
|
||||
assert_1.assertFloat32(float);
|
||||
return float;
|
||||
// int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted.
|
||||
case reflection_info_1.ScalarType.INT32:
|
||||
case reflection_info_1.ScalarType.FIXED32:
|
||||
case reflection_info_1.ScalarType.SFIXED32:
|
||||
case reflection_info_1.ScalarType.SINT32:
|
||||
case reflection_info_1.ScalarType.UINT32:
|
||||
if (json === null)
|
||||
return 0;
|
||||
let int32;
|
||||
if (typeof json == "number")
|
||||
int32 = json;
|
||||
else if (json === "")
|
||||
e = "empty string";
|
||||
else if (typeof json == "string") {
|
||||
if (json.trim().length !== json.length)
|
||||
e = "extra whitespace";
|
||||
else
|
||||
int32 = Number(json);
|
||||
}
|
||||
if (int32 === undefined)
|
||||
break;
|
||||
if (type == reflection_info_1.ScalarType.UINT32)
|
||||
assert_1.assertUInt32(int32);
|
||||
else
|
||||
assert_1.assertInt32(int32);
|
||||
return int32;
|
||||
// int64, fixed64, uint64: JSON value will be a decimal string. Either numbers or strings are accepted.
|
||||
case reflection_info_1.ScalarType.INT64:
|
||||
case reflection_info_1.ScalarType.SFIXED64:
|
||||
case reflection_info_1.ScalarType.SINT64:
|
||||
if (json === null)
|
||||
return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbLong.ZERO, longType);
|
||||
if (typeof json != "number" && typeof json != "string")
|
||||
break;
|
||||
return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbLong.from(json), longType);
|
||||
case reflection_info_1.ScalarType.FIXED64:
|
||||
case reflection_info_1.ScalarType.UINT64:
|
||||
if (json === null)
|
||||
return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbULong.ZERO, longType);
|
||||
if (typeof json != "number" && typeof json != "string")
|
||||
break;
|
||||
return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbULong.from(json), longType);
|
||||
// bool:
|
||||
case reflection_info_1.ScalarType.BOOL:
|
||||
if (json === null)
|
||||
return false;
|
||||
if (typeof json !== "boolean")
|
||||
break;
|
||||
return json;
|
||||
// string:
|
||||
case reflection_info_1.ScalarType.STRING:
|
||||
if (json === null)
|
||||
return "";
|
||||
if (typeof json !== "string") {
|
||||
e = "extra whitespace";
|
||||
break;
|
||||
}
|
||||
try {
|
||||
encodeURIComponent(json);
|
||||
}
|
||||
catch (e) {
|
||||
e = "invalid UTF8";
|
||||
break;
|
||||
}
|
||||
return json;
|
||||
// bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings.
|
||||
// Either standard or URL-safe base64 encoding with/without paddings are accepted.
|
||||
case reflection_info_1.ScalarType.BYTES:
|
||||
if (json === null || json === "")
|
||||
return new Uint8Array(0);
|
||||
if (typeof json !== 'string')
|
||||
break;
|
||||
return base64_1.base64decode(json);
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
e = error.message;
|
||||
}
|
||||
this.assert(false, fieldName + (e ? " - " + e : ""), json);
|
||||
}
|
||||
}
|
||||
exports.ReflectionJsonReader = ReflectionJsonReader;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1094:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.ReflectionJsonWriter = void 0;
|
||||
const base64_1 = __nccwpck_require__(6335);
|
||||
const pb_long_1 = __nccwpck_require__(1753);
|
||||
const reflection_info_1 = __nccwpck_require__(7910);
|
||||
const assert_1 = __nccwpck_require__(8602);
|
||||
/**
|
||||
* Writes proto3 messages in canonical JSON format using reflection
|
||||
* information.
|
||||
*
|
||||
* https://developers.google.com/protocol-buffers/docs/proto3#json
|
||||
*/
|
||||
class ReflectionJsonWriter {
|
||||
constructor(info) {
|
||||
var _a;
|
||||
this.fields = (_a = info.fields) !== null && _a !== void 0 ? _a : [];
|
||||
}
|
||||
/**
|
||||
* Converts the message to a JSON object, based on the field descriptors.
|
||||
*/
|
||||
write(message, options) {
|
||||
const json = {}, source = message;
|
||||
for (const field of this.fields) {
|
||||
// field is not part of a oneof, simply write as is
|
||||
if (!field.oneof) {
|
||||
let jsonValue = this.field(field, source[field.localName], options);
|
||||
if (jsonValue !== undefined)
|
||||
json[options.useProtoFieldName ? field.name : field.jsonName] = jsonValue;
|
||||
continue;
|
||||
}
|
||||
// field is part of a oneof
|
||||
const group = source[field.oneof];
|
||||
if (group.oneofKind !== field.localName)
|
||||
continue; // not selected, skip
|
||||
const opt = field.kind == 'scalar' || field.kind == 'enum'
|
||||
? Object.assign(Object.assign({}, options), { emitDefaultValues: true }) : options;
|
||||
let jsonValue = this.field(field, group[field.localName], opt);
|
||||
assert_1.assert(jsonValue !== undefined);
|
||||
json[options.useProtoFieldName ? field.name : field.jsonName] = jsonValue;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
field(field, value, options) {
|
||||
let jsonValue = undefined;
|
||||
if (field.kind == 'map') {
|
||||
assert_1.assert(typeof value == "object" && value !== null);
|
||||
const jsonObj = {};
|
||||
switch (field.V.kind) {
|
||||
case "scalar":
|
||||
for (const [entryKey, entryValue] of Object.entries(value)) {
|
||||
const val = this.scalar(field.V.T, entryValue, field.name, false, true);
|
||||
assert_1.assert(val !== undefined);
|
||||
jsonObj[entryKey.toString()] = val; // JSON standard allows only (double quoted) string as property key
|
||||
}
|
||||
break;
|
||||
case "message":
|
||||
const messageType = field.V.T();
|
||||
for (const [entryKey, entryValue] of Object.entries(value)) {
|
||||
const val = this.message(messageType, entryValue, field.name, options);
|
||||
assert_1.assert(val !== undefined);
|
||||
jsonObj[entryKey.toString()] = val; // JSON standard allows only (double quoted) string as property key
|
||||
}
|
||||
break;
|
||||
case "enum":
|
||||
const enumInfo = field.V.T();
|
||||
for (const [entryKey, entryValue] of Object.entries(value)) {
|
||||
assert_1.assert(entryValue === undefined || typeof entryValue == 'number');
|
||||
const val = this.enum(enumInfo, entryValue, field.name, false, true, options.enumAsInteger);
|
||||
assert_1.assert(val !== undefined);
|
||||
jsonObj[entryKey.toString()] = val; // JSON standard allows only (double quoted) string as property key
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (options.emitDefaultValues || Object.keys(jsonObj).length > 0)
|
||||
jsonValue = jsonObj;
|
||||
}
|
||||
else if (field.repeat) {
|
||||
assert_1.assert(Array.isArray(value));
|
||||
const jsonArr = [];
|
||||
switch (field.kind) {
|
||||
case "scalar":
|
||||
for (let i = 0; i < value.length; i++) {
|
||||
const val = this.scalar(field.T, value[i], field.name, field.opt, true);
|
||||
assert_1.assert(val !== undefined);
|
||||
jsonArr.push(val);
|
||||
}
|
||||
break;
|
||||
case "enum":
|
||||
const enumInfo = field.T();
|
||||
for (let i = 0; i < value.length; i++) {
|
||||
assert_1.assert(value[i] === undefined || typeof value[i] == 'number');
|
||||
const val = this.enum(enumInfo, value[i], field.name, field.opt, true, options.enumAsInteger);
|
||||
assert_1.assert(val !== undefined);
|
||||
jsonArr.push(val);
|
||||
}
|
||||
break;
|
||||
case "message":
|
||||
const messageType = field.T();
|
||||
for (let i = 0; i < value.length; i++) {
|
||||
const val = this.message(messageType, value[i], field.name, options);
|
||||
assert_1.assert(val !== undefined);
|
||||
jsonArr.push(val);
|
||||
}
|
||||
break;
|
||||
}
|
||||
// add converted array to json output
|
||||
if (options.emitDefaultValues || jsonArr.length > 0 || options.emitDefaultValues)
|
||||
jsonValue = jsonArr;
|
||||
}
|
||||
else {
|
||||
switch (field.kind) {
|
||||
case "scalar":
|
||||
jsonValue = this.scalar(field.T, value, field.name, field.opt, options.emitDefaultValues);
|
||||
break;
|
||||
case "enum":
|
||||
jsonValue = this.enum(field.T(), value, field.name, field.opt, options.emitDefaultValues, options.enumAsInteger);
|
||||
break;
|
||||
case "message":
|
||||
jsonValue = this.message(field.T(), value, field.name, options);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return jsonValue;
|
||||
}
|
||||
/**
|
||||
* Returns `null` as the default for google.protobuf.NullValue.
|
||||
*/
|
||||
enum(type, value, fieldName, optional, emitDefaultValues, enumAsInteger) {
|
||||
if (type[0] == 'google.protobuf.NullValue')
|
||||
return !emitDefaultValues && !optional ? undefined : null;
|
||||
if (value === undefined) {
|
||||
assert_1.assert(optional);
|
||||
return undefined;
|
||||
}
|
||||
if (value === 0 && !emitDefaultValues && !optional)
|
||||
// we require 0 to be default value for all enums
|
||||
return undefined;
|
||||
assert_1.assert(typeof value == 'number');
|
||||
assert_1.assert(Number.isInteger(value));
|
||||
if (enumAsInteger || !type[1].hasOwnProperty(value))
|
||||
// if we don't now the enum value, just return the number
|
||||
return value;
|
||||
if (type[2])
|
||||
// restore the dropped prefix
|
||||
return type[2] + type[1][value];
|
||||
return type[1][value];
|
||||
}
|
||||
message(type, value, fieldName, options) {
|
||||
if (value === undefined)
|
||||
return options.emitDefaultValues ? null : undefined;
|
||||
return type.internalJsonWrite(value, options);
|
||||
}
|
||||
scalar(type, value, fieldName, optional, emitDefaultValues) {
|
||||
if (value === undefined) {
|
||||
assert_1.assert(optional);
|
||||
return undefined;
|
||||
}
|
||||
const ed = emitDefaultValues || optional;
|
||||
// noinspection FallThroughInSwitchStatementJS
|
||||
switch (type) {
|
||||
// int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted.
|
||||
case reflection_info_1.ScalarType.INT32:
|
||||
case reflection_info_1.ScalarType.SFIXED32:
|
||||
case reflection_info_1.ScalarType.SINT32:
|
||||
if (value === 0)
|
||||
return ed ? 0 : undefined;
|
||||
assert_1.assertInt32(value);
|
||||
return value;
|
||||
case reflection_info_1.ScalarType.FIXED32:
|
||||
case reflection_info_1.ScalarType.UINT32:
|
||||
if (value === 0)
|
||||
return ed ? 0 : undefined;
|
||||
assert_1.assertUInt32(value);
|
||||
return value;
|
||||
// float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity".
|
||||
// Either numbers or strings are accepted. Exponent notation is also accepted.
|
||||
case reflection_info_1.ScalarType.FLOAT:
|
||||
assert_1.assertFloat32(value);
|
||||
case reflection_info_1.ScalarType.DOUBLE:
|
||||
if (value === 0)
|
||||
return ed ? 0 : undefined;
|
||||
assert_1.assert(typeof value == 'number');
|
||||
if (Number.isNaN(value))
|
||||
return 'NaN';
|
||||
if (value === Number.POSITIVE_INFINITY)
|
||||
return 'Infinity';
|
||||
if (value === Number.NEGATIVE_INFINITY)
|
||||
return '-Infinity';
|
||||
return value;
|
||||
// string:
|
||||
case reflection_info_1.ScalarType.STRING:
|
||||
if (value === "")
|
||||
return ed ? '' : undefined;
|
||||
assert_1.assert(typeof value == 'string');
|
||||
return value;
|
||||
// bool:
|
||||
case reflection_info_1.ScalarType.BOOL:
|
||||
if (value === false)
|
||||
return ed ? false : undefined;
|
||||
assert_1.assert(typeof value == 'boolean');
|
||||
return value;
|
||||
// JSON value will be a decimal string. Either numbers or strings are accepted.
|
||||
case reflection_info_1.ScalarType.UINT64:
|
||||
case reflection_info_1.ScalarType.FIXED64:
|
||||
assert_1.assert(typeof value == 'number' || typeof value == 'string' || typeof value == 'bigint');
|
||||
let ulong = pb_long_1.PbULong.from(value);
|
||||
if (ulong.isZero() && !ed)
|
||||
return undefined;
|
||||
return ulong.toString();
|
||||
// JSON value will be a decimal string. Either numbers or strings are accepted.
|
||||
case reflection_info_1.ScalarType.INT64:
|
||||
case reflection_info_1.ScalarType.SFIXED64:
|
||||
case reflection_info_1.ScalarType.SINT64:
|
||||
assert_1.assert(typeof value == 'number' || typeof value == 'string' || typeof value == 'bigint');
|
||||
let long = pb_long_1.PbLong.from(value);
|
||||
if (long.isZero() && !ed)
|
||||
return undefined;
|
||||
return long.toString();
|
||||
// bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings.
|
||||
// Either standard or URL-safe base64 encoding with/without paddings are accepted.
|
||||
case reflection_info_1.ScalarType.BYTES:
|
||||
assert_1.assert(value instanceof Uint8Array);
|
||||
if (!value.byteLength)
|
||||
return ed ? "" : undefined;
|
||||
return base64_1.base64encode(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.ReflectionJsonWriter = ReflectionJsonWriter;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3402:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.reflectionLongConvert = void 0;
|
||||
const reflection_info_1 = __nccwpck_require__(7910);
|
||||
/**
|
||||
* Utility method to convert a PbLong or PbUlong to a JavaScript
|
||||
* representation during runtime.
|
||||
*
|
||||
* Works with generated field information, `undefined` is equivalent
|
||||
* to `STRING`.
|
||||
*/
|
||||
function reflectionLongConvert(long, type) {
|
||||
switch (type) {
|
||||
case reflection_info_1.LongType.BIGINT:
|
||||
return long.toBigInt();
|
||||
case reflection_info_1.LongType.NUMBER:
|
||||
return long.toNumber();
|
||||
default:
|
||||
// case undefined:
|
||||
// case LongType.STRING:
|
||||
return long.toString();
|
||||
}
|
||||
}
|
||||
exports.reflectionLongConvert = reflectionLongConvert;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8044:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.reflectionMergePartial = void 0;
|
||||
/**
|
||||
* Copy partial data into the target message.
|
||||
*
|
||||
* If a singular scalar or enum field is present in the source, it
|
||||
* replaces the field in the target.
|
||||
*
|
||||
* If a singular message field is present in the source, it is merged
|
||||
* with the target field by calling mergePartial() of the responsible
|
||||
* message type.
|
||||
*
|
||||
* If a repeated field is present in the source, its values replace
|
||||
* all values in the target array, removing extraneous values.
|
||||
* Repeated message fields are copied, not merged.
|
||||
*
|
||||
* If a map field is present in the source, entries are added to the
|
||||
* target map, replacing entries with the same key. Entries that only
|
||||
* exist in the target remain. Entries with message values are copied,
|
||||
* not merged.
|
||||
*
|
||||
* Note that this function differs from protobuf merge semantics,
|
||||
* which appends repeated fields.
|
||||
*/
|
||||
function reflectionMergePartial(info, target, source) {
|
||||
let fieldValue, // the field value we are working with
|
||||
input = source, output; // where we want our field value to go
|
||||
for (let field of info.fields) {
|
||||
let name = field.localName;
|
||||
if (field.oneof) {
|
||||
const group = input[field.oneof]; // this is the oneof`s group in the source
|
||||
if ((group === null || group === void 0 ? void 0 : group.oneofKind) == undefined) { // the user is free to omit
|
||||
continue; // we skip this field, and all other members too
|
||||
}
|
||||
fieldValue = group[name]; // our value comes from the the oneof group of the source
|
||||
output = target[field.oneof]; // and our output is the oneof group of the target
|
||||
output.oneofKind = group.oneofKind; // always update discriminator
|
||||
if (fieldValue == undefined) {
|
||||
delete output[name]; // remove any existing value
|
||||
continue; // skip further work on field
|
||||
}
|
||||
}
|
||||
else {
|
||||
fieldValue = input[name]; // we are using the source directly
|
||||
output = target; // we want our field value to go directly into the target
|
||||
if (fieldValue == undefined) {
|
||||
continue; // skip further work on field, existing value is used as is
|
||||
}
|
||||
}
|
||||
if (field.repeat)
|
||||
output[name].length = fieldValue.length; // resize target array to match source array
|
||||
// now we just work with `fieldValue` and `output` to merge the value
|
||||
switch (field.kind) {
|
||||
case "scalar":
|
||||
case "enum":
|
||||
if (field.repeat)
|
||||
for (let i = 0; i < fieldValue.length; i++)
|
||||
output[name][i] = fieldValue[i]; // not a reference type
|
||||
else
|
||||
output[name] = fieldValue; // not a reference type
|
||||
break;
|
||||
case "message":
|
||||
let T = field.T();
|
||||
if (field.repeat)
|
||||
for (let i = 0; i < fieldValue.length; i++)
|
||||
output[name][i] = T.create(fieldValue[i]);
|
||||
else if (output[name] === undefined)
|
||||
output[name] = T.create(fieldValue); // nothing to merge with
|
||||
else
|
||||
T.mergePartial(output[name], fieldValue);
|
||||
break;
|
||||
case "map":
|
||||
// Map and repeated fields are simply overwritten, not appended or merged
|
||||
switch (field.V.kind) {
|
||||
case "scalar":
|
||||
case "enum":
|
||||
Object.assign(output[name], fieldValue); // elements are not reference types
|
||||
break;
|
||||
case "message":
|
||||
let T = field.V.T();
|
||||
for (let k of Object.keys(fieldValue))
|
||||
output[name][k] = T.create(fieldValue[k]);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.reflectionMergePartial = reflectionMergePartial;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9526:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.reflectionScalarDefault = void 0;
|
||||
const reflection_info_1 = __nccwpck_require__(7910);
|
||||
const reflection_long_convert_1 = __nccwpck_require__(3402);
|
||||
const pb_long_1 = __nccwpck_require__(1753);
|
||||
/**
|
||||
* Creates the default value for a scalar type.
|
||||
*/
|
||||
function reflectionScalarDefault(type, longType = reflection_info_1.LongType.STRING) {
|
||||
switch (type) {
|
||||
case reflection_info_1.ScalarType.BOOL:
|
||||
return false;
|
||||
case reflection_info_1.ScalarType.UINT64:
|
||||
case reflection_info_1.ScalarType.FIXED64:
|
||||
return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbULong.ZERO, longType);
|
||||
case reflection_info_1.ScalarType.INT64:
|
||||
case reflection_info_1.ScalarType.SFIXED64:
|
||||
case reflection_info_1.ScalarType.SINT64:
|
||||
return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbLong.ZERO, longType);
|
||||
case reflection_info_1.ScalarType.DOUBLE:
|
||||
case reflection_info_1.ScalarType.FLOAT:
|
||||
return 0.0;
|
||||
case reflection_info_1.ScalarType.BYTES:
|
||||
return new Uint8Array(0);
|
||||
case reflection_info_1.ScalarType.STRING:
|
||||
return "";
|
||||
default:
|
||||
// case ScalarType.INT32:
|
||||
// case ScalarType.UINT32:
|
||||
// case ScalarType.SINT32:
|
||||
// case ScalarType.FIXED32:
|
||||
// case ScalarType.SFIXED32:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
exports.reflectionScalarDefault = reflectionScalarDefault;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5167:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.ReflectionTypeCheck = void 0;
|
||||
const reflection_info_1 = __nccwpck_require__(7910);
|
||||
const oneof_1 = __nccwpck_require__(8063);
|
||||
// noinspection JSMethodCanBeStatic
|
||||
class ReflectionTypeCheck {
|
||||
constructor(info) {
|
||||
var _a;
|
||||
this.fields = (_a = info.fields) !== null && _a !== void 0 ? _a : [];
|
||||
}
|
||||
prepare() {
|
||||
if (this.data)
|
||||
return;
|
||||
const req = [], known = [], oneofs = [];
|
||||
for (let field of this.fields) {
|
||||
if (field.oneof) {
|
||||
if (!oneofs.includes(field.oneof)) {
|
||||
oneofs.push(field.oneof);
|
||||
req.push(field.oneof);
|
||||
known.push(field.oneof);
|
||||
}
|
||||
}
|
||||
else {
|
||||
known.push(field.localName);
|
||||
switch (field.kind) {
|
||||
case "scalar":
|
||||
case "enum":
|
||||
if (!field.opt || field.repeat)
|
||||
req.push(field.localName);
|
||||
break;
|
||||
case "message":
|
||||
if (field.repeat)
|
||||
req.push(field.localName);
|
||||
break;
|
||||
case "map":
|
||||
req.push(field.localName);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.data = { req, known, oneofs: Object.values(oneofs) };
|
||||
}
|
||||
/**
|
||||
* Is the argument a valid message as specified by the
|
||||
* reflection information?
|
||||
*
|
||||
* Checks all field types recursively. The `depth`
|
||||
* specifies how deep into the structure the check will be.
|
||||
*
|
||||
* With a depth of 0, only the presence of fields
|
||||
* is checked.
|
||||
*
|
||||
* With a depth of 1 or more, the field types are checked.
|
||||
*
|
||||
* With a depth of 2 or more, the members of map, repeated
|
||||
* and message fields are checked.
|
||||
*
|
||||
* Message fields will be checked recursively with depth - 1.
|
||||
*
|
||||
* The number of map entries / repeated values being checked
|
||||
* is < depth.
|
||||
*/
|
||||
is(message, depth, allowExcessProperties = false) {
|
||||
if (depth < 0)
|
||||
return true;
|
||||
if (message === null || message === undefined || typeof message != 'object')
|
||||
return false;
|
||||
this.prepare();
|
||||
let keys = Object.keys(message), data = this.data;
|
||||
// if a required field is missing in arg, this cannot be a T
|
||||
if (keys.length < data.req.length || data.req.some(n => !keys.includes(n)))
|
||||
return false;
|
||||
if (!allowExcessProperties) {
|
||||
// if the arg contains a key we dont know, this is not a literal T
|
||||
if (keys.some(k => !data.known.includes(k)))
|
||||
return false;
|
||||
}
|
||||
// "With a depth of 0, only the presence and absence of fields is checked."
|
||||
// "With a depth of 1 or more, the field types are checked."
|
||||
if (depth < 1) {
|
||||
return true;
|
||||
}
|
||||
// check oneof group
|
||||
for (const name of data.oneofs) {
|
||||
const group = message[name];
|
||||
if (!oneof_1.isOneofGroup(group))
|
||||
return false;
|
||||
if (group.oneofKind === undefined)
|
||||
continue;
|
||||
const field = this.fields.find(f => f.localName === group.oneofKind);
|
||||
if (!field)
|
||||
return false; // we found no field, but have a kind, something is wrong
|
||||
if (!this.field(group[group.oneofKind], field, allowExcessProperties, depth))
|
||||
return false;
|
||||
}
|
||||
// check types
|
||||
for (const field of this.fields) {
|
||||
if (field.oneof !== undefined)
|
||||
continue;
|
||||
if (!this.field(message[field.localName], field, allowExcessProperties, depth))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
field(arg, field, allowExcessProperties, depth) {
|
||||
let repeated = field.repeat;
|
||||
switch (field.kind) {
|
||||
case "scalar":
|
||||
if (arg === undefined)
|
||||
return field.opt;
|
||||
if (repeated)
|
||||
return this.scalars(arg, field.T, depth, field.L);
|
||||
return this.scalar(arg, field.T, field.L);
|
||||
case "enum":
|
||||
if (arg === undefined)
|
||||
return field.opt;
|
||||
if (repeated)
|
||||
return this.scalars(arg, reflection_info_1.ScalarType.INT32, depth);
|
||||
return this.scalar(arg, reflection_info_1.ScalarType.INT32);
|
||||
case "message":
|
||||
if (arg === undefined)
|
||||
return true;
|
||||
if (repeated)
|
||||
return this.messages(arg, field.T(), allowExcessProperties, depth);
|
||||
return this.message(arg, field.T(), allowExcessProperties, depth);
|
||||
case "map":
|
||||
if (typeof arg != 'object' || arg === null)
|
||||
return false;
|
||||
if (depth < 2)
|
||||
return true;
|
||||
if (!this.mapKeys(arg, field.K, depth))
|
||||
return false;
|
||||
switch (field.V.kind) {
|
||||
case "scalar":
|
||||
return this.scalars(Object.values(arg), field.V.T, depth, field.V.L);
|
||||
case "enum":
|
||||
return this.scalars(Object.values(arg), reflection_info_1.ScalarType.INT32, depth);
|
||||
case "message":
|
||||
return this.messages(Object.values(arg), field.V.T(), allowExcessProperties, depth);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
message(arg, type, allowExcessProperties, depth) {
|
||||
if (allowExcessProperties) {
|
||||
return type.isAssignable(arg, depth);
|
||||
}
|
||||
return type.is(arg, depth);
|
||||
}
|
||||
messages(arg, type, allowExcessProperties, depth) {
|
||||
if (!Array.isArray(arg))
|
||||
return false;
|
||||
if (depth < 2)
|
||||
return true;
|
||||
if (allowExcessProperties) {
|
||||
for (let i = 0; i < arg.length && i < depth; i++)
|
||||
if (!type.isAssignable(arg[i], depth - 1))
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
for (let i = 0; i < arg.length && i < depth; i++)
|
||||
if (!type.is(arg[i], depth - 1))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
scalar(arg, type, longType) {
|
||||
let argType = typeof arg;
|
||||
switch (type) {
|
||||
case reflection_info_1.ScalarType.UINT64:
|
||||
case reflection_info_1.ScalarType.FIXED64:
|
||||
case reflection_info_1.ScalarType.INT64:
|
||||
case reflection_info_1.ScalarType.SFIXED64:
|
||||
case reflection_info_1.ScalarType.SINT64:
|
||||
switch (longType) {
|
||||
case reflection_info_1.LongType.BIGINT:
|
||||
return argType == "bigint";
|
||||
case reflection_info_1.LongType.NUMBER:
|
||||
return argType == "number" && !isNaN(arg);
|
||||
default:
|
||||
return argType == "string";
|
||||
}
|
||||
case reflection_info_1.ScalarType.BOOL:
|
||||
return argType == 'boolean';
|
||||
case reflection_info_1.ScalarType.STRING:
|
||||
return argType == 'string';
|
||||
case reflection_info_1.ScalarType.BYTES:
|
||||
return arg instanceof Uint8Array;
|
||||
case reflection_info_1.ScalarType.DOUBLE:
|
||||
case reflection_info_1.ScalarType.FLOAT:
|
||||
return argType == 'number' && !isNaN(arg);
|
||||
default:
|
||||
// case ScalarType.UINT32:
|
||||
// case ScalarType.FIXED32:
|
||||
// case ScalarType.INT32:
|
||||
// case ScalarType.SINT32:
|
||||
// case ScalarType.SFIXED32:
|
||||
return argType == 'number' && Number.isInteger(arg);
|
||||
}
|
||||
}
|
||||
scalars(arg, type, depth, longType) {
|
||||
if (!Array.isArray(arg))
|
||||
return false;
|
||||
if (depth < 2)
|
||||
return true;
|
||||
if (Array.isArray(arg))
|
||||
for (let i = 0; i < arg.length && i < depth; i++)
|
||||
if (!this.scalar(arg[i], type, longType))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
mapKeys(map, type, depth) {
|
||||
let keys = Object.keys(map);
|
||||
switch (type) {
|
||||
case reflection_info_1.ScalarType.INT32:
|
||||
case reflection_info_1.ScalarType.FIXED32:
|
||||
case reflection_info_1.ScalarType.SFIXED32:
|
||||
case reflection_info_1.ScalarType.SINT32:
|
||||
case reflection_info_1.ScalarType.UINT32:
|
||||
return this.scalars(keys.slice(0, depth).map(k => parseInt(k)), type, depth);
|
||||
case reflection_info_1.ScalarType.BOOL:
|
||||
return this.scalars(keys.slice(0, depth).map(k => k == 'true' ? true : k == 'false' ? false : k), type, depth);
|
||||
default:
|
||||
return this.scalars(keys, type, depth, reflection_info_1.LongType.STRING);
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.ReflectionTypeCheck = ReflectionTypeCheck;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1324:
|
||||
@@ -48261,6 +55665,599 @@ DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() {
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5129:
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
function _process (v, mod) {
|
||||
var i
|
||||
var r
|
||||
|
||||
if (typeof mod === 'function') {
|
||||
r = mod(v)
|
||||
if (r !== undefined) {
|
||||
v = r
|
||||
}
|
||||
} else if (Array.isArray(mod)) {
|
||||
for (i = 0; i < mod.length; i++) {
|
||||
r = mod[i](v)
|
||||
if (r !== undefined) {
|
||||
v = r
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return v
|
||||
}
|
||||
|
||||
function parseKey (key, val) {
|
||||
// detect negative index notation
|
||||
if (key[0] === '-' && Array.isArray(val) && /^-\d+$/.test(key)) {
|
||||
return val.length + parseInt(key, 10)
|
||||
}
|
||||
return key
|
||||
}
|
||||
|
||||
function isIndex (k) {
|
||||
return /^\d+$/.test(k)
|
||||
}
|
||||
|
||||
function isObject (val) {
|
||||
return Object.prototype.toString.call(val) === '[object Object]'
|
||||
}
|
||||
|
||||
function isArrayOrObject (val) {
|
||||
return Object(val) === val
|
||||
}
|
||||
|
||||
function isEmptyObject (val) {
|
||||
return Object.keys(val).length === 0
|
||||
}
|
||||
|
||||
var blacklist = ['__proto__', 'prototype', 'constructor']
|
||||
var blacklistFilter = function (part) { return blacklist.indexOf(part) === -1 }
|
||||
|
||||
function parsePath (path, sep) {
|
||||
if (path.indexOf('[') >= 0) {
|
||||
path = path.replace(/\[/g, sep).replace(/]/g, '')
|
||||
}
|
||||
|
||||
var parts = path.split(sep)
|
||||
|
||||
var check = parts.filter(blacklistFilter)
|
||||
|
||||
if (check.length !== parts.length) {
|
||||
throw Error('Refusing to update blacklisted property ' + path)
|
||||
}
|
||||
|
||||
return parts
|
||||
}
|
||||
|
||||
var hasOwnProperty = Object.prototype.hasOwnProperty
|
||||
|
||||
function DotObject (separator, override, useArray, useBrackets) {
|
||||
if (!(this instanceof DotObject)) {
|
||||
return new DotObject(separator, override, useArray, useBrackets)
|
||||
}
|
||||
|
||||
if (typeof override === 'undefined') override = false
|
||||
if (typeof useArray === 'undefined') useArray = true
|
||||
if (typeof useBrackets === 'undefined') useBrackets = true
|
||||
this.separator = separator || '.'
|
||||
this.override = override
|
||||
this.useArray = useArray
|
||||
this.useBrackets = useBrackets
|
||||
this.keepArray = false
|
||||
|
||||
// contains touched arrays
|
||||
this.cleanup = []
|
||||
}
|
||||
|
||||
var dotDefault = new DotObject('.', false, true, true)
|
||||
function wrap (method) {
|
||||
return function () {
|
||||
return dotDefault[method].apply(dotDefault, arguments)
|
||||
}
|
||||
}
|
||||
|
||||
DotObject.prototype._fill = function (a, obj, v, mod) {
|
||||
var k = a.shift()
|
||||
|
||||
if (a.length > 0) {
|
||||
obj[k] = obj[k] || (this.useArray && isIndex(a[0]) ? [] : {})
|
||||
|
||||
if (!isArrayOrObject(obj[k])) {
|
||||
if (this.override) {
|
||||
obj[k] = {}
|
||||
} else {
|
||||
if (!(isArrayOrObject(v) && isEmptyObject(v))) {
|
||||
throw new Error(
|
||||
'Trying to redefine `' + k + '` which is a ' + typeof obj[k]
|
||||
)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
this._fill(a, obj[k], v, mod)
|
||||
} else {
|
||||
if (!this.override && isArrayOrObject(obj[k]) && !isEmptyObject(obj[k])) {
|
||||
if (!(isArrayOrObject(v) && isEmptyObject(v))) {
|
||||
throw new Error("Trying to redefine non-empty obj['" + k + "']")
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
obj[k] = _process(v, mod)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Converts an object with dotted-key/value pairs to it's expanded version
|
||||
*
|
||||
* Optionally transformed by a set of modifiers.
|
||||
*
|
||||
* Usage:
|
||||
*
|
||||
* var row = {
|
||||
* 'nr': 200,
|
||||
* 'doc.name': ' My Document '
|
||||
* }
|
||||
*
|
||||
* var mods = {
|
||||
* 'doc.name': [_s.trim, _s.underscored]
|
||||
* }
|
||||
*
|
||||
* dot.object(row, mods)
|
||||
*
|
||||
* @param {Object} obj
|
||||
* @param {Object} mods
|
||||
*/
|
||||
DotObject.prototype.object = function (obj, mods) {
|
||||
var self = this
|
||||
|
||||
Object.keys(obj).forEach(function (k) {
|
||||
var mod = mods === undefined ? null : mods[k]
|
||||
// normalize array notation.
|
||||
var ok = parsePath(k, self.separator).join(self.separator)
|
||||
|
||||
if (ok.indexOf(self.separator) !== -1) {
|
||||
self._fill(ok.split(self.separator), obj, obj[k], mod)
|
||||
delete obj[k]
|
||||
} else {
|
||||
obj[k] = _process(obj[k], mod)
|
||||
}
|
||||
})
|
||||
|
||||
return obj
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {String} path dotted path
|
||||
* @param {String} v value to be set
|
||||
* @param {Object} obj object to be modified
|
||||
* @param {Function|Array} mod optional modifier
|
||||
*/
|
||||
DotObject.prototype.str = function (path, v, obj, mod) {
|
||||
var ok = parsePath(path, this.separator).join(this.separator)
|
||||
|
||||
if (path.indexOf(this.separator) !== -1) {
|
||||
this._fill(ok.split(this.separator), obj, v, mod)
|
||||
} else {
|
||||
obj[path] = _process(v, mod)
|
||||
}
|
||||
|
||||
return obj
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Pick a value from an object using dot notation.
|
||||
*
|
||||
* Optionally remove the value
|
||||
*
|
||||
* @param {String} path
|
||||
* @param {Object} obj
|
||||
* @param {Boolean} remove
|
||||
*/
|
||||
DotObject.prototype.pick = function (path, obj, remove, reindexArray) {
|
||||
var i
|
||||
var keys
|
||||
var val
|
||||
var key
|
||||
var cp
|
||||
|
||||
keys = parsePath(path, this.separator)
|
||||
for (i = 0; i < keys.length; i++) {
|
||||
key = parseKey(keys[i], obj)
|
||||
if (obj && typeof obj === 'object' && key in obj) {
|
||||
if (i === keys.length - 1) {
|
||||
if (remove) {
|
||||
val = obj[key]
|
||||
if (reindexArray && Array.isArray(obj)) {
|
||||
obj.splice(key, 1)
|
||||
} else {
|
||||
delete obj[key]
|
||||
}
|
||||
if (Array.isArray(obj)) {
|
||||
cp = keys.slice(0, -1).join('.')
|
||||
if (this.cleanup.indexOf(cp) === -1) {
|
||||
this.cleanup.push(cp)
|
||||
}
|
||||
}
|
||||
return val
|
||||
} else {
|
||||
return obj[key]
|
||||
}
|
||||
} else {
|
||||
obj = obj[key]
|
||||
}
|
||||
} else {
|
||||
return undefined
|
||||
}
|
||||
}
|
||||
if (remove && Array.isArray(obj)) {
|
||||
obj = obj.filter(function (n) {
|
||||
return n !== undefined
|
||||
})
|
||||
}
|
||||
return obj
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Delete value from an object using dot notation.
|
||||
*
|
||||
* @param {String} path
|
||||
* @param {Object} obj
|
||||
* @return {any} The removed value
|
||||
*/
|
||||
DotObject.prototype.delete = function (path, obj) {
|
||||
return this.remove(path, obj, true)
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Remove value from an object using dot notation.
|
||||
*
|
||||
* Will remove multiple items if path is an array.
|
||||
* In this case array indexes will be retained until all
|
||||
* removals have been processed.
|
||||
*
|
||||
* Use dot.delete() to automatically re-index arrays.
|
||||
*
|
||||
* @param {String|Array<String>} path
|
||||
* @param {Object} obj
|
||||
* @param {Boolean} reindexArray
|
||||
* @return {any} The removed value
|
||||
*/
|
||||
DotObject.prototype.remove = function (path, obj, reindexArray) {
|
||||
var i
|
||||
|
||||
this.cleanup = []
|
||||
if (Array.isArray(path)) {
|
||||
for (i = 0; i < path.length; i++) {
|
||||
this.pick(path[i], obj, true, reindexArray)
|
||||
}
|
||||
if (!reindexArray) {
|
||||
this._cleanup(obj)
|
||||
}
|
||||
return obj
|
||||
} else {
|
||||
return this.pick(path, obj, true, reindexArray)
|
||||
}
|
||||
}
|
||||
|
||||
DotObject.prototype._cleanup = function (obj) {
|
||||
var ret
|
||||
var i
|
||||
var keys
|
||||
var root
|
||||
if (this.cleanup.length) {
|
||||
for (i = 0; i < this.cleanup.length; i++) {
|
||||
keys = this.cleanup[i].split('.')
|
||||
root = keys.splice(0, -1).join('.')
|
||||
ret = root ? this.pick(root, obj) : obj
|
||||
ret = ret[keys[0]].filter(function (v) {
|
||||
return v !== undefined
|
||||
})
|
||||
this.set(this.cleanup[i], ret, obj)
|
||||
}
|
||||
this.cleanup = []
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Alias method for `dot.remove`
|
||||
*
|
||||
* Note: this is not an alias for dot.delete()
|
||||
*
|
||||
* @param {String|Array<String>} path
|
||||
* @param {Object} obj
|
||||
* @param {Boolean} reindexArray
|
||||
* @return {any} The removed value
|
||||
*/
|
||||
DotObject.prototype.del = DotObject.prototype.remove
|
||||
|
||||
/**
|
||||
*
|
||||
* Move a property from one place to the other.
|
||||
*
|
||||
* If the source path does not exist (undefined)
|
||||
* the target property will not be set.
|
||||
*
|
||||
* @param {String} source
|
||||
* @param {String} target
|
||||
* @param {Object} obj
|
||||
* @param {Function|Array} mods
|
||||
* @param {Boolean} merge
|
||||
*/
|
||||
DotObject.prototype.move = function (source, target, obj, mods, merge) {
|
||||
if (typeof mods === 'function' || Array.isArray(mods)) {
|
||||
this.set(target, _process(this.pick(source, obj, true), mods), obj, merge)
|
||||
} else {
|
||||
merge = mods
|
||||
this.set(target, this.pick(source, obj, true), obj, merge)
|
||||
}
|
||||
|
||||
return obj
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Transfer a property from one object to another object.
|
||||
*
|
||||
* If the source path does not exist (undefined)
|
||||
* the property on the other object will not be set.
|
||||
*
|
||||
* @param {String} source
|
||||
* @param {String} target
|
||||
* @param {Object} obj1
|
||||
* @param {Object} obj2
|
||||
* @param {Function|Array} mods
|
||||
* @param {Boolean} merge
|
||||
*/
|
||||
DotObject.prototype.transfer = function (
|
||||
source,
|
||||
target,
|
||||
obj1,
|
||||
obj2,
|
||||
mods,
|
||||
merge
|
||||
) {
|
||||
if (typeof mods === 'function' || Array.isArray(mods)) {
|
||||
this.set(
|
||||
target,
|
||||
_process(this.pick(source, obj1, true), mods),
|
||||
obj2,
|
||||
merge
|
||||
)
|
||||
} else {
|
||||
merge = mods
|
||||
this.set(target, this.pick(source, obj1, true), obj2, merge)
|
||||
}
|
||||
|
||||
return obj2
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Copy a property from one object to another object.
|
||||
*
|
||||
* If the source path does not exist (undefined)
|
||||
* the property on the other object will not be set.
|
||||
*
|
||||
* @param {String} source
|
||||
* @param {String} target
|
||||
* @param {Object} obj1
|
||||
* @param {Object} obj2
|
||||
* @param {Function|Array} mods
|
||||
* @param {Boolean} merge
|
||||
*/
|
||||
DotObject.prototype.copy = function (source, target, obj1, obj2, mods, merge) {
|
||||
if (typeof mods === 'function' || Array.isArray(mods)) {
|
||||
this.set(
|
||||
target,
|
||||
_process(
|
||||
// clone what is picked
|
||||
JSON.parse(JSON.stringify(this.pick(source, obj1, false))),
|
||||
mods
|
||||
),
|
||||
obj2,
|
||||
merge
|
||||
)
|
||||
} else {
|
||||
merge = mods
|
||||
this.set(target, this.pick(source, obj1, false), obj2, merge)
|
||||
}
|
||||
|
||||
return obj2
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Set a property on an object using dot notation.
|
||||
*
|
||||
* @param {String} path
|
||||
* @param {any} val
|
||||
* @param {Object} obj
|
||||
* @param {Boolean} merge
|
||||
*/
|
||||
DotObject.prototype.set = function (path, val, obj, merge) {
|
||||
var i
|
||||
var k
|
||||
var keys
|
||||
var key
|
||||
|
||||
// Do not operate if the value is undefined.
|
||||
if (typeof val === 'undefined') {
|
||||
return obj
|
||||
}
|
||||
keys = parsePath(path, this.separator)
|
||||
|
||||
for (i = 0; i < keys.length; i++) {
|
||||
key = keys[i]
|
||||
if (i === keys.length - 1) {
|
||||
if (merge && isObject(val) && isObject(obj[key])) {
|
||||
for (k in val) {
|
||||
if (hasOwnProperty.call(val, k)) {
|
||||
obj[key][k] = val[k]
|
||||
}
|
||||
}
|
||||
} else if (merge && Array.isArray(obj[key]) && Array.isArray(val)) {
|
||||
for (var j = 0; j < val.length; j++) {
|
||||
obj[keys[i]].push(val[j])
|
||||
}
|
||||
} else {
|
||||
obj[key] = val
|
||||
}
|
||||
} else if (
|
||||
// force the value to be an object
|
||||
!hasOwnProperty.call(obj, key) ||
|
||||
(!isObject(obj[key]) && !Array.isArray(obj[key]))
|
||||
) {
|
||||
// initialize as array if next key is numeric
|
||||
if (/^\d+$/.test(keys[i + 1])) {
|
||||
obj[key] = []
|
||||
} else {
|
||||
obj[key] = {}
|
||||
}
|
||||
}
|
||||
obj = obj[key]
|
||||
}
|
||||
return obj
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Transform an object
|
||||
*
|
||||
* Usage:
|
||||
*
|
||||
* var obj = {
|
||||
* "id": 1,
|
||||
* "some": {
|
||||
* "thing": "else"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* var transform = {
|
||||
* "id": "nr",
|
||||
* "some.thing": "name"
|
||||
* }
|
||||
*
|
||||
* var tgt = dot.transform(transform, obj)
|
||||
*
|
||||
* @param {Object} recipe Transform recipe
|
||||
* @param {Object} obj Object to be transformed
|
||||
* @param {Array} mods modifiers for the target
|
||||
*/
|
||||
DotObject.prototype.transform = function (recipe, obj, tgt) {
|
||||
obj = obj || {}
|
||||
tgt = tgt || {}
|
||||
Object.keys(recipe).forEach(
|
||||
function (key) {
|
||||
this.set(recipe[key], this.pick(key, obj), tgt)
|
||||
}.bind(this)
|
||||
)
|
||||
return tgt
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Convert object to dotted-key/value pair
|
||||
*
|
||||
* Usage:
|
||||
*
|
||||
* var tgt = dot.dot(obj)
|
||||
*
|
||||
* or
|
||||
*
|
||||
* var tgt = {}
|
||||
* dot.dot(obj, tgt)
|
||||
*
|
||||
* @param {Object} obj source object
|
||||
* @param {Object} tgt target object
|
||||
* @param {Array} path path array (internal)
|
||||
*/
|
||||
DotObject.prototype.dot = function (obj, tgt, path) {
|
||||
tgt = tgt || {}
|
||||
path = path || []
|
||||
var isArray = Array.isArray(obj)
|
||||
|
||||
Object.keys(obj).forEach(
|
||||
function (key) {
|
||||
var index = isArray && this.useBrackets ? '[' + key + ']' : key
|
||||
if (
|
||||
isArrayOrObject(obj[key]) &&
|
||||
((isObject(obj[key]) && !isEmptyObject(obj[key])) ||
|
||||
(Array.isArray(obj[key]) && !this.keepArray && obj[key].length !== 0))
|
||||
) {
|
||||
if (isArray && this.useBrackets) {
|
||||
var previousKey = path[path.length - 1] || ''
|
||||
return this.dot(
|
||||
obj[key],
|
||||
tgt,
|
||||
path.slice(0, -1).concat(previousKey + index)
|
||||
)
|
||||
} else {
|
||||
return this.dot(obj[key], tgt, path.concat(index))
|
||||
}
|
||||
} else {
|
||||
if (isArray && this.useBrackets) {
|
||||
tgt[path.join(this.separator).concat('[' + key + ']')] = obj[key]
|
||||
} else {
|
||||
tgt[path.concat(index).join(this.separator)] = obj[key]
|
||||
}
|
||||
}
|
||||
}.bind(this)
|
||||
)
|
||||
return tgt
|
||||
}
|
||||
|
||||
DotObject.pick = wrap('pick')
|
||||
DotObject.move = wrap('move')
|
||||
DotObject.transfer = wrap('transfer')
|
||||
DotObject.transform = wrap('transform')
|
||||
DotObject.copy = wrap('copy')
|
||||
DotObject.object = wrap('object')
|
||||
DotObject.str = wrap('str')
|
||||
DotObject.set = wrap('set')
|
||||
DotObject.delete = wrap('delete')
|
||||
DotObject.del = DotObject.remove = wrap('remove')
|
||||
DotObject.dot = wrap('dot');
|
||||
['override', 'overwrite'].forEach(function (prop) {
|
||||
Object.defineProperty(DotObject, prop, {
|
||||
get: function () {
|
||||
return dotDefault.override
|
||||
},
|
||||
set: function (val) {
|
||||
dotDefault.override = !!val
|
||||
}
|
||||
})
|
||||
});
|
||||
['useArray', 'keepArray', 'useBrackets'].forEach(function (prop) {
|
||||
Object.defineProperty(DotObject, prop, {
|
||||
get: function () {
|
||||
return dotDefault[prop]
|
||||
},
|
||||
set: function (val) {
|
||||
dotDefault[prop] = val
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
DotObject._process = _process
|
||||
|
||||
module.exports = DotObject
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9829:
|
||||
@@ -53133,6 +61130,1152 @@ if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
|
||||
exports.debug = debug; // for test
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5497:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3315:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.isValidErrorCode = exports.httpStatusFromErrorCode = exports.TwirpErrorCode = exports.BadRouteError = exports.InternalServerErrorWith = exports.InternalServerError = exports.RequiredArgumentError = exports.InvalidArgumentError = exports.NotFoundError = exports.TwirpError = void 0;
|
||||
/**
|
||||
* Represents a twirp error
|
||||
*/
|
||||
class TwirpError extends Error {
|
||||
constructor(code, msg) {
|
||||
super(msg);
|
||||
this.code = TwirpErrorCode.Internal;
|
||||
this.meta = {};
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
Object.setPrototypeOf(this, TwirpError.prototype);
|
||||
}
|
||||
/**
|
||||
* Adds a metadata kv to the error
|
||||
* @param key
|
||||
* @param value
|
||||
*/
|
||||
withMeta(key, value) {
|
||||
this.meta[key] = value;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* Returns a single metadata value
|
||||
* return "" if not found
|
||||
* @param key
|
||||
*/
|
||||
getMeta(key) {
|
||||
return this.meta[key] || "";
|
||||
}
|
||||
/**
|
||||
* Add the original error cause
|
||||
* @param err
|
||||
* @param addMeta
|
||||
*/
|
||||
withCause(err, addMeta = false) {
|
||||
this._originalCause = err;
|
||||
if (addMeta) {
|
||||
this.withMeta("cause", err.message);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
cause() {
|
||||
return this._originalCause;
|
||||
}
|
||||
/**
|
||||
* Returns the error representation to JSON
|
||||
*/
|
||||
toJSON() {
|
||||
try {
|
||||
return JSON.stringify({
|
||||
code: this.code,
|
||||
msg: this.msg,
|
||||
meta: this.meta,
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
return `{"code": "internal", "msg": "There was an error but it could not be serialized into JSON"}`;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Create a twirp error from an object
|
||||
* @param obj
|
||||
*/
|
||||
static fromObject(obj) {
|
||||
const code = obj["code"] || TwirpErrorCode.Unknown;
|
||||
const msg = obj["msg"] || "unknown";
|
||||
const error = new TwirpError(code, msg);
|
||||
if (obj["meta"]) {
|
||||
Object.keys(obj["meta"]).forEach((key) => {
|
||||
error.withMeta(key, obj["meta"][key]);
|
||||
});
|
||||
}
|
||||
return error;
|
||||
}
|
||||
}
|
||||
exports.TwirpError = TwirpError;
|
||||
/**
|
||||
* NotFoundError constructor for the common NotFound error.
|
||||
*/
|
||||
class NotFoundError extends TwirpError {
|
||||
constructor(msg) {
|
||||
super(TwirpErrorCode.NotFound, msg);
|
||||
}
|
||||
}
|
||||
exports.NotFoundError = NotFoundError;
|
||||
/**
|
||||
* InvalidArgumentError constructor for the common InvalidArgument error. Can be
|
||||
* used when an argument has invalid format, is a number out of range, is a bad
|
||||
* option, etc).
|
||||
*/
|
||||
class InvalidArgumentError extends TwirpError {
|
||||
constructor(argument, validationMsg) {
|
||||
super(TwirpErrorCode.InvalidArgument, argument + " " + validationMsg);
|
||||
this.withMeta("argument", argument);
|
||||
}
|
||||
}
|
||||
exports.InvalidArgumentError = InvalidArgumentError;
|
||||
/**
|
||||
* RequiredArgumentError is a more specific constructor for InvalidArgument
|
||||
* error. Should be used when the argument is required (expected to have a
|
||||
* non-zero value).
|
||||
*/
|
||||
class RequiredArgumentError extends InvalidArgumentError {
|
||||
constructor(argument) {
|
||||
super(argument, "is required");
|
||||
}
|
||||
}
|
||||
exports.RequiredArgumentError = RequiredArgumentError;
|
||||
/**
|
||||
* InternalError constructor for the common Internal error. Should be used to
|
||||
* specify that something bad or unexpected happened.
|
||||
*/
|
||||
class InternalServerError extends TwirpError {
|
||||
constructor(msg) {
|
||||
super(TwirpErrorCode.Internal, msg);
|
||||
}
|
||||
}
|
||||
exports.InternalServerError = InternalServerError;
|
||||
/**
|
||||
* InternalErrorWith makes an internal error, wrapping the original error and using it
|
||||
* for the error message, and with metadata "cause" with the original error type.
|
||||
* This function is used by Twirp services to wrap non-Twirp errors as internal errors.
|
||||
* The wrapped error can be extracted later with err.cause()
|
||||
*/
|
||||
class InternalServerErrorWith extends InternalServerError {
|
||||
constructor(err) {
|
||||
super(err.message);
|
||||
this.withMeta("cause", err.name);
|
||||
this.withCause(err);
|
||||
}
|
||||
}
|
||||
exports.InternalServerErrorWith = InternalServerErrorWith;
|
||||
/**
|
||||
* A standard BadRoute Error
|
||||
*/
|
||||
class BadRouteError extends TwirpError {
|
||||
constructor(msg, method, url) {
|
||||
super(TwirpErrorCode.BadRoute, msg);
|
||||
this.withMeta("twirp_invalid_route", method + " " + url);
|
||||
}
|
||||
}
|
||||
exports.BadRouteError = BadRouteError;
|
||||
var TwirpErrorCode;
|
||||
(function (TwirpErrorCode) {
|
||||
// Canceled indicates the operation was cancelled (typically by the caller).
|
||||
TwirpErrorCode["Canceled"] = "canceled";
|
||||
// Unknown error. For example when handling errors raised by APIs that do not
|
||||
// return enough error information.
|
||||
TwirpErrorCode["Unknown"] = "unknown";
|
||||
// InvalidArgument indicates client specified an invalid argument. It
|
||||
// indicates arguments that are problematic regardless of the state of the
|
||||
// system (i.e. a malformed file name, required argument, number out of range,
|
||||
// etc.).
|
||||
TwirpErrorCode["InvalidArgument"] = "invalid_argument";
|
||||
// Malformed indicates an error occurred while decoding the client's request.
|
||||
// This may mean that the message was encoded improperly, or that there is a
|
||||
// disagreement in message format between the client and server.
|
||||
TwirpErrorCode["Malformed"] = "malformed";
|
||||
// DeadlineExceeded means operation expired before completion. For operations
|
||||
// that change the state of the system, this error may be returned even if the
|
||||
// operation has completed successfully (timeout).
|
||||
TwirpErrorCode["DeadlineExceeded"] = "deadline_exceeded";
|
||||
// NotFound means some requested entity was not found.
|
||||
TwirpErrorCode["NotFound"] = "not_found";
|
||||
// BadRoute means that the requested URL path wasn't routable to a Twirp
|
||||
// service and method. This is returned by the generated server, and usually
|
||||
// shouldn't be returned by applications. Instead, applications should use
|
||||
// NotFound or Unimplemented.
|
||||
TwirpErrorCode["BadRoute"] = "bad_route";
|
||||
// AlreadyExists means an attempt to create an entity failed because one
|
||||
// already exists.
|
||||
TwirpErrorCode["AlreadyExists"] = "already_exists";
|
||||
// PermissionDenied indicates the caller does not have permission to execute
|
||||
// the specified operation. It must not be used if the caller cannot be
|
||||
// identified (Unauthenticated).
|
||||
TwirpErrorCode["PermissionDenied"] = "permission_denied";
|
||||
// Unauthenticated indicates the request does not have valid authentication
|
||||
// credentials for the operation.
|
||||
TwirpErrorCode["Unauthenticated"] = "unauthenticated";
|
||||
// ResourceExhausted indicates some resource has been exhausted, perhaps a
|
||||
// per-user quota, or perhaps the entire file system is out of space.
|
||||
TwirpErrorCode["ResourceExhausted"] = "resource_exhausted";
|
||||
// FailedPrecondition indicates operation was rejected because the system is
|
||||
// not in a state required for the operation's execution. For example, doing
|
||||
// an rmdir operation on a directory that is non-empty, or on a non-directory
|
||||
// object, or when having conflicting read-modify-write on the same resource.
|
||||
TwirpErrorCode["FailedPrecondition"] = "failed_precondition";
|
||||
// Aborted indicates the operation was aborted, typically due to a concurrency
|
||||
// issue like sequencer check failures, transaction aborts, etc.
|
||||
TwirpErrorCode["Aborted"] = "aborted";
|
||||
// OutOfRange means operation was attempted past the valid range. For example,
|
||||
// seeking or reading past end of a paginated collection.
|
||||
//
|
||||
// Unlike InvalidArgument, this error indicates a problem that may be fixed if
|
||||
// the system state changes (i.e. adding more items to the collection).
|
||||
//
|
||||
// There is a fair bit of overlap between FailedPrecondition and OutOfRange.
|
||||
// We recommend using OutOfRange (the more specific error) when it applies so
|
||||
// that callers who are iterating through a space can easily look for an
|
||||
// OutOfRange error to detect when they are done.
|
||||
TwirpErrorCode["OutOfRange"] = "out_of_range";
|
||||
// Unimplemented indicates operation is not implemented or not
|
||||
// supported/enabled in this service.
|
||||
TwirpErrorCode["Unimplemented"] = "unimplemented";
|
||||
// Internal errors. When some invariants expected by the underlying system
|
||||
// have been broken. In other words, something bad happened in the library or
|
||||
// backend service. Do not confuse with HTTP Internal Server Error; an
|
||||
// Internal error could also happen on the client code, i.e. when parsing a
|
||||
// server response.
|
||||
TwirpErrorCode["Internal"] = "internal";
|
||||
// Unavailable indicates the service is currently unavailable. This is a most
|
||||
// likely a transient condition and may be corrected by retrying with a
|
||||
// backoff.
|
||||
TwirpErrorCode["Unavailable"] = "unavailable";
|
||||
// DataLoss indicates unrecoverable data loss or corruption.
|
||||
TwirpErrorCode["DataLoss"] = "data_loss";
|
||||
})(TwirpErrorCode = exports.TwirpErrorCode || (exports.TwirpErrorCode = {}));
|
||||
// ServerHTTPStatusFromErrorCode maps a Twirp error type into a similar HTTP
|
||||
// response status. It is used by the Twirp server handler to set the HTTP
|
||||
// response status code. Returns 0 if the ErrorCode is invalid.
|
||||
function httpStatusFromErrorCode(code) {
|
||||
switch (code) {
|
||||
case TwirpErrorCode.Canceled:
|
||||
return 408; // RequestTimeout
|
||||
case TwirpErrorCode.Unknown:
|
||||
return 500; // Internal Server Error
|
||||
case TwirpErrorCode.InvalidArgument:
|
||||
return 400; // BadRequest
|
||||
case TwirpErrorCode.Malformed:
|
||||
return 400; // BadRequest
|
||||
case TwirpErrorCode.DeadlineExceeded:
|
||||
return 408; // RequestTimeout
|
||||
case TwirpErrorCode.NotFound:
|
||||
return 404; // Not Found
|
||||
case TwirpErrorCode.BadRoute:
|
||||
return 404; // Not Found
|
||||
case TwirpErrorCode.AlreadyExists:
|
||||
return 409; // Conflict
|
||||
case TwirpErrorCode.PermissionDenied:
|
||||
return 403; // Forbidden
|
||||
case TwirpErrorCode.Unauthenticated:
|
||||
return 401; // Unauthorized
|
||||
case TwirpErrorCode.ResourceExhausted:
|
||||
return 429; // Too Many Requests
|
||||
case TwirpErrorCode.FailedPrecondition:
|
||||
return 412; // Precondition Failed
|
||||
case TwirpErrorCode.Aborted:
|
||||
return 409; // Conflict
|
||||
case TwirpErrorCode.OutOfRange:
|
||||
return 400; // Bad Request
|
||||
case TwirpErrorCode.Unimplemented:
|
||||
return 501; // Not Implemented
|
||||
case TwirpErrorCode.Internal:
|
||||
return 500; // Internal Server Error
|
||||
case TwirpErrorCode.Unavailable:
|
||||
return 503; // Service Unavailable
|
||||
case TwirpErrorCode.DataLoss:
|
||||
return 500; // Internal Server Error
|
||||
default:
|
||||
return 0; // Invalid!
|
||||
}
|
||||
}
|
||||
exports.httpStatusFromErrorCode = httpStatusFromErrorCode;
|
||||
// IsValidErrorCode returns true if is one of the valid predefined constants.
|
||||
function isValidErrorCode(code) {
|
||||
return httpStatusFromErrorCode(code) != 0;
|
||||
}
|
||||
exports.isValidErrorCode = isValidErrorCode;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9636:
|
||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var __rest = (this && this.__rest) || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.Gateway = exports.Pattern = void 0;
|
||||
const querystring_1 = __nccwpck_require__(3480);
|
||||
const dotObject = __importStar(__nccwpck_require__(5129));
|
||||
const request_1 = __nccwpck_require__(9647);
|
||||
const errors_1 = __nccwpck_require__(3315);
|
||||
const http_client_1 = __nccwpck_require__(5683);
|
||||
const server_1 = __nccwpck_require__(1035);
|
||||
var Pattern;
|
||||
(function (Pattern) {
|
||||
Pattern["POST"] = "post";
|
||||
Pattern["GET"] = "get";
|
||||
Pattern["PATCH"] = "patch";
|
||||
Pattern["PUT"] = "put";
|
||||
Pattern["DELETE"] = "delete";
|
||||
})(Pattern = exports.Pattern || (exports.Pattern = {}));
|
||||
/**
|
||||
* The Gateway proxies http requests to Twirp Compliant
|
||||
* handlers
|
||||
*/
|
||||
class Gateway {
|
||||
constructor(routes) {
|
||||
this.routes = routes;
|
||||
}
|
||||
/**
|
||||
* Middleware that rewrite the current request
|
||||
* to a Twirp compliant request
|
||||
*/
|
||||
twirpRewrite(prefix = "/twirp") {
|
||||
return (req, resp, next) => {
|
||||
this.rewrite(req, resp, prefix)
|
||||
.then(() => next())
|
||||
.catch((e) => {
|
||||
if (e instanceof errors_1.TwirpError) {
|
||||
if (e.code !== errors_1.TwirpErrorCode.NotFound) {
|
||||
server_1.writeError(resp, e);
|
||||
}
|
||||
else {
|
||||
next();
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Rewrite an incoming request to a Twirp compliant request
|
||||
* @param req
|
||||
* @param resp
|
||||
* @param prefix
|
||||
*/
|
||||
rewrite(req, resp, prefix = "/twirp") {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const [match, route] = this.matchRoute(req);
|
||||
const body = yield this.prepareTwirpBody(req, match, route);
|
||||
const twirpUrl = `${prefix}/${route.packageName}.${route.serviceName}/${route.methodName}`;
|
||||
req.url = twirpUrl;
|
||||
req.originalUrl = twirpUrl;
|
||||
req.method = "POST";
|
||||
req.headers["content-type"] = "application/json";
|
||||
req.rawBody = Buffer.from(JSON.stringify(body));
|
||||
if (route.responseBodyKey) {
|
||||
const endFn = resp.end.bind(resp);
|
||||
resp.end = function (chunk) {
|
||||
if (resp.statusCode === 200) {
|
||||
endFn(`{ "${route.responseBodyKey}": ${chunk} }`);
|
||||
}
|
||||
else {
|
||||
endFn(chunk);
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Create a reverse proxy handler to
|
||||
* proxy http requests to Twirp Compliant handlers
|
||||
* @param httpClientOption
|
||||
*/
|
||||
reverseProxy(httpClientOption) {
|
||||
const client = http_client_1.NodeHttpRPC(httpClientOption);
|
||||
return (req, res) => __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
const [match, route] = this.matchRoute(req);
|
||||
const body = yield this.prepareTwirpBody(req, match, route);
|
||||
const response = yield client.request(`${route.packageName}.${route.serviceName}`, route.methodName, "application/json", body);
|
||||
res.statusCode = 200;
|
||||
res.setHeader("content-type", "application/json");
|
||||
let jsonResponse;
|
||||
if (route.responseBodyKey) {
|
||||
jsonResponse = JSON.stringify({ [route.responseBodyKey]: response });
|
||||
}
|
||||
else {
|
||||
jsonResponse = JSON.stringify(response);
|
||||
}
|
||||
res.end(jsonResponse);
|
||||
}
|
||||
catch (e) {
|
||||
server_1.writeError(res, e);
|
||||
}
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Prepares twirp body requests using http.google.annotions
|
||||
* compliant spec
|
||||
*
|
||||
* @param req
|
||||
* @param match
|
||||
* @param route
|
||||
* @protected
|
||||
*/
|
||||
prepareTwirpBody(req, match, route) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const _a = match.params, { query_string } = _a, params = __rest(_a, ["query_string"]);
|
||||
let requestBody = Object.assign({}, params);
|
||||
if (query_string && route.bodyKey !== "*") {
|
||||
const queryParams = this.parseQueryString(query_string);
|
||||
requestBody = Object.assign(Object.assign({}, queryParams), requestBody);
|
||||
}
|
||||
let body = {};
|
||||
if (route.bodyKey) {
|
||||
const data = yield request_1.getRequestData(req);
|
||||
try {
|
||||
const jsonBody = JSON.parse(data.toString() || "{}");
|
||||
if (route.bodyKey === "*") {
|
||||
body = jsonBody;
|
||||
}
|
||||
else {
|
||||
body[route.bodyKey] = jsonBody;
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
const msg = "the json request could not be decoded";
|
||||
throw new errors_1.TwirpError(errors_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
|
||||
}
|
||||
}
|
||||
return Object.assign(Object.assign({}, body), requestBody);
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Matches a route
|
||||
* @param req
|
||||
*/
|
||||
matchRoute(req) {
|
||||
var _a;
|
||||
const httpMethod = (_a = req.method) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
||||
if (!httpMethod) {
|
||||
throw new errors_1.BadRouteError(`method not allowed`, req.method || "", req.url || "");
|
||||
}
|
||||
const routes = this.routes[httpMethod];
|
||||
for (const route of routes) {
|
||||
const match = route.matcher(req.url || "/");
|
||||
if (match) {
|
||||
return [match, route];
|
||||
}
|
||||
}
|
||||
throw new errors_1.NotFoundError(`url ${req.url} not found`);
|
||||
}
|
||||
/**
|
||||
* Parse query string
|
||||
* @param queryString
|
||||
*/
|
||||
parseQueryString(queryString) {
|
||||
const queryParams = querystring_1.parse(queryString.replace("?", ""));
|
||||
return dotObject.object(queryParams);
|
||||
}
|
||||
}
|
||||
exports.Gateway = Gateway;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3898:
|
||||
/***/ (function(__unused_webpack_module, exports) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.isHook = exports.chainHooks = void 0;
|
||||
// ChainHooks creates a new ServerHook which chains the callbacks in
|
||||
// each of the constituent hooks passed in. Each hook function will be
|
||||
// called in the order of the ServerHooks values passed in.
|
||||
//
|
||||
// For the erroring hooks, RequestReceived and RequestRouted, any returned
|
||||
// errors prevent processing by later hooks.
|
||||
function chainHooks(...hooks) {
|
||||
if (hooks.length === 0) {
|
||||
return null;
|
||||
}
|
||||
if (hooks.length === 1) {
|
||||
return hooks[0];
|
||||
}
|
||||
const serverHook = {
|
||||
requestReceived(ctx) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
for (const hook of hooks) {
|
||||
if (!hook.requestReceived) {
|
||||
continue;
|
||||
}
|
||||
yield hook.requestReceived(ctx);
|
||||
}
|
||||
});
|
||||
},
|
||||
requestPrepared(ctx) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
for (const hook of hooks) {
|
||||
if (!hook.requestPrepared) {
|
||||
continue;
|
||||
}
|
||||
console.warn("hook requestPrepared is deprecated and will be removed in the next release. " +
|
||||
"Please use responsePrepared instead.");
|
||||
yield hook.requestPrepared(ctx);
|
||||
}
|
||||
});
|
||||
},
|
||||
responsePrepared(ctx) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
for (const hook of hooks) {
|
||||
if (!hook.responsePrepared) {
|
||||
continue;
|
||||
}
|
||||
yield hook.responsePrepared(ctx);
|
||||
}
|
||||
});
|
||||
},
|
||||
requestSent(ctx) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
for (const hook of hooks) {
|
||||
if (!hook.requestSent) {
|
||||
continue;
|
||||
}
|
||||
console.warn("hook requestSent is deprecated and will be removed in the next release. " +
|
||||
"Please use responseSent instead.");
|
||||
yield hook.requestSent(ctx);
|
||||
}
|
||||
});
|
||||
},
|
||||
responseSent(ctx) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
for (const hook of hooks) {
|
||||
if (!hook.responseSent) {
|
||||
continue;
|
||||
}
|
||||
yield hook.responseSent(ctx);
|
||||
}
|
||||
});
|
||||
},
|
||||
requestRouted(ctx) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
for (const hook of hooks) {
|
||||
if (!hook.requestRouted) {
|
||||
continue;
|
||||
}
|
||||
yield hook.requestRouted(ctx);
|
||||
}
|
||||
});
|
||||
},
|
||||
error(ctx, err) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
for (const hook of hooks) {
|
||||
if (!hook.error) {
|
||||
continue;
|
||||
}
|
||||
yield hook.error(ctx, err);
|
||||
}
|
||||
});
|
||||
},
|
||||
};
|
||||
return serverHook;
|
||||
}
|
||||
exports.chainHooks = chainHooks;
|
||||
function isHook(object) {
|
||||
return ("requestReceived" in object ||
|
||||
"requestPrepared" in object ||
|
||||
"requestSent" in object ||
|
||||
"requestRouted" in object ||
|
||||
"responsePrepared" in object ||
|
||||
"responseSent" in object ||
|
||||
"error" in object);
|
||||
}
|
||||
exports.isHook = isHook;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5683:
|
||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.FetchRPC = exports.wrapErrorResponseToTwirpError = exports.NodeHttpRPC = void 0;
|
||||
const http = __importStar(__nccwpck_require__(8611));
|
||||
const https = __importStar(__nccwpck_require__(5692));
|
||||
const url_1 = __nccwpck_require__(7016);
|
||||
const errors_1 = __nccwpck_require__(3315);
|
||||
/**
|
||||
* a node HTTP RPC implementation
|
||||
* @param options
|
||||
* @constructor
|
||||
*/
|
||||
const NodeHttpRPC = (options) => ({
|
||||
request(service, method, contentType, data) {
|
||||
let client;
|
||||
return new Promise((resolve, rejected) => {
|
||||
const responseChunks = [];
|
||||
const requestData = contentType === "application/protobuf"
|
||||
? Buffer.from(data)
|
||||
: JSON.stringify(data);
|
||||
const url = new url_1.URL(options.baseUrl);
|
||||
const isHttps = url.protocol === "https:";
|
||||
if (isHttps) {
|
||||
client = https;
|
||||
}
|
||||
else {
|
||||
client = http;
|
||||
}
|
||||
const prefix = url.pathname !== "/" ? url.pathname : "";
|
||||
const req = client
|
||||
.request(Object.assign(Object.assign({}, (options ? options : {})), { method: "POST", protocol: url.protocol, host: url.hostname, port: url.port ? url.port : isHttps ? 443 : 80, path: `${prefix}/${service}/${method}`, headers: Object.assign(Object.assign({}, (options.headers ? options.headers : {})), { "Content-Type": contentType, "Content-Length": contentType === "application/protobuf"
|
||||
? Buffer.byteLength(requestData)
|
||||
: Buffer.from(requestData).byteLength }) }), (res) => {
|
||||
res.on("data", (chunk) => responseChunks.push(chunk));
|
||||
res.on("end", () => {
|
||||
const data = Buffer.concat(responseChunks);
|
||||
if (res.statusCode != 200) {
|
||||
rejected(wrapErrorResponseToTwirpError(data.toString()));
|
||||
}
|
||||
else {
|
||||
if (contentType === "application/json") {
|
||||
resolve(JSON.parse(data.toString()));
|
||||
}
|
||||
else {
|
||||
resolve(data);
|
||||
}
|
||||
}
|
||||
});
|
||||
res.on("error", (err) => {
|
||||
rejected(err);
|
||||
});
|
||||
})
|
||||
.on("error", (err) => {
|
||||
rejected(err);
|
||||
});
|
||||
req.end(requestData);
|
||||
});
|
||||
},
|
||||
});
|
||||
exports.NodeHttpRPC = NodeHttpRPC;
|
||||
function wrapErrorResponseToTwirpError(errorResponse) {
|
||||
return errors_1.TwirpError.fromObject(JSON.parse(errorResponse));
|
||||
}
|
||||
exports.wrapErrorResponseToTwirpError = wrapErrorResponseToTwirpError;
|
||||
/**
|
||||
* a browser fetch RPC implementation
|
||||
*/
|
||||
const FetchRPC = (options) => ({
|
||||
request(service, method, contentType, data) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const headers = new Headers(options.headers);
|
||||
headers.set("content-type", contentType);
|
||||
const response = yield fetch(`${options.baseUrl}/${service}/${method}`, Object.assign(Object.assign({}, options), { method: "POST", headers, body: data instanceof Uint8Array ? data : JSON.stringify(data) }));
|
||||
if (response.status === 200) {
|
||||
if (contentType === "application/json") {
|
||||
return yield response.json();
|
||||
}
|
||||
return new Uint8Array(yield response.arrayBuffer());
|
||||
}
|
||||
throw errors_1.TwirpError.fromObject(yield response.json());
|
||||
});
|
||||
},
|
||||
});
|
||||
exports.FetchRPC = FetchRPC;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 430:
|
||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.TwirpContentType = void 0;
|
||||
__exportStar(__nccwpck_require__(5497), exports);
|
||||
__exportStar(__nccwpck_require__(1035), exports);
|
||||
__exportStar(__nccwpck_require__(4036), exports);
|
||||
__exportStar(__nccwpck_require__(3898), exports);
|
||||
__exportStar(__nccwpck_require__(3315), exports);
|
||||
__exportStar(__nccwpck_require__(9636), exports);
|
||||
__exportStar(__nccwpck_require__(5683), exports);
|
||||
var request_1 = __nccwpck_require__(9647);
|
||||
Object.defineProperty(exports, "TwirpContentType", ({ enumerable: true, get: function () { return request_1.TwirpContentType; } }));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4036:
|
||||
/***/ (function(__unused_webpack_module, exports) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.chainInterceptors = void 0;
|
||||
// chains multiple Interceptors into a single Interceptor.
|
||||
// The first interceptor wraps the second one, and so on.
|
||||
// Returns null if interceptors is empty.
|
||||
function chainInterceptors(...interceptors) {
|
||||
if (interceptors.length === 0) {
|
||||
return;
|
||||
}
|
||||
if (interceptors.length === 1) {
|
||||
return interceptors[0];
|
||||
}
|
||||
const first = interceptors[0];
|
||||
return (ctx, request, handler) => __awaiter(this, void 0, void 0, function* () {
|
||||
let next = handler;
|
||||
for (let i = interceptors.length - 1; i > 0; i--) {
|
||||
next = ((next) => (ctx, typedRequest) => {
|
||||
return interceptors[i](ctx, typedRequest, next);
|
||||
})(next);
|
||||
}
|
||||
return first(ctx, request, next);
|
||||
});
|
||||
}
|
||||
exports.chainInterceptors = chainInterceptors;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9647:
|
||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.parseTwirpPath = exports.getRequestData = exports.validateRequest = exports.getContentType = exports.TwirpContentType = void 0;
|
||||
const errors_1 = __nccwpck_require__(3315);
|
||||
/**
|
||||
* Supported Twirp Content-Type
|
||||
*/
|
||||
var TwirpContentType;
|
||||
(function (TwirpContentType) {
|
||||
TwirpContentType[TwirpContentType["Protobuf"] = 0] = "Protobuf";
|
||||
TwirpContentType[TwirpContentType["JSON"] = 1] = "JSON";
|
||||
TwirpContentType[TwirpContentType["Unknown"] = 2] = "Unknown";
|
||||
})(TwirpContentType = exports.TwirpContentType || (exports.TwirpContentType = {}));
|
||||
/**
|
||||
* Get supported content-type
|
||||
* @param mimeType
|
||||
*/
|
||||
function getContentType(mimeType) {
|
||||
switch (mimeType) {
|
||||
case "application/protobuf":
|
||||
return TwirpContentType.Protobuf;
|
||||
case "application/json":
|
||||
return TwirpContentType.JSON;
|
||||
default:
|
||||
return TwirpContentType.Unknown;
|
||||
}
|
||||
}
|
||||
exports.getContentType = getContentType;
|
||||
/**
|
||||
* Validate a twirp request
|
||||
* @param ctx
|
||||
* @param request
|
||||
* @param pathPrefix
|
||||
*/
|
||||
function validateRequest(ctx, request, pathPrefix) {
|
||||
if (request.method !== "POST") {
|
||||
const msg = `unsupported method ${request.method} (only POST is allowed)`;
|
||||
throw new errors_1.BadRouteError(msg, request.method || "", request.url || "");
|
||||
}
|
||||
const path = parseTwirpPath(request.url || "");
|
||||
if (path.pkgService !==
|
||||
(ctx.packageName ? ctx.packageName + "." : "") + ctx.serviceName) {
|
||||
const msg = `no handler for path ${request.url}`;
|
||||
throw new errors_1.BadRouteError(msg, request.method || "", request.url || "");
|
||||
}
|
||||
if (path.prefix !== pathPrefix) {
|
||||
const msg = `invalid path prefix ${path.prefix}, expected ${pathPrefix}, on path ${request.url}`;
|
||||
throw new errors_1.BadRouteError(msg, request.method || "", request.url || "");
|
||||
}
|
||||
const mimeContentType = request.headers["content-type"] || "";
|
||||
if (ctx.contentType === TwirpContentType.Unknown) {
|
||||
const msg = `unexpected Content-Type: ${request.headers["content-type"]}`;
|
||||
throw new errors_1.BadRouteError(msg, request.method || "", request.url || "");
|
||||
}
|
||||
return Object.assign(Object.assign({}, path), { mimeContentType, contentType: ctx.contentType });
|
||||
}
|
||||
exports.validateRequest = validateRequest;
|
||||
/**
|
||||
* Get request data from the body
|
||||
* @param req
|
||||
*/
|
||||
function getRequestData(req) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const reqWithRawBody = req;
|
||||
if (reqWithRawBody.rawBody instanceof Buffer) {
|
||||
resolve(reqWithRawBody.rawBody);
|
||||
return;
|
||||
}
|
||||
const chunks = [];
|
||||
req.on("data", (chunk) => chunks.push(chunk));
|
||||
req.on("end", () => __awaiter(this, void 0, void 0, function* () {
|
||||
const data = Buffer.concat(chunks);
|
||||
resolve(data);
|
||||
}));
|
||||
req.on("error", (err) => {
|
||||
if (req.aborted) {
|
||||
reject(new errors_1.TwirpError(errors_1.TwirpErrorCode.DeadlineExceeded, "failed to read request: deadline exceeded"));
|
||||
}
|
||||
else {
|
||||
reject(new errors_1.TwirpError(errors_1.TwirpErrorCode.Malformed, err.message).withCause(err));
|
||||
}
|
||||
});
|
||||
req.on("close", () => {
|
||||
reject(new errors_1.TwirpError(errors_1.TwirpErrorCode.Canceled, "failed to read request: context canceled"));
|
||||
});
|
||||
});
|
||||
}
|
||||
exports.getRequestData = getRequestData;
|
||||
/**
|
||||
* Parses twirp url path
|
||||
* @param path
|
||||
*/
|
||||
function parseTwirpPath(path) {
|
||||
const parts = path.split("/");
|
||||
if (parts.length < 2) {
|
||||
return {
|
||||
pkgService: "",
|
||||
method: "",
|
||||
prefix: "",
|
||||
};
|
||||
}
|
||||
return {
|
||||
method: parts[parts.length - 1],
|
||||
pkgService: parts[parts.length - 2],
|
||||
prefix: parts.slice(0, parts.length - 2).join("/"),
|
||||
};
|
||||
}
|
||||
exports.parseTwirpPath = parseTwirpPath;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1035:
|
||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.writeError = exports.TwirpServer = void 0;
|
||||
const hooks_1 = __nccwpck_require__(3898);
|
||||
const request_1 = __nccwpck_require__(9647);
|
||||
const errors_1 = __nccwpck_require__(3315);
|
||||
/**
|
||||
* Runtime server implementation of a TwirpServer
|
||||
*/
|
||||
class TwirpServer {
|
||||
constructor(options) {
|
||||
this.pathPrefix = "/twirp";
|
||||
this.hooks = [];
|
||||
this.interceptors = [];
|
||||
this.packageName = options.packageName;
|
||||
this.serviceName = options.serviceName;
|
||||
this.methodList = options.methodList;
|
||||
this.matchRoute = options.matchRoute;
|
||||
this.service = options.service;
|
||||
}
|
||||
/**
|
||||
* Returns the prefix for this server
|
||||
*/
|
||||
get prefix() {
|
||||
return this.pathPrefix;
|
||||
}
|
||||
/**
|
||||
* The http handler for twirp complaint endpoints
|
||||
* @param options
|
||||
*/
|
||||
httpHandler(options) {
|
||||
return (req, resp) => {
|
||||
// setup prefix
|
||||
if ((options === null || options === void 0 ? void 0 : options.prefix) !== undefined) {
|
||||
this.withPrefix(options.prefix);
|
||||
}
|
||||
return this._httpHandler(req, resp);
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Adds interceptors or hooks to the request stack
|
||||
* @param middlewares
|
||||
*/
|
||||
use(...middlewares) {
|
||||
middlewares.forEach((middleware) => {
|
||||
if (hooks_1.isHook(middleware)) {
|
||||
this.hooks.push(middleware);
|
||||
return this;
|
||||
}
|
||||
this.interceptors.push(middleware);
|
||||
});
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* Adds a prefix to the service url path
|
||||
* @param prefix
|
||||
*/
|
||||
withPrefix(prefix) {
|
||||
if (prefix === false) {
|
||||
this.pathPrefix = "";
|
||||
}
|
||||
else {
|
||||
this.pathPrefix = prefix;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* Returns the regex matching path for this twirp server
|
||||
*/
|
||||
matchingPath() {
|
||||
const baseRegex = this.baseURI().replace(/\./g, "\\.");
|
||||
return new RegExp(`${baseRegex}\/(${this.methodList.join("|")})`);
|
||||
}
|
||||
/**
|
||||
* Returns the base URI for this twirp server
|
||||
*/
|
||||
baseURI() {
|
||||
return `${this.pathPrefix}/${this.packageName ? this.packageName + "." : ""}${this.serviceName}`;
|
||||
}
|
||||
/**
|
||||
* Create a twirp context
|
||||
* @param req
|
||||
* @param res
|
||||
* @private
|
||||
*/
|
||||
createContext(req, res) {
|
||||
return {
|
||||
packageName: this.packageName,
|
||||
serviceName: this.serviceName,
|
||||
methodName: "",
|
||||
contentType: request_1.getContentType(req.headers["content-type"]),
|
||||
req: req,
|
||||
res: res,
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Twrip server http handler implementation
|
||||
* @param req
|
||||
* @param resp
|
||||
* @private
|
||||
*/
|
||||
_httpHandler(req, resp) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const ctx = this.createContext(req, resp);
|
||||
try {
|
||||
yield this.invokeHook("requestReceived", ctx);
|
||||
const { method, mimeContentType } = request_1.validateRequest(ctx, req, this.pathPrefix || "");
|
||||
const handler = this.matchRoute(method, {
|
||||
onMatch: (ctx) => {
|
||||
return this.invokeHook("requestRouted", ctx);
|
||||
},
|
||||
onNotFound: () => {
|
||||
const msg = `no handler for path ${req.url}`;
|
||||
throw new errors_1.BadRouteError(msg, req.method || "", req.url || "");
|
||||
},
|
||||
});
|
||||
const body = yield request_1.getRequestData(req);
|
||||
const response = yield handler(ctx, this.service, body, this.interceptors);
|
||||
yield Promise.all([
|
||||
this.invokeHook("responsePrepared", ctx),
|
||||
// keep backwards compatibility till next release
|
||||
this.invokeHook("requestPrepared", ctx),
|
||||
]);
|
||||
resp.statusCode = 200;
|
||||
resp.setHeader("Content-Type", mimeContentType);
|
||||
resp.end(response);
|
||||
}
|
||||
catch (e) {
|
||||
yield this.invokeHook("error", ctx, mustBeTwirpError(e));
|
||||
if (!resp.headersSent) {
|
||||
writeError(resp, e);
|
||||
}
|
||||
}
|
||||
finally {
|
||||
yield Promise.all([
|
||||
this.invokeHook("responseSent", ctx),
|
||||
// keep backwards compatibility till next release
|
||||
this.invokeHook("requestSent", ctx),
|
||||
]);
|
||||
}
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Invoke a hook
|
||||
* @param hookName
|
||||
* @param ctx
|
||||
* @param err
|
||||
* @protected
|
||||
*/
|
||||
invokeHook(hookName, ctx, err) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
if (this.hooks.length === 0) {
|
||||
return;
|
||||
}
|
||||
const chainedHooks = hooks_1.chainHooks(...this.hooks);
|
||||
const hook = chainedHooks === null || chainedHooks === void 0 ? void 0 : chainedHooks[hookName];
|
||||
if (hook) {
|
||||
yield hook(ctx, err || new errors_1.InternalServerError("internal server error"));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.TwirpServer = TwirpServer;
|
||||
/**
|
||||
* Write http error response
|
||||
* @param res
|
||||
* @param error
|
||||
*/
|
||||
function writeError(res, error) {
|
||||
const twirpError = mustBeTwirpError(error);
|
||||
res.setHeader("Content-Type", "application/json");
|
||||
res.statusCode = errors_1.httpStatusFromErrorCode(twirpError.code);
|
||||
res.end(twirpError.toJSON());
|
||||
}
|
||||
exports.writeError = writeError;
|
||||
/**
|
||||
* Make sure that the error passed is a TwirpError
|
||||
* otherwise it will wrap it into an InternalError
|
||||
* @param err
|
||||
*/
|
||||
function mustBeTwirpError(err) {
|
||||
if (err instanceof errors_1.TwirpError) {
|
||||
return err;
|
||||
}
|
||||
return new errors_1.InternalServerErrorWith(err);
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6752:
|
||||
@@ -61195,6 +70338,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(8253)
|
||||
const { File: UndiciFile } = __nccwpck_require__(3041)
|
||||
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(4322)
|
||||
|
||||
let random
|
||||
try {
|
||||
const crypto = __nccwpck_require__(7598)
|
||||
random = (max) => crypto.randomInt(0, max)
|
||||
} catch {
|
||||
random = (max) => Math.floor(Math.random(max))
|
||||
}
|
||||
|
||||
let ReadableStream = globalThis.ReadableStream
|
||||
|
||||
/** @type {globalThis['File']} */
|
||||
@@ -61280,7 +70431,7 @@ function extractBody (object, keepalive = false) {
|
||||
// Set source to a copy of the bytes held by object.
|
||||
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
|
||||
} else if (util.isFormDataLike(object)) {
|
||||
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
|
||||
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
|
||||
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
|
||||
|
||||
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
||||
@@ -82284,22 +91435,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.STATE_CACHE_MATCHED_KEY = exports.STATE_CACHE_KEY = void 0;
|
||||
exports.restoreCache = restoreCache;
|
||||
@@ -82308,43 +91460,69 @@ const core = __importStar(__nccwpck_require__(7484));
|
||||
const inputs_1 = __nccwpck_require__(9612);
|
||||
const platforms_1 = __nccwpck_require__(8361);
|
||||
const hash_files_1 = __nccwpck_require__(9660);
|
||||
const exec = __importStar(__nccwpck_require__(5236));
|
||||
exports.STATE_CACHE_KEY = "cache-key";
|
||||
exports.STATE_CACHE_MATCHED_KEY = "cache-matched-key";
|
||||
const CACHE_VERSION = "1";
|
||||
function restoreCache(version) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const cacheKey = yield computeKeys(version);
|
||||
let matchedKey;
|
||||
core.info(`Trying to restore uv cache from GitHub Actions cache with key: ${cacheKey}`);
|
||||
try {
|
||||
matchedKey = yield cache.restoreCache([inputs_1.cacheLocalPath], cacheKey);
|
||||
}
|
||||
catch (err) {
|
||||
const message = err.message;
|
||||
core.warning(message);
|
||||
core.setOutput("cache-hit", false);
|
||||
return;
|
||||
}
|
||||
core.saveState(exports.STATE_CACHE_KEY, cacheKey);
|
||||
handleMatchResult(matchedKey, cacheKey);
|
||||
});
|
||||
async function restoreCache() {
|
||||
const cacheKey = await computeKeys();
|
||||
let matchedKey;
|
||||
core.info(`Trying to restore uv cache from GitHub Actions cache with key: ${cacheKey}`);
|
||||
try {
|
||||
matchedKey = await cache.restoreCache([inputs_1.cacheLocalPath], cacheKey);
|
||||
}
|
||||
catch (err) {
|
||||
const message = err.message;
|
||||
core.warning(message);
|
||||
core.setOutput("cache-hit", false);
|
||||
return;
|
||||
}
|
||||
core.saveState(exports.STATE_CACHE_KEY, cacheKey);
|
||||
handleMatchResult(matchedKey, cacheKey);
|
||||
}
|
||||
function computeKeys(version) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let cacheDependencyPathHash = "-";
|
||||
if (inputs_1.cacheDependencyGlob !== "") {
|
||||
core.info(`Searching files using cache dependency glob: ${inputs_1.cacheDependencyGlob.split("\n").join(",")}`);
|
||||
cacheDependencyPathHash += yield (0, hash_files_1.hashFiles)(inputs_1.cacheDependencyGlob, true);
|
||||
if (cacheDependencyPathHash === "-") {
|
||||
throw new Error(`No file matched to [${inputs_1.cacheDependencyGlob.split("\n").join(",")}], make sure you have checked out the target repository`);
|
||||
}
|
||||
async function computeKeys() {
|
||||
let cacheDependencyPathHash = "-";
|
||||
if (inputs_1.cacheDependencyGlob !== "") {
|
||||
core.info(`Searching files using cache dependency glob: ${inputs_1.cacheDependencyGlob.split("\n").join(",")}`);
|
||||
cacheDependencyPathHash += await (0, hash_files_1.hashFiles)(inputs_1.cacheDependencyGlob, true);
|
||||
if (cacheDependencyPathHash === "-") {
|
||||
core.warning(`No file matched to [${inputs_1.cacheDependencyGlob.split("\n").join(",")}]. The cache will never get invalidated. Make sure you have checked out the target repository and configured the cache-dependency-glob input correctly.`);
|
||||
}
|
||||
else {
|
||||
cacheDependencyPathHash += "no-dependency-glob";
|
||||
}
|
||||
const suffix = inputs_1.cacheSuffix ? `-${inputs_1.cacheSuffix}` : "";
|
||||
return `setup-uv-${CACHE_VERSION}-${(0, platforms_1.getArch)()}-${(0, platforms_1.getPlatform)()}-${version}${cacheDependencyPathHash}${suffix}`;
|
||||
});
|
||||
}
|
||||
if (cacheDependencyPathHash === "-") {
|
||||
cacheDependencyPathHash = "-no-dependency-glob";
|
||||
}
|
||||
const suffix = inputs_1.cacheSuffix ? `-${inputs_1.cacheSuffix}` : "";
|
||||
const pythonVersion = await getPythonVersion();
|
||||
return `setup-uv-${CACHE_VERSION}-${(0, platforms_1.getArch)()}-${(0, platforms_1.getPlatform)()}-${pythonVersion}${cacheDependencyPathHash}${suffix}`;
|
||||
}
|
||||
async function getPythonVersion() {
|
||||
if (inputs_1.pythonVersion !== "") {
|
||||
return inputs_1.pythonVersion;
|
||||
}
|
||||
let output = "";
|
||||
const options = {
|
||||
silent: !core.isDebug(),
|
||||
listeners: {
|
||||
stdout: (data) => {
|
||||
output += data.toString();
|
||||
},
|
||||
},
|
||||
};
|
||||
try {
|
||||
const execArgs = ["python", "find"];
|
||||
await exec.exec("uv", execArgs, options);
|
||||
const pythonPath = output.trim();
|
||||
output = "";
|
||||
await exec.exec(pythonPath, ["--version"], options);
|
||||
// output is like "Python 3.8.10"
|
||||
return output.split(" ")[1].trim();
|
||||
}
|
||||
catch (error) {
|
||||
const err = error;
|
||||
core.debug(`Failed to get python version from uv. Error: ${err.message}`);
|
||||
return "unknown";
|
||||
}
|
||||
}
|
||||
function handleMatchResult(matchedKey, primaryKey) {
|
||||
if (!matchedKey) {
|
||||
@@ -82381,29 +91559,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
||||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
||||
var m = o[Symbol.asyncIterator], i;
|
||||
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
||||
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
||||
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
||||
};
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.hashFiles = hashFiles;
|
||||
const crypto = __importStar(__nccwpck_require__(7598));
|
||||
@@ -82420,49 +91592,34 @@ const glob_1 = __nccwpck_require__(7206);
|
||||
* @param pattern The glob pattern to match files.
|
||||
* @param verbose Whether to log the files being hashed.
|
||||
*/
|
||||
function hashFiles(pattern_1) {
|
||||
return __awaiter(this, arguments, void 0, function* (pattern, verbose = false) {
|
||||
var _a, e_1, _b, _c;
|
||||
const globber = yield (0, glob_1.create)(pattern);
|
||||
let hasMatch = false;
|
||||
const writeDelegate = verbose ? core.info : core.debug;
|
||||
const result = crypto.createHash("sha256");
|
||||
let count = 0;
|
||||
try {
|
||||
for (var _d = true, _e = __asyncValues(globber.globGenerator()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
||||
_c = _f.value;
|
||||
_d = false;
|
||||
const file = _c;
|
||||
writeDelegate(file);
|
||||
if (fs.statSync(file).isDirectory()) {
|
||||
writeDelegate(`Skip directory '${file}'.`);
|
||||
continue;
|
||||
}
|
||||
const hash = crypto.createHash("sha256");
|
||||
const pipeline = util.promisify(stream.pipeline);
|
||||
yield pipeline(fs.createReadStream(file), hash);
|
||||
result.write(hash.digest());
|
||||
count++;
|
||||
if (!hasMatch) {
|
||||
hasMatch = true;
|
||||
}
|
||||
}
|
||||
async function hashFiles(pattern, verbose = false) {
|
||||
const globber = await (0, glob_1.create)(pattern);
|
||||
let hasMatch = false;
|
||||
const writeDelegate = verbose ? core.info : core.debug;
|
||||
const result = crypto.createHash("sha256");
|
||||
let count = 0;
|
||||
for await (const file of globber.globGenerator()) {
|
||||
writeDelegate(file);
|
||||
if (fs.statSync(file).isDirectory()) {
|
||||
writeDelegate(`Skip directory '${file}'.`);
|
||||
continue;
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
const hash = crypto.createHash("sha256");
|
||||
const pipeline = util.promisify(stream.pipeline);
|
||||
await pipeline(fs.createReadStream(file), hash);
|
||||
result.write(hash.digest());
|
||||
count++;
|
||||
if (!hasMatch) {
|
||||
hasMatch = true;
|
||||
}
|
||||
result.end();
|
||||
if (hasMatch) {
|
||||
writeDelegate(`Found ${count} files to hash.`);
|
||||
return result.digest("hex");
|
||||
}
|
||||
writeDelegate("No matches found for glob");
|
||||
return "";
|
||||
});
|
||||
}
|
||||
result.end();
|
||||
if (hasMatch) {
|
||||
writeDelegate(`Found ${count} files to hash.`);
|
||||
return result.digest("hex");
|
||||
}
|
||||
writeDelegate("No matches found for glob");
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
@@ -82489,22 +91646,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.run = run;
|
||||
const cache = __importStar(__nccwpck_require__(5116));
|
||||
@@ -82513,69 +91671,63 @@ const exec = __importStar(__nccwpck_require__(5236));
|
||||
const fs = __importStar(__nccwpck_require__(3024));
|
||||
const restore_cache_1 = __nccwpck_require__(5391);
|
||||
const inputs_1 = __nccwpck_require__(9612);
|
||||
function run() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
if (inputs_1.enableCache) {
|
||||
yield saveCache();
|
||||
// node will stay alive if any promises are not resolved,
|
||||
// which is a possibility if HTTP requests are dangling
|
||||
// due to retries or timeouts. We know that if we got here
|
||||
// that all promises that we care about have successfully
|
||||
// resolved, so simply exit with success.
|
||||
process.exit(0);
|
||||
}
|
||||
async function run() {
|
||||
try {
|
||||
if (inputs_1.enableCache) {
|
||||
await saveCache();
|
||||
// node will stay alive if any promises are not resolved,
|
||||
// which is a possibility if HTTP requests are dangling
|
||||
// due to retries or timeouts. We know that if we got here
|
||||
// that all promises that we care about have successfully
|
||||
// resolved, so simply exit with success.
|
||||
process.exit(0);
|
||||
}
|
||||
catch (error) {
|
||||
const err = error;
|
||||
core.setFailed(err.message);
|
||||
}
|
||||
});
|
||||
}
|
||||
catch (error) {
|
||||
const err = error;
|
||||
core.setFailed(err.message);
|
||||
}
|
||||
}
|
||||
function saveCache() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const cacheKey = core.getState(restore_cache_1.STATE_CACHE_KEY);
|
||||
const matchedKey = core.getState(restore_cache_1.STATE_CACHE_MATCHED_KEY);
|
||||
if (!cacheKey) {
|
||||
core.warning("Error retrieving cache key from state.");
|
||||
return;
|
||||
async function saveCache() {
|
||||
const cacheKey = core.getState(restore_cache_1.STATE_CACHE_KEY);
|
||||
const matchedKey = core.getState(restore_cache_1.STATE_CACHE_MATCHED_KEY);
|
||||
if (!cacheKey) {
|
||||
core.warning("Error retrieving cache key from state.");
|
||||
return;
|
||||
}
|
||||
if (matchedKey === cacheKey) {
|
||||
core.info(`Cache hit occurred on key ${cacheKey}, not saving cache.`);
|
||||
return;
|
||||
}
|
||||
if (inputs_1.pruneCache) {
|
||||
await pruneCache();
|
||||
}
|
||||
core.info(`Saving cache path: ${inputs_1.cacheLocalPath}`);
|
||||
if (!fs.existsSync(inputs_1.cacheLocalPath) && !inputs_1.ignoreNothingToCache) {
|
||||
throw new Error(`Cache path ${inputs_1.cacheLocalPath} does not exist on disk. This likely indicates that there are no dependencies to cache. Consider disabling the cache input if it is not needed.`);
|
||||
}
|
||||
try {
|
||||
await cache.saveCache([inputs_1.cacheLocalPath], cacheKey);
|
||||
core.info(`cache saved with the key: ${cacheKey}`);
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof Error &&
|
||||
e.message ===
|
||||
"Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.") {
|
||||
core.info("No cacheable paths were found. Ignoring because ignore-nothing-to-save is enabled.");
|
||||
}
|
||||
if (matchedKey === cacheKey) {
|
||||
core.info(`Cache hit occurred on key ${cacheKey}, not saving cache.`);
|
||||
return;
|
||||
else {
|
||||
throw e;
|
||||
}
|
||||
if (inputs_1.pruneCache) {
|
||||
yield pruneCache();
|
||||
}
|
||||
core.info(`Saving cache path: ${inputs_1.cacheLocalPath}`);
|
||||
if (!fs.existsSync(inputs_1.cacheLocalPath) && !inputs_1.ignoreNothingToCache) {
|
||||
throw new Error(`Cache path ${inputs_1.cacheLocalPath} does not exist on disk. This likely indicates that there are no dependencies to cache. Consider disabling the cache input if it is not needed.`);
|
||||
}
|
||||
try {
|
||||
yield cache.saveCache([inputs_1.cacheLocalPath], cacheKey);
|
||||
core.info(`cache saved with the key: ${cacheKey}`);
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof Error &&
|
||||
e.message ===
|
||||
"Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.") {
|
||||
core.info("No cacheable paths were found. Ignoring because ignore-nothing-to-save is enabled.");
|
||||
}
|
||||
else {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
function pruneCache() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const options = {
|
||||
silent: !core.isDebug(),
|
||||
};
|
||||
const execArgs = ["cache", "prune", "--ci"];
|
||||
core.info("Pruning cache...");
|
||||
yield exec.exec("uv", execArgs, options);
|
||||
});
|
||||
async function pruneCache() {
|
||||
const options = {
|
||||
silent: !core.isDebug(),
|
||||
};
|
||||
const execArgs = ["cache", "prune", "--ci"];
|
||||
core.info("Pruning cache...");
|
||||
await exec.exec("uv", execArgs, options);
|
||||
}
|
||||
run();
|
||||
|
||||
@@ -82603,24 +91755,36 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.githubToken = exports.toolDir = exports.toolBinDir = exports.ignoreNothingToCache = exports.pruneCache = exports.cacheDependencyGlob = exports.cacheLocalPath = exports.cacheSuffix = exports.enableCache = exports.checkSum = exports.pythonVersion = exports.version = void 0;
|
||||
exports.githubToken = exports.toolDir = exports.toolBinDir = exports.ignoreNothingToCache = exports.pruneCache = exports.cacheDependencyGlob = exports.cacheLocalPath = exports.cacheSuffix = exports.enableCache = exports.checkSum = exports.pythonVersion = exports.uvFile = exports.pyProjectFile = exports.version = void 0;
|
||||
const core = __importStar(__nccwpck_require__(7484));
|
||||
const node_path_1 = __importDefault(__nccwpck_require__(6760));
|
||||
exports.version = core.getInput("version");
|
||||
exports.pyProjectFile = core.getInput("pyproject-file");
|
||||
exports.uvFile = core.getInput("uv-file");
|
||||
exports.pythonVersion = core.getInput("python-version");
|
||||
exports.checkSum = core.getInput("checksum");
|
||||
exports.enableCache = core.getInput("enable-cache") === "true";
|
||||
exports.enableCache = getEnableCache();
|
||||
exports.cacheSuffix = core.getInput("cache-suffix") || "";
|
||||
exports.cacheLocalPath = getCacheLocalPath();
|
||||
exports.cacheDependencyGlob = core.getInput("cache-dependency-glob");
|
||||
@@ -82629,6 +91793,13 @@ exports.ignoreNothingToCache = core.getInput("ignore-nothing-to-cache") === "tru
|
||||
exports.toolBinDir = getToolBinDir();
|
||||
exports.toolDir = getToolDir();
|
||||
exports.githubToken = core.getInput("github-token");
|
||||
function getEnableCache() {
|
||||
const enableCacheInput = core.getInput("enable-cache");
|
||||
if (enableCacheInput === "auto") {
|
||||
return process.env.RUNNER_ENVIRONMENT === "github-hosted";
|
||||
}
|
||||
return enableCacheInput === "true";
|
||||
}
|
||||
function getToolBinDir() {
|
||||
const toolBinDirInput = core.getInput("tool-bin-dir");
|
||||
if (toolBinDirInput !== "") {
|
||||
@@ -84606,6 +93777,14 @@ function parseParams (str) {
|
||||
module.exports = parseParams
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4012:
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.0.0","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","@protobuf-ts/plugin":"^2.9.4","semver":"^6.3.1","twirp-ts":"^2.5.0"},"devDependencies":{"@types/semver":"^6.0.0","typescript":"^5.2.2"}}');
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1813:
|
||||
|
||||
+14921
-4561
File diff suppressed because it is too large
Load Diff
+4450
-4308
@@ -1850,259 +1850,6 @@ class ExecState extends events.EventEmitter {
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1648:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.Context = void 0;
|
||||
const fs_1 = __nccwpck_require__(9896);
|
||||
const os_1 = __nccwpck_require__(857);
|
||||
class Context {
|
||||
/**
|
||||
* Hydrate the context from the environment
|
||||
*/
|
||||
constructor() {
|
||||
var _a, _b, _c;
|
||||
this.payload = {};
|
||||
if (process.env.GITHUB_EVENT_PATH) {
|
||||
if ((0, fs_1.existsSync)(process.env.GITHUB_EVENT_PATH)) {
|
||||
this.payload = JSON.parse((0, fs_1.readFileSync)(process.env.GITHUB_EVENT_PATH, { encoding: 'utf8' }));
|
||||
}
|
||||
else {
|
||||
const path = process.env.GITHUB_EVENT_PATH;
|
||||
process.stdout.write(`GITHUB_EVENT_PATH ${path} does not exist${os_1.EOL}`);
|
||||
}
|
||||
}
|
||||
this.eventName = process.env.GITHUB_EVENT_NAME;
|
||||
this.sha = process.env.GITHUB_SHA;
|
||||
this.ref = process.env.GITHUB_REF;
|
||||
this.workflow = process.env.GITHUB_WORKFLOW;
|
||||
this.action = process.env.GITHUB_ACTION;
|
||||
this.actor = process.env.GITHUB_ACTOR;
|
||||
this.job = process.env.GITHUB_JOB;
|
||||
this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10);
|
||||
this.runId = parseInt(process.env.GITHUB_RUN_ID, 10);
|
||||
this.apiUrl = (_a = process.env.GITHUB_API_URL) !== null && _a !== void 0 ? _a : `https://api.github.com`;
|
||||
this.serverUrl = (_b = process.env.GITHUB_SERVER_URL) !== null && _b !== void 0 ? _b : `https://github.com`;
|
||||
this.graphqlUrl =
|
||||
(_c = process.env.GITHUB_GRAPHQL_URL) !== null && _c !== void 0 ? _c : `https://api.github.com/graphql`;
|
||||
}
|
||||
get issue() {
|
||||
const payload = this.payload;
|
||||
return Object.assign(Object.assign({}, this.repo), { number: (payload.issue || payload.pull_request || payload).number });
|
||||
}
|
||||
get repo() {
|
||||
if (process.env.GITHUB_REPOSITORY) {
|
||||
const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');
|
||||
return { owner, repo };
|
||||
}
|
||||
if (this.payload.repository) {
|
||||
return {
|
||||
owner: this.payload.repository.owner.login,
|
||||
repo: this.payload.repository.name
|
||||
};
|
||||
}
|
||||
throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'");
|
||||
}
|
||||
}
|
||||
exports.Context = Context;
|
||||
//# sourceMappingURL=context.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3228:
|
||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.getOctokit = exports.context = void 0;
|
||||
const Context = __importStar(__nccwpck_require__(1648));
|
||||
const utils_1 = __nccwpck_require__(8006);
|
||||
exports.context = new Context.Context();
|
||||
/**
|
||||
* Returns a hydrated octokit ready to use for GitHub Actions
|
||||
*
|
||||
* @param token the repo PAT or GITHUB_TOKEN
|
||||
* @param options other options to set
|
||||
*/
|
||||
function getOctokit(token, options, ...additionalPlugins) {
|
||||
const GitHubWithPlugins = utils_1.GitHub.plugin(...additionalPlugins);
|
||||
return new GitHubWithPlugins((0, utils_1.getOctokitOptions)(token, options));
|
||||
}
|
||||
exports.getOctokit = getOctokit;
|
||||
//# sourceMappingURL=github.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5156:
|
||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.getApiBaseUrl = exports.getProxyFetch = exports.getProxyAgentDispatcher = exports.getProxyAgent = exports.getAuthString = void 0;
|
||||
const httpClient = __importStar(__nccwpck_require__(4844));
|
||||
const undici_1 = __nccwpck_require__(6752);
|
||||
function getAuthString(token, options) {
|
||||
if (!token && !options.auth) {
|
||||
throw new Error('Parameter token or opts.auth is required');
|
||||
}
|
||||
else if (token && options.auth) {
|
||||
throw new Error('Parameters token and opts.auth may not both be specified');
|
||||
}
|
||||
return typeof options.auth === 'string' ? options.auth : `token ${token}`;
|
||||
}
|
||||
exports.getAuthString = getAuthString;
|
||||
function getProxyAgent(destinationUrl) {
|
||||
const hc = new httpClient.HttpClient();
|
||||
return hc.getAgent(destinationUrl);
|
||||
}
|
||||
exports.getProxyAgent = getProxyAgent;
|
||||
function getProxyAgentDispatcher(destinationUrl) {
|
||||
const hc = new httpClient.HttpClient();
|
||||
return hc.getAgentDispatcher(destinationUrl);
|
||||
}
|
||||
exports.getProxyAgentDispatcher = getProxyAgentDispatcher;
|
||||
function getProxyFetch(destinationUrl) {
|
||||
const httpDispatcher = getProxyAgentDispatcher(destinationUrl);
|
||||
const proxyFetch = (url, opts) => __awaiter(this, void 0, void 0, function* () {
|
||||
return (0, undici_1.fetch)(url, Object.assign(Object.assign({}, opts), { dispatcher: httpDispatcher }));
|
||||
});
|
||||
return proxyFetch;
|
||||
}
|
||||
exports.getProxyFetch = getProxyFetch;
|
||||
function getApiBaseUrl() {
|
||||
return process.env['GITHUB_API_URL'] || 'https://api.github.com';
|
||||
}
|
||||
exports.getApiBaseUrl = getApiBaseUrl;
|
||||
//# sourceMappingURL=utils.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8006:
|
||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.getOctokitOptions = exports.GitHub = exports.defaults = exports.context = void 0;
|
||||
const Context = __importStar(__nccwpck_require__(1648));
|
||||
const Utils = __importStar(__nccwpck_require__(5156));
|
||||
// octokit + plugins
|
||||
const core_1 = __nccwpck_require__(1897);
|
||||
const plugin_rest_endpoint_methods_1 = __nccwpck_require__(4935);
|
||||
const plugin_paginate_rest_1 = __nccwpck_require__(8082);
|
||||
exports.context = new Context.Context();
|
||||
const baseUrl = Utils.getApiBaseUrl();
|
||||
exports.defaults = {
|
||||
baseUrl,
|
||||
request: {
|
||||
agent: Utils.getProxyAgent(baseUrl),
|
||||
fetch: Utils.getProxyFetch(baseUrl)
|
||||
}
|
||||
};
|
||||
exports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(exports.defaults);
|
||||
/**
|
||||
* Convience function to correctly format Octokit Options to pass into the constructor.
|
||||
*
|
||||
* @param token the repo PAT or GITHUB_TOKEN
|
||||
* @param options other options to set
|
||||
*/
|
||||
function getOctokitOptions(token, options) {
|
||||
const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller
|
||||
// Auth
|
||||
const auth = Utils.getAuthString(token, opts);
|
||||
if (auth) {
|
||||
opts.auth = auth;
|
||||
}
|
||||
return opts;
|
||||
}
|
||||
exports.getOctokitOptions = getOctokitOptions;
|
||||
//# sourceMappingURL=utils.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4552:
|
||||
/***/ (function(__unused_webpack_module, exports) {
|
||||
|
||||
@@ -3446,7 +3193,11 @@ function copyFile(srcFile, destFile, force) {
|
||||
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
@@ -3459,7 +3210,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
@@ -3489,11 +3240,11 @@ function _findMatch(versionSpec, stable, candidates, archFilter) {
|
||||
let file;
|
||||
for (const candidate of candidates) {
|
||||
const version = candidate.version;
|
||||
core_1.debug(`check ${version} satisfies ${versionSpec}`);
|
||||
(0, core_1.debug)(`check ${version} satisfies ${versionSpec}`);
|
||||
if (semver.satisfies(version, versionSpec) &&
|
||||
(!stable || candidate.stable === stable)) {
|
||||
file = candidate.files.find(item => {
|
||||
core_1.debug(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);
|
||||
(0, core_1.debug)(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);
|
||||
let chk = item.arch === archFilter && item.platform === platFilter;
|
||||
if (chk && item.platform_version) {
|
||||
const osVersion = module.exports._getOsVersion();
|
||||
@@ -3507,7 +3258,7 @@ function _findMatch(versionSpec, stable, candidates, archFilter) {
|
||||
return chk;
|
||||
});
|
||||
if (file) {
|
||||
core_1.debug(`matched ${candidate.version}`);
|
||||
(0, core_1.debug)(`matched ${candidate.version}`);
|
||||
match = candidate;
|
||||
break;
|
||||
}
|
||||
@@ -3545,10 +3296,7 @@ function _getOsVersion() {
|
||||
if (parts.length === 2 &&
|
||||
(parts[0].trim() === 'VERSION_ID' ||
|
||||
parts[0].trim() === 'DISTRIB_RELEASE')) {
|
||||
version = parts[1]
|
||||
.trim()
|
||||
.replace(/^"/, '')
|
||||
.replace(/"$/, '');
|
||||
version = parts[1].trim().replace(/^"/, '').replace(/"$/, '');
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -3581,7 +3329,11 @@ exports._readLinuxVersionFile = _readLinuxVersionFile;
|
||||
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
@@ -3594,7 +3346,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
@@ -3671,7 +3423,11 @@ exports.RetryHelper = RetryHelper;
|
||||
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
@@ -3684,7 +3440,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
@@ -3697,13 +3453,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.evaluateVersions = exports.isExplicitVersion = exports.findFromManifest = exports.getManifestFromRepo = exports.findAllVersions = exports.find = exports.cacheFile = exports.cacheDir = exports.extractZip = exports.extractXar = exports.extractTar = exports.extract7z = exports.downloadTool = exports.HTTPError = void 0;
|
||||
const core = __importStar(__nccwpck_require__(7484));
|
||||
const io = __importStar(__nccwpck_require__(4994));
|
||||
const crypto = __importStar(__nccwpck_require__(6982));
|
||||
const fs = __importStar(__nccwpck_require__(9896));
|
||||
const mm = __importStar(__nccwpck_require__(8036));
|
||||
const os = __importStar(__nccwpck_require__(857));
|
||||
@@ -3713,7 +3467,6 @@ const semver = __importStar(__nccwpck_require__(9318));
|
||||
const stream = __importStar(__nccwpck_require__(2203));
|
||||
const util = __importStar(__nccwpck_require__(9023));
|
||||
const assert_1 = __nccwpck_require__(2613);
|
||||
const v4_1 = __importDefault(__nccwpck_require__(9021));
|
||||
const exec_1 = __nccwpck_require__(5236);
|
||||
const retry_helper_1 = __nccwpck_require__(7380);
|
||||
class HTTPError extends Error {
|
||||
@@ -3738,7 +3491,7 @@ const userAgent = 'actions/tool-cache';
|
||||
*/
|
||||
function downloadTool(url, dest, auth, headers) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
dest = dest || path.join(_getTempDirectory(), v4_1.default());
|
||||
dest = dest || path.join(_getTempDirectory(), crypto.randomUUID());
|
||||
yield io.mkdirP(path.dirname(dest));
|
||||
core.debug(`Downloading ${url}`);
|
||||
core.debug(`Destination ${dest}`);
|
||||
@@ -3827,8 +3580,8 @@ function downloadToolAttempt(url, dest, auth, headers) {
|
||||
*/
|
||||
function extract7z(file, dest, _7zPath) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
assert_1.ok(IS_WINDOWS, 'extract7z() not supported on current OS');
|
||||
assert_1.ok(file, 'parameter "file" is required');
|
||||
(0, assert_1.ok)(IS_WINDOWS, 'extract7z() not supported on current OS');
|
||||
(0, assert_1.ok)(file, 'parameter "file" is required');
|
||||
dest = yield _createExtractFolder(dest);
|
||||
const originalCwd = process.cwd();
|
||||
process.chdir(dest);
|
||||
@@ -3845,7 +3598,7 @@ function extract7z(file, dest, _7zPath) {
|
||||
const options = {
|
||||
silent: true
|
||||
};
|
||||
yield exec_1.exec(`"${_7zPath}"`, args, options);
|
||||
yield (0, exec_1.exec)(`"${_7zPath}"`, args, options);
|
||||
}
|
||||
finally {
|
||||
process.chdir(originalCwd);
|
||||
@@ -3874,7 +3627,7 @@ function extract7z(file, dest, _7zPath) {
|
||||
};
|
||||
try {
|
||||
const powershellPath = yield io.which('powershell', true);
|
||||
yield exec_1.exec(`"${powershellPath}"`, args, options);
|
||||
yield (0, exec_1.exec)(`"${powershellPath}"`, args, options);
|
||||
}
|
||||
finally {
|
||||
process.chdir(originalCwd);
|
||||
@@ -3902,7 +3655,7 @@ function extractTar(file, dest, flags = 'xz') {
|
||||
// Determine whether GNU tar
|
||||
core.debug('Checking tar --version');
|
||||
let versionOutput = '';
|
||||
yield exec_1.exec('tar --version', [], {
|
||||
yield (0, exec_1.exec)('tar --version', [], {
|
||||
ignoreReturnCode: true,
|
||||
silent: true,
|
||||
listeners: {
|
||||
@@ -3938,7 +3691,7 @@ function extractTar(file, dest, flags = 'xz') {
|
||||
args.push('--overwrite');
|
||||
}
|
||||
args.push('-C', destArg, '-f', fileArg);
|
||||
yield exec_1.exec(`tar`, args);
|
||||
yield (0, exec_1.exec)(`tar`, args);
|
||||
return dest;
|
||||
});
|
||||
}
|
||||
@@ -3953,8 +3706,8 @@ exports.extractTar = extractTar;
|
||||
*/
|
||||
function extractXar(file, dest, flags = []) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
assert_1.ok(IS_MAC, 'extractXar() not supported on current OS');
|
||||
assert_1.ok(file, 'parameter "file" is required');
|
||||
(0, assert_1.ok)(IS_MAC, 'extractXar() not supported on current OS');
|
||||
(0, assert_1.ok)(file, 'parameter "file" is required');
|
||||
dest = yield _createExtractFolder(dest);
|
||||
let args;
|
||||
if (flags instanceof Array) {
|
||||
@@ -3968,7 +3721,7 @@ function extractXar(file, dest, flags = []) {
|
||||
args.push('-v');
|
||||
}
|
||||
const xarPath = yield io.which('xar', true);
|
||||
yield exec_1.exec(`"${xarPath}"`, _unique(args));
|
||||
yield (0, exec_1.exec)(`"${xarPath}"`, _unique(args));
|
||||
return dest;
|
||||
});
|
||||
}
|
||||
@@ -4022,7 +3775,7 @@ function extractZipWin(file, dest) {
|
||||
pwshCommand
|
||||
];
|
||||
core.debug(`Using pwsh at path: ${pwshPath}`);
|
||||
yield exec_1.exec(`"${pwshPath}"`, args);
|
||||
yield (0, exec_1.exec)(`"${pwshPath}"`, args);
|
||||
}
|
||||
else {
|
||||
const powershellCommand = [
|
||||
@@ -4043,7 +3796,7 @@ function extractZipWin(file, dest) {
|
||||
];
|
||||
const powershellPath = yield io.which('powershell', true);
|
||||
core.debug(`Using powershell at path: ${powershellPath}`);
|
||||
yield exec_1.exec(`"${powershellPath}"`, args);
|
||||
yield (0, exec_1.exec)(`"${powershellPath}"`, args);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -4055,7 +3808,7 @@ function extractZipNix(file, dest) {
|
||||
args.unshift('-q');
|
||||
}
|
||||
args.unshift('-o'); //overwrite with -o, otherwise a prompt is shown which freezes the run
|
||||
yield exec_1.exec(`"${unzipPath}"`, args, { cwd: dest });
|
||||
yield (0, exec_1.exec)(`"${unzipPath}"`, args, { cwd: dest });
|
||||
});
|
||||
}
|
||||
/**
|
||||
@@ -4232,7 +3985,7 @@ function _createExtractFolder(dest) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
if (!dest) {
|
||||
// create a temp dir
|
||||
dest = path.join(_getTempDirectory(), v4_1.default());
|
||||
dest = path.join(_getTempDirectory(), crypto.randomUUID());
|
||||
}
|
||||
yield io.mkdirP(dest);
|
||||
return dest;
|
||||
@@ -4305,7 +4058,7 @@ exports.evaluateVersions = evaluateVersions;
|
||||
*/
|
||||
function _getCacheDirectory() {
|
||||
const cacheDirectory = process.env['RUNNER_TOOL_CACHE'] || '';
|
||||
assert_1.ok(cacheDirectory, 'Expected RUNNER_TOOL_CACHE to be defined');
|
||||
(0, assert_1.ok)(cacheDirectory, 'Expected RUNNER_TOOL_CACHE to be defined');
|
||||
return cacheDirectory;
|
||||
}
|
||||
/**
|
||||
@@ -4313,7 +4066,7 @@ function _getCacheDirectory() {
|
||||
*/
|
||||
function _getTempDirectory() {
|
||||
const tempDirectory = process.env['RUNNER_TEMP'] || '';
|
||||
assert_1.ok(tempDirectory, 'Expected RUNNER_TEMP to be defined');
|
||||
(0, assert_1.ok)(tempDirectory, 'Expected RUNNER_TEMP to be defined');
|
||||
return tempDirectory;
|
||||
}
|
||||
/**
|
||||
@@ -4334,3789 +4087,6 @@ function _unique(values) {
|
||||
}
|
||||
//# sourceMappingURL=tool-cache.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7864:
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
var dist_src_exports = {};
|
||||
__export(dist_src_exports, {
|
||||
createTokenAuth: () => createTokenAuth
|
||||
});
|
||||
module.exports = __toCommonJS(dist_src_exports);
|
||||
|
||||
// pkg/dist-src/auth.js
|
||||
var REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
|
||||
var REGEX_IS_INSTALLATION = /^ghs_/;
|
||||
var REGEX_IS_USER_TO_SERVER = /^ghu_/;
|
||||
async function auth(token) {
|
||||
const isApp = token.split(/\./).length === 3;
|
||||
const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);
|
||||
const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
|
||||
const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
|
||||
return {
|
||||
type: "token",
|
||||
token,
|
||||
tokenType
|
||||
};
|
||||
}
|
||||
|
||||
// pkg/dist-src/with-authorization-prefix.js
|
||||
function withAuthorizationPrefix(token) {
|
||||
if (token.split(/\./).length === 3) {
|
||||
return `bearer ${token}`;
|
||||
}
|
||||
return `token ${token}`;
|
||||
}
|
||||
|
||||
// pkg/dist-src/hook.js
|
||||
async function hook(token, request, route, parameters) {
|
||||
const endpoint = request.endpoint.merge(
|
||||
route,
|
||||
parameters
|
||||
);
|
||||
endpoint.headers.authorization = withAuthorizationPrefix(token);
|
||||
return request(endpoint);
|
||||
}
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
var createTokenAuth = function createTokenAuth2(token) {
|
||||
if (!token) {
|
||||
throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
|
||||
}
|
||||
if (typeof token !== "string") {
|
||||
throw new Error(
|
||||
"[@octokit/auth-token] Token passed to createTokenAuth is not a string"
|
||||
);
|
||||
}
|
||||
token = token.replace(/^(token|bearer) +/i, "");
|
||||
return Object.assign(auth.bind(null, token), {
|
||||
hook: hook.bind(null, token)
|
||||
});
|
||||
};
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (0);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1897:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
var dist_src_exports = {};
|
||||
__export(dist_src_exports, {
|
||||
Octokit: () => Octokit
|
||||
});
|
||||
module.exports = __toCommonJS(dist_src_exports);
|
||||
var import_universal_user_agent = __nccwpck_require__(3843);
|
||||
var import_before_after_hook = __nccwpck_require__(2732);
|
||||
var import_request = __nccwpck_require__(8636);
|
||||
var import_graphql = __nccwpck_require__(7);
|
||||
var import_auth_token = __nccwpck_require__(7864);
|
||||
|
||||
// pkg/dist-src/version.js
|
||||
var VERSION = "5.2.0";
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
var noop = () => {
|
||||
};
|
||||
var consoleWarn = console.warn.bind(console);
|
||||
var consoleError = console.error.bind(console);
|
||||
var userAgentTrail = `octokit-core.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
|
||||
var Octokit = class {
|
||||
static {
|
||||
this.VERSION = VERSION;
|
||||
}
|
||||
static defaults(defaults) {
|
||||
const OctokitWithDefaults = class extends this {
|
||||
constructor(...args) {
|
||||
const options = args[0] || {};
|
||||
if (typeof defaults === "function") {
|
||||
super(defaults(options));
|
||||
return;
|
||||
}
|
||||
super(
|
||||
Object.assign(
|
||||
{},
|
||||
defaults,
|
||||
options,
|
||||
options.userAgent && defaults.userAgent ? {
|
||||
userAgent: `${options.userAgent} ${defaults.userAgent}`
|
||||
} : null
|
||||
)
|
||||
);
|
||||
}
|
||||
};
|
||||
return OctokitWithDefaults;
|
||||
}
|
||||
static {
|
||||
this.plugins = [];
|
||||
}
|
||||
/**
|
||||
* Attach a plugin (or many) to your Octokit instance.
|
||||
*
|
||||
* @example
|
||||
* const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)
|
||||
*/
|
||||
static plugin(...newPlugins) {
|
||||
const currentPlugins = this.plugins;
|
||||
const NewOctokit = class extends this {
|
||||
static {
|
||||
this.plugins = currentPlugins.concat(
|
||||
newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
|
||||
);
|
||||
}
|
||||
};
|
||||
return NewOctokit;
|
||||
}
|
||||
constructor(options = {}) {
|
||||
const hook = new import_before_after_hook.Collection();
|
||||
const requestDefaults = {
|
||||
baseUrl: import_request.request.endpoint.DEFAULTS.baseUrl,
|
||||
headers: {},
|
||||
request: Object.assign({}, options.request, {
|
||||
// @ts-ignore internal usage only, no need to type
|
||||
hook: hook.bind(null, "request")
|
||||
}),
|
||||
mediaType: {
|
||||
previews: [],
|
||||
format: ""
|
||||
}
|
||||
};
|
||||
requestDefaults.headers["user-agent"] = options.userAgent ? `${options.userAgent} ${userAgentTrail}` : userAgentTrail;
|
||||
if (options.baseUrl) {
|
||||
requestDefaults.baseUrl = options.baseUrl;
|
||||
}
|
||||
if (options.previews) {
|
||||
requestDefaults.mediaType.previews = options.previews;
|
||||
}
|
||||
if (options.timeZone) {
|
||||
requestDefaults.headers["time-zone"] = options.timeZone;
|
||||
}
|
||||
this.request = import_request.request.defaults(requestDefaults);
|
||||
this.graphql = (0, import_graphql.withCustomRequest)(this.request).defaults(requestDefaults);
|
||||
this.log = Object.assign(
|
||||
{
|
||||
debug: noop,
|
||||
info: noop,
|
||||
warn: consoleWarn,
|
||||
error: consoleError
|
||||
},
|
||||
options.log
|
||||
);
|
||||
this.hook = hook;
|
||||
if (!options.authStrategy) {
|
||||
if (!options.auth) {
|
||||
this.auth = async () => ({
|
||||
type: "unauthenticated"
|
||||
});
|
||||
} else {
|
||||
const auth = (0, import_auth_token.createTokenAuth)(options.auth);
|
||||
hook.wrap("request", auth.hook);
|
||||
this.auth = auth;
|
||||
}
|
||||
} else {
|
||||
const { authStrategy, ...otherOptions } = options;
|
||||
const auth = authStrategy(
|
||||
Object.assign(
|
||||
{
|
||||
request: this.request,
|
||||
log: this.log,
|
||||
// we pass the current octokit instance as well as its constructor options
|
||||
// to allow for authentication strategies that return a new octokit instance
|
||||
// that shares the same internal state as the current one. The original
|
||||
// requirement for this was the "event-octokit" authentication strategy
|
||||
// of https://github.com/probot/octokit-auth-probot.
|
||||
octokit: this,
|
||||
octokitOptions: otherOptions
|
||||
},
|
||||
options.auth
|
||||
)
|
||||
);
|
||||
hook.wrap("request", auth.hook);
|
||||
this.auth = auth;
|
||||
}
|
||||
const classConstructor = this.constructor;
|
||||
for (let i = 0; i < classConstructor.plugins.length; ++i) {
|
||||
Object.assign(this, classConstructor.plugins[i](this, options));
|
||||
}
|
||||
}
|
||||
};
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (0);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4471:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
var dist_src_exports = {};
|
||||
__export(dist_src_exports, {
|
||||
endpoint: () => endpoint
|
||||
});
|
||||
module.exports = __toCommonJS(dist_src_exports);
|
||||
|
||||
// pkg/dist-src/defaults.js
|
||||
var import_universal_user_agent = __nccwpck_require__(3843);
|
||||
|
||||
// pkg/dist-src/version.js
|
||||
var VERSION = "9.0.5";
|
||||
|
||||
// pkg/dist-src/defaults.js
|
||||
var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
|
||||
var DEFAULTS = {
|
||||
method: "GET",
|
||||
baseUrl: "https://api.github.com",
|
||||
headers: {
|
||||
accept: "application/vnd.github.v3+json",
|
||||
"user-agent": userAgent
|
||||
},
|
||||
mediaType: {
|
||||
format: ""
|
||||
}
|
||||
};
|
||||
|
||||
// pkg/dist-src/util/lowercase-keys.js
|
||||
function lowercaseKeys(object) {
|
||||
if (!object) {
|
||||
return {};
|
||||
}
|
||||
return Object.keys(object).reduce((newObj, key) => {
|
||||
newObj[key.toLowerCase()] = object[key];
|
||||
return newObj;
|
||||
}, {});
|
||||
}
|
||||
|
||||
// pkg/dist-src/util/is-plain-object.js
|
||||
function isPlainObject(value) {
|
||||
if (typeof value !== "object" || value === null)
|
||||
return false;
|
||||
if (Object.prototype.toString.call(value) !== "[object Object]")
|
||||
return false;
|
||||
const proto = Object.getPrototypeOf(value);
|
||||
if (proto === null)
|
||||
return true;
|
||||
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
||||
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
||||
}
|
||||
|
||||
// pkg/dist-src/util/merge-deep.js
|
||||
function mergeDeep(defaults, options) {
|
||||
const result = Object.assign({}, defaults);
|
||||
Object.keys(options).forEach((key) => {
|
||||
if (isPlainObject(options[key])) {
|
||||
if (!(key in defaults))
|
||||
Object.assign(result, { [key]: options[key] });
|
||||
else
|
||||
result[key] = mergeDeep(defaults[key], options[key]);
|
||||
} else {
|
||||
Object.assign(result, { [key]: options[key] });
|
||||
}
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
// pkg/dist-src/util/remove-undefined-properties.js
|
||||
function removeUndefinedProperties(obj) {
|
||||
for (const key in obj) {
|
||||
if (obj[key] === void 0) {
|
||||
delete obj[key];
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
// pkg/dist-src/merge.js
|
||||
function merge(defaults, route, options) {
|
||||
if (typeof route === "string") {
|
||||
let [method, url] = route.split(" ");
|
||||
options = Object.assign(url ? { method, url } : { url: method }, options);
|
||||
} else {
|
||||
options = Object.assign({}, route);
|
||||
}
|
||||
options.headers = lowercaseKeys(options.headers);
|
||||
removeUndefinedProperties(options);
|
||||
removeUndefinedProperties(options.headers);
|
||||
const mergedOptions = mergeDeep(defaults || {}, options);
|
||||
if (options.url === "/graphql") {
|
||||
if (defaults && defaults.mediaType.previews?.length) {
|
||||
mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(
|
||||
(preview) => !mergedOptions.mediaType.previews.includes(preview)
|
||||
).concat(mergedOptions.mediaType.previews);
|
||||
}
|
||||
mergedOptions.mediaType.previews = (mergedOptions.mediaType.previews || []).map((preview) => preview.replace(/-preview/, ""));
|
||||
}
|
||||
return mergedOptions;
|
||||
}
|
||||
|
||||
// pkg/dist-src/util/add-query-parameters.js
|
||||
function addQueryParameters(url, parameters) {
|
||||
const separator = /\?/.test(url) ? "&" : "?";
|
||||
const names = Object.keys(parameters);
|
||||
if (names.length === 0) {
|
||||
return url;
|
||||
}
|
||||
return url + separator + names.map((name) => {
|
||||
if (name === "q") {
|
||||
return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
|
||||
}
|
||||
return `${name}=${encodeURIComponent(parameters[name])}`;
|
||||
}).join("&");
|
||||
}
|
||||
|
||||
// pkg/dist-src/util/extract-url-variable-names.js
|
||||
var urlVariableRegex = /\{[^}]+\}/g;
|
||||
function removeNonChars(variableName) {
|
||||
return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
|
||||
}
|
||||
function extractUrlVariableNames(url) {
|
||||
const matches = url.match(urlVariableRegex);
|
||||
if (!matches) {
|
||||
return [];
|
||||
}
|
||||
return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
|
||||
}
|
||||
|
||||
// pkg/dist-src/util/omit.js
|
||||
function omit(object, keysToOmit) {
|
||||
const result = { __proto__: null };
|
||||
for (const key of Object.keys(object)) {
|
||||
if (keysToOmit.indexOf(key) === -1) {
|
||||
result[key] = object[key];
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// pkg/dist-src/util/url-template.js
|
||||
function encodeReserved(str) {
|
||||
return str.split(/(%[0-9A-Fa-f]{2})/g).map(function(part) {
|
||||
if (!/%[0-9A-Fa-f]/.test(part)) {
|
||||
part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
|
||||
}
|
||||
return part;
|
||||
}).join("");
|
||||
}
|
||||
function encodeUnreserved(str) {
|
||||
return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
|
||||
return "%" + c.charCodeAt(0).toString(16).toUpperCase();
|
||||
});
|
||||
}
|
||||
function encodeValue(operator, value, key) {
|
||||
value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value);
|
||||
if (key) {
|
||||
return encodeUnreserved(key) + "=" + value;
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
function isDefined(value) {
|
||||
return value !== void 0 && value !== null;
|
||||
}
|
||||
function isKeyOperator(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues(context, operator, key, modifier) {
|
||||
var value = context[key], result = [];
|
||||
if (isDefined(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
if (modifier && modifier !== "*") {
|
||||
value = value.substring(0, parseInt(modifier, 10));
|
||||
}
|
||||
result.push(
|
||||
encodeValue(operator, value, isKeyOperator(operator) ? key : "")
|
||||
);
|
||||
} else {
|
||||
if (modifier === "*") {
|
||||
if (Array.isArray(value)) {
|
||||
value.filter(isDefined).forEach(function(value2) {
|
||||
result.push(
|
||||
encodeValue(operator, value2, isKeyOperator(operator) ? key : "")
|
||||
);
|
||||
});
|
||||
} else {
|
||||
Object.keys(value).forEach(function(k) {
|
||||
if (isDefined(value[k])) {
|
||||
result.push(encodeValue(operator, value[k], k));
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
const tmp = [];
|
||||
if (Array.isArray(value)) {
|
||||
value.filter(isDefined).forEach(function(value2) {
|
||||
tmp.push(encodeValue(operator, value2));
|
||||
});
|
||||
} else {
|
||||
Object.keys(value).forEach(function(k) {
|
||||
if (isDefined(value[k])) {
|
||||
tmp.push(encodeUnreserved(k));
|
||||
tmp.push(encodeValue(operator, value[k].toString()));
|
||||
}
|
||||
});
|
||||
}
|
||||
if (isKeyOperator(operator)) {
|
||||
result.push(encodeUnreserved(key) + "=" + tmp.join(","));
|
||||
} else if (tmp.length !== 0) {
|
||||
result.push(tmp.join(","));
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (operator === ";") {
|
||||
if (isDefined(value)) {
|
||||
result.push(encodeUnreserved(key));
|
||||
}
|
||||
} else if (value === "" && (operator === "&" || operator === "?")) {
|
||||
result.push(encodeUnreserved(key) + "=");
|
||||
} else if (value === "") {
|
||||
result.push("");
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function parseUrl(template) {
|
||||
return {
|
||||
expand: expand.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand(template, context) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
function(_, expression, literal) {
|
||||
if (expression) {
|
||||
let operator = "";
|
||||
const values = [];
|
||||
if (operators.indexOf(expression.charAt(0)) !== -1) {
|
||||
operator = expression.charAt(0);
|
||||
expression = expression.substr(1);
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
if (operator === "?") {
|
||||
separator = "&";
|
||||
} else if (operator !== "#") {
|
||||
separator = operator;
|
||||
}
|
||||
return (values.length !== 0 ? operator : "") + values.join(separator);
|
||||
} else {
|
||||
return values.join(",");
|
||||
}
|
||||
} else {
|
||||
return encodeReserved(literal);
|
||||
}
|
||||
}
|
||||
);
|
||||
if (template === "/") {
|
||||
return template;
|
||||
} else {
|
||||
return template.replace(/\/$/, "");
|
||||
}
|
||||
}
|
||||
|
||||
// pkg/dist-src/parse.js
|
||||
function parse(options) {
|
||||
let method = options.method.toUpperCase();
|
||||
let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
|
||||
let headers = Object.assign({}, options.headers);
|
||||
let body;
|
||||
let parameters = omit(options, [
|
||||
"method",
|
||||
"baseUrl",
|
||||
"url",
|
||||
"headers",
|
||||
"request",
|
||||
"mediaType"
|
||||
]);
|
||||
const urlVariableNames = extractUrlVariableNames(url);
|
||||
url = parseUrl(url).expand(parameters);
|
||||
if (!/^http/.test(url)) {
|
||||
url = options.baseUrl + url;
|
||||
}
|
||||
const omittedParameters = Object.keys(options).filter((option) => urlVariableNames.includes(option)).concat("baseUrl");
|
||||
const remainingParameters = omit(parameters, omittedParameters);
|
||||
const isBinaryRequest = /application\/octet-stream/i.test(headers.accept);
|
||||
if (!isBinaryRequest) {
|
||||
if (options.mediaType.format) {
|
||||
headers.accept = headers.accept.split(/,/).map(
|
||||
(format) => format.replace(
|
||||
/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,
|
||||
`application/vnd$1$2.${options.mediaType.format}`
|
||||
)
|
||||
).join(",");
|
||||
}
|
||||
if (url.endsWith("/graphql")) {
|
||||
if (options.mediaType.previews?.length) {
|
||||
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
|
||||
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
|
||||
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
|
||||
return `application/vnd.github.${preview}-preview${format}`;
|
||||
}).join(",");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (["GET", "HEAD"].includes(method)) {
|
||||
url = addQueryParameters(url, remainingParameters);
|
||||
} else {
|
||||
if ("data" in remainingParameters) {
|
||||
body = remainingParameters.data;
|
||||
} else {
|
||||
if (Object.keys(remainingParameters).length) {
|
||||
body = remainingParameters;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!headers["content-type"] && typeof body !== "undefined") {
|
||||
headers["content-type"] = "application/json; charset=utf-8";
|
||||
}
|
||||
if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
|
||||
body = "";
|
||||
}
|
||||
return Object.assign(
|
||||
{ method, url, headers },
|
||||
typeof body !== "undefined" ? { body } : null,
|
||||
options.request ? { request: options.request } : null
|
||||
);
|
||||
}
|
||||
|
||||
// pkg/dist-src/endpoint-with-defaults.js
|
||||
function endpointWithDefaults(defaults, route, options) {
|
||||
return parse(merge(defaults, route, options));
|
||||
}
|
||||
|
||||
// pkg/dist-src/with-defaults.js
|
||||
function withDefaults(oldDefaults, newDefaults) {
|
||||
const DEFAULTS2 = merge(oldDefaults, newDefaults);
|
||||
const endpoint2 = endpointWithDefaults.bind(null, DEFAULTS2);
|
||||
return Object.assign(endpoint2, {
|
||||
DEFAULTS: DEFAULTS2,
|
||||
defaults: withDefaults.bind(null, DEFAULTS2),
|
||||
merge: merge.bind(null, DEFAULTS2),
|
||||
parse
|
||||
});
|
||||
}
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
var endpoint = withDefaults(null, DEFAULTS);
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (0);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
var dist_src_exports = {};
|
||||
__export(dist_src_exports, {
|
||||
GraphqlResponseError: () => GraphqlResponseError,
|
||||
graphql: () => graphql2,
|
||||
withCustomRequest: () => withCustomRequest
|
||||
});
|
||||
module.exports = __toCommonJS(dist_src_exports);
|
||||
var import_request3 = __nccwpck_require__(8636);
|
||||
var import_universal_user_agent = __nccwpck_require__(3843);
|
||||
|
||||
// pkg/dist-src/version.js
|
||||
var VERSION = "7.1.0";
|
||||
|
||||
// pkg/dist-src/with-defaults.js
|
||||
var import_request2 = __nccwpck_require__(8636);
|
||||
|
||||
// pkg/dist-src/graphql.js
|
||||
var import_request = __nccwpck_require__(8636);
|
||||
|
||||
// pkg/dist-src/error.js
|
||||
function _buildMessageForResponseErrors(data) {
|
||||
return `Request failed due to following response errors:
|
||||
` + data.errors.map((e) => ` - ${e.message}`).join("\n");
|
||||
}
|
||||
var GraphqlResponseError = class extends Error {
|
||||
constructor(request2, headers, response) {
|
||||
super(_buildMessageForResponseErrors(response));
|
||||
this.request = request2;
|
||||
this.headers = headers;
|
||||
this.response = response;
|
||||
this.name = "GraphqlResponseError";
|
||||
this.errors = response.errors;
|
||||
this.data = response.data;
|
||||
if (Error.captureStackTrace) {
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// pkg/dist-src/graphql.js
|
||||
var NON_VARIABLE_OPTIONS = [
|
||||
"method",
|
||||
"baseUrl",
|
||||
"url",
|
||||
"headers",
|
||||
"request",
|
||||
"query",
|
||||
"mediaType"
|
||||
];
|
||||
var FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"];
|
||||
var GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/;
|
||||
function graphql(request2, query, options) {
|
||||
if (options) {
|
||||
if (typeof query === "string" && "query" in options) {
|
||||
return Promise.reject(
|
||||
new Error(`[@octokit/graphql] "query" cannot be used as variable name`)
|
||||
);
|
||||
}
|
||||
for (const key in options) {
|
||||
if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key))
|
||||
continue;
|
||||
return Promise.reject(
|
||||
new Error(
|
||||
`[@octokit/graphql] "${key}" cannot be used as variable name`
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
const parsedOptions = typeof query === "string" ? Object.assign({ query }, options) : query;
|
||||
const requestOptions = Object.keys(
|
||||
parsedOptions
|
||||
).reduce((result, key) => {
|
||||
if (NON_VARIABLE_OPTIONS.includes(key)) {
|
||||
result[key] = parsedOptions[key];
|
||||
return result;
|
||||
}
|
||||
if (!result.variables) {
|
||||
result.variables = {};
|
||||
}
|
||||
result.variables[key] = parsedOptions[key];
|
||||
return result;
|
||||
}, {});
|
||||
const baseUrl = parsedOptions.baseUrl || request2.endpoint.DEFAULTS.baseUrl;
|
||||
if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {
|
||||
requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, "/api/graphql");
|
||||
}
|
||||
return request2(requestOptions).then((response) => {
|
||||
if (response.data.errors) {
|
||||
const headers = {};
|
||||
for (const key of Object.keys(response.headers)) {
|
||||
headers[key] = response.headers[key];
|
||||
}
|
||||
throw new GraphqlResponseError(
|
||||
requestOptions,
|
||||
headers,
|
||||
response.data
|
||||
);
|
||||
}
|
||||
return response.data.data;
|
||||
});
|
||||
}
|
||||
|
||||
// pkg/dist-src/with-defaults.js
|
||||
function withDefaults(request2, newDefaults) {
|
||||
const newRequest = request2.defaults(newDefaults);
|
||||
const newApi = (query, options) => {
|
||||
return graphql(newRequest, query, options);
|
||||
};
|
||||
return Object.assign(newApi, {
|
||||
defaults: withDefaults.bind(null, newRequest),
|
||||
endpoint: newRequest.endpoint
|
||||
});
|
||||
}
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
var graphql2 = withDefaults(import_request3.request, {
|
||||
headers: {
|
||||
"user-agent": `octokit-graphql.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
|
||||
},
|
||||
method: "POST",
|
||||
url: "/graphql"
|
||||
});
|
||||
function withCustomRequest(customRequest) {
|
||||
return withDefaults(customRequest, {
|
||||
method: "POST",
|
||||
url: "/graphql"
|
||||
});
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (0);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8082:
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
var dist_src_exports = {};
|
||||
__export(dist_src_exports, {
|
||||
composePaginateRest: () => composePaginateRest,
|
||||
isPaginatingEndpoint: () => isPaginatingEndpoint,
|
||||
paginateRest: () => paginateRest,
|
||||
paginatingEndpoints: () => paginatingEndpoints
|
||||
});
|
||||
module.exports = __toCommonJS(dist_src_exports);
|
||||
|
||||
// pkg/dist-src/version.js
|
||||
var VERSION = "9.0.0";
|
||||
|
||||
// pkg/dist-src/normalize-paginated-list-response.js
|
||||
function normalizePaginatedListResponse(response) {
|
||||
if (!response.data) {
|
||||
return {
|
||||
...response,
|
||||
data: []
|
||||
};
|
||||
}
|
||||
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
|
||||
if (!responseNeedsNormalization)
|
||||
return response;
|
||||
const incompleteResults = response.data.incomplete_results;
|
||||
const repositorySelection = response.data.repository_selection;
|
||||
const totalCount = response.data.total_count;
|
||||
delete response.data.incomplete_results;
|
||||
delete response.data.repository_selection;
|
||||
delete response.data.total_count;
|
||||
const namespaceKey = Object.keys(response.data)[0];
|
||||
const data = response.data[namespaceKey];
|
||||
response.data = data;
|
||||
if (typeof incompleteResults !== "undefined") {
|
||||
response.data.incomplete_results = incompleteResults;
|
||||
}
|
||||
if (typeof repositorySelection !== "undefined") {
|
||||
response.data.repository_selection = repositorySelection;
|
||||
}
|
||||
response.data.total_count = totalCount;
|
||||
return response;
|
||||
}
|
||||
|
||||
// pkg/dist-src/iterator.js
|
||||
function iterator(octokit, route, parameters) {
|
||||
const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);
|
||||
const requestMethod = typeof route === "function" ? route : octokit.request;
|
||||
const method = options.method;
|
||||
const headers = options.headers;
|
||||
let url = options.url;
|
||||
return {
|
||||
[Symbol.asyncIterator]: () => ({
|
||||
async next() {
|
||||
if (!url)
|
||||
return { done: true };
|
||||
try {
|
||||
const response = await requestMethod({ method, url, headers });
|
||||
const normalizedResponse = normalizePaginatedListResponse(response);
|
||||
url = ((normalizedResponse.headers.link || "").match(
|
||||
/<([^>]+)>;\s*rel="next"/
|
||||
) || [])[1];
|
||||
return { value: normalizedResponse };
|
||||
} catch (error) {
|
||||
if (error.status !== 409)
|
||||
throw error;
|
||||
url = "";
|
||||
return {
|
||||
value: {
|
||||
status: 200,
|
||||
headers: {},
|
||||
data: []
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
})
|
||||
};
|
||||
}
|
||||
|
||||
// pkg/dist-src/paginate.js
|
||||
function paginate(octokit, route, parameters, mapFn) {
|
||||
if (typeof parameters === "function") {
|
||||
mapFn = parameters;
|
||||
parameters = void 0;
|
||||
}
|
||||
return gather(
|
||||
octokit,
|
||||
[],
|
||||
iterator(octokit, route, parameters)[Symbol.asyncIterator](),
|
||||
mapFn
|
||||
);
|
||||
}
|
||||
function gather(octokit, results, iterator2, mapFn) {
|
||||
return iterator2.next().then((result) => {
|
||||
if (result.done) {
|
||||
return results;
|
||||
}
|
||||
let earlyExit = false;
|
||||
function done() {
|
||||
earlyExit = true;
|
||||
}
|
||||
results = results.concat(
|
||||
mapFn ? mapFn(result.value, done) : result.value.data
|
||||
);
|
||||
if (earlyExit) {
|
||||
return results;
|
||||
}
|
||||
return gather(octokit, results, iterator2, mapFn);
|
||||
});
|
||||
}
|
||||
|
||||
// pkg/dist-src/compose-paginate.js
|
||||
var composePaginateRest = Object.assign(paginate, {
|
||||
iterator
|
||||
});
|
||||
|
||||
// pkg/dist-src/generated/paginating-endpoints.js
|
||||
var paginatingEndpoints = [
|
||||
"GET /advisories",
|
||||
"GET /app/hook/deliveries",
|
||||
"GET /app/installation-requests",
|
||||
"GET /app/installations",
|
||||
"GET /assignments/{assignment_id}/accepted_assignments",
|
||||
"GET /classrooms",
|
||||
"GET /classrooms/{classroom_id}/assignments",
|
||||
"GET /enterprises/{enterprise}/dependabot/alerts",
|
||||
"GET /enterprises/{enterprise}/secret-scanning/alerts",
|
||||
"GET /events",
|
||||
"GET /gists",
|
||||
"GET /gists/public",
|
||||
"GET /gists/starred",
|
||||
"GET /gists/{gist_id}/comments",
|
||||
"GET /gists/{gist_id}/commits",
|
||||
"GET /gists/{gist_id}/forks",
|
||||
"GET /installation/repositories",
|
||||
"GET /issues",
|
||||
"GET /licenses",
|
||||
"GET /marketplace_listing/plans",
|
||||
"GET /marketplace_listing/plans/{plan_id}/accounts",
|
||||
"GET /marketplace_listing/stubbed/plans",
|
||||
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts",
|
||||
"GET /networks/{owner}/{repo}/events",
|
||||
"GET /notifications",
|
||||
"GET /organizations",
|
||||
"GET /orgs/{org}/actions/cache/usage-by-repository",
|
||||
"GET /orgs/{org}/actions/permissions/repositories",
|
||||
"GET /orgs/{org}/actions/runners",
|
||||
"GET /orgs/{org}/actions/secrets",
|
||||
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories",
|
||||
"GET /orgs/{org}/actions/variables",
|
||||
"GET /orgs/{org}/actions/variables/{name}/repositories",
|
||||
"GET /orgs/{org}/blocks",
|
||||
"GET /orgs/{org}/code-scanning/alerts",
|
||||
"GET /orgs/{org}/codespaces",
|
||||
"GET /orgs/{org}/codespaces/secrets",
|
||||
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories",
|
||||
"GET /orgs/{org}/copilot/billing/seats",
|
||||
"GET /orgs/{org}/dependabot/alerts",
|
||||
"GET /orgs/{org}/dependabot/secrets",
|
||||
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories",
|
||||
"GET /orgs/{org}/events",
|
||||
"GET /orgs/{org}/failed_invitations",
|
||||
"GET /orgs/{org}/hooks",
|
||||
"GET /orgs/{org}/hooks/{hook_id}/deliveries",
|
||||
"GET /orgs/{org}/installations",
|
||||
"GET /orgs/{org}/invitations",
|
||||
"GET /orgs/{org}/invitations/{invitation_id}/teams",
|
||||
"GET /orgs/{org}/issues",
|
||||
"GET /orgs/{org}/members",
|
||||
"GET /orgs/{org}/members/{username}/codespaces",
|
||||
"GET /orgs/{org}/migrations",
|
||||
"GET /orgs/{org}/migrations/{migration_id}/repositories",
|
||||
"GET /orgs/{org}/outside_collaborators",
|
||||
"GET /orgs/{org}/packages",
|
||||
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
|
||||
"GET /orgs/{org}/personal-access-token-requests",
|
||||
"GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories",
|
||||
"GET /orgs/{org}/personal-access-tokens",
|
||||
"GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories",
|
||||
"GET /orgs/{org}/projects",
|
||||
"GET /orgs/{org}/public_members",
|
||||
"GET /orgs/{org}/repos",
|
||||
"GET /orgs/{org}/rulesets",
|
||||
"GET /orgs/{org}/secret-scanning/alerts",
|
||||
"GET /orgs/{org}/security-advisories",
|
||||
"GET /orgs/{org}/teams",
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions",
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",
|
||||
"GET /orgs/{org}/teams/{team_slug}/invitations",
|
||||
"GET /orgs/{org}/teams/{team_slug}/members",
|
||||
"GET /orgs/{org}/teams/{team_slug}/projects",
|
||||
"GET /orgs/{org}/teams/{team_slug}/repos",
|
||||
"GET /orgs/{org}/teams/{team_slug}/teams",
|
||||
"GET /projects/columns/{column_id}/cards",
|
||||
"GET /projects/{project_id}/collaborators",
|
||||
"GET /projects/{project_id}/columns",
|
||||
"GET /repos/{owner}/{repo}/actions/artifacts",
|
||||
"GET /repos/{owner}/{repo}/actions/caches",
|
||||
"GET /repos/{owner}/{repo}/actions/organization-secrets",
|
||||
"GET /repos/{owner}/{repo}/actions/organization-variables",
|
||||
"GET /repos/{owner}/{repo}/actions/runners",
|
||||
"GET /repos/{owner}/{repo}/actions/runs",
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs",
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs",
|
||||
"GET /repos/{owner}/{repo}/actions/secrets",
|
||||
"GET /repos/{owner}/{repo}/actions/variables",
|
||||
"GET /repos/{owner}/{repo}/actions/workflows",
|
||||
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs",
|
||||
"GET /repos/{owner}/{repo}/activity",
|
||||
"GET /repos/{owner}/{repo}/assignees",
|
||||
"GET /repos/{owner}/{repo}/branches",
|
||||
"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations",
|
||||
"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs",
|
||||
"GET /repos/{owner}/{repo}/code-scanning/alerts",
|
||||
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
|
||||
"GET /repos/{owner}/{repo}/code-scanning/analyses",
|
||||
"GET /repos/{owner}/{repo}/codespaces",
|
||||
"GET /repos/{owner}/{repo}/codespaces/devcontainers",
|
||||
"GET /repos/{owner}/{repo}/codespaces/secrets",
|
||||
"GET /repos/{owner}/{repo}/collaborators",
|
||||
"GET /repos/{owner}/{repo}/comments",
|
||||
"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",
|
||||
"GET /repos/{owner}/{repo}/commits",
|
||||
"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments",
|
||||
"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",
|
||||
"GET /repos/{owner}/{repo}/commits/{ref}/check-runs",
|
||||
"GET /repos/{owner}/{repo}/commits/{ref}/check-suites",
|
||||
"GET /repos/{owner}/{repo}/commits/{ref}/status",
|
||||
"GET /repos/{owner}/{repo}/commits/{ref}/statuses",
|
||||
"GET /repos/{owner}/{repo}/contributors",
|
||||
"GET /repos/{owner}/{repo}/dependabot/alerts",
|
||||
"GET /repos/{owner}/{repo}/dependabot/secrets",
|
||||
"GET /repos/{owner}/{repo}/deployments",
|
||||
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses",
|
||||
"GET /repos/{owner}/{repo}/environments",
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps",
|
||||
"GET /repos/{owner}/{repo}/events",
|
||||
"GET /repos/{owner}/{repo}/forks",
|
||||
"GET /repos/{owner}/{repo}/hooks",
|
||||
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries",
|
||||
"GET /repos/{owner}/{repo}/invitations",
|
||||
"GET /repos/{owner}/{repo}/issues",
|
||||
"GET /repos/{owner}/{repo}/issues/comments",
|
||||
"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",
|
||||
"GET /repos/{owner}/{repo}/issues/events",
|
||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/comments",
|
||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/events",
|
||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/labels",
|
||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",
|
||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",
|
||||
"GET /repos/{owner}/{repo}/keys",
|
||||
"GET /repos/{owner}/{repo}/labels",
|
||||
"GET /repos/{owner}/{repo}/milestones",
|
||||
"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels",
|
||||
"GET /repos/{owner}/{repo}/notifications",
|
||||
"GET /repos/{owner}/{repo}/pages/builds",
|
||||
"GET /repos/{owner}/{repo}/projects",
|
||||
"GET /repos/{owner}/{repo}/pulls",
|
||||
"GET /repos/{owner}/{repo}/pulls/comments",
|
||||
"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",
|
||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments",
|
||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/commits",
|
||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/files",
|
||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews",
|
||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments",
|
||||
"GET /repos/{owner}/{repo}/releases",
|
||||
"GET /repos/{owner}/{repo}/releases/{release_id}/assets",
|
||||
"GET /repos/{owner}/{repo}/releases/{release_id}/reactions",
|
||||
"GET /repos/{owner}/{repo}/rules/branches/{branch}",
|
||||
"GET /repos/{owner}/{repo}/rulesets",
|
||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts",
|
||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations",
|
||||
"GET /repos/{owner}/{repo}/security-advisories",
|
||||
"GET /repos/{owner}/{repo}/stargazers",
|
||||
"GET /repos/{owner}/{repo}/subscribers",
|
||||
"GET /repos/{owner}/{repo}/tags",
|
||||
"GET /repos/{owner}/{repo}/teams",
|
||||
"GET /repos/{owner}/{repo}/topics",
|
||||
"GET /repositories",
|
||||
"GET /repositories/{repository_id}/environments/{environment_name}/secrets",
|
||||
"GET /repositories/{repository_id}/environments/{environment_name}/variables",
|
||||
"GET /search/code",
|
||||
"GET /search/commits",
|
||||
"GET /search/issues",
|
||||
"GET /search/labels",
|
||||
"GET /search/repositories",
|
||||
"GET /search/topics",
|
||||
"GET /search/users",
|
||||
"GET /teams/{team_id}/discussions",
|
||||
"GET /teams/{team_id}/discussions/{discussion_number}/comments",
|
||||
"GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions",
|
||||
"GET /teams/{team_id}/discussions/{discussion_number}/reactions",
|
||||
"GET /teams/{team_id}/invitations",
|
||||
"GET /teams/{team_id}/members",
|
||||
"GET /teams/{team_id}/projects",
|
||||
"GET /teams/{team_id}/repos",
|
||||
"GET /teams/{team_id}/teams",
|
||||
"GET /user/blocks",
|
||||
"GET /user/codespaces",
|
||||
"GET /user/codespaces/secrets",
|
||||
"GET /user/emails",
|
||||
"GET /user/followers",
|
||||
"GET /user/following",
|
||||
"GET /user/gpg_keys",
|
||||
"GET /user/installations",
|
||||
"GET /user/installations/{installation_id}/repositories",
|
||||
"GET /user/issues",
|
||||
"GET /user/keys",
|
||||
"GET /user/marketplace_purchases",
|
||||
"GET /user/marketplace_purchases/stubbed",
|
||||
"GET /user/memberships/orgs",
|
||||
"GET /user/migrations",
|
||||
"GET /user/migrations/{migration_id}/repositories",
|
||||
"GET /user/orgs",
|
||||
"GET /user/packages",
|
||||
"GET /user/packages/{package_type}/{package_name}/versions",
|
||||
"GET /user/public_emails",
|
||||
"GET /user/repos",
|
||||
"GET /user/repository_invitations",
|
||||
"GET /user/social_accounts",
|
||||
"GET /user/ssh_signing_keys",
|
||||
"GET /user/starred",
|
||||
"GET /user/subscriptions",
|
||||
"GET /user/teams",
|
||||
"GET /users",
|
||||
"GET /users/{username}/events",
|
||||
"GET /users/{username}/events/orgs/{org}",
|
||||
"GET /users/{username}/events/public",
|
||||
"GET /users/{username}/followers",
|
||||
"GET /users/{username}/following",
|
||||
"GET /users/{username}/gists",
|
||||
"GET /users/{username}/gpg_keys",
|
||||
"GET /users/{username}/keys",
|
||||
"GET /users/{username}/orgs",
|
||||
"GET /users/{username}/packages",
|
||||
"GET /users/{username}/projects",
|
||||
"GET /users/{username}/received_events",
|
||||
"GET /users/{username}/received_events/public",
|
||||
"GET /users/{username}/repos",
|
||||
"GET /users/{username}/social_accounts",
|
||||
"GET /users/{username}/ssh_signing_keys",
|
||||
"GET /users/{username}/starred",
|
||||
"GET /users/{username}/subscriptions"
|
||||
];
|
||||
|
||||
// pkg/dist-src/paginating-endpoints.js
|
||||
function isPaginatingEndpoint(arg) {
|
||||
if (typeof arg === "string") {
|
||||
return paginatingEndpoints.includes(arg);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
function paginateRest(octokit) {
|
||||
return {
|
||||
paginate: Object.assign(paginate.bind(null, octokit), {
|
||||
iterator: iterator.bind(null, octokit)
|
||||
})
|
||||
};
|
||||
}
|
||||
paginateRest.VERSION = VERSION;
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (0);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4935:
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
var dist_src_exports = {};
|
||||
__export(dist_src_exports, {
|
||||
legacyRestEndpointMethods: () => legacyRestEndpointMethods,
|
||||
restEndpointMethods: () => restEndpointMethods
|
||||
});
|
||||
module.exports = __toCommonJS(dist_src_exports);
|
||||
|
||||
// pkg/dist-src/version.js
|
||||
var VERSION = "10.0.0";
|
||||
|
||||
// pkg/dist-src/generated/endpoints.js
|
||||
var Endpoints = {
|
||||
actions: {
|
||||
addCustomLabelsToSelfHostedRunnerForOrg: [
|
||||
"POST /orgs/{org}/actions/runners/{runner_id}/labels"
|
||||
],
|
||||
addCustomLabelsToSelfHostedRunnerForRepo: [
|
||||
"POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
||||
],
|
||||
addSelectedRepoToOrgSecret: [
|
||||
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
||||
],
|
||||
addSelectedRepoToOrgVariable: [
|
||||
"PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
||||
],
|
||||
approveWorkflowRun: [
|
||||
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"
|
||||
],
|
||||
cancelWorkflowRun: [
|
||||
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"
|
||||
],
|
||||
createEnvironmentVariable: [
|
||||
"POST /repositories/{repository_id}/environments/{environment_name}/variables"
|
||||
],
|
||||
createOrUpdateEnvironmentSecret: [
|
||||
"PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
|
||||
],
|
||||
createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"],
|
||||
createOrUpdateRepoSecret: [
|
||||
"PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
||||
],
|
||||
createOrgVariable: ["POST /orgs/{org}/actions/variables"],
|
||||
createRegistrationTokenForOrg: [
|
||||
"POST /orgs/{org}/actions/runners/registration-token"
|
||||
],
|
||||
createRegistrationTokenForRepo: [
|
||||
"POST /repos/{owner}/{repo}/actions/runners/registration-token"
|
||||
],
|
||||
createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"],
|
||||
createRemoveTokenForRepo: [
|
||||
"POST /repos/{owner}/{repo}/actions/runners/remove-token"
|
||||
],
|
||||
createRepoVariable: ["POST /repos/{owner}/{repo}/actions/variables"],
|
||||
createWorkflowDispatch: [
|
||||
"POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"
|
||||
],
|
||||
deleteActionsCacheById: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"
|
||||
],
|
||||
deleteActionsCacheByKey: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"
|
||||
],
|
||||
deleteArtifact: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
||||
],
|
||||
deleteEnvironmentSecret: [
|
||||
"DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
|
||||
],
|
||||
deleteEnvironmentVariable: [
|
||||
"DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
|
||||
],
|
||||
deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
|
||||
deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
|
||||
deleteRepoSecret: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
||||
],
|
||||
deleteRepoVariable: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/variables/{name}"
|
||||
],
|
||||
deleteSelfHostedRunnerFromOrg: [
|
||||
"DELETE /orgs/{org}/actions/runners/{runner_id}"
|
||||
],
|
||||
deleteSelfHostedRunnerFromRepo: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
||||
],
|
||||
deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
||||
deleteWorkflowRunLogs: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
||||
],
|
||||
disableSelectedRepositoryGithubActionsOrganization: [
|
||||
"DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
||||
],
|
||||
disableWorkflow: [
|
||||
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"
|
||||
],
|
||||
downloadArtifact: [
|
||||
"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"
|
||||
],
|
||||
downloadJobLogsForWorkflowRun: [
|
||||
"GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"
|
||||
],
|
||||
downloadWorkflowRunAttemptLogs: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"
|
||||
],
|
||||
downloadWorkflowRunLogs: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
||||
],
|
||||
enableSelectedRepositoryGithubActionsOrganization: [
|
||||
"PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
||||
],
|
||||
enableWorkflow: [
|
||||
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"
|
||||
],
|
||||
generateRunnerJitconfigForOrg: [
|
||||
"POST /orgs/{org}/actions/runners/generate-jitconfig"
|
||||
],
|
||||
generateRunnerJitconfigForRepo: [
|
||||
"POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"
|
||||
],
|
||||
getActionsCacheList: ["GET /repos/{owner}/{repo}/actions/caches"],
|
||||
getActionsCacheUsage: ["GET /repos/{owner}/{repo}/actions/cache/usage"],
|
||||
getActionsCacheUsageByRepoForOrg: [
|
||||
"GET /orgs/{org}/actions/cache/usage-by-repository"
|
||||
],
|
||||
getActionsCacheUsageForOrg: ["GET /orgs/{org}/actions/cache/usage"],
|
||||
getAllowedActionsOrganization: [
|
||||
"GET /orgs/{org}/actions/permissions/selected-actions"
|
||||
],
|
||||
getAllowedActionsRepository: [
|
||||
"GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
||||
],
|
||||
getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
|
||||
getEnvironmentPublicKey: [
|
||||
"GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"
|
||||
],
|
||||
getEnvironmentSecret: [
|
||||
"GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
|
||||
],
|
||||
getEnvironmentVariable: [
|
||||
"GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
|
||||
],
|
||||
getGithubActionsDefaultWorkflowPermissionsOrganization: [
|
||||
"GET /orgs/{org}/actions/permissions/workflow"
|
||||
],
|
||||
getGithubActionsDefaultWorkflowPermissionsRepository: [
|
||||
"GET /repos/{owner}/{repo}/actions/permissions/workflow"
|
||||
],
|
||||
getGithubActionsPermissionsOrganization: [
|
||||
"GET /orgs/{org}/actions/permissions"
|
||||
],
|
||||
getGithubActionsPermissionsRepository: [
|
||||
"GET /repos/{owner}/{repo}/actions/permissions"
|
||||
],
|
||||
getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
|
||||
getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
|
||||
getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
|
||||
getOrgVariable: ["GET /orgs/{org}/actions/variables/{name}"],
|
||||
getPendingDeploymentsForRun: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
||||
],
|
||||
getRepoPermissions: [
|
||||
"GET /repos/{owner}/{repo}/actions/permissions",
|
||||
{},
|
||||
{ renamed: ["actions", "getGithubActionsPermissionsRepository"] }
|
||||
],
|
||||
getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"],
|
||||
getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
|
||||
getRepoVariable: ["GET /repos/{owner}/{repo}/actions/variables/{name}"],
|
||||
getReviewsForRun: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"
|
||||
],
|
||||
getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"],
|
||||
getSelfHostedRunnerForRepo: [
|
||||
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
||||
],
|
||||
getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],
|
||||
getWorkflowAccessToRepository: [
|
||||
"GET /repos/{owner}/{repo}/actions/permissions/access"
|
||||
],
|
||||
getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
||||
getWorkflowRunAttempt: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"
|
||||
],
|
||||
getWorkflowRunUsage: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"
|
||||
],
|
||||
getWorkflowUsage: [
|
||||
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
||||
],
|
||||
listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
|
||||
listEnvironmentSecrets: [
|
||||
"GET /repositories/{repository_id}/environments/{environment_name}/secrets"
|
||||
],
|
||||
listEnvironmentVariables: [
|
||||
"GET /repositories/{repository_id}/environments/{environment_name}/variables"
|
||||
],
|
||||
listJobsForWorkflowRun: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
|
||||
],
|
||||
listJobsForWorkflowRunAttempt: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"
|
||||
],
|
||||
listLabelsForSelfHostedRunnerForOrg: [
|
||||
"GET /orgs/{org}/actions/runners/{runner_id}/labels"
|
||||
],
|
||||
listLabelsForSelfHostedRunnerForRepo: [
|
||||
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
||||
],
|
||||
listOrgSecrets: ["GET /orgs/{org}/actions/secrets"],
|
||||
listOrgVariables: ["GET /orgs/{org}/actions/variables"],
|
||||
listRepoOrganizationSecrets: [
|
||||
"GET /repos/{owner}/{repo}/actions/organization-secrets"
|
||||
],
|
||||
listRepoOrganizationVariables: [
|
||||
"GET /repos/{owner}/{repo}/actions/organization-variables"
|
||||
],
|
||||
listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"],
|
||||
listRepoVariables: ["GET /repos/{owner}/{repo}/actions/variables"],
|
||||
listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"],
|
||||
listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"],
|
||||
listRunnerApplicationsForRepo: [
|
||||
"GET /repos/{owner}/{repo}/actions/runners/downloads"
|
||||
],
|
||||
listSelectedReposForOrgSecret: [
|
||||
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
||||
],
|
||||
listSelectedReposForOrgVariable: [
|
||||
"GET /orgs/{org}/actions/variables/{name}/repositories"
|
||||
],
|
||||
listSelectedRepositoriesEnabledGithubActionsOrganization: [
|
||||
"GET /orgs/{org}/actions/permissions/repositories"
|
||||
],
|
||||
listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"],
|
||||
listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"],
|
||||
listWorkflowRunArtifacts: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"
|
||||
],
|
||||
listWorkflowRuns: [
|
||||
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"
|
||||
],
|
||||
listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"],
|
||||
reRunJobForWorkflowRun: [
|
||||
"POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"
|
||||
],
|
||||
reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],
|
||||
reRunWorkflowFailedJobs: [
|
||||
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"
|
||||
],
|
||||
removeAllCustomLabelsFromSelfHostedRunnerForOrg: [
|
||||
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels"
|
||||
],
|
||||
removeAllCustomLabelsFromSelfHostedRunnerForRepo: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
||||
],
|
||||
removeCustomLabelFromSelfHostedRunnerForOrg: [
|
||||
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"
|
||||
],
|
||||
removeCustomLabelFromSelfHostedRunnerForRepo: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"
|
||||
],
|
||||
removeSelectedRepoFromOrgSecret: [
|
||||
"DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
||||
],
|
||||
removeSelectedRepoFromOrgVariable: [
|
||||
"DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
||||
],
|
||||
reviewCustomGatesForRun: [
|
||||
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"
|
||||
],
|
||||
reviewPendingDeploymentsForRun: [
|
||||
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
||||
],
|
||||
setAllowedActionsOrganization: [
|
||||
"PUT /orgs/{org}/actions/permissions/selected-actions"
|
||||
],
|
||||
setAllowedActionsRepository: [
|
||||
"PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
||||
],
|
||||
setCustomLabelsForSelfHostedRunnerForOrg: [
|
||||
"PUT /orgs/{org}/actions/runners/{runner_id}/labels"
|
||||
],
|
||||
setCustomLabelsForSelfHostedRunnerForRepo: [
|
||||
"PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
||||
],
|
||||
setGithubActionsDefaultWorkflowPermissionsOrganization: [
|
||||
"PUT /orgs/{org}/actions/permissions/workflow"
|
||||
],
|
||||
setGithubActionsDefaultWorkflowPermissionsRepository: [
|
||||
"PUT /repos/{owner}/{repo}/actions/permissions/workflow"
|
||||
],
|
||||
setGithubActionsPermissionsOrganization: [
|
||||
"PUT /orgs/{org}/actions/permissions"
|
||||
],
|
||||
setGithubActionsPermissionsRepository: [
|
||||
"PUT /repos/{owner}/{repo}/actions/permissions"
|
||||
],
|
||||
setSelectedReposForOrgSecret: [
|
||||
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
||||
],
|
||||
setSelectedReposForOrgVariable: [
|
||||
"PUT /orgs/{org}/actions/variables/{name}/repositories"
|
||||
],
|
||||
setSelectedRepositoriesEnabledGithubActionsOrganization: [
|
||||
"PUT /orgs/{org}/actions/permissions/repositories"
|
||||
],
|
||||
setWorkflowAccessToRepository: [
|
||||
"PUT /repos/{owner}/{repo}/actions/permissions/access"
|
||||
],
|
||||
updateEnvironmentVariable: [
|
||||
"PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
|
||||
],
|
||||
updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
|
||||
updateRepoVariable: [
|
||||
"PATCH /repos/{owner}/{repo}/actions/variables/{name}"
|
||||
]
|
||||
},
|
||||
activity: {
|
||||
checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"],
|
||||
deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"],
|
||||
deleteThreadSubscription: [
|
||||
"DELETE /notifications/threads/{thread_id}/subscription"
|
||||
],
|
||||
getFeeds: ["GET /feeds"],
|
||||
getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"],
|
||||
getThread: ["GET /notifications/threads/{thread_id}"],
|
||||
getThreadSubscriptionForAuthenticatedUser: [
|
||||
"GET /notifications/threads/{thread_id}/subscription"
|
||||
],
|
||||
listEventsForAuthenticatedUser: ["GET /users/{username}/events"],
|
||||
listNotificationsForAuthenticatedUser: ["GET /notifications"],
|
||||
listOrgEventsForAuthenticatedUser: [
|
||||
"GET /users/{username}/events/orgs/{org}"
|
||||
],
|
||||
listPublicEvents: ["GET /events"],
|
||||
listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"],
|
||||
listPublicEventsForUser: ["GET /users/{username}/events/public"],
|
||||
listPublicOrgEvents: ["GET /orgs/{org}/events"],
|
||||
listReceivedEventsForUser: ["GET /users/{username}/received_events"],
|
||||
listReceivedPublicEventsForUser: [
|
||||
"GET /users/{username}/received_events/public"
|
||||
],
|
||||
listRepoEvents: ["GET /repos/{owner}/{repo}/events"],
|
||||
listRepoNotificationsForAuthenticatedUser: [
|
||||
"GET /repos/{owner}/{repo}/notifications"
|
||||
],
|
||||
listReposStarredByAuthenticatedUser: ["GET /user/starred"],
|
||||
listReposStarredByUser: ["GET /users/{username}/starred"],
|
||||
listReposWatchedByUser: ["GET /users/{username}/subscriptions"],
|
||||
listStargazersForRepo: ["GET /repos/{owner}/{repo}/stargazers"],
|
||||
listWatchedReposForAuthenticatedUser: ["GET /user/subscriptions"],
|
||||
listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"],
|
||||
markNotificationsAsRead: ["PUT /notifications"],
|
||||
markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"],
|
||||
markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"],
|
||||
setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"],
|
||||
setThreadSubscription: [
|
||||
"PUT /notifications/threads/{thread_id}/subscription"
|
||||
],
|
||||
starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"],
|
||||
unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"]
|
||||
},
|
||||
apps: {
|
||||
addRepoToInstallation: [
|
||||
"PUT /user/installations/{installation_id}/repositories/{repository_id}",
|
||||
{},
|
||||
{ renamed: ["apps", "addRepoToInstallationForAuthenticatedUser"] }
|
||||
],
|
||||
addRepoToInstallationForAuthenticatedUser: [
|
||||
"PUT /user/installations/{installation_id}/repositories/{repository_id}"
|
||||
],
|
||||
checkToken: ["POST /applications/{client_id}/token"],
|
||||
createFromManifest: ["POST /app-manifests/{code}/conversions"],
|
||||
createInstallationAccessToken: [
|
||||
"POST /app/installations/{installation_id}/access_tokens"
|
||||
],
|
||||
deleteAuthorization: ["DELETE /applications/{client_id}/grant"],
|
||||
deleteInstallation: ["DELETE /app/installations/{installation_id}"],
|
||||
deleteToken: ["DELETE /applications/{client_id}/token"],
|
||||
getAuthenticated: ["GET /app"],
|
||||
getBySlug: ["GET /apps/{app_slug}"],
|
||||
getInstallation: ["GET /app/installations/{installation_id}"],
|
||||
getOrgInstallation: ["GET /orgs/{org}/installation"],
|
||||
getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"],
|
||||
getSubscriptionPlanForAccount: [
|
||||
"GET /marketplace_listing/accounts/{account_id}"
|
||||
],
|
||||
getSubscriptionPlanForAccountStubbed: [
|
||||
"GET /marketplace_listing/stubbed/accounts/{account_id}"
|
||||
],
|
||||
getUserInstallation: ["GET /users/{username}/installation"],
|
||||
getWebhookConfigForApp: ["GET /app/hook/config"],
|
||||
getWebhookDelivery: ["GET /app/hook/deliveries/{delivery_id}"],
|
||||
listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
|
||||
listAccountsForPlanStubbed: [
|
||||
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"
|
||||
],
|
||||
listInstallationReposForAuthenticatedUser: [
|
||||
"GET /user/installations/{installation_id}/repositories"
|
||||
],
|
||||
listInstallationRequestsForAuthenticatedApp: [
|
||||
"GET /app/installation-requests"
|
||||
],
|
||||
listInstallations: ["GET /app/installations"],
|
||||
listInstallationsForAuthenticatedUser: ["GET /user/installations"],
|
||||
listPlans: ["GET /marketplace_listing/plans"],
|
||||
listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"],
|
||||
listReposAccessibleToInstallation: ["GET /installation/repositories"],
|
||||
listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
|
||||
listSubscriptionsForAuthenticatedUserStubbed: [
|
||||
"GET /user/marketplace_purchases/stubbed"
|
||||
],
|
||||
listWebhookDeliveries: ["GET /app/hook/deliveries"],
|
||||
redeliverWebhookDelivery: [
|
||||
"POST /app/hook/deliveries/{delivery_id}/attempts"
|
||||
],
|
||||
removeRepoFromInstallation: [
|
||||
"DELETE /user/installations/{installation_id}/repositories/{repository_id}",
|
||||
{},
|
||||
{ renamed: ["apps", "removeRepoFromInstallationForAuthenticatedUser"] }
|
||||
],
|
||||
removeRepoFromInstallationForAuthenticatedUser: [
|
||||
"DELETE /user/installations/{installation_id}/repositories/{repository_id}"
|
||||
],
|
||||
resetToken: ["PATCH /applications/{client_id}/token"],
|
||||
revokeInstallationAccessToken: ["DELETE /installation/token"],
|
||||
scopeToken: ["POST /applications/{client_id}/token/scoped"],
|
||||
suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"],
|
||||
unsuspendInstallation: [
|
||||
"DELETE /app/installations/{installation_id}/suspended"
|
||||
],
|
||||
updateWebhookConfigForApp: ["PATCH /app/hook/config"]
|
||||
},
|
||||
billing: {
|
||||
getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"],
|
||||
getGithubActionsBillingUser: [
|
||||
"GET /users/{username}/settings/billing/actions"
|
||||
],
|
||||
getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
|
||||
getGithubPackagesBillingUser: [
|
||||
"GET /users/{username}/settings/billing/packages"
|
||||
],
|
||||
getSharedStorageBillingOrg: [
|
||||
"GET /orgs/{org}/settings/billing/shared-storage"
|
||||
],
|
||||
getSharedStorageBillingUser: [
|
||||
"GET /users/{username}/settings/billing/shared-storage"
|
||||
]
|
||||
},
|
||||
checks: {
|
||||
create: ["POST /repos/{owner}/{repo}/check-runs"],
|
||||
createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
|
||||
get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],
|
||||
getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],
|
||||
listAnnotations: [
|
||||
"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"
|
||||
],
|
||||
listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],
|
||||
listForSuite: [
|
||||
"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"
|
||||
],
|
||||
listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],
|
||||
rerequestRun: [
|
||||
"POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"
|
||||
],
|
||||
rerequestSuite: [
|
||||
"POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"
|
||||
],
|
||||
setSuitesPreferences: [
|
||||
"PATCH /repos/{owner}/{repo}/check-suites/preferences"
|
||||
],
|
||||
update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]
|
||||
},
|
||||
codeScanning: {
|
||||
deleteAnalysis: [
|
||||
"DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"
|
||||
],
|
||||
getAlert: [
|
||||
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",
|
||||
{},
|
||||
{ renamedParameters: { alert_id: "alert_number" } }
|
||||
],
|
||||
getAnalysis: [
|
||||
"GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"
|
||||
],
|
||||
getCodeqlDatabase: [
|
||||
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"
|
||||
],
|
||||
getDefaultSetup: ["GET /repos/{owner}/{repo}/code-scanning/default-setup"],
|
||||
getSarif: ["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],
|
||||
listAlertInstances: [
|
||||
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"
|
||||
],
|
||||
listAlertsForOrg: ["GET /orgs/{org}/code-scanning/alerts"],
|
||||
listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"],
|
||||
listAlertsInstances: [
|
||||
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
|
||||
{},
|
||||
{ renamed: ["codeScanning", "listAlertInstances"] }
|
||||
],
|
||||
listCodeqlDatabases: [
|
||||
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases"
|
||||
],
|
||||
listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"],
|
||||
updateAlert: [
|
||||
"PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"
|
||||
],
|
||||
updateDefaultSetup: [
|
||||
"PATCH /repos/{owner}/{repo}/code-scanning/default-setup"
|
||||
],
|
||||
uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"]
|
||||
},
|
||||
codesOfConduct: {
|
||||
getAllCodesOfConduct: ["GET /codes_of_conduct"],
|
||||
getConductCode: ["GET /codes_of_conduct/{key}"]
|
||||
},
|
||||
codespaces: {
|
||||
addRepositoryForSecretForAuthenticatedUser: [
|
||||
"PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
||||
],
|
||||
addSelectedRepoToOrgSecret: [
|
||||
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
||||
],
|
||||
codespaceMachinesForAuthenticatedUser: [
|
||||
"GET /user/codespaces/{codespace_name}/machines"
|
||||
],
|
||||
createForAuthenticatedUser: ["POST /user/codespaces"],
|
||||
createOrUpdateOrgSecret: [
|
||||
"PUT /orgs/{org}/codespaces/secrets/{secret_name}"
|
||||
],
|
||||
createOrUpdateRepoSecret: [
|
||||
"PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
||||
],
|
||||
createOrUpdateSecretForAuthenticatedUser: [
|
||||
"PUT /user/codespaces/secrets/{secret_name}"
|
||||
],
|
||||
createWithPrForAuthenticatedUser: [
|
||||
"POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"
|
||||
],
|
||||
createWithRepoForAuthenticatedUser: [
|
||||
"POST /repos/{owner}/{repo}/codespaces"
|
||||
],
|
||||
deleteForAuthenticatedUser: ["DELETE /user/codespaces/{codespace_name}"],
|
||||
deleteFromOrganization: [
|
||||
"DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"
|
||||
],
|
||||
deleteOrgSecret: ["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],
|
||||
deleteRepoSecret: [
|
||||
"DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
||||
],
|
||||
deleteSecretForAuthenticatedUser: [
|
||||
"DELETE /user/codespaces/secrets/{secret_name}"
|
||||
],
|
||||
exportForAuthenticatedUser: [
|
||||
"POST /user/codespaces/{codespace_name}/exports"
|
||||
],
|
||||
getCodespacesForUserInOrg: [
|
||||
"GET /orgs/{org}/members/{username}/codespaces"
|
||||
],
|
||||
getExportDetailsForAuthenticatedUser: [
|
||||
"GET /user/codespaces/{codespace_name}/exports/{export_id}"
|
||||
],
|
||||
getForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}"],
|
||||
getOrgPublicKey: ["GET /orgs/{org}/codespaces/secrets/public-key"],
|
||||
getOrgSecret: ["GET /orgs/{org}/codespaces/secrets/{secret_name}"],
|
||||
getPublicKeyForAuthenticatedUser: [
|
||||
"GET /user/codespaces/secrets/public-key"
|
||||
],
|
||||
getRepoPublicKey: [
|
||||
"GET /repos/{owner}/{repo}/codespaces/secrets/public-key"
|
||||
],
|
||||
getRepoSecret: [
|
||||
"GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
||||
],
|
||||
getSecretForAuthenticatedUser: [
|
||||
"GET /user/codespaces/secrets/{secret_name}"
|
||||
],
|
||||
listDevcontainersInRepositoryForAuthenticatedUser: [
|
||||
"GET /repos/{owner}/{repo}/codespaces/devcontainers"
|
||||
],
|
||||
listForAuthenticatedUser: ["GET /user/codespaces"],
|
||||
listInOrganization: [
|
||||
"GET /orgs/{org}/codespaces",
|
||||
{},
|
||||
{ renamedParameters: { org_id: "org" } }
|
||||
],
|
||||
listInRepositoryForAuthenticatedUser: [
|
||||
"GET /repos/{owner}/{repo}/codespaces"
|
||||
],
|
||||
listOrgSecrets: ["GET /orgs/{org}/codespaces/secrets"],
|
||||
listRepoSecrets: ["GET /repos/{owner}/{repo}/codespaces/secrets"],
|
||||
listRepositoriesForSecretForAuthenticatedUser: [
|
||||
"GET /user/codespaces/secrets/{secret_name}/repositories"
|
||||
],
|
||||
listSecretsForAuthenticatedUser: ["GET /user/codespaces/secrets"],
|
||||
listSelectedReposForOrgSecret: [
|
||||
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
||||
],
|
||||
preFlightWithRepoForAuthenticatedUser: [
|
||||
"GET /repos/{owner}/{repo}/codespaces/new"
|
||||
],
|
||||
publishForAuthenticatedUser: [
|
||||
"POST /user/codespaces/{codespace_name}/publish"
|
||||
],
|
||||
removeRepositoryForSecretForAuthenticatedUser: [
|
||||
"DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
||||
],
|
||||
removeSelectedRepoFromOrgSecret: [
|
||||
"DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
||||
],
|
||||
repoMachinesForAuthenticatedUser: [
|
||||
"GET /repos/{owner}/{repo}/codespaces/machines"
|
||||
],
|
||||
setRepositoriesForSecretForAuthenticatedUser: [
|
||||
"PUT /user/codespaces/secrets/{secret_name}/repositories"
|
||||
],
|
||||
setSelectedReposForOrgSecret: [
|
||||
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
||||
],
|
||||
startForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/start"],
|
||||
stopForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/stop"],
|
||||
stopInOrganization: [
|
||||
"POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"
|
||||
],
|
||||
updateForAuthenticatedUser: ["PATCH /user/codespaces/{codespace_name}"]
|
||||
},
|
||||
copilot: {
|
||||
addCopilotForBusinessSeatsForTeams: [
|
||||
"POST /orgs/{org}/copilot/billing/selected_teams"
|
||||
],
|
||||
addCopilotForBusinessSeatsForUsers: [
|
||||
"POST /orgs/{org}/copilot/billing/selected_users"
|
||||
],
|
||||
cancelCopilotSeatAssignmentForTeams: [
|
||||
"DELETE /orgs/{org}/copilot/billing/selected_teams"
|
||||
],
|
||||
cancelCopilotSeatAssignmentForUsers: [
|
||||
"DELETE /orgs/{org}/copilot/billing/selected_users"
|
||||
],
|
||||
getCopilotOrganizationDetails: ["GET /orgs/{org}/copilot/billing"],
|
||||
getCopilotSeatAssignmentDetailsForUser: [
|
||||
"GET /orgs/{org}/members/{username}/copilot"
|
||||
],
|
||||
listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"]
|
||||
},
|
||||
dependabot: {
|
||||
addSelectedRepoToOrgSecret: [
|
||||
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
||||
],
|
||||
createOrUpdateOrgSecret: [
|
||||
"PUT /orgs/{org}/dependabot/secrets/{secret_name}"
|
||||
],
|
||||
createOrUpdateRepoSecret: [
|
||||
"PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
||||
],
|
||||
deleteOrgSecret: ["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],
|
||||
deleteRepoSecret: [
|
||||
"DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
||||
],
|
||||
getAlert: ["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],
|
||||
getOrgPublicKey: ["GET /orgs/{org}/dependabot/secrets/public-key"],
|
||||
getOrgSecret: ["GET /orgs/{org}/dependabot/secrets/{secret_name}"],
|
||||
getRepoPublicKey: [
|
||||
"GET /repos/{owner}/{repo}/dependabot/secrets/public-key"
|
||||
],
|
||||
getRepoSecret: [
|
||||
"GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
||||
],
|
||||
listAlertsForEnterprise: [
|
||||
"GET /enterprises/{enterprise}/dependabot/alerts"
|
||||
],
|
||||
listAlertsForOrg: ["GET /orgs/{org}/dependabot/alerts"],
|
||||
listAlertsForRepo: ["GET /repos/{owner}/{repo}/dependabot/alerts"],
|
||||
listOrgSecrets: ["GET /orgs/{org}/dependabot/secrets"],
|
||||
listRepoSecrets: ["GET /repos/{owner}/{repo}/dependabot/secrets"],
|
||||
listSelectedReposForOrgSecret: [
|
||||
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
||||
],
|
||||
removeSelectedRepoFromOrgSecret: [
|
||||
"DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
||||
],
|
||||
setSelectedReposForOrgSecret: [
|
||||
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
||||
],
|
||||
updateAlert: [
|
||||
"PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"
|
||||
]
|
||||
},
|
||||
dependencyGraph: {
|
||||
createRepositorySnapshot: [
|
||||
"POST /repos/{owner}/{repo}/dependency-graph/snapshots"
|
||||
],
|
||||
diffRange: [
|
||||
"GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"
|
||||
],
|
||||
exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
|
||||
},
|
||||
emojis: { get: ["GET /emojis"] },
|
||||
gists: {
|
||||
checkIsStarred: ["GET /gists/{gist_id}/star"],
|
||||
create: ["POST /gists"],
|
||||
createComment: ["POST /gists/{gist_id}/comments"],
|
||||
delete: ["DELETE /gists/{gist_id}"],
|
||||
deleteComment: ["DELETE /gists/{gist_id}/comments/{comment_id}"],
|
||||
fork: ["POST /gists/{gist_id}/forks"],
|
||||
get: ["GET /gists/{gist_id}"],
|
||||
getComment: ["GET /gists/{gist_id}/comments/{comment_id}"],
|
||||
getRevision: ["GET /gists/{gist_id}/{sha}"],
|
||||
list: ["GET /gists"],
|
||||
listComments: ["GET /gists/{gist_id}/comments"],
|
||||
listCommits: ["GET /gists/{gist_id}/commits"],
|
||||
listForUser: ["GET /users/{username}/gists"],
|
||||
listForks: ["GET /gists/{gist_id}/forks"],
|
||||
listPublic: ["GET /gists/public"],
|
||||
listStarred: ["GET /gists/starred"],
|
||||
star: ["PUT /gists/{gist_id}/star"],
|
||||
unstar: ["DELETE /gists/{gist_id}/star"],
|
||||
update: ["PATCH /gists/{gist_id}"],
|
||||
updateComment: ["PATCH /gists/{gist_id}/comments/{comment_id}"]
|
||||
},
|
||||
git: {
|
||||
createBlob: ["POST /repos/{owner}/{repo}/git/blobs"],
|
||||
createCommit: ["POST /repos/{owner}/{repo}/git/commits"],
|
||||
createRef: ["POST /repos/{owner}/{repo}/git/refs"],
|
||||
createTag: ["POST /repos/{owner}/{repo}/git/tags"],
|
||||
createTree: ["POST /repos/{owner}/{repo}/git/trees"],
|
||||
deleteRef: ["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],
|
||||
getBlob: ["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],
|
||||
getCommit: ["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],
|
||||
getRef: ["GET /repos/{owner}/{repo}/git/ref/{ref}"],
|
||||
getTag: ["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],
|
||||
getTree: ["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],
|
||||
listMatchingRefs: ["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],
|
||||
updateRef: ["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]
|
||||
},
|
||||
gitignore: {
|
||||
getAllTemplates: ["GET /gitignore/templates"],
|
||||
getTemplate: ["GET /gitignore/templates/{name}"]
|
||||
},
|
||||
interactions: {
|
||||
getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
|
||||
getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
|
||||
getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"],
|
||||
getRestrictionsForYourPublicRepos: [
|
||||
"GET /user/interaction-limits",
|
||||
{},
|
||||
{ renamed: ["interactions", "getRestrictionsForAuthenticatedUser"] }
|
||||
],
|
||||
removeRestrictionsForAuthenticatedUser: ["DELETE /user/interaction-limits"],
|
||||
removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"],
|
||||
removeRestrictionsForRepo: [
|
||||
"DELETE /repos/{owner}/{repo}/interaction-limits"
|
||||
],
|
||||
removeRestrictionsForYourPublicRepos: [
|
||||
"DELETE /user/interaction-limits",
|
||||
{},
|
||||
{ renamed: ["interactions", "removeRestrictionsForAuthenticatedUser"] }
|
||||
],
|
||||
setRestrictionsForAuthenticatedUser: ["PUT /user/interaction-limits"],
|
||||
setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"],
|
||||
setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"],
|
||||
setRestrictionsForYourPublicRepos: [
|
||||
"PUT /user/interaction-limits",
|
||||
{},
|
||||
{ renamed: ["interactions", "setRestrictionsForAuthenticatedUser"] }
|
||||
]
|
||||
},
|
||||
issues: {
|
||||
addAssignees: [
|
||||
"POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
||||
],
|
||||
addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
||||
checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"],
|
||||
checkUserCanBeAssignedToIssue: [
|
||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"
|
||||
],
|
||||
create: ["POST /repos/{owner}/{repo}/issues"],
|
||||
createComment: [
|
||||
"POST /repos/{owner}/{repo}/issues/{issue_number}/comments"
|
||||
],
|
||||
createLabel: ["POST /repos/{owner}/{repo}/labels"],
|
||||
createMilestone: ["POST /repos/{owner}/{repo}/milestones"],
|
||||
deleteComment: [
|
||||
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"
|
||||
],
|
||||
deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"],
|
||||
deleteMilestone: [
|
||||
"DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"
|
||||
],
|
||||
get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"],
|
||||
getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
||||
getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"],
|
||||
getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"],
|
||||
getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],
|
||||
list: ["GET /issues"],
|
||||
listAssignees: ["GET /repos/{owner}/{repo}/assignees"],
|
||||
listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],
|
||||
listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"],
|
||||
listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],
|
||||
listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"],
|
||||
listEventsForTimeline: [
|
||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"
|
||||
],
|
||||
listForAuthenticatedUser: ["GET /user/issues"],
|
||||
listForOrg: ["GET /orgs/{org}/issues"],
|
||||
listForRepo: ["GET /repos/{owner}/{repo}/issues"],
|
||||
listLabelsForMilestone: [
|
||||
"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"
|
||||
],
|
||||
listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"],
|
||||
listLabelsOnIssue: [
|
||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
||||
],
|
||||
listMilestones: ["GET /repos/{owner}/{repo}/milestones"],
|
||||
lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
||||
removeAllLabels: [
|
||||
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
||||
],
|
||||
removeAssignees: [
|
||||
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
||||
],
|
||||
removeLabel: [
|
||||
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
|
||||
],
|
||||
setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
||||
unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
||||
update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],
|
||||
updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
||||
updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"],
|
||||
updateMilestone: [
|
||||
"PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"
|
||||
]
|
||||
},
|
||||
licenses: {
|
||||
get: ["GET /licenses/{license}"],
|
||||
getAllCommonlyUsed: ["GET /licenses"],
|
||||
getForRepo: ["GET /repos/{owner}/{repo}/license"]
|
||||
},
|
||||
markdown: {
|
||||
render: ["POST /markdown"],
|
||||
renderRaw: [
|
||||
"POST /markdown/raw",
|
||||
{ headers: { "content-type": "text/plain; charset=utf-8" } }
|
||||
]
|
||||
},
|
||||
meta: {
|
||||
get: ["GET /meta"],
|
||||
getAllVersions: ["GET /versions"],
|
||||
getOctocat: ["GET /octocat"],
|
||||
getZen: ["GET /zen"],
|
||||
root: ["GET /"]
|
||||
},
|
||||
migrations: {
|
||||
cancelImport: ["DELETE /repos/{owner}/{repo}/import"],
|
||||
deleteArchiveForAuthenticatedUser: [
|
||||
"DELETE /user/migrations/{migration_id}/archive"
|
||||
],
|
||||
deleteArchiveForOrg: [
|
||||
"DELETE /orgs/{org}/migrations/{migration_id}/archive"
|
||||
],
|
||||
downloadArchiveForOrg: [
|
||||
"GET /orgs/{org}/migrations/{migration_id}/archive"
|
||||
],
|
||||
getArchiveForAuthenticatedUser: [
|
||||
"GET /user/migrations/{migration_id}/archive"
|
||||
],
|
||||
getCommitAuthors: ["GET /repos/{owner}/{repo}/import/authors"],
|
||||
getImportStatus: ["GET /repos/{owner}/{repo}/import"],
|
||||
getLargeFiles: ["GET /repos/{owner}/{repo}/import/large_files"],
|
||||
getStatusForAuthenticatedUser: ["GET /user/migrations/{migration_id}"],
|
||||
getStatusForOrg: ["GET /orgs/{org}/migrations/{migration_id}"],
|
||||
listForAuthenticatedUser: ["GET /user/migrations"],
|
||||
listForOrg: ["GET /orgs/{org}/migrations"],
|
||||
listReposForAuthenticatedUser: [
|
||||
"GET /user/migrations/{migration_id}/repositories"
|
||||
],
|
||||
listReposForOrg: ["GET /orgs/{org}/migrations/{migration_id}/repositories"],
|
||||
listReposForUser: [
|
||||
"GET /user/migrations/{migration_id}/repositories",
|
||||
{},
|
||||
{ renamed: ["migrations", "listReposForAuthenticatedUser"] }
|
||||
],
|
||||
mapCommitAuthor: ["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],
|
||||
setLfsPreference: ["PATCH /repos/{owner}/{repo}/import/lfs"],
|
||||
startForAuthenticatedUser: ["POST /user/migrations"],
|
||||
startForOrg: ["POST /orgs/{org}/migrations"],
|
||||
startImport: ["PUT /repos/{owner}/{repo}/import"],
|
||||
unlockRepoForAuthenticatedUser: [
|
||||
"DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"
|
||||
],
|
||||
unlockRepoForOrg: [
|
||||
"DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"
|
||||
],
|
||||
updateImport: ["PATCH /repos/{owner}/{repo}/import"]
|
||||
},
|
||||
orgs: {
|
||||
addSecurityManagerTeam: [
|
||||
"PUT /orgs/{org}/security-managers/teams/{team_slug}"
|
||||
],
|
||||
blockUser: ["PUT /orgs/{org}/blocks/{username}"],
|
||||
cancelInvitation: ["DELETE /orgs/{org}/invitations/{invitation_id}"],
|
||||
checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"],
|
||||
checkMembershipForUser: ["GET /orgs/{org}/members/{username}"],
|
||||
checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"],
|
||||
convertMemberToOutsideCollaborator: [
|
||||
"PUT /orgs/{org}/outside_collaborators/{username}"
|
||||
],
|
||||
createInvitation: ["POST /orgs/{org}/invitations"],
|
||||
createWebhook: ["POST /orgs/{org}/hooks"],
|
||||
delete: ["DELETE /orgs/{org}"],
|
||||
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
|
||||
enableOrDisableSecurityProductOnAllOrgRepos: [
|
||||
"POST /orgs/{org}/{security_product}/{enablement}"
|
||||
],
|
||||
get: ["GET /orgs/{org}"],
|
||||
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
||||
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
||||
getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
|
||||
getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
|
||||
getWebhookDelivery: [
|
||||
"GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"
|
||||
],
|
||||
list: ["GET /organizations"],
|
||||
listAppInstallations: ["GET /orgs/{org}/installations"],
|
||||
listBlockedUsers: ["GET /orgs/{org}/blocks"],
|
||||
listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
|
||||
listForAuthenticatedUser: ["GET /user/orgs"],
|
||||
listForUser: ["GET /users/{username}/orgs"],
|
||||
listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
|
||||
listMembers: ["GET /orgs/{org}/members"],
|
||||
listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
|
||||
listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"],
|
||||
listPatGrantRepositories: [
|
||||
"GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"
|
||||
],
|
||||
listPatGrantRequestRepositories: [
|
||||
"GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"
|
||||
],
|
||||
listPatGrantRequests: ["GET /orgs/{org}/personal-access-token-requests"],
|
||||
listPatGrants: ["GET /orgs/{org}/personal-access-tokens"],
|
||||
listPendingInvitations: ["GET /orgs/{org}/invitations"],
|
||||
listPublicMembers: ["GET /orgs/{org}/public_members"],
|
||||
listSecurityManagerTeams: ["GET /orgs/{org}/security-managers"],
|
||||
listWebhookDeliveries: ["GET /orgs/{org}/hooks/{hook_id}/deliveries"],
|
||||
listWebhooks: ["GET /orgs/{org}/hooks"],
|
||||
pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"],
|
||||
redeliverWebhookDelivery: [
|
||||
"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
||||
],
|
||||
removeMember: ["DELETE /orgs/{org}/members/{username}"],
|
||||
removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
|
||||
removeOutsideCollaborator: [
|
||||
"DELETE /orgs/{org}/outside_collaborators/{username}"
|
||||
],
|
||||
removePublicMembershipForAuthenticatedUser: [
|
||||
"DELETE /orgs/{org}/public_members/{username}"
|
||||
],
|
||||
removeSecurityManagerTeam: [
|
||||
"DELETE /orgs/{org}/security-managers/teams/{team_slug}"
|
||||
],
|
||||
reviewPatGrantRequest: [
|
||||
"POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"
|
||||
],
|
||||
reviewPatGrantRequestsInBulk: [
|
||||
"POST /orgs/{org}/personal-access-token-requests"
|
||||
],
|
||||
setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
|
||||
setPublicMembershipForAuthenticatedUser: [
|
||||
"PUT /orgs/{org}/public_members/{username}"
|
||||
],
|
||||
unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
|
||||
update: ["PATCH /orgs/{org}"],
|
||||
updateMembershipForAuthenticatedUser: [
|
||||
"PATCH /user/memberships/orgs/{org}"
|
||||
],
|
||||
updatePatAccess: ["POST /orgs/{org}/personal-access-tokens/{pat_id}"],
|
||||
updatePatAccesses: ["POST /orgs/{org}/personal-access-tokens"],
|
||||
updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"],
|
||||
updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"]
|
||||
},
|
||||
packages: {
|
||||
deletePackageForAuthenticatedUser: [
|
||||
"DELETE /user/packages/{package_type}/{package_name}"
|
||||
],
|
||||
deletePackageForOrg: [
|
||||
"DELETE /orgs/{org}/packages/{package_type}/{package_name}"
|
||||
],
|
||||
deletePackageForUser: [
|
||||
"DELETE /users/{username}/packages/{package_type}/{package_name}"
|
||||
],
|
||||
deletePackageVersionForAuthenticatedUser: [
|
||||
"DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
||||
],
|
||||
deletePackageVersionForOrg: [
|
||||
"DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
||||
],
|
||||
deletePackageVersionForUser: [
|
||||
"DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
||||
],
|
||||
getAllPackageVersionsForAPackageOwnedByAnOrg: [
|
||||
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
|
||||
{},
|
||||
{ renamed: ["packages", "getAllPackageVersionsForPackageOwnedByOrg"] }
|
||||
],
|
||||
getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: [
|
||||
"GET /user/packages/{package_type}/{package_name}/versions",
|
||||
{},
|
||||
{
|
||||
renamed: [
|
||||
"packages",
|
||||
"getAllPackageVersionsForPackageOwnedByAuthenticatedUser"
|
||||
]
|
||||
}
|
||||
],
|
||||
getAllPackageVersionsForPackageOwnedByAuthenticatedUser: [
|
||||
"GET /user/packages/{package_type}/{package_name}/versions"
|
||||
],
|
||||
getAllPackageVersionsForPackageOwnedByOrg: [
|
||||
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions"
|
||||
],
|
||||
getAllPackageVersionsForPackageOwnedByUser: [
|
||||
"GET /users/{username}/packages/{package_type}/{package_name}/versions"
|
||||
],
|
||||
getPackageForAuthenticatedUser: [
|
||||
"GET /user/packages/{package_type}/{package_name}"
|
||||
],
|
||||
getPackageForOrganization: [
|
||||
"GET /orgs/{org}/packages/{package_type}/{package_name}"
|
||||
],
|
||||
getPackageForUser: [
|
||||
"GET /users/{username}/packages/{package_type}/{package_name}"
|
||||
],
|
||||
getPackageVersionForAuthenticatedUser: [
|
||||
"GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
||||
],
|
||||
getPackageVersionForOrganization: [
|
||||
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
||||
],
|
||||
getPackageVersionForUser: [
|
||||
"GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
||||
],
|
||||
listDockerMigrationConflictingPackagesForAuthenticatedUser: [
|
||||
"GET /user/docker/conflicts"
|
||||
],
|
||||
listDockerMigrationConflictingPackagesForOrganization: [
|
||||
"GET /orgs/{org}/docker/conflicts"
|
||||
],
|
||||
listDockerMigrationConflictingPackagesForUser: [
|
||||
"GET /users/{username}/docker/conflicts"
|
||||
],
|
||||
listPackagesForAuthenticatedUser: ["GET /user/packages"],
|
||||
listPackagesForOrganization: ["GET /orgs/{org}/packages"],
|
||||
listPackagesForUser: ["GET /users/{username}/packages"],
|
||||
restorePackageForAuthenticatedUser: [
|
||||
"POST /user/packages/{package_type}/{package_name}/restore{?token}"
|
||||
],
|
||||
restorePackageForOrg: [
|
||||
"POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"
|
||||
],
|
||||
restorePackageForUser: [
|
||||
"POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"
|
||||
],
|
||||
restorePackageVersionForAuthenticatedUser: [
|
||||
"POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
||||
],
|
||||
restorePackageVersionForOrg: [
|
||||
"POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
||||
],
|
||||
restorePackageVersionForUser: [
|
||||
"POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
||||
]
|
||||
},
|
||||
projects: {
|
||||
addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
|
||||
createCard: ["POST /projects/columns/{column_id}/cards"],
|
||||
createColumn: ["POST /projects/{project_id}/columns"],
|
||||
createForAuthenticatedUser: ["POST /user/projects"],
|
||||
createForOrg: ["POST /orgs/{org}/projects"],
|
||||
createForRepo: ["POST /repos/{owner}/{repo}/projects"],
|
||||
delete: ["DELETE /projects/{project_id}"],
|
||||
deleteCard: ["DELETE /projects/columns/cards/{card_id}"],
|
||||
deleteColumn: ["DELETE /projects/columns/{column_id}"],
|
||||
get: ["GET /projects/{project_id}"],
|
||||
getCard: ["GET /projects/columns/cards/{card_id}"],
|
||||
getColumn: ["GET /projects/columns/{column_id}"],
|
||||
getPermissionForUser: [
|
||||
"GET /projects/{project_id}/collaborators/{username}/permission"
|
||||
],
|
||||
listCards: ["GET /projects/columns/{column_id}/cards"],
|
||||
listCollaborators: ["GET /projects/{project_id}/collaborators"],
|
||||
listColumns: ["GET /projects/{project_id}/columns"],
|
||||
listForOrg: ["GET /orgs/{org}/projects"],
|
||||
listForRepo: ["GET /repos/{owner}/{repo}/projects"],
|
||||
listForUser: ["GET /users/{username}/projects"],
|
||||
moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
|
||||
moveColumn: ["POST /projects/columns/{column_id}/moves"],
|
||||
removeCollaborator: [
|
||||
"DELETE /projects/{project_id}/collaborators/{username}"
|
||||
],
|
||||
update: ["PATCH /projects/{project_id}"],
|
||||
updateCard: ["PATCH /projects/columns/cards/{card_id}"],
|
||||
updateColumn: ["PATCH /projects/columns/{column_id}"]
|
||||
},
|
||||
pulls: {
|
||||
checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
||||
create: ["POST /repos/{owner}/{repo}/pulls"],
|
||||
createReplyForReviewComment: [
|
||||
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"
|
||||
],
|
||||
createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
||||
createReviewComment: [
|
||||
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
||||
],
|
||||
deletePendingReview: [
|
||||
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
||||
],
|
||||
deleteReviewComment: [
|
||||
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
||||
],
|
||||
dismissReview: [
|
||||
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"
|
||||
],
|
||||
get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"],
|
||||
getReview: [
|
||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
||||
],
|
||||
getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],
|
||||
list: ["GET /repos/{owner}/{repo}/pulls"],
|
||||
listCommentsForReview: [
|
||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"
|
||||
],
|
||||
listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],
|
||||
listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],
|
||||
listRequestedReviewers: [
|
||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
||||
],
|
||||
listReviewComments: [
|
||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
||||
],
|
||||
listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"],
|
||||
listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
||||
merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
||||
removeRequestedReviewers: [
|
||||
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
||||
],
|
||||
requestReviewers: [
|
||||
"POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
||||
],
|
||||
submitReview: [
|
||||
"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"
|
||||
],
|
||||
update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],
|
||||
updateBranch: [
|
||||
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"
|
||||
],
|
||||
updateReview: [
|
||||
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
||||
],
|
||||
updateReviewComment: [
|
||||
"PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
||||
]
|
||||
},
|
||||
rateLimit: { get: ["GET /rate_limit"] },
|
||||
reactions: {
|
||||
createForCommitComment: [
|
||||
"POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
||||
],
|
||||
createForIssue: [
|
||||
"POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"
|
||||
],
|
||||
createForIssueComment: [
|
||||
"POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
||||
],
|
||||
createForPullRequestReviewComment: [
|
||||
"POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
||||
],
|
||||
createForRelease: [
|
||||
"POST /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
||||
],
|
||||
createForTeamDiscussionCommentInOrg: [
|
||||
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
||||
],
|
||||
createForTeamDiscussionInOrg: [
|
||||
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
||||
],
|
||||
deleteForCommitComment: [
|
||||
"DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"
|
||||
],
|
||||
deleteForIssue: [
|
||||
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"
|
||||
],
|
||||
deleteForIssueComment: [
|
||||
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"
|
||||
],
|
||||
deleteForPullRequestComment: [
|
||||
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"
|
||||
],
|
||||
deleteForRelease: [
|
||||
"DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"
|
||||
],
|
||||
deleteForTeamDiscussion: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"
|
||||
],
|
||||
deleteForTeamDiscussionComment: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"
|
||||
],
|
||||
listForCommitComment: [
|
||||
"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
||||
],
|
||||
listForIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],
|
||||
listForIssueComment: [
|
||||
"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
||||
],
|
||||
listForPullRequestReviewComment: [
|
||||
"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
||||
],
|
||||
listForRelease: [
|
||||
"GET /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
||||
],
|
||||
listForTeamDiscussionCommentInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
||||
],
|
||||
listForTeamDiscussionInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
||||
]
|
||||
},
|
||||
repos: {
|
||||
acceptInvitation: [
|
||||
"PATCH /user/repository_invitations/{invitation_id}",
|
||||
{},
|
||||
{ renamed: ["repos", "acceptInvitationForAuthenticatedUser"] }
|
||||
],
|
||||
acceptInvitationForAuthenticatedUser: [
|
||||
"PATCH /user/repository_invitations/{invitation_id}"
|
||||
],
|
||||
addAppAccessRestrictions: [
|
||||
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
||||
{},
|
||||
{ mapToData: "apps" }
|
||||
],
|
||||
addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"],
|
||||
addStatusCheckContexts: [
|
||||
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
||||
{},
|
||||
{ mapToData: "contexts" }
|
||||
],
|
||||
addTeamAccessRestrictions: [
|
||||
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
||||
{},
|
||||
{ mapToData: "teams" }
|
||||
],
|
||||
addUserAccessRestrictions: [
|
||||
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
||||
{},
|
||||
{ mapToData: "users" }
|
||||
],
|
||||
checkAutomatedSecurityFixes: [
|
||||
"GET /repos/{owner}/{repo}/automated-security-fixes"
|
||||
],
|
||||
checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
|
||||
checkVulnerabilityAlerts: [
|
||||
"GET /repos/{owner}/{repo}/vulnerability-alerts"
|
||||
],
|
||||
codeownersErrors: ["GET /repos/{owner}/{repo}/codeowners/errors"],
|
||||
compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"],
|
||||
compareCommitsWithBasehead: [
|
||||
"GET /repos/{owner}/{repo}/compare/{basehead}"
|
||||
],
|
||||
createAutolink: ["POST /repos/{owner}/{repo}/autolinks"],
|
||||
createCommitComment: [
|
||||
"POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
||||
],
|
||||
createCommitSignatureProtection: [
|
||||
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
||||
],
|
||||
createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"],
|
||||
createDeployKey: ["POST /repos/{owner}/{repo}/keys"],
|
||||
createDeployment: ["POST /repos/{owner}/{repo}/deployments"],
|
||||
createDeploymentBranchPolicy: [
|
||||
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
||||
],
|
||||
createDeploymentProtectionRule: [
|
||||
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
||||
],
|
||||
createDeploymentStatus: [
|
||||
"POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
||||
],
|
||||
createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"],
|
||||
createForAuthenticatedUser: ["POST /user/repos"],
|
||||
createFork: ["POST /repos/{owner}/{repo}/forks"],
|
||||
createInOrg: ["POST /orgs/{org}/repos"],
|
||||
createOrUpdateEnvironment: [
|
||||
"PUT /repos/{owner}/{repo}/environments/{environment_name}"
|
||||
],
|
||||
createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"],
|
||||
createOrgRuleset: ["POST /orgs/{org}/rulesets"],
|
||||
createPagesDeployment: ["POST /repos/{owner}/{repo}/pages/deployment"],
|
||||
createPagesSite: ["POST /repos/{owner}/{repo}/pages"],
|
||||
createRelease: ["POST /repos/{owner}/{repo}/releases"],
|
||||
createRepoRuleset: ["POST /repos/{owner}/{repo}/rulesets"],
|
||||
createTagProtection: ["POST /repos/{owner}/{repo}/tags/protection"],
|
||||
createUsingTemplate: [
|
||||
"POST /repos/{template_owner}/{template_repo}/generate"
|
||||
],
|
||||
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
|
||||
declineInvitation: [
|
||||
"DELETE /user/repository_invitations/{invitation_id}",
|
||||
{},
|
||||
{ renamed: ["repos", "declineInvitationForAuthenticatedUser"] }
|
||||
],
|
||||
declineInvitationForAuthenticatedUser: [
|
||||
"DELETE /user/repository_invitations/{invitation_id}"
|
||||
],
|
||||
delete: ["DELETE /repos/{owner}/{repo}"],
|
||||
deleteAccessRestrictions: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
||||
],
|
||||
deleteAdminBranchProtection: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
||||
],
|
||||
deleteAnEnvironment: [
|
||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}"
|
||||
],
|
||||
deleteAutolink: ["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
||||
deleteBranchProtection: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection"
|
||||
],
|
||||
deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],
|
||||
deleteCommitSignatureProtection: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
||||
],
|
||||
deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"],
|
||||
deleteDeployment: [
|
||||
"DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"
|
||||
],
|
||||
deleteDeploymentBranchPolicy: [
|
||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
||||
],
|
||||
deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"],
|
||||
deleteInvitation: [
|
||||
"DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"
|
||||
],
|
||||
deleteOrgRuleset: ["DELETE /orgs/{org}/rulesets/{ruleset_id}"],
|
||||
deletePagesSite: ["DELETE /repos/{owner}/{repo}/pages"],
|
||||
deletePullRequestReviewProtection: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
||||
],
|
||||
deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"],
|
||||
deleteReleaseAsset: [
|
||||
"DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
||||
],
|
||||
deleteRepoRuleset: ["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
||||
deleteTagProtection: [
|
||||
"DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"
|
||||
],
|
||||
deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],
|
||||
disableAutomatedSecurityFixes: [
|
||||
"DELETE /repos/{owner}/{repo}/automated-security-fixes"
|
||||
],
|
||||
disableDeploymentProtectionRule: [
|
||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
||||
],
|
||||
disablePrivateVulnerabilityReporting: [
|
||||
"DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||
],
|
||||
disableVulnerabilityAlerts: [
|
||||
"DELETE /repos/{owner}/{repo}/vulnerability-alerts"
|
||||
],
|
||||
downloadArchive: [
|
||||
"GET /repos/{owner}/{repo}/zipball/{ref}",
|
||||
{},
|
||||
{ renamed: ["repos", "downloadZipballArchive"] }
|
||||
],
|
||||
downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"],
|
||||
downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"],
|
||||
enableAutomatedSecurityFixes: [
|
||||
"PUT /repos/{owner}/{repo}/automated-security-fixes"
|
||||
],
|
||||
enablePrivateVulnerabilityReporting: [
|
||||
"PUT /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||
],
|
||||
enableVulnerabilityAlerts: [
|
||||
"PUT /repos/{owner}/{repo}/vulnerability-alerts"
|
||||
],
|
||||
generateReleaseNotes: [
|
||||
"POST /repos/{owner}/{repo}/releases/generate-notes"
|
||||
],
|
||||
get: ["GET /repos/{owner}/{repo}"],
|
||||
getAccessRestrictions: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
||||
],
|
||||
getAdminBranchProtection: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
||||
],
|
||||
getAllDeploymentProtectionRules: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
||||
],
|
||||
getAllEnvironments: ["GET /repos/{owner}/{repo}/environments"],
|
||||
getAllStatusCheckContexts: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
|
||||
],
|
||||
getAllTopics: ["GET /repos/{owner}/{repo}/topics"],
|
||||
getAppsWithAccessToProtectedBranch: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
|
||||
],
|
||||
getAutolink: ["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
||||
getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"],
|
||||
getBranchProtection: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection"
|
||||
],
|
||||
getBranchRules: ["GET /repos/{owner}/{repo}/rules/branches/{branch}"],
|
||||
getClones: ["GET /repos/{owner}/{repo}/traffic/clones"],
|
||||
getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"],
|
||||
getCollaboratorPermissionLevel: [
|
||||
"GET /repos/{owner}/{repo}/collaborators/{username}/permission"
|
||||
],
|
||||
getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"],
|
||||
getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"],
|
||||
getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"],
|
||||
getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"],
|
||||
getCommitSignatureProtection: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
||||
],
|
||||
getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"],
|
||||
getContent: ["GET /repos/{owner}/{repo}/contents/{path}"],
|
||||
getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"],
|
||||
getCustomDeploymentProtectionRule: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
||||
],
|
||||
getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
|
||||
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
|
||||
getDeploymentBranchPolicy: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
||||
],
|
||||
getDeploymentStatus: [
|
||||
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"
|
||||
],
|
||||
getEnvironment: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}"
|
||||
],
|
||||
getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"],
|
||||
getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"],
|
||||
getOrgRuleset: ["GET /orgs/{org}/rulesets/{ruleset_id}"],
|
||||
getOrgRulesets: ["GET /orgs/{org}/rulesets"],
|
||||
getPages: ["GET /repos/{owner}/{repo}/pages"],
|
||||
getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],
|
||||
getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"],
|
||||
getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"],
|
||||
getPullRequestReviewProtection: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
||||
],
|
||||
getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"],
|
||||
getReadme: ["GET /repos/{owner}/{repo}/readme"],
|
||||
getReadmeInDirectory: ["GET /repos/{owner}/{repo}/readme/{dir}"],
|
||||
getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"],
|
||||
getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],
|
||||
getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"],
|
||||
getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
||||
getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
|
||||
getStatusChecksProtection: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
||||
],
|
||||
getTeamsWithAccessToProtectedBranch: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
|
||||
],
|
||||
getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"],
|
||||
getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"],
|
||||
getUsersWithAccessToProtectedBranch: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
|
||||
],
|
||||
getViews: ["GET /repos/{owner}/{repo}/traffic/views"],
|
||||
getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"],
|
||||
getWebhookConfigForRepo: [
|
||||
"GET /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
||||
],
|
||||
getWebhookDelivery: [
|
||||
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"
|
||||
],
|
||||
listActivities: ["GET /repos/{owner}/{repo}/activity"],
|
||||
listAutolinks: ["GET /repos/{owner}/{repo}/autolinks"],
|
||||
listBranches: ["GET /repos/{owner}/{repo}/branches"],
|
||||
listBranchesForHeadCommit: [
|
||||
"GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"
|
||||
],
|
||||
listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"],
|
||||
listCommentsForCommit: [
|
||||
"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
||||
],
|
||||
listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"],
|
||||
listCommitStatusesForRef: [
|
||||
"GET /repos/{owner}/{repo}/commits/{ref}/statuses"
|
||||
],
|
||||
listCommits: ["GET /repos/{owner}/{repo}/commits"],
|
||||
listContributors: ["GET /repos/{owner}/{repo}/contributors"],
|
||||
listCustomDeploymentRuleIntegrations: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"
|
||||
],
|
||||
listDeployKeys: ["GET /repos/{owner}/{repo}/keys"],
|
||||
listDeploymentBranchPolicies: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
||||
],
|
||||
listDeploymentStatuses: [
|
||||
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
||||
],
|
||||
listDeployments: ["GET /repos/{owner}/{repo}/deployments"],
|
||||
listForAuthenticatedUser: ["GET /user/repos"],
|
||||
listForOrg: ["GET /orgs/{org}/repos"],
|
||||
listForUser: ["GET /users/{username}/repos"],
|
||||
listForks: ["GET /repos/{owner}/{repo}/forks"],
|
||||
listInvitations: ["GET /repos/{owner}/{repo}/invitations"],
|
||||
listInvitationsForAuthenticatedUser: ["GET /user/repository_invitations"],
|
||||
listLanguages: ["GET /repos/{owner}/{repo}/languages"],
|
||||
listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"],
|
||||
listPublic: ["GET /repositories"],
|
||||
listPullRequestsAssociatedWithCommit: [
|
||||
"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"
|
||||
],
|
||||
listReleaseAssets: [
|
||||
"GET /repos/{owner}/{repo}/releases/{release_id}/assets"
|
||||
],
|
||||
listReleases: ["GET /repos/{owner}/{repo}/releases"],
|
||||
listTagProtection: ["GET /repos/{owner}/{repo}/tags/protection"],
|
||||
listTags: ["GET /repos/{owner}/{repo}/tags"],
|
||||
listTeams: ["GET /repos/{owner}/{repo}/teams"],
|
||||
listWebhookDeliveries: [
|
||||
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"
|
||||
],
|
||||
listWebhooks: ["GET /repos/{owner}/{repo}/hooks"],
|
||||
merge: ["POST /repos/{owner}/{repo}/merges"],
|
||||
mergeUpstream: ["POST /repos/{owner}/{repo}/merge-upstream"],
|
||||
pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],
|
||||
redeliverWebhookDelivery: [
|
||||
"POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
||||
],
|
||||
removeAppAccessRestrictions: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
||||
{},
|
||||
{ mapToData: "apps" }
|
||||
],
|
||||
removeCollaborator: [
|
||||
"DELETE /repos/{owner}/{repo}/collaborators/{username}"
|
||||
],
|
||||
removeStatusCheckContexts: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
||||
{},
|
||||
{ mapToData: "contexts" }
|
||||
],
|
||||
removeStatusCheckProtection: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
||||
],
|
||||
removeTeamAccessRestrictions: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
||||
{},
|
||||
{ mapToData: "teams" }
|
||||
],
|
||||
removeUserAccessRestrictions: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
||||
{},
|
||||
{ mapToData: "users" }
|
||||
],
|
||||
renameBranch: ["POST /repos/{owner}/{repo}/branches/{branch}/rename"],
|
||||
replaceAllTopics: ["PUT /repos/{owner}/{repo}/topics"],
|
||||
requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"],
|
||||
setAdminBranchProtection: [
|
||||
"POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
||||
],
|
||||
setAppAccessRestrictions: [
|
||||
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
||||
{},
|
||||
{ mapToData: "apps" }
|
||||
],
|
||||
setStatusCheckContexts: [
|
||||
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
||||
{},
|
||||
{ mapToData: "contexts" }
|
||||
],
|
||||
setTeamAccessRestrictions: [
|
||||
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
||||
{},
|
||||
{ mapToData: "teams" }
|
||||
],
|
||||
setUserAccessRestrictions: [
|
||||
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
||||
{},
|
||||
{ mapToData: "users" }
|
||||
],
|
||||
testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],
|
||||
transfer: ["POST /repos/{owner}/{repo}/transfer"],
|
||||
update: ["PATCH /repos/{owner}/{repo}"],
|
||||
updateBranchProtection: [
|
||||
"PUT /repos/{owner}/{repo}/branches/{branch}/protection"
|
||||
],
|
||||
updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],
|
||||
updateDeploymentBranchPolicy: [
|
||||
"PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
||||
],
|
||||
updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"],
|
||||
updateInvitation: [
|
||||
"PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"
|
||||
],
|
||||
updateOrgRuleset: ["PUT /orgs/{org}/rulesets/{ruleset_id}"],
|
||||
updatePullRequestReviewProtection: [
|
||||
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
||||
],
|
||||
updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"],
|
||||
updateReleaseAsset: [
|
||||
"PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
||||
],
|
||||
updateRepoRuleset: ["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
||||
updateStatusCheckPotection: [
|
||||
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
|
||||
{},
|
||||
{ renamed: ["repos", "updateStatusCheckProtection"] }
|
||||
],
|
||||
updateStatusCheckProtection: [
|
||||
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
||||
],
|
||||
updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],
|
||||
updateWebhookConfigForRepo: [
|
||||
"PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
||||
],
|
||||
uploadReleaseAsset: [
|
||||
"POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",
|
||||
{ baseUrl: "https://uploads.github.com" }
|
||||
]
|
||||
},
|
||||
search: {
|
||||
code: ["GET /search/code"],
|
||||
commits: ["GET /search/commits"],
|
||||
issuesAndPullRequests: ["GET /search/issues"],
|
||||
labels: ["GET /search/labels"],
|
||||
repos: ["GET /search/repositories"],
|
||||
topics: ["GET /search/topics"],
|
||||
users: ["GET /search/users"]
|
||||
},
|
||||
secretScanning: {
|
||||
getAlert: [
|
||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
||||
],
|
||||
listAlertsForEnterprise: [
|
||||
"GET /enterprises/{enterprise}/secret-scanning/alerts"
|
||||
],
|
||||
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
|
||||
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
|
||||
listLocationsForAlert: [
|
||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"
|
||||
],
|
||||
updateAlert: [
|
||||
"PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
||||
]
|
||||
},
|
||||
securityAdvisories: {
|
||||
createPrivateVulnerabilityReport: [
|
||||
"POST /repos/{owner}/{repo}/security-advisories/reports"
|
||||
],
|
||||
createRepositoryAdvisory: [
|
||||
"POST /repos/{owner}/{repo}/security-advisories"
|
||||
],
|
||||
createRepositoryAdvisoryCveRequest: [
|
||||
"POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"
|
||||
],
|
||||
getGlobalAdvisory: ["GET /advisories/{ghsa_id}"],
|
||||
getRepositoryAdvisory: [
|
||||
"GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
||||
],
|
||||
listGlobalAdvisories: ["GET /advisories"],
|
||||
listOrgRepositoryAdvisories: ["GET /orgs/{org}/security-advisories"],
|
||||
listRepositoryAdvisories: ["GET /repos/{owner}/{repo}/security-advisories"],
|
||||
updateRepositoryAdvisory: [
|
||||
"PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
||||
]
|
||||
},
|
||||
teams: {
|
||||
addOrUpdateMembershipForUserInOrg: [
|
||||
"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
||||
],
|
||||
addOrUpdateProjectPermissionsInOrg: [
|
||||
"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
||||
],
|
||||
addOrUpdateRepoPermissionsInOrg: [
|
||||
"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
||||
],
|
||||
checkPermissionsForProjectInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
||||
],
|
||||
checkPermissionsForRepoInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
||||
],
|
||||
create: ["POST /orgs/{org}/teams"],
|
||||
createDiscussionCommentInOrg: [
|
||||
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
||||
],
|
||||
createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"],
|
||||
deleteDiscussionCommentInOrg: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
||||
],
|
||||
deleteDiscussionInOrg: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
||||
],
|
||||
deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"],
|
||||
getByName: ["GET /orgs/{org}/teams/{team_slug}"],
|
||||
getDiscussionCommentInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
||||
],
|
||||
getDiscussionInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
||||
],
|
||||
getMembershipForUserInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
||||
],
|
||||
list: ["GET /orgs/{org}/teams"],
|
||||
listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"],
|
||||
listDiscussionCommentsInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
||||
],
|
||||
listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"],
|
||||
listForAuthenticatedUser: ["GET /user/teams"],
|
||||
listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"],
|
||||
listPendingInvitationsInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/invitations"
|
||||
],
|
||||
listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
|
||||
listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
|
||||
removeMembershipForUserInOrg: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
||||
],
|
||||
removeProjectInOrg: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
||||
],
|
||||
removeRepoInOrg: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
||||
],
|
||||
updateDiscussionCommentInOrg: [
|
||||
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
||||
],
|
||||
updateDiscussionInOrg: [
|
||||
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
||||
],
|
||||
updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"]
|
||||
},
|
||||
users: {
|
||||
addEmailForAuthenticated: [
|
||||
"POST /user/emails",
|
||||
{},
|
||||
{ renamed: ["users", "addEmailForAuthenticatedUser"] }
|
||||
],
|
||||
addEmailForAuthenticatedUser: ["POST /user/emails"],
|
||||
addSocialAccountForAuthenticatedUser: ["POST /user/social_accounts"],
|
||||
block: ["PUT /user/blocks/{username}"],
|
||||
checkBlocked: ["GET /user/blocks/{username}"],
|
||||
checkFollowingForUser: ["GET /users/{username}/following/{target_user}"],
|
||||
checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"],
|
||||
createGpgKeyForAuthenticated: [
|
||||
"POST /user/gpg_keys",
|
||||
{},
|
||||
{ renamed: ["users", "createGpgKeyForAuthenticatedUser"] }
|
||||
],
|
||||
createGpgKeyForAuthenticatedUser: ["POST /user/gpg_keys"],
|
||||
createPublicSshKeyForAuthenticated: [
|
||||
"POST /user/keys",
|
||||
{},
|
||||
{ renamed: ["users", "createPublicSshKeyForAuthenticatedUser"] }
|
||||
],
|
||||
createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"],
|
||||
createSshSigningKeyForAuthenticatedUser: ["POST /user/ssh_signing_keys"],
|
||||
deleteEmailForAuthenticated: [
|
||||
"DELETE /user/emails",
|
||||
{},
|
||||
{ renamed: ["users", "deleteEmailForAuthenticatedUser"] }
|
||||
],
|
||||
deleteEmailForAuthenticatedUser: ["DELETE /user/emails"],
|
||||
deleteGpgKeyForAuthenticated: [
|
||||
"DELETE /user/gpg_keys/{gpg_key_id}",
|
||||
{},
|
||||
{ renamed: ["users", "deleteGpgKeyForAuthenticatedUser"] }
|
||||
],
|
||||
deleteGpgKeyForAuthenticatedUser: ["DELETE /user/gpg_keys/{gpg_key_id}"],
|
||||
deletePublicSshKeyForAuthenticated: [
|
||||
"DELETE /user/keys/{key_id}",
|
||||
{},
|
||||
{ renamed: ["users", "deletePublicSshKeyForAuthenticatedUser"] }
|
||||
],
|
||||
deletePublicSshKeyForAuthenticatedUser: ["DELETE /user/keys/{key_id}"],
|
||||
deleteSocialAccountForAuthenticatedUser: ["DELETE /user/social_accounts"],
|
||||
deleteSshSigningKeyForAuthenticatedUser: [
|
||||
"DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"
|
||||
],
|
||||
follow: ["PUT /user/following/{username}"],
|
||||
getAuthenticated: ["GET /user"],
|
||||
getByUsername: ["GET /users/{username}"],
|
||||
getContextForUser: ["GET /users/{username}/hovercard"],
|
||||
getGpgKeyForAuthenticated: [
|
||||
"GET /user/gpg_keys/{gpg_key_id}",
|
||||
{},
|
||||
{ renamed: ["users", "getGpgKeyForAuthenticatedUser"] }
|
||||
],
|
||||
getGpgKeyForAuthenticatedUser: ["GET /user/gpg_keys/{gpg_key_id}"],
|
||||
getPublicSshKeyForAuthenticated: [
|
||||
"GET /user/keys/{key_id}",
|
||||
{},
|
||||
{ renamed: ["users", "getPublicSshKeyForAuthenticatedUser"] }
|
||||
],
|
||||
getPublicSshKeyForAuthenticatedUser: ["GET /user/keys/{key_id}"],
|
||||
getSshSigningKeyForAuthenticatedUser: [
|
||||
"GET /user/ssh_signing_keys/{ssh_signing_key_id}"
|
||||
],
|
||||
list: ["GET /users"],
|
||||
listBlockedByAuthenticated: [
|
||||
"GET /user/blocks",
|
||||
{},
|
||||
{ renamed: ["users", "listBlockedByAuthenticatedUser"] }
|
||||
],
|
||||
listBlockedByAuthenticatedUser: ["GET /user/blocks"],
|
||||
listEmailsForAuthenticated: [
|
||||
"GET /user/emails",
|
||||
{},
|
||||
{ renamed: ["users", "listEmailsForAuthenticatedUser"] }
|
||||
],
|
||||
listEmailsForAuthenticatedUser: ["GET /user/emails"],
|
||||
listFollowedByAuthenticated: [
|
||||
"GET /user/following",
|
||||
{},
|
||||
{ renamed: ["users", "listFollowedByAuthenticatedUser"] }
|
||||
],
|
||||
listFollowedByAuthenticatedUser: ["GET /user/following"],
|
||||
listFollowersForAuthenticatedUser: ["GET /user/followers"],
|
||||
listFollowersForUser: ["GET /users/{username}/followers"],
|
||||
listFollowingForUser: ["GET /users/{username}/following"],
|
||||
listGpgKeysForAuthenticated: [
|
||||
"GET /user/gpg_keys",
|
||||
{},
|
||||
{ renamed: ["users", "listGpgKeysForAuthenticatedUser"] }
|
||||
],
|
||||
listGpgKeysForAuthenticatedUser: ["GET /user/gpg_keys"],
|
||||
listGpgKeysForUser: ["GET /users/{username}/gpg_keys"],
|
||||
listPublicEmailsForAuthenticated: [
|
||||
"GET /user/public_emails",
|
||||
{},
|
||||
{ renamed: ["users", "listPublicEmailsForAuthenticatedUser"] }
|
||||
],
|
||||
listPublicEmailsForAuthenticatedUser: ["GET /user/public_emails"],
|
||||
listPublicKeysForUser: ["GET /users/{username}/keys"],
|
||||
listPublicSshKeysForAuthenticated: [
|
||||
"GET /user/keys",
|
||||
{},
|
||||
{ renamed: ["users", "listPublicSshKeysForAuthenticatedUser"] }
|
||||
],
|
||||
listPublicSshKeysForAuthenticatedUser: ["GET /user/keys"],
|
||||
listSocialAccountsForAuthenticatedUser: ["GET /user/social_accounts"],
|
||||
listSocialAccountsForUser: ["GET /users/{username}/social_accounts"],
|
||||
listSshSigningKeysForAuthenticatedUser: ["GET /user/ssh_signing_keys"],
|
||||
listSshSigningKeysForUser: ["GET /users/{username}/ssh_signing_keys"],
|
||||
setPrimaryEmailVisibilityForAuthenticated: [
|
||||
"PATCH /user/email/visibility",
|
||||
{},
|
||||
{ renamed: ["users", "setPrimaryEmailVisibilityForAuthenticatedUser"] }
|
||||
],
|
||||
setPrimaryEmailVisibilityForAuthenticatedUser: [
|
||||
"PATCH /user/email/visibility"
|
||||
],
|
||||
unblock: ["DELETE /user/blocks/{username}"],
|
||||
unfollow: ["DELETE /user/following/{username}"],
|
||||
updateAuthenticated: ["PATCH /user"]
|
||||
}
|
||||
};
|
||||
var endpoints_default = Endpoints;
|
||||
|
||||
// pkg/dist-src/endpoints-to-methods.js
|
||||
var endpointMethodsMap = /* @__PURE__ */ new Map();
|
||||
for (const [scope, endpoints] of Object.entries(endpoints_default)) {
|
||||
for (const [methodName, endpoint] of Object.entries(endpoints)) {
|
||||
const [route, defaults, decorations] = endpoint;
|
||||
const [method, url] = route.split(/ /);
|
||||
const endpointDefaults = Object.assign(
|
||||
{
|
||||
method,
|
||||
url
|
||||
},
|
||||
defaults
|
||||
);
|
||||
if (!endpointMethodsMap.has(scope)) {
|
||||
endpointMethodsMap.set(scope, /* @__PURE__ */ new Map());
|
||||
}
|
||||
endpointMethodsMap.get(scope).set(methodName, {
|
||||
scope,
|
||||
methodName,
|
||||
endpointDefaults,
|
||||
decorations
|
||||
});
|
||||
}
|
||||
}
|
||||
var handler = {
|
||||
get({ octokit, scope, cache }, methodName) {
|
||||
if (cache[methodName]) {
|
||||
return cache[methodName];
|
||||
}
|
||||
const { decorations, endpointDefaults } = endpointMethodsMap.get(scope).get(methodName);
|
||||
if (decorations) {
|
||||
cache[methodName] = decorate(
|
||||
octokit,
|
||||
scope,
|
||||
methodName,
|
||||
endpointDefaults,
|
||||
decorations
|
||||
);
|
||||
} else {
|
||||
cache[methodName] = octokit.request.defaults(endpointDefaults);
|
||||
}
|
||||
return cache[methodName];
|
||||
}
|
||||
};
|
||||
function endpointsToMethods(octokit) {
|
||||
const newMethods = {};
|
||||
for (const scope of endpointMethodsMap.keys()) {
|
||||
newMethods[scope] = new Proxy({ octokit, scope, cache: {} }, handler);
|
||||
}
|
||||
return newMethods;
|
||||
}
|
||||
function decorate(octokit, scope, methodName, defaults, decorations) {
|
||||
const requestWithDefaults = octokit.request.defaults(defaults);
|
||||
function withDecorations(...args) {
|
||||
let options = requestWithDefaults.endpoint.merge(...args);
|
||||
if (decorations.mapToData) {
|
||||
options = Object.assign({}, options, {
|
||||
data: options[decorations.mapToData],
|
||||
[decorations.mapToData]: void 0
|
||||
});
|
||||
return requestWithDefaults(options);
|
||||
}
|
||||
if (decorations.renamed) {
|
||||
const [newScope, newMethodName] = decorations.renamed;
|
||||
octokit.log.warn(
|
||||
`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`
|
||||
);
|
||||
}
|
||||
if (decorations.deprecated) {
|
||||
octokit.log.warn(decorations.deprecated);
|
||||
}
|
||||
if (decorations.renamedParameters) {
|
||||
const options2 = requestWithDefaults.endpoint.merge(...args);
|
||||
for (const [name, alias] of Object.entries(
|
||||
decorations.renamedParameters
|
||||
)) {
|
||||
if (name in options2) {
|
||||
octokit.log.warn(
|
||||
`"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`
|
||||
);
|
||||
if (!(alias in options2)) {
|
||||
options2[alias] = options2[name];
|
||||
}
|
||||
delete options2[name];
|
||||
}
|
||||
}
|
||||
return requestWithDefaults(options2);
|
||||
}
|
||||
return requestWithDefaults(...args);
|
||||
}
|
||||
return Object.assign(withDecorations, requestWithDefaults);
|
||||
}
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
function restEndpointMethods(octokit) {
|
||||
const api = endpointsToMethods(octokit);
|
||||
return {
|
||||
rest: api
|
||||
};
|
||||
}
|
||||
restEndpointMethods.VERSION = VERSION;
|
||||
function legacyRestEndpointMethods(octokit) {
|
||||
const api = endpointsToMethods(octokit);
|
||||
return {
|
||||
...api,
|
||||
rest: api
|
||||
};
|
||||
}
|
||||
legacyRestEndpointMethods.VERSION = VERSION;
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (0);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3708:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
var dist_src_exports = {};
|
||||
__export(dist_src_exports, {
|
||||
RequestError: () => RequestError
|
||||
});
|
||||
module.exports = __toCommonJS(dist_src_exports);
|
||||
var import_deprecation = __nccwpck_require__(4150);
|
||||
var import_once = __toESM(__nccwpck_require__(5560));
|
||||
var logOnceCode = (0, import_once.default)((deprecation) => console.warn(deprecation));
|
||||
var logOnceHeaders = (0, import_once.default)((deprecation) => console.warn(deprecation));
|
||||
var RequestError = class extends Error {
|
||||
constructor(message, statusCode, options) {
|
||||
super(message);
|
||||
if (Error.captureStackTrace) {
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
this.name = "HttpError";
|
||||
this.status = statusCode;
|
||||
let headers;
|
||||
if ("headers" in options && typeof options.headers !== "undefined") {
|
||||
headers = options.headers;
|
||||
}
|
||||
if ("response" in options) {
|
||||
this.response = options.response;
|
||||
headers = options.response.headers;
|
||||
}
|
||||
const requestCopy = Object.assign({}, options.request);
|
||||
if (options.request.headers.authorization) {
|
||||
requestCopy.headers = Object.assign({}, options.request.headers, {
|
||||
authorization: options.request.headers.authorization.replace(
|
||||
/ .*$/,
|
||||
" [REDACTED]"
|
||||
)
|
||||
});
|
||||
}
|
||||
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
|
||||
this.request = requestCopy;
|
||||
Object.defineProperty(this, "code", {
|
||||
get() {
|
||||
logOnceCode(
|
||||
new import_deprecation.Deprecation(
|
||||
"[@octokit/request-error] `error.code` is deprecated, use `error.status`."
|
||||
)
|
||||
);
|
||||
return statusCode;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(this, "headers", {
|
||||
get() {
|
||||
logOnceHeaders(
|
||||
new import_deprecation.Deprecation(
|
||||
"[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."
|
||||
)
|
||||
);
|
||||
return headers || {};
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (0);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8636:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
var dist_src_exports = {};
|
||||
__export(dist_src_exports, {
|
||||
request: () => request
|
||||
});
|
||||
module.exports = __toCommonJS(dist_src_exports);
|
||||
var import_endpoint = __nccwpck_require__(4471);
|
||||
var import_universal_user_agent = __nccwpck_require__(3843);
|
||||
|
||||
// pkg/dist-src/version.js
|
||||
var VERSION = "8.4.0";
|
||||
|
||||
// pkg/dist-src/is-plain-object.js
|
||||
function isPlainObject(value) {
|
||||
if (typeof value !== "object" || value === null)
|
||||
return false;
|
||||
if (Object.prototype.toString.call(value) !== "[object Object]")
|
||||
return false;
|
||||
const proto = Object.getPrototypeOf(value);
|
||||
if (proto === null)
|
||||
return true;
|
||||
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
||||
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
||||
}
|
||||
|
||||
// pkg/dist-src/fetch-wrapper.js
|
||||
var import_request_error = __nccwpck_require__(3708);
|
||||
|
||||
// pkg/dist-src/get-buffer-response.js
|
||||
function getBufferResponse(response) {
|
||||
return response.arrayBuffer();
|
||||
}
|
||||
|
||||
// pkg/dist-src/fetch-wrapper.js
|
||||
function fetchWrapper(requestOptions) {
|
||||
var _a, _b, _c, _d;
|
||||
const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;
|
||||
const parseSuccessResponseBody = ((_a = requestOptions.request) == null ? void 0 : _a.parseSuccessResponseBody) !== false;
|
||||
if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {
|
||||
requestOptions.body = JSON.stringify(requestOptions.body);
|
||||
}
|
||||
let headers = {};
|
||||
let status;
|
||||
let url;
|
||||
let { fetch } = globalThis;
|
||||
if ((_b = requestOptions.request) == null ? void 0 : _b.fetch) {
|
||||
fetch = requestOptions.request.fetch;
|
||||
}
|
||||
if (!fetch) {
|
||||
throw new Error(
|
||||
"fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing"
|
||||
);
|
||||
}
|
||||
return fetch(requestOptions.url, {
|
||||
method: requestOptions.method,
|
||||
body: requestOptions.body,
|
||||
redirect: (_c = requestOptions.request) == null ? void 0 : _c.redirect,
|
||||
headers: requestOptions.headers,
|
||||
signal: (_d = requestOptions.request) == null ? void 0 : _d.signal,
|
||||
// duplex must be set if request.body is ReadableStream or Async Iterables.
|
||||
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
|
||||
...requestOptions.body && { duplex: "half" }
|
||||
}).then(async (response) => {
|
||||
url = response.url;
|
||||
status = response.status;
|
||||
for (const keyAndValue of response.headers) {
|
||||
headers[keyAndValue[0]] = keyAndValue[1];
|
||||
}
|
||||
if ("deprecation" in headers) {
|
||||
const matches = headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/);
|
||||
const deprecationLink = matches && matches.pop();
|
||||
log.warn(
|
||||
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
|
||||
);
|
||||
}
|
||||
if (status === 204 || status === 205) {
|
||||
return;
|
||||
}
|
||||
if (requestOptions.method === "HEAD") {
|
||||
if (status < 400) {
|
||||
return;
|
||||
}
|
||||
throw new import_request_error.RequestError(response.statusText, status, {
|
||||
response: {
|
||||
url,
|
||||
status,
|
||||
headers,
|
||||
data: void 0
|
||||
},
|
||||
request: requestOptions
|
||||
});
|
||||
}
|
||||
if (status === 304) {
|
||||
throw new import_request_error.RequestError("Not modified", status, {
|
||||
response: {
|
||||
url,
|
||||
status,
|
||||
headers,
|
||||
data: await getResponseData(response)
|
||||
},
|
||||
request: requestOptions
|
||||
});
|
||||
}
|
||||
if (status >= 400) {
|
||||
const data = await getResponseData(response);
|
||||
const error = new import_request_error.RequestError(toErrorMessage(data), status, {
|
||||
response: {
|
||||
url,
|
||||
status,
|
||||
headers,
|
||||
data
|
||||
},
|
||||
request: requestOptions
|
||||
});
|
||||
throw error;
|
||||
}
|
||||
return parseSuccessResponseBody ? await getResponseData(response) : response.body;
|
||||
}).then((data) => {
|
||||
return {
|
||||
status,
|
||||
url,
|
||||
headers,
|
||||
data
|
||||
};
|
||||
}).catch((error) => {
|
||||
if (error instanceof import_request_error.RequestError)
|
||||
throw error;
|
||||
else if (error.name === "AbortError")
|
||||
throw error;
|
||||
let message = error.message;
|
||||
if (error.name === "TypeError" && "cause" in error) {
|
||||
if (error.cause instanceof Error) {
|
||||
message = error.cause.message;
|
||||
} else if (typeof error.cause === "string") {
|
||||
message = error.cause;
|
||||
}
|
||||
}
|
||||
throw new import_request_error.RequestError(message, 500, {
|
||||
request: requestOptions
|
||||
});
|
||||
});
|
||||
}
|
||||
async function getResponseData(response) {
|
||||
const contentType = response.headers.get("content-type");
|
||||
if (/application\/json/.test(contentType)) {
|
||||
return response.json().catch(() => response.text()).catch(() => "");
|
||||
}
|
||||
if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
|
||||
return response.text();
|
||||
}
|
||||
return getBufferResponse(response);
|
||||
}
|
||||
function toErrorMessage(data) {
|
||||
if (typeof data === "string")
|
||||
return data;
|
||||
let suffix;
|
||||
if ("documentation_url" in data) {
|
||||
suffix = ` - ${data.documentation_url}`;
|
||||
} else {
|
||||
suffix = "";
|
||||
}
|
||||
if ("message" in data) {
|
||||
if (Array.isArray(data.errors)) {
|
||||
return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}${suffix}`;
|
||||
}
|
||||
return `${data.message}${suffix}`;
|
||||
}
|
||||
return `Unknown error: ${JSON.stringify(data)}`;
|
||||
}
|
||||
|
||||
// pkg/dist-src/with-defaults.js
|
||||
function withDefaults(oldEndpoint, newDefaults) {
|
||||
const endpoint2 = oldEndpoint.defaults(newDefaults);
|
||||
const newApi = function(route, parameters) {
|
||||
const endpointOptions = endpoint2.merge(route, parameters);
|
||||
if (!endpointOptions.request || !endpointOptions.request.hook) {
|
||||
return fetchWrapper(endpoint2.parse(endpointOptions));
|
||||
}
|
||||
const request2 = (route2, parameters2) => {
|
||||
return fetchWrapper(
|
||||
endpoint2.parse(endpoint2.merge(route2, parameters2))
|
||||
);
|
||||
};
|
||||
Object.assign(request2, {
|
||||
endpoint: endpoint2,
|
||||
defaults: withDefaults.bind(null, endpoint2)
|
||||
});
|
||||
return endpointOptions.request.hook(request2, endpointOptions);
|
||||
};
|
||||
return Object.assign(newApi, {
|
||||
endpoint: endpoint2,
|
||||
defaults: withDefaults.bind(null, endpoint2)
|
||||
});
|
||||
}
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
var request = withDefaults(import_endpoint.endpoint, {
|
||||
headers: {
|
||||
"user-agent": `octokit-request.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
|
||||
}
|
||||
});
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (0);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2732:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
var register = __nccwpck_require__(1063);
|
||||
var addHook = __nccwpck_require__(2027);
|
||||
var removeHook = __nccwpck_require__(9934);
|
||||
|
||||
// bind with array of arguments: https://stackoverflow.com/a/21792913
|
||||
var bind = Function.bind;
|
||||
var bindable = bind.bind(bind);
|
||||
|
||||
function bindApi(hook, state, name) {
|
||||
var removeHookRef = bindable(removeHook, null).apply(
|
||||
null,
|
||||
name ? [state, name] : [state]
|
||||
);
|
||||
hook.api = { remove: removeHookRef };
|
||||
hook.remove = removeHookRef;
|
||||
["before", "error", "after", "wrap"].forEach(function (kind) {
|
||||
var args = name ? [state, kind, name] : [state, kind];
|
||||
hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args);
|
||||
});
|
||||
}
|
||||
|
||||
function HookSingular() {
|
||||
var singularHookName = "h";
|
||||
var singularHookState = {
|
||||
registry: {},
|
||||
};
|
||||
var singularHook = register.bind(null, singularHookState, singularHookName);
|
||||
bindApi(singularHook, singularHookState, singularHookName);
|
||||
return singularHook;
|
||||
}
|
||||
|
||||
function HookCollection() {
|
||||
var state = {
|
||||
registry: {},
|
||||
};
|
||||
|
||||
var hook = register.bind(null, state);
|
||||
bindApi(hook, state);
|
||||
|
||||
return hook;
|
||||
}
|
||||
|
||||
var collectionHookDeprecationMessageDisplayed = false;
|
||||
function Hook() {
|
||||
if (!collectionHookDeprecationMessageDisplayed) {
|
||||
console.warn(
|
||||
'[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'
|
||||
);
|
||||
collectionHookDeprecationMessageDisplayed = true;
|
||||
}
|
||||
return HookCollection();
|
||||
}
|
||||
|
||||
Hook.Singular = HookSingular.bind();
|
||||
Hook.Collection = HookCollection.bind();
|
||||
|
||||
module.exports = Hook;
|
||||
// expose constructors as a named property for TypeScript
|
||||
module.exports.Hook = Hook;
|
||||
module.exports.Singular = Hook.Singular;
|
||||
module.exports.Collection = Hook.Collection;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2027:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = addHook;
|
||||
|
||||
function addHook(state, kind, name, hook) {
|
||||
var orig = hook;
|
||||
if (!state.registry[name]) {
|
||||
state.registry[name] = [];
|
||||
}
|
||||
|
||||
if (kind === "before") {
|
||||
hook = function (method, options) {
|
||||
return Promise.resolve()
|
||||
.then(orig.bind(null, options))
|
||||
.then(method.bind(null, options));
|
||||
};
|
||||
}
|
||||
|
||||
if (kind === "after") {
|
||||
hook = function (method, options) {
|
||||
var result;
|
||||
return Promise.resolve()
|
||||
.then(method.bind(null, options))
|
||||
.then(function (result_) {
|
||||
result = result_;
|
||||
return orig(result, options);
|
||||
})
|
||||
.then(function () {
|
||||
return result;
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
if (kind === "error") {
|
||||
hook = function (method, options) {
|
||||
return Promise.resolve()
|
||||
.then(method.bind(null, options))
|
||||
.catch(function (error) {
|
||||
return orig(error, options);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
state.registry[name].push({
|
||||
hook: hook,
|
||||
orig: orig,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1063:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = register;
|
||||
|
||||
function register(state, name, method, options) {
|
||||
if (typeof method !== "function") {
|
||||
throw new Error("method for before hook must be a function");
|
||||
}
|
||||
|
||||
if (!options) {
|
||||
options = {};
|
||||
}
|
||||
|
||||
if (Array.isArray(name)) {
|
||||
return name.reverse().reduce(function (callback, name) {
|
||||
return register.bind(null, state, name, callback, options);
|
||||
}, method)();
|
||||
}
|
||||
|
||||
return Promise.resolve().then(function () {
|
||||
if (!state.registry[name]) {
|
||||
return method(options);
|
||||
}
|
||||
|
||||
return state.registry[name].reduce(function (method, registered) {
|
||||
return registered.hook.bind(null, method, options);
|
||||
}, method)();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9934:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = removeHook;
|
||||
|
||||
function removeHook(state, name, method) {
|
||||
if (!state.registry[name]) {
|
||||
return;
|
||||
}
|
||||
|
||||
var index = state.registry[name]
|
||||
.map(function (registered) {
|
||||
return registered.orig;
|
||||
})
|
||||
.indexOf(method);
|
||||
|
||||
if (index === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
state.registry[name].splice(index, 1);
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4150:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
|
||||
class Deprecation extends Error {
|
||||
constructor(message) {
|
||||
super(message); // Maintains proper stack trace (only available on V8)
|
||||
|
||||
/* istanbul ignore next */
|
||||
|
||||
if (Error.captureStackTrace) {
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
|
||||
this.name = 'Deprecation';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
exports.Deprecation = Deprecation;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5560:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
var wrappy = __nccwpck_require__(8264)
|
||||
module.exports = wrappy(once)
|
||||
module.exports.strict = wrappy(onceStrict)
|
||||
|
||||
once.proto = once(function () {
|
||||
Object.defineProperty(Function.prototype, 'once', {
|
||||
value: function () {
|
||||
return once(this)
|
||||
},
|
||||
configurable: true
|
||||
})
|
||||
|
||||
Object.defineProperty(Function.prototype, 'onceStrict', {
|
||||
value: function () {
|
||||
return onceStrict(this)
|
||||
},
|
||||
configurable: true
|
||||
})
|
||||
})
|
||||
|
||||
function once (fn) {
|
||||
var f = function () {
|
||||
if (f.called) return f.value
|
||||
f.called = true
|
||||
return f.value = fn.apply(this, arguments)
|
||||
}
|
||||
f.called = false
|
||||
return f
|
||||
}
|
||||
|
||||
function onceStrict (fn) {
|
||||
var f = function () {
|
||||
if (f.called)
|
||||
throw new Error(f.onceError)
|
||||
f.called = true
|
||||
return f.value = fn.apply(this, arguments)
|
||||
}
|
||||
var name = fn.name || 'Function wrapped with `once`'
|
||||
f.onceError = name + " shouldn't be called more than once"
|
||||
f.called = false
|
||||
return f
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9318:
|
||||
@@ -18109,6 +14079,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(8253)
|
||||
const { File: UndiciFile } = __nccwpck_require__(3041)
|
||||
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(4322)
|
||||
|
||||
let random
|
||||
try {
|
||||
const crypto = __nccwpck_require__(7598)
|
||||
random = (max) => crypto.randomInt(0, max)
|
||||
} catch {
|
||||
random = (max) => Math.floor(Math.random(max))
|
||||
}
|
||||
|
||||
let ReadableStream = globalThis.ReadableStream
|
||||
|
||||
/** @type {globalThis['File']} */
|
||||
@@ -18194,7 +14172,7 @@ function extractBody (object, keepalive = false) {
|
||||
// Set source to a copy of the bytes held by object.
|
||||
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
|
||||
} else if (util.isFormDataLike(object)) {
|
||||
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
|
||||
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
|
||||
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
|
||||
|
||||
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
||||
@@ -32207,156 +28185,6 @@ module.exports = {
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3843:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
|
||||
function getUserAgent() {
|
||||
if (typeof navigator === "object" && "userAgent" in navigator) {
|
||||
return navigator.userAgent;
|
||||
}
|
||||
|
||||
if (typeof process === "object" && process.version !== undefined) {
|
||||
return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`;
|
||||
}
|
||||
|
||||
return "<environment undetectable>";
|
||||
}
|
||||
|
||||
exports.getUserAgent = getUserAgent;
|
||||
//# sourceMappingURL=index.js.map
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8682:
|
||||
/***/ ((module) => {
|
||||
|
||||
/**
|
||||
* Convert array of 16 byte values to UUID string format of the form:
|
||||
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
||||
*/
|
||||
var byteToHex = [];
|
||||
for (var i = 0; i < 256; ++i) {
|
||||
byteToHex[i] = (i + 0x100).toString(16).substr(1);
|
||||
}
|
||||
|
||||
function bytesToUuid(buf, offset) {
|
||||
var i = offset || 0;
|
||||
var bth = byteToHex;
|
||||
// join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
|
||||
return ([
|
||||
bth[buf[i++]], bth[buf[i++]],
|
||||
bth[buf[i++]], bth[buf[i++]], '-',
|
||||
bth[buf[i++]], bth[buf[i++]], '-',
|
||||
bth[buf[i++]], bth[buf[i++]], '-',
|
||||
bth[buf[i++]], bth[buf[i++]], '-',
|
||||
bth[buf[i++]], bth[buf[i++]],
|
||||
bth[buf[i++]], bth[buf[i++]],
|
||||
bth[buf[i++]], bth[buf[i++]]
|
||||
]).join('');
|
||||
}
|
||||
|
||||
module.exports = bytesToUuid;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1694:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
// Unique ID creation requires a high quality random # generator. In node.js
|
||||
// this is pretty straight-forward - we use the crypto API.
|
||||
|
||||
var crypto = __nccwpck_require__(6982);
|
||||
|
||||
module.exports = function nodeRNG() {
|
||||
return crypto.randomBytes(16);
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9021:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
var rng = __nccwpck_require__(1694);
|
||||
var bytesToUuid = __nccwpck_require__(8682);
|
||||
|
||||
function v4(options, buf, offset) {
|
||||
var i = buf && offset || 0;
|
||||
|
||||
if (typeof(options) == 'string') {
|
||||
buf = options === 'binary' ? new Array(16) : null;
|
||||
options = null;
|
||||
}
|
||||
options = options || {};
|
||||
|
||||
var rnds = options.random || (options.rng || rng)();
|
||||
|
||||
// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
||||
rnds[6] = (rnds[6] & 0x0f) | 0x40;
|
||||
rnds[8] = (rnds[8] & 0x3f) | 0x80;
|
||||
|
||||
// Copy bytes to buffer, if provided
|
||||
if (buf) {
|
||||
for (var ii = 0; ii < 16; ++ii) {
|
||||
buf[i + ii] = rnds[ii];
|
||||
}
|
||||
}
|
||||
|
||||
return buf || bytesToUuid(rnds);
|
||||
}
|
||||
|
||||
module.exports = v4;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8264:
|
||||
/***/ ((module) => {
|
||||
|
||||
// Returns a wrapper function that returns a wrapped callback
|
||||
// The wrapper function should do some stuff, and return a
|
||||
// presumably different callback function.
|
||||
// This makes sure that own properties are retained, so that
|
||||
// decorations and such are not lost along the way.
|
||||
module.exports = wrappy
|
||||
function wrappy (fn, cb) {
|
||||
if (fn && cb) return wrappy(fn)(cb)
|
||||
|
||||
if (typeof fn !== 'function')
|
||||
throw new TypeError('need wrapper function')
|
||||
|
||||
Object.keys(fn).forEach(function (k) {
|
||||
wrapper[k] = fn[k]
|
||||
})
|
||||
|
||||
return wrapper
|
||||
|
||||
function wrapper() {
|
||||
var args = new Array(arguments.length)
|
||||
for (var i = 0; i < args.length; i++) {
|
||||
args[i] = arguments[i]
|
||||
}
|
||||
var ret = fn.apply(this, args)
|
||||
var cb = args[args.length-1]
|
||||
if (typeof ret === 'function' && ret !== cb) {
|
||||
Object.keys(cb).forEach(function (k) {
|
||||
ret[k] = cb[k]
|
||||
})
|
||||
}
|
||||
return ret
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2764:
|
||||
@@ -32368,6 +28196,397 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.KNOWN_CHECKSUMS = void 0;
|
||||
// AUTOGENERATED_DO_NOT_EDIT
|
||||
exports.KNOWN_CHECKSUMS = {
|
||||
"aarch64-apple-darwin-0.5.29": "c89e96bde40402cc4db2f59bcb886882ab69e557235279283a2db9dea61135c3",
|
||||
"aarch64-pc-windows-msvc-0.5.29": "172509e9824b925082612f19ab0e030e08108033d7e5c10e67ede69b3bf290d8",
|
||||
"aarch64-unknown-linux-gnu-0.5.29": "d1f716e8362d7da654a154b8331054a987c1fc16562bd719190a42458e945785",
|
||||
"aarch64-unknown-linux-musl-0.5.29": "3f2d03e62b951a3e46e9c1cfae3091235c05ff274c7163162b8726fb56133219",
|
||||
"arm-unknown-linux-musleabihf-0.5.29": "5ee7d5e95f93434845c1e14740c5e957f8747b751af054996f45a9095426a496",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.29": "98b88f2bc2905241ff460529a9d24cdaa70e8b31c573ba07240eb4a163e7fa3d",
|
||||
"armv7-unknown-linux-musleabihf-0.5.29": "95f148fb44c71f817d0f9c7e14591f1364c7da62a3cb9d353a0e45b4332031d3",
|
||||
"i686-pc-windows-msvc-0.5.29": "e35c4bba6af151e3a952629c7054b0f6d901c83aa7a3a21aedc3880424790294",
|
||||
"i686-unknown-linux-gnu-0.5.29": "9e81a4f621500d161ae810a7f68a25a8bfc141d172267a36c19cf491c5bf8fa7",
|
||||
"i686-unknown-linux-musl-0.5.29": "07b4f43a4c561120cd5951c5aa49ad0aa2a1c1ebce870f533f06fa0e0a8ece4f",
|
||||
"powerpc64-unknown-linux-gnu-0.5.29": "0eae3ece0811815cbed9619995486a2d4ba4df47abe3f7fcc27153eff9c5a655",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.29": "0e38436e4068eec23498f88a5c1b721411986e6a983f243680a60b716b7c301c",
|
||||
"s390x-unknown-linux-gnu-0.5.29": "6a42886dd10c6437a1a56982cd0c116d063f05483aa7db1cc0343f705ef96f91",
|
||||
"x86_64-apple-darwin-0.5.29": "2f13ef5a82b91ba137fd6441f478c406a0a8b0df41e9573d1e61551a1de5a3a2",
|
||||
"x86_64-pc-windows-msvc-0.5.29": "2453b17df889822a5b8dcd3467dd6b75a410d61f5e6504362e3852fb3175c19c",
|
||||
"x86_64-unknown-linux-gnu-0.5.29": "46d3fcf04d64be42bded914d648657cd62d968172604e3aaf8386142c09d2317",
|
||||
"x86_64-unknown-linux-musl-0.5.29": "bb06a385a918b7b8d927ef08e283843b66005dfccf0a940bfd0882f22cbc1a7f",
|
||||
"aarch64-apple-darwin-0.5.28": "57cbf655a5bc5c1ffa7315c0b25ff342f44a919fa099311c0d994914011b421e",
|
||||
"aarch64-pc-windows-msvc-0.5.28": "76bb4fe97c78f5de294614cb36294a3204e57117d8ce2f826bf1b8fd28d770ef",
|
||||
"aarch64-unknown-linux-gnu-0.5.28": "fe3c481940c5542d034a863239f23d64ee45abcd636c480c1ea0f34469a66c86",
|
||||
"aarch64-unknown-linux-musl-0.5.28": "d2f622ffbb129c9368a147672e79f9b7c8e33c4ac0bbba6510c7e92d699d7fb3",
|
||||
"arm-unknown-linux-musleabihf-0.5.28": "0bf8b33107e58d15065bce5fd29d24de7b4401ddcaf6791840568876f1247f46",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.28": "6a3ceb156b6ced721792ffa1d9d4fd35a28167960cd5b1847bfd39fd1d2d59bf",
|
||||
"armv7-unknown-linux-musleabihf-0.5.28": "29dec32b29a5f4736f0062ff47aade2c922e08922241783e7af4aba0639658cc",
|
||||
"i686-pc-windows-msvc-0.5.28": "7ff2b7bde705cdca7f6fe6aec9e7047b47e09bf97be9c5ff597ff6e19a369544",
|
||||
"i686-unknown-linux-gnu-0.5.28": "27ff0f4d1ce96b5abe5113e3033e48a16d588c2e855439f0d8fbc59b75c041de",
|
||||
"i686-unknown-linux-musl-0.5.28": "0f72a1c8321d05dbfc3382d28e7bb9f83079198fd5b16c25560b0f66b6a6a8c7",
|
||||
"powerpc64-unknown-linux-gnu-0.5.28": "caf37897a6a3734a706f2d5ffb2c7953f37e903b6a34d02300fbf96f77a44b82",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.28": "74bc6aacea26c67305910bcbe4b6178b96fefe643b2002567cc094ad2c209ef1",
|
||||
"s390x-unknown-linux-gnu-0.5.28": "b3f49b0268ab971ff7f39ca924fb8291ce3d8ffe8f6c0d7ff16bc12055cd1e85",
|
||||
"x86_64-apple-darwin-0.5.28": "36484907ec1988f1553bdc7de659d8bc0b46b8eaca09b0f67359b116caac170d",
|
||||
"x86_64-pc-windows-msvc-0.5.28": "31053741c49624726d5ce8cb1ab8f5fc267ed0333ab8257450bd71a7c2a68d05",
|
||||
"x86_64-unknown-linux-gnu-0.5.28": "1f2a654627e02fed5f8b883592439b842e74d98091bbafe9e71c7101f4f97d74",
|
||||
"x86_64-unknown-linux-musl-0.5.28": "9ca7e51c8ea414aa1a275d12956676da1064e0a1cbf8d5b39b15c45d923a09c3",
|
||||
"aarch64-apple-darwin-0.5.27": "efe367393fc02b8e8609c38bce78d743261d7fc885e5eabfbd08ce881816aea3",
|
||||
"aarch64-pc-windows-msvc-0.5.27": "5b652867d6dc42946953d786aa1e466e9fbcd877a48d4c18f56c26801abb486b",
|
||||
"aarch64-unknown-linux-gnu-0.5.27": "7b8175e7370056efa6e8f4c8fec854f3a026c0ecda628694f5200fdf666167fa",
|
||||
"aarch64-unknown-linux-musl-0.5.27": "5df998660ed17555679c7a6b43b25f1c4d76d76b6062d31491663960804060d5",
|
||||
"arm-unknown-linux-musleabihf-0.5.27": "d80200d7c0c3ef32b2e938872726de29128a3b9bc080038fb3fc6f2eedbf1f34",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.27": "3fa94262b12268c7b9b91ed0ea739752e0c63ef2105396122faa93cd5bbdae8c",
|
||||
"armv7-unknown-linux-musleabihf-0.5.27": "86e688ced31f6322d6b4dc544453ba02021685e553995c2c72eb41f82fd2662b",
|
||||
"i686-pc-windows-msvc-0.5.27": "0158534490ba4b4cf64716116d73220f019688a22a1eba78535d9d95e918ec71",
|
||||
"i686-unknown-linux-gnu-0.5.27": "66b6128cd9b745a312bc81d6d3fedf02850acdf96dfca53ab5a3d11ddb1fe083",
|
||||
"i686-unknown-linux-musl-0.5.27": "8e95b813f804e8670aed79608778582b3f64dcf468ec185e49f5188505c3edf6",
|
||||
"powerpc64-unknown-linux-gnu-0.5.27": "1a129dbc27566be04ce68f5bc10a626954abe7651b35ce73d8a24b2e7a89ffe1",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.27": "b63051bdd5392fa6a3d8d98c661b395c62a2a05a0e96ae877047c4c7be1b92ff",
|
||||
"s390x-unknown-linux-gnu-0.5.27": "07377ed611dbf1548f06b65ad6d2bb84f3ff1ccce936ba972d7b7f5492e47d30",
|
||||
"x86_64-apple-darwin-0.5.27": "a75c9d77c90c4ac367690134cd471108c09b95226c62cd6422ca0db8bbea2197",
|
||||
"x86_64-pc-windows-msvc-0.5.27": "195d43f6578c33838523bf4f3c80d690914496592b2946bda8598b8500e744f6",
|
||||
"x86_64-unknown-linux-gnu-0.5.27": "27261ddf7654d4f34ed4600348415e0c30de2a307cc6eff6a671a849263b2dcf",
|
||||
"x86_64-unknown-linux-musl-0.5.27": "94cb0a392e5cfb82068476462e6c06e19745ea9e74fc828187f6809d97b529b4",
|
||||
"aarch64-apple-darwin-0.5.26": "3b503c630dc65b991502e1d9fe0ffc410ae50c503e8df6d4900f23b9ad436366",
|
||||
"aarch64-pc-windows-msvc-0.5.26": "3319e6f4506fdb2e3d8791bae05995f0aeda947ee87e373c17a699fb39165e3d",
|
||||
"aarch64-unknown-linux-gnu-0.5.26": "6ce061c2f14bf2f0b12c2b7a0f80c65408bf2dcee9743c4fc4ec1f30b85ecb98",
|
||||
"aarch64-unknown-linux-musl-0.5.26": "42ce9a728ecd054268ba5a621002385e79ea10ba4546a8a6a695f430902029f5",
|
||||
"arm-unknown-linux-musleabihf-0.5.26": "87b8a2af3b9784a6b7ab5ddb2fff0c505bbccaae0a457f6b228257ed23adfed0",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.26": "c311f89e6d23a9bd7d2f62e225d6b54a8fc85889f3519219f3308ea7eb687871",
|
||||
"armv7-unknown-linux-musleabihf-0.5.26": "0e4d68538847637c376f51d962796e9336c9ccbcccdfad547e3458cd7cf1a70e",
|
||||
"i686-pc-windows-msvc-0.5.26": "ecf2858d13ba0cbe1b82cc10e9b0538309ee53a7c18f71e8afcc56b1e5e909e0",
|
||||
"i686-unknown-linux-gnu-0.5.26": "833199e00a8187468c49dd315e041dbaf30e6e6340e65dd3df0c5aec8605c3d8",
|
||||
"i686-unknown-linux-musl-0.5.26": "72d4ed889ceac3cf5f7233a7e38eb2dd70a95e36dab0ce9ebed1f6a9a68f19be",
|
||||
"powerpc64-unknown-linux-gnu-0.5.26": "7838adddce0d17aa933cbe843ca673e44eb89de508175cc707473540de6388cd",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.26": "fe1d770840110b59554228b12382881abefc1ab2d2ca009adc1502179422bc0d",
|
||||
"s390x-unknown-linux-gnu-0.5.26": "086c8d03ee4aff702a32d58086accf971ce58a2f000323414935e0f50e816c04",
|
||||
"x86_64-apple-darwin-0.5.26": "7cf20dd534545a74290a244d3e8244d1010ba38d2d5950f504b6c93fab169f57",
|
||||
"x86_64-pc-windows-msvc-0.5.26": "a938eebb7433eb7097ae1cf3d53f9bb083edd4c746045f284a1c8904af1a1a11",
|
||||
"x86_64-unknown-linux-gnu-0.5.26": "555f17717e7663109104b62976e9da6cfda1ad84213407b437fd9c8f573cc0ef",
|
||||
"x86_64-unknown-linux-musl-0.5.26": "6858d7951b9ae20c3955b2b0addbf2f184ab68175d1c659d11e0a14f1472fb81",
|
||||
"aarch64-apple-darwin-0.5.25": "3c29e941d691614bc4eba95629c8f8dee106e5d44d70a03efed66a544588caa1",
|
||||
"aarch64-pc-windows-msvc-0.5.25": "e3c4d014dc8aa14a36fab9316d9f435a93900893d7164472452c39037112b829",
|
||||
"aarch64-unknown-linux-gnu-0.5.25": "402342f9a5ff1544b41af368794ab436965a1a03109b43bd0dd552ce6af8256d",
|
||||
"aarch64-unknown-linux-musl-0.5.25": "6648d924f01ce01e4968e377c1f32a53592b55485a859f97421619d3a7dd7d86",
|
||||
"arm-unknown-linux-musleabihf-0.5.25": "45ed53c20c5852d9dba97deeceaa1cb8fdccdaec69952c0940329e27b3830e83",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.25": "54bd4af03e93acdc7ac6546f62923a782fc871a20850356fa8870dd256a6c2e8",
|
||||
"armv7-unknown-linux-musleabihf-0.5.25": "f2adbe37fbe57540c39396d6d47878c86027eae91b442d609c2e97da2398dff5",
|
||||
"i686-pc-windows-msvc-0.5.25": "7f55c0e6ab90218d2646c3915b111378fc0ffd61308893d495ddc8e49f16ed36",
|
||||
"i686-unknown-linux-gnu-0.5.25": "8d71e66e4efcc1097e2beedd3572867eb7ea9b5cdac286c115a5118fcf5d2219",
|
||||
"i686-unknown-linux-musl-0.5.25": "406630b6b20bcef76069e08c5eaaa5420e190ae0036f4a85e2a14f3d7c610be6",
|
||||
"powerpc64-unknown-linux-gnu-0.5.25": "202aa6bc9e541bc322ad743f6afe334ef31dcb5c568f24cd5c963fa535538f20",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.25": "7956759f6543ca7ed4e51ab7d68a2dca6d9e73d12a19afbe40d275f2384b8535",
|
||||
"s390x-unknown-linux-gnu-0.5.25": "b17eed40b701252cf6e02c64533bc741dfa6e05340da64cd9feef36afcfed897",
|
||||
"x86_64-apple-darwin-0.5.25": "f76e3fb259ec74b2e003ed7e47d1f06a431686381665fc03e2f35e2ee72e6a57",
|
||||
"x86_64-pc-windows-msvc-0.5.25": "51ea202a472e552c04e6a13ac7eece0d56748750b9726e4b94f4f3dc96b5f77f",
|
||||
"x86_64-unknown-linux-gnu-0.5.25": "fe04914881e2e01fe62001b223344a7c43af734faba447d4764fe92d3baf794e",
|
||||
"x86_64-unknown-linux-musl-0.5.25": "aeade1b8fa1fa3c021d30e8f1932fd2c24dca62217c7d6d9da740dde75b7e52f",
|
||||
"aarch64-apple-darwin-0.5.24": "8016d47f4cce265b3d122ad8cbbf701713caf803fa7d3ef69d8a1fd6793d939a",
|
||||
"aarch64-unknown-linux-gnu-0.5.24": "3cf910468c37c709580d83d19b7b55352cfe05d6e1cc038718698410b6b8c6f0",
|
||||
"aarch64-unknown-linux-musl-0.5.24": "aaae0b6fb17b3cafa9869292f4e03104b26fd0de4a36182a6edec44c1665f6a5",
|
||||
"arm-unknown-linux-musleabihf-0.5.24": "a11698237ff36b72d119467805c8630d5bfdf6132fe98d01f7c44451c783d450",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.24": "e44001c955b7a2c3e53006a262bf74189f75bc2e6d63ac2e71638fb8eee20501",
|
||||
"armv7-unknown-linux-musleabihf-0.5.24": "8ca5c602c5a31a6c497abf10dd96694fb2bb9df362fdc604d156fa5044786379",
|
||||
"i686-pc-windows-msvc-0.5.24": "d2550254b96753214f9098a03091fa398d948c971738d50ff36113a3b27e391e",
|
||||
"i686-unknown-linux-gnu-0.5.24": "7b335c5736fa50aa3092f4212201ea7a65a15c6f40282a315861ec36bf64a41e",
|
||||
"i686-unknown-linux-musl-0.5.24": "6b7a8df65d15ad782ca17d82f79b4d7a235e85bf50411e3f7549878909b2a0bb",
|
||||
"powerpc64-unknown-linux-gnu-0.5.24": "22c2fb1971cd4ea77d78fc2c7c5574f5e4646525473d08d1b16a4389cda560a8",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.24": "1e3cfaa0890d42f448bed7d6c7b66240abfe43130c6923b1d5fb7b0ebc302b94",
|
||||
"s390x-unknown-linux-gnu-0.5.24": "a3c8e92deb720dcbf7414d8d0bb91934016d0ace23c3dd452f49a1b92490e0bf",
|
||||
"x86_64-apple-darwin-0.5.24": "dcee10ef84309cf0de4153cb7913b0b506eae0a2e6407faa0f1717f015c35f0c",
|
||||
"x86_64-pc-windows-msvc-0.5.24": "bd3fedeee0da543d7ac0a530328b3880bc83c1b332b3996f0da691f83423e813",
|
||||
"x86_64-unknown-linux-gnu-0.5.24": "a0eb614f7fc38a6e14ef1c4819f1f187591db8e0d3c4218dae38b1bd663a00e2",
|
||||
"x86_64-unknown-linux-musl-0.5.24": "5a5a1231a3ecb4f01aab9c839a49764d9ea1ae8e5e467a0aa2a2754c94f9f81c",
|
||||
"aarch64-apple-darwin-0.5.23": "bedfc709b281ab4c6ff1c84c0ad7e4525bf2669f56f009f6fb308657bebe165b",
|
||||
"aarch64-unknown-linux-gnu-0.5.23": "0f864a958e88693b8102dd7bc0e543a6b6f56e514ba8798235e54fb95c4856a4",
|
||||
"aarch64-unknown-linux-musl-0.5.23": "bbfafc3623267d25f63713c934eb57bf521b8b14b94d18412c697d69dbd68251",
|
||||
"arm-unknown-linux-musleabihf-0.5.23": "3031d44ae02a6189182956de345c0e22c40b6a8f19bbe67ed7016df228da5cd6",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.23": "48429f7f01e9bd6bfb80c2e97db878c05d7d1be1d10de432a33650c65c9d6172",
|
||||
"armv7-unknown-linux-musleabihf-0.5.23": "baa22c4e66f80eb1a900437b58966f529af70c89739b690096fa665d6324f540",
|
||||
"i686-pc-windows-msvc-0.5.23": "c9d6f5806666921a31f0a3ac88f9848884c67cd7348b0c0dd420c92ae40371ff",
|
||||
"i686-unknown-linux-gnu-0.5.23": "91bf1765b77010318d9666601d6ec41108f561a8be5d8a3a0b41c4fbd38c4bb1",
|
||||
"i686-unknown-linux-musl-0.5.23": "79093074197e76be9c7699ad361cf6fccc95dd8cea2b10ac2875acc658be55b3",
|
||||
"powerpc64-unknown-linux-gnu-0.5.23": "acce824961d78934ec9735bd9dac2a8b7f16e9638c6d909671690c43283bd644",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.23": "678773a17cccfa5d8c8e7043e4ebbbaf48b3e1aa482dd334c36e06ba8ebe993e",
|
||||
"s390x-unknown-linux-gnu-0.5.23": "34700493c47fcf668ac175ab66c8fb6bdc058dfc56a3f868d34b6e5a586957dd",
|
||||
"x86_64-apple-darwin-0.5.23": "40525eceff3a95051e0139839140ec3597a45221cca5000b8290d20d771294f5",
|
||||
"x86_64-pc-windows-msvc-0.5.23": "140be2cf57e37c7c86be4840d17b71fbc7daa21e2f46ed60830b4a39ef527663",
|
||||
"x86_64-unknown-linux-gnu-0.5.23": "6c45b9a95328b5c250bab14a17af574f7fa284fac0830d6a827e5f6f0b0e6732",
|
||||
"x86_64-unknown-linux-musl-0.5.23": "d656e3c274b43e8d9253d79ce3bd20d6bf1bd3fdb13dfd13e5e07d7aa528906d",
|
||||
"aarch64-apple-darwin-0.5.22": "95496f513653e7246589b2334a04e2a001f6436919af30d68180ce480fd3971a",
|
||||
"aarch64-unknown-linux-gnu-0.5.22": "0ff503ff9d473d25d0460a375ff6ec3ed186ee6be2ffedc67642b3c7d77b6299",
|
||||
"aarch64-unknown-linux-musl-0.5.22": "43593ffde18d83f9453a69db70f5dbc61726beefc3bbdb80d1db61612eb26a41",
|
||||
"arm-unknown-linux-musleabihf-0.5.22": "78829476fad51a9361aefbb8ee5ed7aa19b981a7d6384e6033115277b761fe94",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.22": "2c6b4876c6aa6e642466fb389cc106f5f9cb4ebb9e389bf2c9e883012d3d127b",
|
||||
"armv7-unknown-linux-musleabihf-0.5.22": "fc62722c44cd4ccae7e713452bc5d81907852da6d50f3123c4878e510fba52f7",
|
||||
"i686-pc-windows-msvc-0.5.22": "4c4e029f05cd94b09cb3c3ac9d2dd4adeb2a1e54d13a09ba79c244d95d960ba7",
|
||||
"i686-unknown-linux-gnu-0.5.22": "d17ee5a2ea99875781c21ba2acc3785d86ebf27cc76011fa59ae52f21d349a49",
|
||||
"i686-unknown-linux-musl-0.5.22": "092387e1a32a40cee94165d96072e219b299b8d76a25a764659ccb178855c3d8",
|
||||
"powerpc64-unknown-linux-gnu-0.5.22": "bd8c2b70f461d6cc189abaaaa0d4e75f6b3044eddaef0f790920436f2d7cb772",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.22": "ecd4c18c0a889b7ceaca906340f89ef815b5a7e37fbfb318ec6131f23627b794",
|
||||
"s390x-unknown-linux-gnu-0.5.22": "5c092fb46def4c7a45094905990acfab34cf4ad3af60e6accddbfa81b1409c03",
|
||||
"x86_64-apple-darwin-0.5.22": "5f636c75a976389ec0a4b03b4a7a78b5634daf1915703079cbc514a26c691e18",
|
||||
"x86_64-pc-windows-msvc-0.5.22": "bbe5dc1b2777f170d53d3d7856376eda9229a2c4f74332336e0ef0603325cbe5",
|
||||
"x86_64-unknown-linux-gnu-0.5.22": "d15f8595f080817f55f207bf9a67cbce6423e5b1fbfeba58c7e67e86bcc7be41",
|
||||
"x86_64-unknown-linux-musl-0.5.22": "fba667f90b0b89b4171127ebe7b29961250ddbcd9f86116eb195c46afe0857c8",
|
||||
"aarch64-apple-darwin-0.5.21": "74f501d91b4db0b767d5d621086d3e2e8acc3f5356cf5527de80e97bb312a626",
|
||||
"aarch64-unknown-linux-gnu-0.5.21": "c4cc2ec78a294378b867ebd08c5842d3ce71074c2818dc7f641422fb3bf4b2d2",
|
||||
"aarch64-unknown-linux-musl-0.5.21": "26152b092f6ace9bec1fe91b39fe11f55428ce5fba87f5de0ec6b16e2c65928f",
|
||||
"arm-unknown-linux-musleabihf-0.5.21": "2a90a8976a7efbe5eef613b84285f2f6b0cda7e9547a2e548bf6f253cc06dbb1",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.21": "71b0e840af1e50368d60bdb6a4bb22483b0462e7238e7e08fb624466c4b22c65",
|
||||
"armv7-unknown-linux-musleabihf-0.5.21": "46a3be0330ebfbeb4c521a523545334ef3bd38ac0b4acab19734c0d50399ac6f",
|
||||
"i686-pc-windows-msvc-0.5.21": "a0583cd71a410ce8329cd0951a72966a1219c1a7c12c437c3072779ce7dfe893",
|
||||
"i686-unknown-linux-gnu-0.5.21": "5d46307d7883f5ec5416c589b65bfedd17544accbe54eabd13d27417bcdf435e",
|
||||
"i686-unknown-linux-musl-0.5.21": "27d220b8e8effd1dc566e6ae7f90e7a074af07f4e61a0406f2c8c9883ef82e33",
|
||||
"powerpc64-unknown-linux-gnu-0.5.21": "ca744fee2634dfe203683fa809e4b5998564ebf2b8e7f0c329c1229edbe1ea8a",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.21": "1c08d342b4644158eee7723a75f59b3f388ceb4a91106d284d343acfb906bb77",
|
||||
"s390x-unknown-linux-gnu-0.5.21": "892c78a989164f1e6e97a8e07d995bf1ab6c5374ee85d4b47c47c6706bb2e8fe",
|
||||
"x86_64-apple-darwin-0.5.21": "66a0f5ea3aee2d497450138ae1e99f734eed7457af5e839a41ef219d51e90e17",
|
||||
"x86_64-pc-windows-msvc-0.5.21": "9968e8ef4b567d5690ccb9ac6e8338eb56cb964c57430a2843dd21f88ec5b81a",
|
||||
"x86_64-unknown-linux-gnu-0.5.21": "e108c300eafae22ad8e6d94519605530f18f8762eb58d2b98a617edfb5d088fc",
|
||||
"x86_64-unknown-linux-musl-0.5.21": "71347d2fdda9e3e7105ecd3a8566e3b607da9fddf23ac83adafcf6451ea9139d",
|
||||
"aarch64-apple-darwin-0.5.20": "d7f0c219808073f8ae8c6a991e85e5c7539b4e539b014a4ca5b3286911f06fd5",
|
||||
"aarch64-unknown-linux-gnu-0.5.20": "3d2281312d047288ecb021f4c761cd351f993514e3ea7f369354701b3a44c756",
|
||||
"aarch64-unknown-linux-musl-0.5.20": "162b19dbe6d82fd7846dd6ff25a7a6250ce4ee5d0d55e2e245625382984072b0",
|
||||
"arm-unknown-linux-musleabihf-0.5.20": "19a06cf913bfb3d8ecb0e1c0368f98b03e9ec5a35ea3edc03a4e0af04f4f95ad",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.20": "769c07de286d607d0e13e9e83051a5ac0cfe1c34695ece976934345e09e97f4b",
|
||||
"armv7-unknown-linux-musleabihf-0.5.20": "1330f3e38f6bdae2d2e2d458957e5531cf729989db942832aede12c5e5d5a1ab",
|
||||
"i686-pc-windows-msvc-0.5.20": "389182a593b6f761dffb7c82c3eee3f8e4f4848fbf26fa1e6ab95ac3fcad687b",
|
||||
"i686-unknown-linux-gnu-0.5.20": "88a1e7b7c08682fb379f540cfab31c38c31d5a7a3f227e5446dd9000519c7195",
|
||||
"i686-unknown-linux-musl-0.5.20": "fb105fc9c3bbb4ad44ac5c0066cb9f48912f55a97f65dabaa48367198c0f87ea",
|
||||
"powerpc64-unknown-linux-gnu-0.5.20": "a42c4bf4e397ed0d85bc5ed8d589f1e3dbd6f24fdbb16469ffa20b63977894aa",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.20": "bf52e43047ad4e7f178b62d2a175f0ee272f014a520726fe293960d03bfa122d",
|
||||
"s390x-unknown-linux-gnu-0.5.20": "69c198eca4c81299a7a323df729e03ce6198d84fa26e9d98ea1e02436933469f",
|
||||
"x86_64-apple-darwin-0.5.20": "22bb373a2bb0f15e441819a054e68798534d536b1b1943fdb813d6b53ffe48a4",
|
||||
"x86_64-pc-windows-msvc-0.5.20": "dede2f71e7a15137ca17e3a1106e3797a650a2e2d607658f31ad4e986de3d67d",
|
||||
"x86_64-unknown-linux-gnu-0.5.20": "8fdbfca767917f957e4541747cbf7b23b45c211109dbba97b49962fa3547aab4",
|
||||
"x86_64-unknown-linux-musl-0.5.20": "5326a6d14d4668dafee4ecf36f7664103a25bf0918dfe162c8c49dab017b74ed",
|
||||
"aarch64-apple-darwin-0.5.19": "f223bb08d04257dbba421736f906d91b040f654ab49963afc2f30f7949ae7b79",
|
||||
"aarch64-unknown-linux-gnu-0.5.19": "2da1baa85958e5ee36f2ac85b0c56cb99c0c3140f6ff18c60825485b8193eedb",
|
||||
"aarch64-unknown-linux-musl-0.5.19": "ff5b42337bd94f41db157f73b39d41586be8c76d8824550b0f6d5e808e5f0356",
|
||||
"arm-unknown-linux-musleabihf-0.5.19": "84ae72130383340e14df47656f1974eb76a28ab7ed8b5c479bdbc8b907ad91e7",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.19": "bec22bc7e1d584749f26bc4d84116faf925f9db484fe0afb58f6a2aa0c04707c",
|
||||
"armv7-unknown-linux-musleabihf-0.5.19": "79c575e9dcd58cf88e8b2fd37242ac923d04c31a62bed54db78219e35257a262",
|
||||
"i686-pc-windows-msvc-0.5.19": "7f0439c0977baf5573d0c31820887fb0c478d2ef29fdad4256bf0a0b536a387f",
|
||||
"i686-unknown-linux-gnu-0.5.19": "0b9a88787f80bda623987a314875c7cccfed599b5d2803565734c292e2cd33ef",
|
||||
"i686-unknown-linux-musl-0.5.19": "e9a89334fadda0905da42017db76c63da9b1ef02ef9595acea322d1e73f1fea0",
|
||||
"powerpc64-unknown-linux-gnu-0.5.19": "d891e5a5849e0220a49a31396371303d7f9de6c86b34f306c129a87dc6debfac",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.19": "efeb6ce7adff1ef45ca2e3351011a9a423add39f08676f5f4b85fdf2244fb8cd",
|
||||
"s390x-unknown-linux-gnu-0.5.19": "a37620a3ce3d351adc57ce70249ee0bdce2fbd336886db6b4de4d31447644acb",
|
||||
"x86_64-apple-darwin-0.5.19": "9af5050495e9fc114cabcb4c2dbaded65569ccc0583ab3f62a6d9977984b65fa",
|
||||
"x86_64-pc-windows-msvc-0.5.19": "ada2b3d704a78e118f6c8e215468e8f50eef440211938970cdef79dfafe9ddc5",
|
||||
"x86_64-unknown-linux-gnu-0.5.19": "ace8c180865bb87fb3d7004a8cafde78270676d87ab5531615f136cc860db78d",
|
||||
"x86_64-unknown-linux-musl-0.5.19": "eb9d0e1db24c6abbfec3e589f55efd2ef9ce9313f89bf1dd934635d194762b57",
|
||||
"aarch64-apple-darwin-0.5.18": "13bcde0a15c50af976980b484f140e10969df67488542856a2152534f255c675",
|
||||
"aarch64-unknown-linux-gnu-0.5.18": "a511f609236b9bfc9dedfcb9867ef1d0f1dc23cc2012f9e4e38e0c184657fd31",
|
||||
"aarch64-unknown-linux-musl-0.5.18": "5b1bd1471f4d8298f11da5f025bdbcc4c8057a24c8b95573003c0320b6fa99a8",
|
||||
"arm-unknown-linux-musleabihf-0.5.18": "4262e0a6c14998c8637f1ba018980464a5e6aeb5f35aaa0149643c99a32631b3",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.18": "29d4f9b0c020f55de11c9bd24cf8360771c1893275dd9e3b978f0fe4421bfb4f",
|
||||
"armv7-unknown-linux-musleabihf-0.5.18": "95049e75c3da2113142da0b9e60451c43fac44702590f4e5abb6fc7cde744429",
|
||||
"i686-pc-windows-msvc-0.5.18": "06729cf6685f0271e91bcb5cf748d18a5c5d793fa9e0a611d0c7541a0aed574a",
|
||||
"i686-unknown-linux-gnu-0.5.18": "d92146688e5b1a7ddb79e8f91d91c8174d44a5945b06797cd17bbf187f13da64",
|
||||
"i686-unknown-linux-musl-0.5.18": "1ec37579d0dec4739c707cb5096c52dea9319196dfd63ea6e121e16074892cac",
|
||||
"powerpc64-unknown-linux-gnu-0.5.18": "e6cf16040aabb5b1940e88841dcc90967aa592c8c7492699449ca050713cb567",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.18": "3efccbb5820be67b270333f9ca87d2d598e38648a6ea7a3fb9970a5a424be11f",
|
||||
"s390x-unknown-linux-gnu-0.5.18": "f7903ade2a7747041d5d10f043e01e0a6c9c881b6fe7cb1bd54b9efac8ed7620",
|
||||
"x86_64-apple-darwin-0.5.18": "e77b6b35169d2e0a3b43d43690f813136c94e24e4eef72d560e7901e42621d18",
|
||||
"x86_64-pc-windows-msvc-0.5.18": "77f414173d0970c8977a614585fc013290659b0d74ae22be24559fde915832de",
|
||||
"x86_64-unknown-linux-gnu-0.5.18": "1dbaeffc5cfac769f99700c0fc8c4ef4494a339720c6bf8b79367b1acd701b46",
|
||||
"x86_64-unknown-linux-musl-0.5.18": "d4d3bf7dda0fd66a34ee99407506b753213bbe6e4076c0c38c4b645d00406979",
|
||||
"aarch64-apple-darwin-0.5.17": "9e041a7c0bbd8a653b2272e03ba5de5b726dcbbccc3ffcc526dc7de9f14ad334",
|
||||
"aarch64-unknown-linux-gnu-0.5.17": "22164a4a86272ab2a4af2b01773a7e636f643426831f4dd9c71b2760c592a57b",
|
||||
"aarch64-unknown-linux-musl-0.5.17": "86021b10ad06f97a82d605ae7b7e580cd17d29b2877b65e31ef63db50514d2b0",
|
||||
"arm-unknown-linux-musleabihf-0.5.17": "b68e96d7abb87180a44f9b315db2d3f88ad59325b10451b561e0620edd71d476",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.17": "125662419ae6b2332d2bab6764ba8ef9396fd0cc9487a5fbbcf41bdcf379e697",
|
||||
"armv7-unknown-linux-musleabihf-0.5.17": "f8d2dcee69ad15858a827265db527184bdbd07b60a24e04d2d9787abf781cc0b",
|
||||
"i686-pc-windows-msvc-0.5.17": "1aecdd843d15a0149cf83d07c3b36d184578a6a07fcf2730ef9986393259e960",
|
||||
"i686-unknown-linux-gnu-0.5.17": "4165443b8757cdcd615ccfe721aac5137c7d4165ae9dc2640975c1035018f09c",
|
||||
"i686-unknown-linux-musl-0.5.17": "0242308d2ffe1de6538d79a13aae4cee8a48bfc76e71d559836a2f43808393c0",
|
||||
"powerpc64-unknown-linux-gnu-0.5.17": "a79bfc1c004339c1da253421b35471af383e724eaffe8ab332685b253402a7c1",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.17": "db2f384a7b9605b9ae03ca493f0c35174577a3b53d238861b11b9dc1c404cb16",
|
||||
"s390x-unknown-linux-gnu-0.5.17": "4312abce9f52dca597c4b4896e8f2f7575d50b2183af4c74412bc26eb6278d3f",
|
||||
"x86_64-apple-darwin-0.5.17": "f66f961bf0c6e2bbc3e45de4692cdebb126edd5af4e920dea91a3fedabc502ee",
|
||||
"x86_64-pc-windows-msvc-0.5.17": "00aed721abc4bb125d92b45733aa65a2254344bffed984d85cf0de6b164f5011",
|
||||
"x86_64-unknown-linux-gnu-0.5.17": "6121d9693b2013e970e495872c5a750ff0e471c2618821c2d4314666c0bd9ee7",
|
||||
"x86_64-unknown-linux-musl-0.5.17": "0aa0d03f80422a066396a54c7d9f7f78576a22827860273fd635f97e04f3e1a7",
|
||||
"aarch64-apple-darwin-0.5.16": "0b16039f469df078c1445f5b7f84d3c0342580c4592b5a4b604db2c86dc37c3e",
|
||||
"aarch64-unknown-linux-gnu-0.5.16": "59d28abe79037f835020ba834f01ac5c1f96c8556c6ff9a06a8fd5701048731c",
|
||||
"aarch64-unknown-linux-musl-0.5.16": "8913580d960e1d5a24316506b9925cb6aa4ab6547d88d7cab1aa5049825e1d4a",
|
||||
"arm-unknown-linux-musleabihf-0.5.16": "e97d623d641a3c807bcafef222544786813ed5176d0dbea8d0f6adc2deea88b7",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.16": "fe814f38a72c7f264e4cd8fdcb84519bf92a88f0e67d7a0a6a38dc18e938c0fc",
|
||||
"armv7-unknown-linux-musleabihf-0.5.16": "f72c8302fa59190a90ccb743d90d3efae71e78ea7c6b52c68b3e23b6c6fb3276",
|
||||
"i686-pc-windows-msvc-0.5.16": "fe24a7b1438152d8dcc7acedaad3b15362ef2e58d496611819fd8b99942dc2ed",
|
||||
"i686-unknown-linux-gnu-0.5.16": "d2ddc285d3962b45e05a59e62fb188d7bad3f969b45ff5256db0226efe44208b",
|
||||
"i686-unknown-linux-musl-0.5.16": "ac6b59b6b383a852ba5c22df777f9c3f39a85364a485bcc4203ca427417cb25b",
|
||||
"powerpc64-unknown-linux-gnu-0.5.16": "1ff9c39c6660548aa69934a25c8d92ffb11a7c9c1f39db9795e9f061ff34a8bd",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.16": "87c568a126d59d66b99ec087182f4cd9de336678dfb60c51da35d678160875d6",
|
||||
"s390x-unknown-linux-gnu-0.5.16": "23c8331689d99c6fb70646a41a9d8ef5211d4eefe25baebb08b6b6c7f126af6e",
|
||||
"x86_64-apple-darwin-0.5.16": "72732a379d2aff6585c6bfd52593042a470e752d6af685cc01e1ee06d817cddb",
|
||||
"x86_64-pc-windows-msvc-0.5.16": "3fe298d7b10b63e9cec6711d03853874735f1dd33f655ad3ee6677965807883f",
|
||||
"x86_64-unknown-linux-gnu-0.5.16": "a320393232ac29acfe75cd0d3fb943ee2a5cc3727d2c9d1bb14bb9eea1fc60c9",
|
||||
"x86_64-unknown-linux-musl-0.5.16": "82962a1ef9ca888c32933fe9022c4b946e9bf047ffb0084a614b8cf7a5306dbf",
|
||||
"aarch64-apple-darwin-0.5.15": "bb7409c4d7d503e929bcd31bf179ae6f555f5092d0d5dc38df37be9f29832859",
|
||||
"aarch64-unknown-linux-gnu-0.5.15": "02f69686d0e1fe9673bb449fc45e53e6bfb0f48c5d371b35c145828c4239f123",
|
||||
"aarch64-unknown-linux-musl-0.5.15": "78ac5d4c7b9773bb3f6867f452ed83dd2f38f26116d2369ff5b4ea02eb7519bd",
|
||||
"arm-unknown-linux-musleabihf-0.5.15": "f416a9350161feacc48a96f90a1a38244d70f3ba07fbf96010ed477ff69814ed",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.15": "182c316f44df157979e7430fb952eced1ad8020d1d8d810e88ce6985c9428615",
|
||||
"armv7-unknown-linux-musleabihf-0.5.15": "0b4400e8c22921355d5e69cf17cb0a44da93af09125e1dc636a69d2175a23898",
|
||||
"i686-pc-windows-msvc-0.5.15": "9092e142ce3a35f8c9f36058c3278f6b99718c02d8b904001ccc1cd918a0c798",
|
||||
"i686-unknown-linux-gnu-0.5.15": "d945431e618c2688ac62e640c16022c587a6f80677c64346280143d83939f93f",
|
||||
"i686-unknown-linux-musl-0.5.15": "6e1a968662a0952083e9a297ec067606621f93b55ccfbdd8ca475fd13b328d90",
|
||||
"powerpc64-unknown-linux-gnu-0.5.15": "58a6663e477645194c34dfac96b4c42ba6e7c4b5aa851c1e52276769b279b605",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.15": "c7281fa8fedd6332c594faa7e1dc1555960c7fb60d3e1b013309651b8d53377d",
|
||||
"s390x-unknown-linux-gnu-0.5.15": "590751ffaf36f3f01b66afcb7de844ed0f69aeb2b54595cf191a4e60ddfab11c",
|
||||
"x86_64-apple-darwin-0.5.15": "6a729cb237d895eebeb65363419f41b217dbcd745819bcef61098a5ddd583f08",
|
||||
"x86_64-pc-windows-msvc-0.5.15": "2c49a892f793b957b0add32aa21a64940caf4bc03319cf0bb3b27caeebb985f7",
|
||||
"x86_64-unknown-linux-gnu-0.5.15": "6c650324daafc07331c00b458872d50f56f160544015c8a499fd2e160b404ebb",
|
||||
"x86_64-unknown-linux-musl-0.5.15": "40d8564e954bbd18f2c5ba80978491c3a25ab49e067664daf525e34c38a370b8",
|
||||
"aarch64-apple-darwin-0.5.14": "d548dffc256014c4c8c693e148140a3a21bcc2bf066a35e1d5f0d24c91d32112",
|
||||
"aarch64-unknown-linux-gnu-0.5.14": "1c9cdb265b0c24ce2e74b7795a00842dc6d487c11ba49aa6c9ca1c784b82755a",
|
||||
"aarch64-unknown-linux-musl-0.5.14": "64c5321f5141db39e04209d170db34fcef5c8de3f561346dc0c1d132801c4f88",
|
||||
"arm-unknown-linux-musleabihf-0.5.14": "903f87c609479099c87c229429f2a25f451689d862ee19170f6d87ab656815a0",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.14": "c33a4caa441c770ca720d301059eeb6af5473ceb22b69adf08b99043c3e4a854",
|
||||
"armv7-unknown-linux-musleabihf-0.5.14": "c3b1bbe0d70e916abdd557092bf94c4830f98c471fe7d45b23d4dec8546251f3",
|
||||
"i686-pc-windows-msvc-0.5.14": "2ea709cf816b70661c6aa43d6aff7526faebafc2d45f7167d3192c5b9bb0a28f",
|
||||
"i686-unknown-linux-gnu-0.5.14": "74fd05a1e04bb8c591cb4531d517848d1e2cdc05762ccd291429c165e2a19aa1",
|
||||
"i686-unknown-linux-musl-0.5.14": "a616553164336a57fc154a424d44cd75eb06104bc4e69f3d757e3da90a90d31f",
|
||||
"powerpc64-unknown-linux-gnu-0.5.14": "4b675ac963f4d90034f8b8de8b03e0691b7e48eb8ce7bf5449ea65774750dfd4",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.14": "2a7bb1d27a6a057cbd5f62a5bc2ec77175c71224de8fb1bb5107acb1a07cc02a",
|
||||
"s390x-unknown-linux-gnu-0.5.14": "68acbfadd9e100b69b31f4995265b716465df909a7d110bba76d93e8adc3a76b",
|
||||
"x86_64-apple-darwin-0.5.14": "8caf91b936ede1167abaebae07c2a1cbb22473355fa0ad7ebb2580307e84fb47",
|
||||
"x86_64-pc-windows-msvc-0.5.14": "ee2468e40320a0a2a36435e66bbd0d861228c4c06767f22d97876528138f4ba0",
|
||||
"x86_64-unknown-linux-gnu-0.5.14": "22034760075b92487b326da5aa1a2a3e1917e2e766c12c0fd466fccda77013c7",
|
||||
"x86_64-unknown-linux-musl-0.5.14": "e1ccdfe1691c1f791d84bb6e1697e49416ca4b62103dcdf3b63772f03834f113",
|
||||
"aarch64-apple-darwin-0.5.13": "8a1ddbe5131c50cbf5247f2f335252d14767a7ff74f08c8a1813f003bc86d37f",
|
||||
"aarch64-unknown-linux-gnu-0.5.13": "d0054db9ba0ec472ee6d28fa3eda94fb021b5e77c962f3bb1ff4b4fa7934e66d",
|
||||
"aarch64-unknown-linux-musl-0.5.13": "fcbc405bdf8f6edf25818b756af702e8161528f4317d65310d9a0d4e02d7f544",
|
||||
"arm-unknown-linux-musleabihf-0.5.13": "ba382034294dffcbe36d4a299a5c69c4f48caac9c4b78a1727c7fc9101175202",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.13": "cc28eeaa29b85f17c27cefe96497b3448024e14b5bc92921e1b7d157375d2334",
|
||||
"armv7-unknown-linux-musleabihf-0.5.13": "449b680c4a3d936e9005e39983208a183e0fffa62fe73e6daed85f51389fc40e",
|
||||
"i686-pc-windows-msvc-0.5.13": "c1531c2f1eb8c36b2947abf039caf1aeba4253c3c35716705ca339a0a3d96594",
|
||||
"i686-unknown-linux-gnu-0.5.13": "35b964c75699b6569d950fb39561146b830101403c9a937ace1fc64fc1967c1b",
|
||||
"i686-unknown-linux-musl-0.5.13": "a33007ed60d67fa4c5b7689c1adb33751a5c1a8732057ed84b9deddbb39cd3a6",
|
||||
"powerpc64-unknown-linux-gnu-0.5.13": "9e34fc400e51f3331452083dd5e54fadc0f3be81f7901772366faf4c75e2680b",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.13": "ee01812f102379bc9bb6ea991f81536c9546a5f0d4990b9ed1fbb1900cb5f647",
|
||||
"s390x-unknown-linux-gnu-0.5.13": "f43c42318411ff5f3e8ea4be2228e71fb28b01ffcc08259bb301877c7f7155e0",
|
||||
"x86_64-apple-darwin-0.5.13": "f871b2b002b750438e5e6df4b0809a9f7d089bc5d4d0466bc63577c9ecc59979",
|
||||
"x86_64-pc-windows-msvc-0.5.13": "c8a2e7e8bd87866fd1d52dbd4b4c0d85f328a6dcdeff17b85cc9c9af447ef3c3",
|
||||
"x86_64-unknown-linux-gnu-0.5.13": "0127da50d3c361d094545aab32921bbce856b3fcc24f1d10436a6426b3f16330",
|
||||
"x86_64-unknown-linux-musl-0.5.13": "1afaef0180a6b9fe43fa6658443796b8e235fc41382a451634515890cf3aca06",
|
||||
"aarch64-apple-darwin-0.5.12": "9eb8e0d3487f5389bec2c60cea37bb0a4d028513bffe854b9ece82d538c0f312",
|
||||
"aarch64-unknown-linux-gnu-0.5.12": "ed8b4928a148365a84133ce96344fc22ac62674db2c6bef88853d0e38791e8d8",
|
||||
"aarch64-unknown-linux-musl-0.5.12": "3ce19d81232cd2dcc2646060370a1583ca5558e7f61d934ae22798006719341d",
|
||||
"arm-unknown-linux-musleabihf-0.5.12": "744409cd0b7f6314b8ba140cb63f72e2576dfec5c83491d12455775d870d508d",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.12": "452f8b769818858c3343444396d270d34026f0f7649cc89c4076ecdc8eb6d391",
|
||||
"armv7-unknown-linux-musleabihf-0.5.12": "35abf5e98f2c9a8250045a58a568086f0e223be703c090134bedaf6279ebaac5",
|
||||
"i686-pc-windows-msvc-0.5.12": "04f91508e6aeb7a2054e98552ff537b9863afbcbd4f72ba8bf8d9e9e25b37808",
|
||||
"i686-unknown-linux-gnu-0.5.12": "38c8fbdb74ee9eb95ecdb4b843d9014d47214cdf5415520378161979d1b0cb34",
|
||||
"i686-unknown-linux-musl-0.5.12": "6a8bb35f83c2a66711da3cee8d939e8893b34b25ae6cb53590c111637a93d527",
|
||||
"powerpc64-unknown-linux-gnu-0.5.12": "d1477f41b919c60d10a191bd81aeec0185cec7efb0364d9689b202b3a6607912",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.12": "12629950b444487c66a3a99f0ff0f82f11a7b0a57e8305b2767eed5b85a4a3bb",
|
||||
"s390x-unknown-linux-gnu-0.5.12": "36fc6d9ee6294ce54a2e3e92f10df094bebdd2862c29223bde18361aad9a9f1d",
|
||||
"x86_64-apple-darwin-0.5.12": "78f38c88bf5e410600cd8f8ee4d5ba3ee781c94c091b1a57566256a2178ef4a3",
|
||||
"x86_64-pc-windows-msvc-0.5.12": "04b45a4af12c0bb7cc31004dfcfed2e722c4ca07e1ac58850f93a9343dd5d06f",
|
||||
"x86_64-unknown-linux-gnu-0.5.12": "65b8dcf3f3e592887fae0daf1b3a9e3aad1262f74bb21cf80d1700c7caba7f23",
|
||||
"x86_64-unknown-linux-musl-0.5.12": "bd517e6508feef0261289b16c844c377127f21377c18c4a564d0d09add556fca",
|
||||
"aarch64-apple-darwin-0.5.11": "695f3640d5b1a4e28de7e36e3a2e14072852dcc6c70bf9e4deec6ada00d516b4",
|
||||
"aarch64-unknown-linux-gnu-0.5.11": "055c329c38a93c01d378349d51cb4d521d1998c8a79355ddc00f863ce451942f",
|
||||
"aarch64-unknown-linux-musl-0.5.11": "d0bb82d8bceb561dc785f3811f5f5a427f1be47b654f0cc5d6c36d779e03a3ff",
|
||||
"arm-unknown-linux-musleabihf-0.5.11": "a889ef4a6bbb7d2c2e460544e8c949ca9d01e18c56af23b6bfb4d8b952319dc7",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.11": "e9f4ff168ecaf87fee4ba129c0de59f6bab96a249fa21ecafdd853d61f2ff929",
|
||||
"armv7-unknown-linux-musleabihf-0.5.11": "202b6437480af1e46a9722d20e179983951edee1d92c307ea457acfafbd378bf",
|
||||
"i686-pc-windows-msvc-0.5.11": "955dfba777851761b246bfa701a05fa809676493fa83ec29837f5315ada38b3f",
|
||||
"i686-unknown-linux-gnu-0.5.11": "916df079c0125c2a5d48e1f012064f24dc7ef2ab8c94bccc192cf9d96094db5a",
|
||||
"i686-unknown-linux-musl-0.5.11": "a06d22d1f9d0233941817fc263dd928913f20aaac940c336f995e3ad3592736d",
|
||||
"powerpc64-unknown-linux-gnu-0.5.11": "dc2e4ce36bf01c1fb1f1ff8506cc11f4fe607f077ab235ea660417fd4e1964df",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.11": "ca60d5f715f068647e487c003f1e55eea303abcec2ef8cb04c3d87c83bc580f7",
|
||||
"s390x-unknown-linux-gnu-0.5.11": "8b1b9d9c1dc2f195e4f490c1ea7c848e0eec025510dd576036df44dc78c27c28",
|
||||
"x86_64-apple-darwin-0.5.11": "7e23d1d892c23f9e74245c4fd3d3e246438ce9b34460f85eee61f784de137b0b",
|
||||
"x86_64-pc-windows-msvc-0.5.11": "3e8203e6434b45427f20824419f8d8d53f970a76d94ccdcad07f8498fa01a9d0",
|
||||
"x86_64-unknown-linux-gnu-0.5.11": "14411de26cdea5f5139fafaf2b675b1c633e744dd49c6d6a9fc8817ec065158b",
|
||||
"x86_64-unknown-linux-musl-0.5.11": "5b77978bc8ded7e1b6ddb6d6a3e52f684bcc07c6d9be11d7b4fc3c1c23f4458f",
|
||||
"aarch64-apple-darwin-0.5.10": "dd3fa053379017923a4692cabdebb96844f83c7a516d9e6cb30502574cbd322d",
|
||||
"aarch64-unknown-linux-gnu-0.5.10": "f4316a657c964994d7eb736ba875f3f685c4b61e961f514e98fb50ed181da72a",
|
||||
"aarch64-unknown-linux-musl-0.5.10": "82e0472b5b0e6c738db3abe454e39e4b25b3d02f84b34b41dc7abca01ade09b7",
|
||||
"arm-unknown-linux-musleabihf-0.5.10": "269001ff4b3cda3af685d78803ae25d96fe78282040c416875784cda37fa6c73",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.10": "e6c0d421a2c66e3938cc2d78138239a782561da3c595c2e37d4bde36883ede95",
|
||||
"armv7-unknown-linux-musleabihf-0.5.10": "ab50758c7e1f56e6ec1e8a66a9b727ad7f3db1a872dd56b2c2e7f9d71a06b39a",
|
||||
"i686-pc-windows-msvc-0.5.10": "676336743ca7f152a5f5186c49e8a171a9d49ad735c08e1bb5d85f6ed280d57b",
|
||||
"i686-unknown-linux-gnu-0.5.10": "1d8c84de2e995ee26dfc9cd0bfee6bf546b06995dcd13e255b005d5a59a8c349",
|
||||
"i686-unknown-linux-musl-0.5.10": "1867b910f331a56891bc0f287ae5fbf05cb09ded229d1d95a25a1e76e7b0a010",
|
||||
"powerpc64-unknown-linux-gnu-0.5.10": "b617172c145df05dcf28666570cb3a798d393cb7f48292686490cf7b0b8fb508",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.10": "95a0234191ba11109163cba2bf4c757d92bc98be0aa1349d7f32b5d85c8935b5",
|
||||
"s390x-unknown-linux-gnu-0.5.10": "a6943d479fca4fccab7af39bd47f097d67e64382665768600ab268cf167f1cee",
|
||||
"x86_64-apple-darwin-0.5.10": "f82ed219d9e4cc22ac24168450567351881930774197bf9ad4bb5fc50e1eaf0d",
|
||||
"x86_64-pc-windows-msvc-0.5.10": "d97566f535f07a9bbcaed90900a4a9e1b800076daa3193f23d17910879e7fbc5",
|
||||
"x86_64-unknown-linux-gnu-0.5.10": "13452b7a99d953e970ec52861de03f6f2e00bfee2c4357bc63c292a70472b386",
|
||||
"x86_64-unknown-linux-musl-0.5.10": "e94e9060ce51fabad2b62846df3963f908101ffebc02fec5e8c1baa373bd6edb",
|
||||
"aarch64-apple-darwin-0.5.9": "66d352728d0efe9ecc65f7e9ee419fce139e3ab99addc08527e8cebbb405d382",
|
||||
"aarch64-unknown-linux-gnu-0.5.9": "376d5d52a4b3a9875d66898261e2ce2d31d36c095a1d81cb88d953f5bf7273eb",
|
||||
"aarch64-unknown-linux-musl-0.5.9": "ec5598ae9daba48f7a12b2f12533c6aa683049e6a822835794cea136f63abd31",
|
||||
"arm-unknown-linux-musleabihf-0.5.9": "4ca86619f26c0879f81e26760b529a548ba96b33141d24075b71137cf9dfa639",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.9": "412d249f2c9a3dd7c070a219fc658fe9a36c6e9c50bef53b536efd54446eeae9",
|
||||
"armv7-unknown-linux-musleabihf-0.5.9": "4097f1b45627212aa8936c973d9c7dcfaf1512ed08cfe958cf9dc68d0cc5d02f",
|
||||
"i686-pc-windows-msvc-0.5.9": "73ac9d7aab6bafe1d8da36b7d4cb2bd969ca1d9c675b7a021afec3c913fe223f",
|
||||
"i686-unknown-linux-gnu-0.5.9": "7236440874031e47a2ff3b4df93c7c2833c0bbe428716e491b8e87c8539a6651",
|
||||
"i686-unknown-linux-musl-0.5.9": "64e588a32f12dac948733eb8ad57f7344bffd30023150a4b9b2b9b2a47ba2c9b",
|
||||
"powerpc64-unknown-linux-gnu-0.5.9": "56d62d87a42f05f49f29fda674ec2576b811838029c048ed776cdbbaa690da57",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.9": "15a6f24ad5b30b2ce71a9fcc31ecd88d658c8534fac58d2a9af33a3e7c48a99b",
|
||||
"s390x-unknown-linux-gnu-0.5.9": "e5a3ebc23c9acba4f8ae2a9f0a4344297e5a604cb24f63751193494f64e42822",
|
||||
"x86_64-apple-darwin-0.5.9": "f4b4311cd2c2928aadee6b4e85aec2c6db7d779d4f9009eb4733bc8b2f20dbb5",
|
||||
"x86_64-pc-windows-msvc-0.5.9": "8cb608cdf23b79f4f598969b72890db657c5addab312890c37ab20b9b57c501f",
|
||||
"x86_64-unknown-linux-gnu-0.5.9": "e9cca3fb618dbc056f770d3ac4d52af491b532e60c8b19b97b9ba24f42db2bc1",
|
||||
"x86_64-unknown-linux-musl-0.5.9": "f97ffe29c03f01bb19a948eb8eb1e27cefbbf83b8dd54057da0247a664a303ac",
|
||||
"aarch64-apple-darwin-0.5.8": "745b3b8c0c2ea5b3ae253bc4c01fa5026ef399f4836749bef468d44747f291b0",
|
||||
"aarch64-unknown-linux-gnu-0.5.8": "2eecc3b90d2316a85c9245107ddc6a5eecb9f481d97f4da94845972db0e93457",
|
||||
"aarch64-unknown-linux-musl-0.5.8": "f30278b8a479e5d5e55f69432e4fcfc2b7ef20fa6e7aebfe92c30fb6bcef93c7",
|
||||
"arm-unknown-linux-musleabihf-0.5.8": "59c1e1a3c2aa50ad06495655d3ae1f0a58d9ec3c6179aecd6f3a6b5a01a30fde",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.8": "a697d9cee4e1698a4e9634caa57fc3f0afca370014bb37cc8d13a339374bf1da",
|
||||
"armv7-unknown-linux-musleabihf-0.5.8": "596a103852edd5e09c8acd12206b123a1c1808c9161271c2819572477d4694f5",
|
||||
"i686-pc-windows-msvc-0.5.8": "2e1dc6042c1d419c296d4fa424218b24fb87a2fc6c8b61280f9d7df26a90e3f7",
|
||||
"i686-unknown-linux-gnu-0.5.8": "e4edad6a7a772ccf7695ece61698fa289cb9ef113fb3e3b5ce8739cfee7ab8d6",
|
||||
"i686-unknown-linux-musl-0.5.8": "878cd30bfbfbe53b721970d72961f1a1694afba3de6df96aa15d0f3782fa249b",
|
||||
"powerpc64-unknown-linux-gnu-0.5.8": "36735c72bb137cdd44f7d534da570d99354f08b1bf2e704616a946cf58f37c71",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.8": "a00e19ebf37b384abdb19968e65d38503880d5dc093f9795bc3d5d45ca9db6b3",
|
||||
"s390x-unknown-linux-gnu-0.5.8": "b8feaf065cad523651936acd62d90d4d37d4cb5b52703cf753f6cd1eb97cb6ea",
|
||||
"x86_64-apple-darwin-0.5.8": "c3da7bebc434c59264737ff2430d942cb1d8605f20a7f4093232b1715eaafdca",
|
||||
"x86_64-pc-windows-msvc-0.5.8": "9335f35ebfb29ad2cc8b65862f43d5f72ee50038a22b216e999342efb402e319",
|
||||
"x86_64-unknown-linux-gnu-0.5.8": "dd73615862bb9cfb1f31a491b486123eb7730f99a815ec38baf297a37c749a14",
|
||||
"x86_64-unknown-linux-musl-0.5.8": "b503c9e5a9aacba7f9283a1595931656cbac652c7fda1c486935af7d6e82b0c2",
|
||||
"aarch64-apple-darwin-0.5.7": "b8cab25ab2ec0714dbb34179f948c27aa4ab307be54e0628e9e1eef1d2264f9f",
|
||||
"aarch64-unknown-linux-gnu-0.5.7": "d4dd7a72689888c92b5191902fd4ec9d25b7eeba07be41ba4a8f89acbb403e2d",
|
||||
"aarch64-unknown-linux-musl-0.5.7": "2c0fdf774ebfabecadf403c2fb966cc1a023b3db3907041fae34c77464a38a2b",
|
||||
"arm-unknown-linux-musleabihf-0.5.7": "7d375c18cb8819f712072fa64cbfeede37bc246513d2bcdabb06e08999ac3908",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.7": "2495d0c98b18b0fb1e258bcefd05d9771720e769f642046e6943aa9c8dc3a006",
|
||||
"armv7-unknown-linux-musleabihf-0.5.7": "070f3c59782832f1befd054053ba9def92e94e265aea2c06078c127525d2b086",
|
||||
"i686-pc-windows-msvc-0.5.7": "d207a2791a513e3d645779e5d86cc88f7040426ec5e4a5521498b87558f93db6",
|
||||
"i686-unknown-linux-gnu-0.5.7": "01d7c0444812563712038f472fcac77981a5dac9c44d507ccbccd49ec1828a12",
|
||||
"i686-unknown-linux-musl-0.5.7": "ad934cb434d896637a4a9bf9defd309ebd71b46294aa6d878cf23d8377d3b2e1",
|
||||
"powerpc64-unknown-linux-gnu-0.5.7": "ff17ee98044a38d65f177d4534c10d7e971f7df13ee4b50710f7929cc6cb1342",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.7": "080de54bc6b2a2c56c3d39d3ae857bac322702fd5a53b7732260a04ea6f25f67",
|
||||
"powerpc64le-unknown-linux-musl-0.5.7": "326c1da6f0bbd16350a45243a4ebe4deab838c2af5662c20514ae878986689c2",
|
||||
"s390x-unknown-linux-gnu-0.5.7": "ad94c056abf9a5caf652136de3569b999a5e0cba0456e41459e5ee34215465b0",
|
||||
"x86_64-apple-darwin-0.5.7": "b0ff9937005e9dbc68798f587e72cedfe488f0866bb47532a8c3273e7222090a",
|
||||
"x86_64-pc-windows-msvc-0.5.7": "cb2aea0d8f85ffe1c4e2a431cbbd6e5c8faeb732e7cf8e4bee1c10b7779e7352",
|
||||
"x86_64-unknown-linux-gnu-0.5.7": "8a0a3e823684dec6e49ae17f31bf6483c778fd579671992d9156875210e5161e",
|
||||
"x86_64-unknown-linux-musl-0.5.7": "4433fddf179fb49c962d6b4f824602b81cc20228406382b6fd21da33f816f8db",
|
||||
"aarch64-apple-darwin-0.5.6": "dc122e0c41f7a3fbc8004802062785e6b5c8171bc2a2ca0adc5485165c92452d",
|
||||
"aarch64-unknown-linux-gnu-0.5.6": "e90777ae28652cc7c40084ca2156bd344b5f95ee2ea9792b6e0c3a15f527c778",
|
||||
"aarch64-unknown-linux-musl-0.5.6": "b7e346728daac9c0d0d2e5df333f19275c232373a9ad29255b7aab2d8972f7fe",
|
||||
"arm-unknown-linux-musleabihf-0.5.6": "89ab758f876a6724ad1667f9e267369892dc7c570c136e40651ecbfd3a78e0e5",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.6": "6e17c62e361400498f95d39c0565e1e71fd252c732485ff0bea7af68ea24739c",
|
||||
"armv7-unknown-linux-musleabihf-0.5.6": "c1806fb75ebc416e50e796ad3a61b82d096172d46fd4701c431cb54df4faf85a",
|
||||
"i686-pc-windows-msvc-0.5.6": "4e387415a2238a7e827cf653448c032aa7085ccb4e14c5376f022aa52a3b145d",
|
||||
"i686-unknown-linux-gnu-0.5.6": "d61e0b1aa8fa302f39604ba8080972fccd9e2b76b653c0ae4d9fffc0b91e193d",
|
||||
"i686-unknown-linux-musl-0.5.6": "3ca5626e6325a116aad2f44ba30bccc31a15b35ac2e67349982b9c717900004f",
|
||||
"powerpc64-unknown-linux-gnu-0.5.6": "112fd134f44c35800c1321bdd5ffc081d1d0bcd439e43fc3043829ed718fb7d5",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.6": "56fcf8a19260d25ebda937422382c701446ff7849d86fc0aba37d9b60e8dcca9",
|
||||
"powerpc64le-unknown-linux-musl-0.5.6": "86f0347ff9cdfa214192d0143e673c61aca0981ab330f9ecf967acce2002f0df",
|
||||
"s390x-unknown-linux-gnu-0.5.6": "170beaaa681acf3c7535dbca04808f1ad51689c86a3439f93eb6e0a4567ea24d",
|
||||
"x86_64-apple-darwin-0.5.6": "9c45d209e5abdcfa42aa44cf456df6c0952b9d719b01d9c9e787886b17a5080e",
|
||||
"x86_64-pc-windows-msvc-0.5.6": "46c21ac0449ae967d65518d8025f6ae4006387802373bce0e72ebd133d77e94f",
|
||||
"x86_64-unknown-linux-gnu-0.5.6": "83521a07922e4ddff61b9204890a974e56ad9333f295690d3ddae931243ec3db",
|
||||
"x86_64-unknown-linux-musl-0.5.6": "0578a350834a79f39dc2301b613e094597fc6b7937e5249519a7e1fd17f6184f",
|
||||
"aarch64-apple-darwin-0.5.5": "9368ad5eb6dfb414e88b1ab70ef03a15963569a2bba5b2ad79f8cd0cdde01646",
|
||||
"aarch64-unknown-linux-gnu-0.5.5": "aa3e8c6e095798c92e0b1bc7599af6313c10c0f35cd301221d230abb083cf6b0",
|
||||
"aarch64-unknown-linux-musl-0.5.5": "fb09752aa9459cefd98f3c390ba4a937c32c0079588cf79586069883df204423",
|
||||
@@ -34492,46 +30711,45 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.updateChecksums = updateChecksums;
|
||||
const node_fs_1 = __nccwpck_require__(3024);
|
||||
const tc = __importStar(__nccwpck_require__(3472));
|
||||
const known_checksums_1 = __nccwpck_require__(2764);
|
||||
function updateChecksums(filePath, downloadUrls) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
yield node_fs_1.promises.rm(filePath);
|
||||
yield node_fs_1.promises.appendFile(filePath, "// AUTOGENERATED_DO_NOT_EDIT\nexport const KNOWN_CHECKSUMS: { [key: string]: string } = {\n");
|
||||
let firstLine = true;
|
||||
for (const downloadUrl of downloadUrls) {
|
||||
const key = getKey(downloadUrl);
|
||||
if (key === undefined) {
|
||||
continue;
|
||||
}
|
||||
const checksum = yield getOrDownloadChecksum(key, downloadUrl);
|
||||
if (!firstLine) {
|
||||
yield node_fs_1.promises.appendFile(filePath, ",\n");
|
||||
}
|
||||
yield node_fs_1.promises.appendFile(filePath, ` "${key}":\n "${checksum}"`);
|
||||
firstLine = false;
|
||||
async function updateChecksums(filePath, downloadUrls) {
|
||||
await node_fs_1.promises.rm(filePath);
|
||||
await node_fs_1.promises.appendFile(filePath, "// AUTOGENERATED_DO_NOT_EDIT\nexport const KNOWN_CHECKSUMS: { [key: string]: string } = {\n");
|
||||
let firstLine = true;
|
||||
for (const downloadUrl of downloadUrls) {
|
||||
const key = getKey(downloadUrl);
|
||||
if (key === undefined) {
|
||||
continue;
|
||||
}
|
||||
yield node_fs_1.promises.appendFile(filePath, ",\n};\n");
|
||||
});
|
||||
const checksum = await getOrDownloadChecksum(key, downloadUrl);
|
||||
if (!firstLine) {
|
||||
await node_fs_1.promises.appendFile(filePath, ",\n");
|
||||
}
|
||||
await node_fs_1.promises.appendFile(filePath, ` "${key}":\n "${checksum}"`);
|
||||
firstLine = false;
|
||||
}
|
||||
await node_fs_1.promises.appendFile(filePath, ",\n};\n");
|
||||
}
|
||||
function getKey(downloadUrl) {
|
||||
// https://github.com/astral-sh/uv/releases/download/0.3.2/uv-aarch64-apple-darwin.tar.gz.sha256
|
||||
@@ -34544,25 +30762,21 @@ function getKey(downloadUrl) {
|
||||
const version = parts[parts.length - 2];
|
||||
return `${name}-${version}`;
|
||||
}
|
||||
function getOrDownloadChecksum(key, downloadUrl) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let checksum = "";
|
||||
if (key in known_checksums_1.KNOWN_CHECKSUMS) {
|
||||
checksum = known_checksums_1.KNOWN_CHECKSUMS[key];
|
||||
}
|
||||
else {
|
||||
const content = yield downloadAssetContent(downloadUrl);
|
||||
checksum = content.split(" ")[0].trim();
|
||||
}
|
||||
return checksum;
|
||||
});
|
||||
async function getOrDownloadChecksum(key, downloadUrl) {
|
||||
let checksum = "";
|
||||
if (key in known_checksums_1.KNOWN_CHECKSUMS) {
|
||||
checksum = known_checksums_1.KNOWN_CHECKSUMS[key];
|
||||
}
|
||||
else {
|
||||
const content = await downloadAssetContent(downloadUrl);
|
||||
checksum = content.split(" ")[0].trim();
|
||||
}
|
||||
return checksum;
|
||||
}
|
||||
function downloadAssetContent(downloadUrl) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const downloadPath = yield tc.downloadTool(downloadUrl);
|
||||
const content = yield node_fs_1.promises.readFile(downloadPath, "utf8");
|
||||
return content;
|
||||
});
|
||||
async function downloadAssetContent(downloadUrl) {
|
||||
const downloadPath = await tc.downloadTool(downloadUrl);
|
||||
const content = await node_fs_1.promises.readFile(downloadPath, "utf8");
|
||||
return content;
|
||||
}
|
||||
|
||||
|
||||
@@ -34589,46 +30803,50 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
const github = __importStar(__nccwpck_require__(3228));
|
||||
const core = __importStar(__nccwpck_require__(7484));
|
||||
const constants_1 = __nccwpck_require__(6156);
|
||||
const semver = __importStar(__nccwpck_require__(9318));
|
||||
const core = __importStar(__nccwpck_require__(7484));
|
||||
const core_1 = __nccwpck_require__(767);
|
||||
const plugin_paginate_rest_1 = __nccwpck_require__(3779);
|
||||
const plugin_rest_endpoint_methods_1 = __nccwpck_require__(9210);
|
||||
const constants_1 = __nccwpck_require__(6156);
|
||||
const update_known_checksums_1 = __nccwpck_require__(6182);
|
||||
function run() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const checksumFilePath = process.argv.slice(2)[0];
|
||||
const github_token = process.argv.slice(2)[1];
|
||||
const octokit = github.getOctokit(github_token);
|
||||
const response = yield octokit.paginate(octokit.rest.repos.listReleases, {
|
||||
owner: constants_1.OWNER,
|
||||
repo: constants_1.REPO,
|
||||
});
|
||||
const downloadUrls = response.flatMap((release) => release.assets
|
||||
.filter((asset) => asset.name.endsWith(".sha256"))
|
||||
.map((asset) => asset.browser_download_url));
|
||||
yield (0, update_known_checksums_1.updateChecksums)(checksumFilePath, downloadUrls);
|
||||
const latestVersion = response
|
||||
.map((release) => release.tag_name)
|
||||
.sort(semver.rcompare)[0];
|
||||
core.setOutput("latest-version", latestVersion);
|
||||
const PaginatingOctokit = core_1.Octokit.plugin(plugin_paginate_rest_1.paginateRest, plugin_rest_endpoint_methods_1.restEndpointMethods);
|
||||
async function run() {
|
||||
const checksumFilePath = process.argv.slice(2)[0];
|
||||
const github_token = process.argv.slice(2)[1];
|
||||
const octokit = new PaginatingOctokit({
|
||||
auth: github_token,
|
||||
});
|
||||
const response = await octokit.paginate(octokit.rest.repos.listReleases, {
|
||||
owner: constants_1.OWNER,
|
||||
repo: constants_1.REPO,
|
||||
});
|
||||
const downloadUrls = response.flatMap((release) => release.assets
|
||||
.filter((asset) => asset.name.endsWith(".sha256"))
|
||||
.map((asset) => asset.browser_download_url));
|
||||
await (0, update_known_checksums_1.updateChecksums)(checksumFilePath, downloadUrls);
|
||||
const latestVersion = response
|
||||
.map((release) => release.tag_name)
|
||||
.sort(semver.rcompare)[0];
|
||||
core.setOutput("latest-version", latestVersion);
|
||||
}
|
||||
run();
|
||||
|
||||
@@ -34753,6 +30971,14 @@ module.exports = require("net");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7598:
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
module.exports = require("node:crypto");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8474:
|
||||
/***/ ((module) => {
|
||||
|
||||
@@ -36514,6 +32740,3894 @@ function parseParams (str) {
|
||||
module.exports = parseParams
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1120:
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
var __webpack_unused_export__;
|
||||
|
||||
|
||||
const NullObject = function NullObject () { }
|
||||
NullObject.prototype = Object.create(null)
|
||||
|
||||
/**
|
||||
* RegExp to match *( ";" parameter ) in RFC 7231 sec 3.1.1.1
|
||||
*
|
||||
* parameter = token "=" ( token / quoted-string )
|
||||
* token = 1*tchar
|
||||
* tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*"
|
||||
* / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"
|
||||
* / DIGIT / ALPHA
|
||||
* ; any VCHAR, except delimiters
|
||||
* quoted-string = DQUOTE *( qdtext / quoted-pair ) DQUOTE
|
||||
* qdtext = HTAB / SP / %x21 / %x23-5B / %x5D-7E / obs-text
|
||||
* obs-text = %x80-FF
|
||||
* quoted-pair = "\" ( HTAB / SP / VCHAR / obs-text )
|
||||
*/
|
||||
const paramRE = /; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu
|
||||
|
||||
/**
|
||||
* RegExp to match quoted-pair in RFC 7230 sec 3.2.6
|
||||
*
|
||||
* quoted-pair = "\" ( HTAB / SP / VCHAR / obs-text )
|
||||
* obs-text = %x80-FF
|
||||
*/
|
||||
const quotedPairRE = /\\([\v\u0020-\u00ff])/gu
|
||||
|
||||
/**
|
||||
* RegExp to match type in RFC 7231 sec 3.1.1.1
|
||||
*
|
||||
* media-type = type "/" subtype
|
||||
* type = token
|
||||
* subtype = token
|
||||
*/
|
||||
const mediaTypeRE = /^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u
|
||||
|
||||
// default ContentType to prevent repeated object creation
|
||||
const defaultContentType = { type: '', parameters: new NullObject() }
|
||||
Object.freeze(defaultContentType.parameters)
|
||||
Object.freeze(defaultContentType)
|
||||
|
||||
/**
|
||||
* Parse media type to object.
|
||||
*
|
||||
* @param {string|object} header
|
||||
* @return {Object}
|
||||
* @public
|
||||
*/
|
||||
|
||||
function parse (header) {
|
||||
if (typeof header !== 'string') {
|
||||
throw new TypeError('argument header is required and must be a string')
|
||||
}
|
||||
|
||||
let index = header.indexOf(';')
|
||||
const type = index !== -1
|
||||
? header.slice(0, index).trim()
|
||||
: header.trim()
|
||||
|
||||
if (mediaTypeRE.test(type) === false) {
|
||||
throw new TypeError('invalid media type')
|
||||
}
|
||||
|
||||
const result = {
|
||||
type: type.toLowerCase(),
|
||||
parameters: new NullObject()
|
||||
}
|
||||
|
||||
// parse parameters
|
||||
if (index === -1) {
|
||||
return result
|
||||
}
|
||||
|
||||
let key
|
||||
let match
|
||||
let value
|
||||
|
||||
paramRE.lastIndex = index
|
||||
|
||||
while ((match = paramRE.exec(header))) {
|
||||
if (match.index !== index) {
|
||||
throw new TypeError('invalid parameter format')
|
||||
}
|
||||
|
||||
index += match[0].length
|
||||
key = match[1].toLowerCase()
|
||||
value = match[2]
|
||||
|
||||
if (value[0] === '"') {
|
||||
// remove quotes and escapes
|
||||
value = value
|
||||
.slice(1, value.length - 1)
|
||||
|
||||
quotedPairRE.test(value) && (value = value.replace(quotedPairRE, '$1'))
|
||||
}
|
||||
|
||||
result.parameters[key] = value
|
||||
}
|
||||
|
||||
if (index !== header.length) {
|
||||
throw new TypeError('invalid parameter format')
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
function safeParse (header) {
|
||||
if (typeof header !== 'string') {
|
||||
return defaultContentType
|
||||
}
|
||||
|
||||
let index = header.indexOf(';')
|
||||
const type = index !== -1
|
||||
? header.slice(0, index).trim()
|
||||
: header.trim()
|
||||
|
||||
if (mediaTypeRE.test(type) === false) {
|
||||
return defaultContentType
|
||||
}
|
||||
|
||||
const result = {
|
||||
type: type.toLowerCase(),
|
||||
parameters: new NullObject()
|
||||
}
|
||||
|
||||
// parse parameters
|
||||
if (index === -1) {
|
||||
return result
|
||||
}
|
||||
|
||||
let key
|
||||
let match
|
||||
let value
|
||||
|
||||
paramRE.lastIndex = index
|
||||
|
||||
while ((match = paramRE.exec(header))) {
|
||||
if (match.index !== index) {
|
||||
return defaultContentType
|
||||
}
|
||||
|
||||
index += match[0].length
|
||||
key = match[1].toLowerCase()
|
||||
value = match[2]
|
||||
|
||||
if (value[0] === '"') {
|
||||
// remove quotes and escapes
|
||||
value = value
|
||||
.slice(1, value.length - 1)
|
||||
|
||||
quotedPairRE.test(value) && (value = value.replace(quotedPairRE, '$1'))
|
||||
}
|
||||
|
||||
result.parameters[key] = value
|
||||
}
|
||||
|
||||
if (index !== header.length) {
|
||||
return defaultContentType
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
__webpack_unused_export__ = { parse, safeParse }
|
||||
__webpack_unused_export__ = parse
|
||||
module.exports.xL = safeParse
|
||||
__webpack_unused_export__ = defaultContentType
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 767:
|
||||
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__nccwpck_require__.r(__webpack_exports__);
|
||||
|
||||
// EXPORTS
|
||||
__nccwpck_require__.d(__webpack_exports__, {
|
||||
Octokit: () => (/* binding */ Octokit)
|
||||
});
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/universal-user-agent/index.js
|
||||
function getUserAgent() {
|
||||
if (typeof navigator === "object" && "userAgent" in navigator) {
|
||||
return navigator.userAgent;
|
||||
}
|
||||
|
||||
if (typeof process === "object" && process.version !== undefined) {
|
||||
return `Node.js/${process.version.substr(1)} (${process.platform}; ${
|
||||
process.arch
|
||||
})`;
|
||||
}
|
||||
|
||||
return "<environment undetectable>";
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/before-after-hook/lib/register.js
|
||||
// @ts-check
|
||||
|
||||
function register(state, name, method, options) {
|
||||
if (typeof method !== "function") {
|
||||
throw new Error("method for before hook must be a function");
|
||||
}
|
||||
|
||||
if (!options) {
|
||||
options = {};
|
||||
}
|
||||
|
||||
if (Array.isArray(name)) {
|
||||
return name.reverse().reduce((callback, name) => {
|
||||
return register.bind(null, state, name, callback, options);
|
||||
}, method)();
|
||||
}
|
||||
|
||||
return Promise.resolve().then(() => {
|
||||
if (!state.registry[name]) {
|
||||
return method(options);
|
||||
}
|
||||
|
||||
return state.registry[name].reduce((method, registered) => {
|
||||
return registered.hook.bind(null, method, options);
|
||||
}, method)();
|
||||
});
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/before-after-hook/lib/add.js
|
||||
// @ts-check
|
||||
|
||||
function addHook(state, kind, name, hook) {
|
||||
const orig = hook;
|
||||
if (!state.registry[name]) {
|
||||
state.registry[name] = [];
|
||||
}
|
||||
|
||||
if (kind === "before") {
|
||||
hook = (method, options) => {
|
||||
return Promise.resolve()
|
||||
.then(orig.bind(null, options))
|
||||
.then(method.bind(null, options));
|
||||
};
|
||||
}
|
||||
|
||||
if (kind === "after") {
|
||||
hook = (method, options) => {
|
||||
let result;
|
||||
return Promise.resolve()
|
||||
.then(method.bind(null, options))
|
||||
.then((result_) => {
|
||||
result = result_;
|
||||
return orig(result, options);
|
||||
})
|
||||
.then(() => {
|
||||
return result;
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
if (kind === "error") {
|
||||
hook = (method, options) => {
|
||||
return Promise.resolve()
|
||||
.then(method.bind(null, options))
|
||||
.catch((error) => {
|
||||
return orig(error, options);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
state.registry[name].push({
|
||||
hook: hook,
|
||||
orig: orig,
|
||||
});
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/before-after-hook/lib/remove.js
|
||||
// @ts-check
|
||||
|
||||
function removeHook(state, name, method) {
|
||||
if (!state.registry[name]) {
|
||||
return;
|
||||
}
|
||||
|
||||
const index = state.registry[name]
|
||||
.map((registered) => {
|
||||
return registered.orig;
|
||||
})
|
||||
.indexOf(method);
|
||||
|
||||
if (index === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
state.registry[name].splice(index, 1);
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/before-after-hook/index.js
|
||||
// @ts-check
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// bind with array of arguments: https://stackoverflow.com/a/21792913
|
||||
const bind = Function.bind;
|
||||
const bindable = bind.bind(bind);
|
||||
|
||||
function bindApi(hook, state, name) {
|
||||
const removeHookRef = bindable(removeHook, null).apply(
|
||||
null,
|
||||
name ? [state, name] : [state]
|
||||
);
|
||||
hook.api = { remove: removeHookRef };
|
||||
hook.remove = removeHookRef;
|
||||
["before", "error", "after", "wrap"].forEach((kind) => {
|
||||
const args = name ? [state, kind, name] : [state, kind];
|
||||
hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args);
|
||||
});
|
||||
}
|
||||
|
||||
function Singular() {
|
||||
const singularHookName = Symbol("Singular");
|
||||
const singularHookState = {
|
||||
registry: {},
|
||||
};
|
||||
const singularHook = register.bind(null, singularHookState, singularHookName);
|
||||
bindApi(singularHook, singularHookState, singularHookName);
|
||||
return singularHook;
|
||||
}
|
||||
|
||||
function Collection() {
|
||||
const state = {
|
||||
registry: {},
|
||||
};
|
||||
|
||||
const hook = register.bind(null, state);
|
||||
bindApi(hook, state);
|
||||
|
||||
return hook;
|
||||
}
|
||||
|
||||
/* harmony default export */ const before_after_hook = ({ Singular, Collection });
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/endpoint/dist-bundle/index.js
|
||||
// pkg/dist-src/defaults.js
|
||||
|
||||
|
||||
// pkg/dist-src/version.js
|
||||
var VERSION = "0.0.0-development";
|
||||
|
||||
// pkg/dist-src/defaults.js
|
||||
var userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;
|
||||
var DEFAULTS = {
|
||||
method: "GET",
|
||||
baseUrl: "https://api.github.com",
|
||||
headers: {
|
||||
accept: "application/vnd.github.v3+json",
|
||||
"user-agent": userAgent
|
||||
},
|
||||
mediaType: {
|
||||
format: ""
|
||||
}
|
||||
};
|
||||
|
||||
// pkg/dist-src/util/lowercase-keys.js
|
||||
function lowercaseKeys(object) {
|
||||
if (!object) {
|
||||
return {};
|
||||
}
|
||||
return Object.keys(object).reduce((newObj, key) => {
|
||||
newObj[key.toLowerCase()] = object[key];
|
||||
return newObj;
|
||||
}, {});
|
||||
}
|
||||
|
||||
// pkg/dist-src/util/is-plain-object.js
|
||||
function isPlainObject(value) {
|
||||
if (typeof value !== "object" || value === null) return false;
|
||||
if (Object.prototype.toString.call(value) !== "[object Object]") return false;
|
||||
const proto = Object.getPrototypeOf(value);
|
||||
if (proto === null) return true;
|
||||
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
||||
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
||||
}
|
||||
|
||||
// pkg/dist-src/util/merge-deep.js
|
||||
function mergeDeep(defaults, options) {
|
||||
const result = Object.assign({}, defaults);
|
||||
Object.keys(options).forEach((key) => {
|
||||
if (isPlainObject(options[key])) {
|
||||
if (!(key in defaults)) Object.assign(result, { [key]: options[key] });
|
||||
else result[key] = mergeDeep(defaults[key], options[key]);
|
||||
} else {
|
||||
Object.assign(result, { [key]: options[key] });
|
||||
}
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
// pkg/dist-src/util/remove-undefined-properties.js
|
||||
function removeUndefinedProperties(obj) {
|
||||
for (const key in obj) {
|
||||
if (obj[key] === void 0) {
|
||||
delete obj[key];
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
// pkg/dist-src/merge.js
|
||||
function merge(defaults, route, options) {
|
||||
if (typeof route === "string") {
|
||||
let [method, url] = route.split(" ");
|
||||
options = Object.assign(url ? { method, url } : { url: method }, options);
|
||||
} else {
|
||||
options = Object.assign({}, route);
|
||||
}
|
||||
options.headers = lowercaseKeys(options.headers);
|
||||
removeUndefinedProperties(options);
|
||||
removeUndefinedProperties(options.headers);
|
||||
const mergedOptions = mergeDeep(defaults || {}, options);
|
||||
if (options.url === "/graphql") {
|
||||
if (defaults && defaults.mediaType.previews?.length) {
|
||||
mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(
|
||||
(preview) => !mergedOptions.mediaType.previews.includes(preview)
|
||||
).concat(mergedOptions.mediaType.previews);
|
||||
}
|
||||
mergedOptions.mediaType.previews = (mergedOptions.mediaType.previews || []).map((preview) => preview.replace(/-preview/, ""));
|
||||
}
|
||||
return mergedOptions;
|
||||
}
|
||||
|
||||
// pkg/dist-src/util/add-query-parameters.js
|
||||
function addQueryParameters(url, parameters) {
|
||||
const separator = /\?/.test(url) ? "&" : "?";
|
||||
const names = Object.keys(parameters);
|
||||
if (names.length === 0) {
|
||||
return url;
|
||||
}
|
||||
return url + separator + names.map((name) => {
|
||||
if (name === "q") {
|
||||
return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
|
||||
}
|
||||
return `${name}=${encodeURIComponent(parameters[name])}`;
|
||||
}).join("&");
|
||||
}
|
||||
|
||||
// pkg/dist-src/util/extract-url-variable-names.js
|
||||
var urlVariableRegex = /\{[^}]+\}/g;
|
||||
function removeNonChars(variableName) {
|
||||
return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
|
||||
}
|
||||
function extractUrlVariableNames(url) {
|
||||
const matches = url.match(urlVariableRegex);
|
||||
if (!matches) {
|
||||
return [];
|
||||
}
|
||||
return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
|
||||
}
|
||||
|
||||
// pkg/dist-src/util/omit.js
|
||||
function omit(object, keysToOmit) {
|
||||
const result = { __proto__: null };
|
||||
for (const key of Object.keys(object)) {
|
||||
if (keysToOmit.indexOf(key) === -1) {
|
||||
result[key] = object[key];
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// pkg/dist-src/util/url-template.js
|
||||
function encodeReserved(str) {
|
||||
return str.split(/(%[0-9A-Fa-f]{2})/g).map(function(part) {
|
||||
if (!/%[0-9A-Fa-f]/.test(part)) {
|
||||
part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
|
||||
}
|
||||
return part;
|
||||
}).join("");
|
||||
}
|
||||
function encodeUnreserved(str) {
|
||||
return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
|
||||
return "%" + c.charCodeAt(0).toString(16).toUpperCase();
|
||||
});
|
||||
}
|
||||
function encodeValue(operator, value, key) {
|
||||
value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value);
|
||||
if (key) {
|
||||
return encodeUnreserved(key) + "=" + value;
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
function isDefined(value) {
|
||||
return value !== void 0 && value !== null;
|
||||
}
|
||||
function isKeyOperator(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues(context, operator, key, modifier) {
|
||||
var value = context[key], result = [];
|
||||
if (isDefined(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
if (modifier && modifier !== "*") {
|
||||
value = value.substring(0, parseInt(modifier, 10));
|
||||
}
|
||||
result.push(
|
||||
encodeValue(operator, value, isKeyOperator(operator) ? key : "")
|
||||
);
|
||||
} else {
|
||||
if (modifier === "*") {
|
||||
if (Array.isArray(value)) {
|
||||
value.filter(isDefined).forEach(function(value2) {
|
||||
result.push(
|
||||
encodeValue(operator, value2, isKeyOperator(operator) ? key : "")
|
||||
);
|
||||
});
|
||||
} else {
|
||||
Object.keys(value).forEach(function(k) {
|
||||
if (isDefined(value[k])) {
|
||||
result.push(encodeValue(operator, value[k], k));
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
const tmp = [];
|
||||
if (Array.isArray(value)) {
|
||||
value.filter(isDefined).forEach(function(value2) {
|
||||
tmp.push(encodeValue(operator, value2));
|
||||
});
|
||||
} else {
|
||||
Object.keys(value).forEach(function(k) {
|
||||
if (isDefined(value[k])) {
|
||||
tmp.push(encodeUnreserved(k));
|
||||
tmp.push(encodeValue(operator, value[k].toString()));
|
||||
}
|
||||
});
|
||||
}
|
||||
if (isKeyOperator(operator)) {
|
||||
result.push(encodeUnreserved(key) + "=" + tmp.join(","));
|
||||
} else if (tmp.length !== 0) {
|
||||
result.push(tmp.join(","));
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (operator === ";") {
|
||||
if (isDefined(value)) {
|
||||
result.push(encodeUnreserved(key));
|
||||
}
|
||||
} else if (value === "" && (operator === "&" || operator === "?")) {
|
||||
result.push(encodeUnreserved(key) + "=");
|
||||
} else if (value === "") {
|
||||
result.push("");
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function parseUrl(template) {
|
||||
return {
|
||||
expand: expand.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand(template, context) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
function(_, expression, literal) {
|
||||
if (expression) {
|
||||
let operator = "";
|
||||
const values = [];
|
||||
if (operators.indexOf(expression.charAt(0)) !== -1) {
|
||||
operator = expression.charAt(0);
|
||||
expression = expression.substr(1);
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
if (operator === "?") {
|
||||
separator = "&";
|
||||
} else if (operator !== "#") {
|
||||
separator = operator;
|
||||
}
|
||||
return (values.length !== 0 ? operator : "") + values.join(separator);
|
||||
} else {
|
||||
return values.join(",");
|
||||
}
|
||||
} else {
|
||||
return encodeReserved(literal);
|
||||
}
|
||||
}
|
||||
);
|
||||
if (template === "/") {
|
||||
return template;
|
||||
} else {
|
||||
return template.replace(/\/$/, "");
|
||||
}
|
||||
}
|
||||
|
||||
// pkg/dist-src/parse.js
|
||||
function parse(options) {
|
||||
let method = options.method.toUpperCase();
|
||||
let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
|
||||
let headers = Object.assign({}, options.headers);
|
||||
let body;
|
||||
let parameters = omit(options, [
|
||||
"method",
|
||||
"baseUrl",
|
||||
"url",
|
||||
"headers",
|
||||
"request",
|
||||
"mediaType"
|
||||
]);
|
||||
const urlVariableNames = extractUrlVariableNames(url);
|
||||
url = parseUrl(url).expand(parameters);
|
||||
if (!/^http/.test(url)) {
|
||||
url = options.baseUrl + url;
|
||||
}
|
||||
const omittedParameters = Object.keys(options).filter((option) => urlVariableNames.includes(option)).concat("baseUrl");
|
||||
const remainingParameters = omit(parameters, omittedParameters);
|
||||
const isBinaryRequest = /application\/octet-stream/i.test(headers.accept);
|
||||
if (!isBinaryRequest) {
|
||||
if (options.mediaType.format) {
|
||||
headers.accept = headers.accept.split(/,/).map(
|
||||
(format) => format.replace(
|
||||
/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,
|
||||
`application/vnd$1$2.${options.mediaType.format}`
|
||||
)
|
||||
).join(",");
|
||||
}
|
||||
if (url.endsWith("/graphql")) {
|
||||
if (options.mediaType.previews?.length) {
|
||||
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
|
||||
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
|
||||
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
|
||||
return `application/vnd.github.${preview}-preview${format}`;
|
||||
}).join(",");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (["GET", "HEAD"].includes(method)) {
|
||||
url = addQueryParameters(url, remainingParameters);
|
||||
} else {
|
||||
if ("data" in remainingParameters) {
|
||||
body = remainingParameters.data;
|
||||
} else {
|
||||
if (Object.keys(remainingParameters).length) {
|
||||
body = remainingParameters;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!headers["content-type"] && typeof body !== "undefined") {
|
||||
headers["content-type"] = "application/json; charset=utf-8";
|
||||
}
|
||||
if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
|
||||
body = "";
|
||||
}
|
||||
return Object.assign(
|
||||
{ method, url, headers },
|
||||
typeof body !== "undefined" ? { body } : null,
|
||||
options.request ? { request: options.request } : null
|
||||
);
|
||||
}
|
||||
|
||||
// pkg/dist-src/endpoint-with-defaults.js
|
||||
function endpointWithDefaults(defaults, route, options) {
|
||||
return parse(merge(defaults, route, options));
|
||||
}
|
||||
|
||||
// pkg/dist-src/with-defaults.js
|
||||
function withDefaults(oldDefaults, newDefaults) {
|
||||
const DEFAULTS2 = merge(oldDefaults, newDefaults);
|
||||
const endpoint2 = endpointWithDefaults.bind(null, DEFAULTS2);
|
||||
return Object.assign(endpoint2, {
|
||||
DEFAULTS: DEFAULTS2,
|
||||
defaults: withDefaults.bind(null, DEFAULTS2),
|
||||
merge: merge.bind(null, DEFAULTS2),
|
||||
parse
|
||||
});
|
||||
}
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
var endpoint = withDefaults(null, DEFAULTS);
|
||||
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/fast-content-type-parse/index.js
|
||||
var fast_content_type_parse = __nccwpck_require__(1120);
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/request-error/dist-src/index.js
|
||||
class RequestError extends Error {
|
||||
name;
|
||||
/**
|
||||
* http status code
|
||||
*/
|
||||
status;
|
||||
/**
|
||||
* Request options that lead to the error.
|
||||
*/
|
||||
request;
|
||||
/**
|
||||
* Response object if a response was received
|
||||
*/
|
||||
response;
|
||||
constructor(message, statusCode, options) {
|
||||
super(message);
|
||||
this.name = "HttpError";
|
||||
this.status = Number.parseInt(statusCode);
|
||||
if (Number.isNaN(this.status)) {
|
||||
this.status = 0;
|
||||
}
|
||||
if ("response" in options) {
|
||||
this.response = options.response;
|
||||
}
|
||||
const requestCopy = Object.assign({}, options.request);
|
||||
if (options.request.headers.authorization) {
|
||||
requestCopy.headers = Object.assign({}, options.request.headers, {
|
||||
authorization: options.request.headers.authorization.replace(
|
||||
/ .*$/,
|
||||
" [REDACTED]"
|
||||
)
|
||||
});
|
||||
}
|
||||
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
|
||||
this.request = requestCopy;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/request/dist-bundle/index.js
|
||||
// pkg/dist-src/index.js
|
||||
|
||||
|
||||
// pkg/dist-src/defaults.js
|
||||
|
||||
|
||||
// pkg/dist-src/version.js
|
||||
var dist_bundle_VERSION = "0.0.0-development";
|
||||
|
||||
// pkg/dist-src/defaults.js
|
||||
var defaults_default = {
|
||||
headers: {
|
||||
"user-agent": `octokit-request.js/${dist_bundle_VERSION} ${getUserAgent()}`
|
||||
}
|
||||
};
|
||||
|
||||
// pkg/dist-src/fetch-wrapper.js
|
||||
|
||||
|
||||
// pkg/dist-src/is-plain-object.js
|
||||
function dist_bundle_isPlainObject(value) {
|
||||
if (typeof value !== "object" || value === null) return false;
|
||||
if (Object.prototype.toString.call(value) !== "[object Object]") return false;
|
||||
const proto = Object.getPrototypeOf(value);
|
||||
if (proto === null) return true;
|
||||
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
||||
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
||||
}
|
||||
|
||||
// pkg/dist-src/fetch-wrapper.js
|
||||
|
||||
async function fetchWrapper(requestOptions) {
|
||||
const fetch = requestOptions.request?.fetch || globalThis.fetch;
|
||||
if (!fetch) {
|
||||
throw new Error(
|
||||
"fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing"
|
||||
);
|
||||
}
|
||||
const log = requestOptions.request?.log || console;
|
||||
const parseSuccessResponseBody = requestOptions.request?.parseSuccessResponseBody !== false;
|
||||
const body = dist_bundle_isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body) ? JSON.stringify(requestOptions.body) : requestOptions.body;
|
||||
const requestHeaders = Object.fromEntries(
|
||||
Object.entries(requestOptions.headers).map(([name, value]) => [
|
||||
name,
|
||||
String(value)
|
||||
])
|
||||
);
|
||||
let fetchResponse;
|
||||
try {
|
||||
fetchResponse = await fetch(requestOptions.url, {
|
||||
method: requestOptions.method,
|
||||
body,
|
||||
redirect: requestOptions.request?.redirect,
|
||||
headers: requestHeaders,
|
||||
signal: requestOptions.request?.signal,
|
||||
// duplex must be set if request.body is ReadableStream or Async Iterables.
|
||||
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
|
||||
...requestOptions.body && { duplex: "half" }
|
||||
});
|
||||
} catch (error) {
|
||||
let message = "Unknown Error";
|
||||
if (error instanceof Error) {
|
||||
if (error.name === "AbortError") {
|
||||
error.status = 500;
|
||||
throw error;
|
||||
}
|
||||
message = error.message;
|
||||
if (error.name === "TypeError" && "cause" in error) {
|
||||
if (error.cause instanceof Error) {
|
||||
message = error.cause.message;
|
||||
} else if (typeof error.cause === "string") {
|
||||
message = error.cause;
|
||||
}
|
||||
}
|
||||
}
|
||||
const requestError = new RequestError(message, 500, {
|
||||
request: requestOptions
|
||||
});
|
||||
requestError.cause = error;
|
||||
throw requestError;
|
||||
}
|
||||
const status = fetchResponse.status;
|
||||
const url = fetchResponse.url;
|
||||
const responseHeaders = {};
|
||||
for (const [key, value] of fetchResponse.headers) {
|
||||
responseHeaders[key] = value;
|
||||
}
|
||||
const octokitResponse = {
|
||||
url,
|
||||
status,
|
||||
headers: responseHeaders,
|
||||
data: ""
|
||||
};
|
||||
if ("deprecation" in responseHeaders) {
|
||||
const matches = responseHeaders.link && responseHeaders.link.match(/<([^>]+)>; rel="deprecation"/);
|
||||
const deprecationLink = matches && matches.pop();
|
||||
log.warn(
|
||||
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${responseHeaders.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
|
||||
);
|
||||
}
|
||||
if (status === 204 || status === 205) {
|
||||
return octokitResponse;
|
||||
}
|
||||
if (requestOptions.method === "HEAD") {
|
||||
if (status < 400) {
|
||||
return octokitResponse;
|
||||
}
|
||||
throw new RequestError(fetchResponse.statusText, status, {
|
||||
response: octokitResponse,
|
||||
request: requestOptions
|
||||
});
|
||||
}
|
||||
if (status === 304) {
|
||||
octokitResponse.data = await getResponseData(fetchResponse);
|
||||
throw new RequestError("Not modified", status, {
|
||||
response: octokitResponse,
|
||||
request: requestOptions
|
||||
});
|
||||
}
|
||||
if (status >= 400) {
|
||||
octokitResponse.data = await getResponseData(fetchResponse);
|
||||
throw new RequestError(toErrorMessage(octokitResponse.data), status, {
|
||||
response: octokitResponse,
|
||||
request: requestOptions
|
||||
});
|
||||
}
|
||||
octokitResponse.data = parseSuccessResponseBody ? await getResponseData(fetchResponse) : fetchResponse.body;
|
||||
return octokitResponse;
|
||||
}
|
||||
async function getResponseData(response) {
|
||||
const contentType = response.headers.get("content-type");
|
||||
if (!contentType) {
|
||||
return response.text().catch(() => "");
|
||||
}
|
||||
const mimetype = (0,fast_content_type_parse/* safeParse */.xL)(contentType);
|
||||
if (isJSONResponse(mimetype)) {
|
||||
let text = "";
|
||||
try {
|
||||
text = await response.text();
|
||||
return JSON.parse(text);
|
||||
} catch (err) {
|
||||
return text;
|
||||
}
|
||||
} else if (mimetype.type.startsWith("text/") || mimetype.parameters.charset?.toLowerCase() === "utf-8") {
|
||||
return response.text().catch(() => "");
|
||||
} else {
|
||||
return response.arrayBuffer().catch(() => new ArrayBuffer(0));
|
||||
}
|
||||
}
|
||||
function isJSONResponse(mimetype) {
|
||||
return mimetype.type === "application/json" || mimetype.type === "application/scim+json";
|
||||
}
|
||||
function toErrorMessage(data) {
|
||||
if (typeof data === "string") {
|
||||
return data;
|
||||
}
|
||||
if (data instanceof ArrayBuffer) {
|
||||
return "Unknown error";
|
||||
}
|
||||
if ("message" in data) {
|
||||
const suffix = "documentation_url" in data ? ` - ${data.documentation_url}` : "";
|
||||
return Array.isArray(data.errors) ? `${data.message}: ${data.errors.map((v) => JSON.stringify(v)).join(", ")}${suffix}` : `${data.message}${suffix}`;
|
||||
}
|
||||
return `Unknown error: ${JSON.stringify(data)}`;
|
||||
}
|
||||
|
||||
// pkg/dist-src/with-defaults.js
|
||||
function dist_bundle_withDefaults(oldEndpoint, newDefaults) {
|
||||
const endpoint2 = oldEndpoint.defaults(newDefaults);
|
||||
const newApi = function(route, parameters) {
|
||||
const endpointOptions = endpoint2.merge(route, parameters);
|
||||
if (!endpointOptions.request || !endpointOptions.request.hook) {
|
||||
return fetchWrapper(endpoint2.parse(endpointOptions));
|
||||
}
|
||||
const request2 = (route2, parameters2) => {
|
||||
return fetchWrapper(
|
||||
endpoint2.parse(endpoint2.merge(route2, parameters2))
|
||||
);
|
||||
};
|
||||
Object.assign(request2, {
|
||||
endpoint: endpoint2,
|
||||
defaults: dist_bundle_withDefaults.bind(null, endpoint2)
|
||||
});
|
||||
return endpointOptions.request.hook(request2, endpointOptions);
|
||||
};
|
||||
return Object.assign(newApi, {
|
||||
endpoint: endpoint2,
|
||||
defaults: dist_bundle_withDefaults.bind(null, endpoint2)
|
||||
});
|
||||
}
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
var request = dist_bundle_withDefaults(endpoint, defaults_default);
|
||||
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/graphql/dist-bundle/index.js
|
||||
// pkg/dist-src/index.js
|
||||
|
||||
|
||||
|
||||
// pkg/dist-src/version.js
|
||||
var graphql_dist_bundle_VERSION = "0.0.0-development";
|
||||
|
||||
// pkg/dist-src/with-defaults.js
|
||||
|
||||
|
||||
// pkg/dist-src/graphql.js
|
||||
|
||||
|
||||
// pkg/dist-src/error.js
|
||||
function _buildMessageForResponseErrors(data) {
|
||||
return `Request failed due to following response errors:
|
||||
` + data.errors.map((e) => ` - ${e.message}`).join("\n");
|
||||
}
|
||||
var GraphqlResponseError = class extends Error {
|
||||
constructor(request2, headers, response) {
|
||||
super(_buildMessageForResponseErrors(response));
|
||||
this.request = request2;
|
||||
this.headers = headers;
|
||||
this.response = response;
|
||||
this.errors = response.errors;
|
||||
this.data = response.data;
|
||||
if (Error.captureStackTrace) {
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
||||
name = "GraphqlResponseError";
|
||||
errors;
|
||||
data;
|
||||
};
|
||||
|
||||
// pkg/dist-src/graphql.js
|
||||
var NON_VARIABLE_OPTIONS = [
|
||||
"method",
|
||||
"baseUrl",
|
||||
"url",
|
||||
"headers",
|
||||
"request",
|
||||
"query",
|
||||
"mediaType"
|
||||
];
|
||||
var FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"];
|
||||
var GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/;
|
||||
function graphql(request2, query, options) {
|
||||
if (options) {
|
||||
if (typeof query === "string" && "query" in options) {
|
||||
return Promise.reject(
|
||||
new Error(`[@octokit/graphql] "query" cannot be used as variable name`)
|
||||
);
|
||||
}
|
||||
for (const key in options) {
|
||||
if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key)) continue;
|
||||
return Promise.reject(
|
||||
new Error(
|
||||
`[@octokit/graphql] "${key}" cannot be used as variable name`
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
const parsedOptions = typeof query === "string" ? Object.assign({ query }, options) : query;
|
||||
const requestOptions = Object.keys(
|
||||
parsedOptions
|
||||
).reduce((result, key) => {
|
||||
if (NON_VARIABLE_OPTIONS.includes(key)) {
|
||||
result[key] = parsedOptions[key];
|
||||
return result;
|
||||
}
|
||||
if (!result.variables) {
|
||||
result.variables = {};
|
||||
}
|
||||
result.variables[key] = parsedOptions[key];
|
||||
return result;
|
||||
}, {});
|
||||
const baseUrl = parsedOptions.baseUrl || request2.endpoint.DEFAULTS.baseUrl;
|
||||
if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {
|
||||
requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, "/api/graphql");
|
||||
}
|
||||
return request2(requestOptions).then((response) => {
|
||||
if (response.data.errors) {
|
||||
const headers = {};
|
||||
for (const key of Object.keys(response.headers)) {
|
||||
headers[key] = response.headers[key];
|
||||
}
|
||||
throw new GraphqlResponseError(
|
||||
requestOptions,
|
||||
headers,
|
||||
response.data
|
||||
);
|
||||
}
|
||||
return response.data.data;
|
||||
});
|
||||
}
|
||||
|
||||
// pkg/dist-src/with-defaults.js
|
||||
function graphql_dist_bundle_withDefaults(request2, newDefaults) {
|
||||
const newRequest = request2.defaults(newDefaults);
|
||||
const newApi = (query, options) => {
|
||||
return graphql(newRequest, query, options);
|
||||
};
|
||||
return Object.assign(newApi, {
|
||||
defaults: graphql_dist_bundle_withDefaults.bind(null, newRequest),
|
||||
endpoint: newRequest.endpoint
|
||||
});
|
||||
}
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
var graphql2 = graphql_dist_bundle_withDefaults(request, {
|
||||
headers: {
|
||||
"user-agent": `octokit-graphql.js/${graphql_dist_bundle_VERSION} ${getUserAgent()}`
|
||||
},
|
||||
method: "POST",
|
||||
url: "/graphql"
|
||||
});
|
||||
function withCustomRequest(customRequest) {
|
||||
return graphql_dist_bundle_withDefaults(customRequest, {
|
||||
method: "POST",
|
||||
url: "/graphql"
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/auth-token/dist-bundle/index.js
|
||||
// pkg/dist-src/is-jwt.js
|
||||
var b64url = "(?:[a-zA-Z0-9_-]+)";
|
||||
var sep = "\\.";
|
||||
var jwtRE = new RegExp(`^${b64url}${sep}${b64url}${sep}${b64url}$`);
|
||||
var isJWT = jwtRE.test.bind(jwtRE);
|
||||
|
||||
// pkg/dist-src/auth.js
|
||||
async function auth(token) {
|
||||
const isApp = isJWT(token);
|
||||
const isInstallation = token.startsWith("v1.") || token.startsWith("ghs_");
|
||||
const isUserToServer = token.startsWith("ghu_");
|
||||
const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
|
||||
return {
|
||||
type: "token",
|
||||
token,
|
||||
tokenType
|
||||
};
|
||||
}
|
||||
|
||||
// pkg/dist-src/with-authorization-prefix.js
|
||||
function withAuthorizationPrefix(token) {
|
||||
if (token.split(/\./).length === 3) {
|
||||
return `bearer ${token}`;
|
||||
}
|
||||
return `token ${token}`;
|
||||
}
|
||||
|
||||
// pkg/dist-src/hook.js
|
||||
async function hook(token, request, route, parameters) {
|
||||
const endpoint = request.endpoint.merge(
|
||||
route,
|
||||
parameters
|
||||
);
|
||||
endpoint.headers.authorization = withAuthorizationPrefix(token);
|
||||
return request(endpoint);
|
||||
}
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
var createTokenAuth = function createTokenAuth2(token) {
|
||||
if (!token) {
|
||||
throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
|
||||
}
|
||||
if (typeof token !== "string") {
|
||||
throw new Error(
|
||||
"[@octokit/auth-token] Token passed to createTokenAuth is not a string"
|
||||
);
|
||||
}
|
||||
token = token.replace(/^(token|bearer) +/i, "");
|
||||
return Object.assign(auth.bind(null, token), {
|
||||
hook: hook.bind(null, token)
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/version.js
|
||||
const version_VERSION = "6.1.3";
|
||||
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/index.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const noop = () => {
|
||||
};
|
||||
const consoleWarn = console.warn.bind(console);
|
||||
const consoleError = console.error.bind(console);
|
||||
const userAgentTrail = `octokit-core.js/${version_VERSION} ${getUserAgent()}`;
|
||||
class Octokit {
|
||||
static VERSION = version_VERSION;
|
||||
static defaults(defaults) {
|
||||
const OctokitWithDefaults = class extends this {
|
||||
constructor(...args) {
|
||||
const options = args[0] || {};
|
||||
if (typeof defaults === "function") {
|
||||
super(defaults(options));
|
||||
return;
|
||||
}
|
||||
super(
|
||||
Object.assign(
|
||||
{},
|
||||
defaults,
|
||||
options,
|
||||
options.userAgent && defaults.userAgent ? {
|
||||
userAgent: `${options.userAgent} ${defaults.userAgent}`
|
||||
} : null
|
||||
)
|
||||
);
|
||||
}
|
||||
};
|
||||
return OctokitWithDefaults;
|
||||
}
|
||||
static plugins = [];
|
||||
/**
|
||||
* Attach a plugin (or many) to your Octokit instance.
|
||||
*
|
||||
* @example
|
||||
* const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)
|
||||
*/
|
||||
static plugin(...newPlugins) {
|
||||
const currentPlugins = this.plugins;
|
||||
const NewOctokit = class extends this {
|
||||
static plugins = currentPlugins.concat(
|
||||
newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
|
||||
);
|
||||
};
|
||||
return NewOctokit;
|
||||
}
|
||||
constructor(options = {}) {
|
||||
const hook = new before_after_hook.Collection();
|
||||
const requestDefaults = {
|
||||
baseUrl: request.endpoint.DEFAULTS.baseUrl,
|
||||
headers: {},
|
||||
request: Object.assign({}, options.request, {
|
||||
// @ts-ignore internal usage only, no need to type
|
||||
hook: hook.bind(null, "request")
|
||||
}),
|
||||
mediaType: {
|
||||
previews: [],
|
||||
format: ""
|
||||
}
|
||||
};
|
||||
requestDefaults.headers["user-agent"] = options.userAgent ? `${options.userAgent} ${userAgentTrail}` : userAgentTrail;
|
||||
if (options.baseUrl) {
|
||||
requestDefaults.baseUrl = options.baseUrl;
|
||||
}
|
||||
if (options.previews) {
|
||||
requestDefaults.mediaType.previews = options.previews;
|
||||
}
|
||||
if (options.timeZone) {
|
||||
requestDefaults.headers["time-zone"] = options.timeZone;
|
||||
}
|
||||
this.request = request.defaults(requestDefaults);
|
||||
this.graphql = withCustomRequest(this.request).defaults(requestDefaults);
|
||||
this.log = Object.assign(
|
||||
{
|
||||
debug: noop,
|
||||
info: noop,
|
||||
warn: consoleWarn,
|
||||
error: consoleError
|
||||
},
|
||||
options.log
|
||||
);
|
||||
this.hook = hook;
|
||||
if (!options.authStrategy) {
|
||||
if (!options.auth) {
|
||||
this.auth = async () => ({
|
||||
type: "unauthenticated"
|
||||
});
|
||||
} else {
|
||||
const auth = createTokenAuth(options.auth);
|
||||
hook.wrap("request", auth.hook);
|
||||
this.auth = auth;
|
||||
}
|
||||
} else {
|
||||
const { authStrategy, ...otherOptions } = options;
|
||||
const auth = authStrategy(
|
||||
Object.assign(
|
||||
{
|
||||
request: this.request,
|
||||
log: this.log,
|
||||
// we pass the current octokit instance as well as its constructor options
|
||||
// to allow for authentication strategies that return a new octokit instance
|
||||
// that shares the same internal state as the current one. The original
|
||||
// requirement for this was the "event-octokit" authentication strategy
|
||||
// of https://github.com/probot/octokit-auth-probot.
|
||||
octokit: this,
|
||||
octokitOptions: otherOptions
|
||||
},
|
||||
options.auth
|
||||
)
|
||||
);
|
||||
hook.wrap("request", auth.hook);
|
||||
this.auth = auth;
|
||||
}
|
||||
const classConstructor = this.constructor;
|
||||
for (let i = 0; i < classConstructor.plugins.length; ++i) {
|
||||
Object.assign(this, classConstructor.plugins[i](this, options));
|
||||
}
|
||||
}
|
||||
// assigned during constructor
|
||||
request;
|
||||
graphql;
|
||||
log;
|
||||
hook;
|
||||
// TODO: type `octokit.auth` based on passed options.authStrategy
|
||||
auth;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3779:
|
||||
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
__nccwpck_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __nccwpck_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ composePaginateRest: () => (/* binding */ composePaginateRest),
|
||||
/* harmony export */ isPaginatingEndpoint: () => (/* binding */ isPaginatingEndpoint),
|
||||
/* harmony export */ paginateRest: () => (/* binding */ paginateRest),
|
||||
/* harmony export */ paginatingEndpoints: () => (/* binding */ paginatingEndpoints)
|
||||
/* harmony export */ });
|
||||
// pkg/dist-src/version.js
|
||||
var VERSION = "0.0.0-development";
|
||||
|
||||
// pkg/dist-src/normalize-paginated-list-response.js
|
||||
function normalizePaginatedListResponse(response) {
|
||||
if (!response.data) {
|
||||
return {
|
||||
...response,
|
||||
data: []
|
||||
};
|
||||
}
|
||||
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
|
||||
if (!responseNeedsNormalization) return response;
|
||||
const incompleteResults = response.data.incomplete_results;
|
||||
const repositorySelection = response.data.repository_selection;
|
||||
const totalCount = response.data.total_count;
|
||||
delete response.data.incomplete_results;
|
||||
delete response.data.repository_selection;
|
||||
delete response.data.total_count;
|
||||
const namespaceKey = Object.keys(response.data)[0];
|
||||
const data = response.data[namespaceKey];
|
||||
response.data = data;
|
||||
if (typeof incompleteResults !== "undefined") {
|
||||
response.data.incomplete_results = incompleteResults;
|
||||
}
|
||||
if (typeof repositorySelection !== "undefined") {
|
||||
response.data.repository_selection = repositorySelection;
|
||||
}
|
||||
response.data.total_count = totalCount;
|
||||
return response;
|
||||
}
|
||||
|
||||
// pkg/dist-src/iterator.js
|
||||
function iterator(octokit, route, parameters) {
|
||||
const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);
|
||||
const requestMethod = typeof route === "function" ? route : octokit.request;
|
||||
const method = options.method;
|
||||
const headers = options.headers;
|
||||
let url = options.url;
|
||||
return {
|
||||
[Symbol.asyncIterator]: () => ({
|
||||
async next() {
|
||||
if (!url) return { done: true };
|
||||
try {
|
||||
const response = await requestMethod({ method, url, headers });
|
||||
const normalizedResponse = normalizePaginatedListResponse(response);
|
||||
url = ((normalizedResponse.headers.link || "").match(
|
||||
/<([^>]+)>;\s*rel="next"/
|
||||
) || [])[1];
|
||||
return { value: normalizedResponse };
|
||||
} catch (error) {
|
||||
if (error.status !== 409) throw error;
|
||||
url = "";
|
||||
return {
|
||||
value: {
|
||||
status: 200,
|
||||
headers: {},
|
||||
data: []
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
})
|
||||
};
|
||||
}
|
||||
|
||||
// pkg/dist-src/paginate.js
|
||||
function paginate(octokit, route, parameters, mapFn) {
|
||||
if (typeof parameters === "function") {
|
||||
mapFn = parameters;
|
||||
parameters = void 0;
|
||||
}
|
||||
return gather(
|
||||
octokit,
|
||||
[],
|
||||
iterator(octokit, route, parameters)[Symbol.asyncIterator](),
|
||||
mapFn
|
||||
);
|
||||
}
|
||||
function gather(octokit, results, iterator2, mapFn) {
|
||||
return iterator2.next().then((result) => {
|
||||
if (result.done) {
|
||||
return results;
|
||||
}
|
||||
let earlyExit = false;
|
||||
function done() {
|
||||
earlyExit = true;
|
||||
}
|
||||
results = results.concat(
|
||||
mapFn ? mapFn(result.value, done) : result.value.data
|
||||
);
|
||||
if (earlyExit) {
|
||||
return results;
|
||||
}
|
||||
return gather(octokit, results, iterator2, mapFn);
|
||||
});
|
||||
}
|
||||
|
||||
// pkg/dist-src/compose-paginate.js
|
||||
var composePaginateRest = Object.assign(paginate, {
|
||||
iterator
|
||||
});
|
||||
|
||||
// pkg/dist-src/generated/paginating-endpoints.js
|
||||
var paginatingEndpoints = [
|
||||
"GET /advisories",
|
||||
"GET /app/hook/deliveries",
|
||||
"GET /app/installation-requests",
|
||||
"GET /app/installations",
|
||||
"GET /assignments/{assignment_id}/accepted_assignments",
|
||||
"GET /classrooms",
|
||||
"GET /classrooms/{classroom_id}/assignments",
|
||||
"GET /enterprises/{enterprise}/code-security/configurations",
|
||||
"GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories",
|
||||
"GET /enterprises/{enterprise}/dependabot/alerts",
|
||||
"GET /enterprises/{enterprise}/secret-scanning/alerts",
|
||||
"GET /events",
|
||||
"GET /gists",
|
||||
"GET /gists/public",
|
||||
"GET /gists/starred",
|
||||
"GET /gists/{gist_id}/comments",
|
||||
"GET /gists/{gist_id}/commits",
|
||||
"GET /gists/{gist_id}/forks",
|
||||
"GET /installation/repositories",
|
||||
"GET /issues",
|
||||
"GET /licenses",
|
||||
"GET /marketplace_listing/plans",
|
||||
"GET /marketplace_listing/plans/{plan_id}/accounts",
|
||||
"GET /marketplace_listing/stubbed/plans",
|
||||
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts",
|
||||
"GET /networks/{owner}/{repo}/events",
|
||||
"GET /notifications",
|
||||
"GET /organizations",
|
||||
"GET /orgs/{org}/actions/cache/usage-by-repository",
|
||||
"GET /orgs/{org}/actions/permissions/repositories",
|
||||
"GET /orgs/{org}/actions/runner-groups",
|
||||
"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories",
|
||||
"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners",
|
||||
"GET /orgs/{org}/actions/runners",
|
||||
"GET /orgs/{org}/actions/secrets",
|
||||
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories",
|
||||
"GET /orgs/{org}/actions/variables",
|
||||
"GET /orgs/{org}/actions/variables/{name}/repositories",
|
||||
"GET /orgs/{org}/attestations/{subject_digest}",
|
||||
"GET /orgs/{org}/blocks",
|
||||
"GET /orgs/{org}/code-scanning/alerts",
|
||||
"GET /orgs/{org}/code-security/configurations",
|
||||
"GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories",
|
||||
"GET /orgs/{org}/codespaces",
|
||||
"GET /orgs/{org}/codespaces/secrets",
|
||||
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories",
|
||||
"GET /orgs/{org}/copilot/billing/seats",
|
||||
"GET /orgs/{org}/copilot/metrics",
|
||||
"GET /orgs/{org}/copilot/usage",
|
||||
"GET /orgs/{org}/dependabot/alerts",
|
||||
"GET /orgs/{org}/dependabot/secrets",
|
||||
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories",
|
||||
"GET /orgs/{org}/events",
|
||||
"GET /orgs/{org}/failed_invitations",
|
||||
"GET /orgs/{org}/hooks",
|
||||
"GET /orgs/{org}/hooks/{hook_id}/deliveries",
|
||||
"GET /orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}",
|
||||
"GET /orgs/{org}/insights/api/subject-stats",
|
||||
"GET /orgs/{org}/insights/api/user-stats/{user_id}",
|
||||
"GET /orgs/{org}/installations",
|
||||
"GET /orgs/{org}/invitations",
|
||||
"GET /orgs/{org}/invitations/{invitation_id}/teams",
|
||||
"GET /orgs/{org}/issues",
|
||||
"GET /orgs/{org}/members",
|
||||
"GET /orgs/{org}/members/{username}/codespaces",
|
||||
"GET /orgs/{org}/migrations",
|
||||
"GET /orgs/{org}/migrations/{migration_id}/repositories",
|
||||
"GET /orgs/{org}/organization-roles/{role_id}/teams",
|
||||
"GET /orgs/{org}/organization-roles/{role_id}/users",
|
||||
"GET /orgs/{org}/outside_collaborators",
|
||||
"GET /orgs/{org}/packages",
|
||||
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
|
||||
"GET /orgs/{org}/personal-access-token-requests",
|
||||
"GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories",
|
||||
"GET /orgs/{org}/personal-access-tokens",
|
||||
"GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories",
|
||||
"GET /orgs/{org}/private-registries",
|
||||
"GET /orgs/{org}/projects",
|
||||
"GET /orgs/{org}/properties/values",
|
||||
"GET /orgs/{org}/public_members",
|
||||
"GET /orgs/{org}/repos",
|
||||
"GET /orgs/{org}/rulesets",
|
||||
"GET /orgs/{org}/rulesets/rule-suites",
|
||||
"GET /orgs/{org}/secret-scanning/alerts",
|
||||
"GET /orgs/{org}/security-advisories",
|
||||
"GET /orgs/{org}/team/{team_slug}/copilot/metrics",
|
||||
"GET /orgs/{org}/team/{team_slug}/copilot/usage",
|
||||
"GET /orgs/{org}/teams",
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions",
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",
|
||||
"GET /orgs/{org}/teams/{team_slug}/invitations",
|
||||
"GET /orgs/{org}/teams/{team_slug}/members",
|
||||
"GET /orgs/{org}/teams/{team_slug}/projects",
|
||||
"GET /orgs/{org}/teams/{team_slug}/repos",
|
||||
"GET /orgs/{org}/teams/{team_slug}/teams",
|
||||
"GET /projects/columns/{column_id}/cards",
|
||||
"GET /projects/{project_id}/collaborators",
|
||||
"GET /projects/{project_id}/columns",
|
||||
"GET /repos/{owner}/{repo}/actions/artifacts",
|
||||
"GET /repos/{owner}/{repo}/actions/caches",
|
||||
"GET /repos/{owner}/{repo}/actions/organization-secrets",
|
||||
"GET /repos/{owner}/{repo}/actions/organization-variables",
|
||||
"GET /repos/{owner}/{repo}/actions/runners",
|
||||
"GET /repos/{owner}/{repo}/actions/runs",
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs",
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs",
|
||||
"GET /repos/{owner}/{repo}/actions/secrets",
|
||||
"GET /repos/{owner}/{repo}/actions/variables",
|
||||
"GET /repos/{owner}/{repo}/actions/workflows",
|
||||
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs",
|
||||
"GET /repos/{owner}/{repo}/activity",
|
||||
"GET /repos/{owner}/{repo}/assignees",
|
||||
"GET /repos/{owner}/{repo}/attestations/{subject_digest}",
|
||||
"GET /repos/{owner}/{repo}/branches",
|
||||
"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations",
|
||||
"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs",
|
||||
"GET /repos/{owner}/{repo}/code-scanning/alerts",
|
||||
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
|
||||
"GET /repos/{owner}/{repo}/code-scanning/analyses",
|
||||
"GET /repos/{owner}/{repo}/codespaces",
|
||||
"GET /repos/{owner}/{repo}/codespaces/devcontainers",
|
||||
"GET /repos/{owner}/{repo}/codespaces/secrets",
|
||||
"GET /repos/{owner}/{repo}/collaborators",
|
||||
"GET /repos/{owner}/{repo}/comments",
|
||||
"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",
|
||||
"GET /repos/{owner}/{repo}/commits",
|
||||
"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments",
|
||||
"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",
|
||||
"GET /repos/{owner}/{repo}/commits/{ref}/check-runs",
|
||||
"GET /repos/{owner}/{repo}/commits/{ref}/check-suites",
|
||||
"GET /repos/{owner}/{repo}/commits/{ref}/status",
|
||||
"GET /repos/{owner}/{repo}/commits/{ref}/statuses",
|
||||
"GET /repos/{owner}/{repo}/contributors",
|
||||
"GET /repos/{owner}/{repo}/dependabot/alerts",
|
||||
"GET /repos/{owner}/{repo}/dependabot/secrets",
|
||||
"GET /repos/{owner}/{repo}/deployments",
|
||||
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses",
|
||||
"GET /repos/{owner}/{repo}/environments",
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps",
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets",
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables",
|
||||
"GET /repos/{owner}/{repo}/events",
|
||||
"GET /repos/{owner}/{repo}/forks",
|
||||
"GET /repos/{owner}/{repo}/hooks",
|
||||
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries",
|
||||
"GET /repos/{owner}/{repo}/invitations",
|
||||
"GET /repos/{owner}/{repo}/issues",
|
||||
"GET /repos/{owner}/{repo}/issues/comments",
|
||||
"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",
|
||||
"GET /repos/{owner}/{repo}/issues/events",
|
||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/comments",
|
||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/events",
|
||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/labels",
|
||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",
|
||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues",
|
||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",
|
||||
"GET /repos/{owner}/{repo}/keys",
|
||||
"GET /repos/{owner}/{repo}/labels",
|
||||
"GET /repos/{owner}/{repo}/milestones",
|
||||
"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels",
|
||||
"GET /repos/{owner}/{repo}/notifications",
|
||||
"GET /repos/{owner}/{repo}/pages/builds",
|
||||
"GET /repos/{owner}/{repo}/projects",
|
||||
"GET /repos/{owner}/{repo}/pulls",
|
||||
"GET /repos/{owner}/{repo}/pulls/comments",
|
||||
"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",
|
||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments",
|
||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/commits",
|
||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/files",
|
||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews",
|
||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments",
|
||||
"GET /repos/{owner}/{repo}/releases",
|
||||
"GET /repos/{owner}/{repo}/releases/{release_id}/assets",
|
||||
"GET /repos/{owner}/{repo}/releases/{release_id}/reactions",
|
||||
"GET /repos/{owner}/{repo}/rules/branches/{branch}",
|
||||
"GET /repos/{owner}/{repo}/rulesets",
|
||||
"GET /repos/{owner}/{repo}/rulesets/rule-suites",
|
||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts",
|
||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations",
|
||||
"GET /repos/{owner}/{repo}/security-advisories",
|
||||
"GET /repos/{owner}/{repo}/stargazers",
|
||||
"GET /repos/{owner}/{repo}/subscribers",
|
||||
"GET /repos/{owner}/{repo}/tags",
|
||||
"GET /repos/{owner}/{repo}/teams",
|
||||
"GET /repos/{owner}/{repo}/topics",
|
||||
"GET /repositories",
|
||||
"GET /search/code",
|
||||
"GET /search/commits",
|
||||
"GET /search/issues",
|
||||
"GET /search/labels",
|
||||
"GET /search/repositories",
|
||||
"GET /search/topics",
|
||||
"GET /search/users",
|
||||
"GET /teams/{team_id}/discussions",
|
||||
"GET /teams/{team_id}/discussions/{discussion_number}/comments",
|
||||
"GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions",
|
||||
"GET /teams/{team_id}/discussions/{discussion_number}/reactions",
|
||||
"GET /teams/{team_id}/invitations",
|
||||
"GET /teams/{team_id}/members",
|
||||
"GET /teams/{team_id}/projects",
|
||||
"GET /teams/{team_id}/repos",
|
||||
"GET /teams/{team_id}/teams",
|
||||
"GET /user/blocks",
|
||||
"GET /user/codespaces",
|
||||
"GET /user/codespaces/secrets",
|
||||
"GET /user/emails",
|
||||
"GET /user/followers",
|
||||
"GET /user/following",
|
||||
"GET /user/gpg_keys",
|
||||
"GET /user/installations",
|
||||
"GET /user/installations/{installation_id}/repositories",
|
||||
"GET /user/issues",
|
||||
"GET /user/keys",
|
||||
"GET /user/marketplace_purchases",
|
||||
"GET /user/marketplace_purchases/stubbed",
|
||||
"GET /user/memberships/orgs",
|
||||
"GET /user/migrations",
|
||||
"GET /user/migrations/{migration_id}/repositories",
|
||||
"GET /user/orgs",
|
||||
"GET /user/packages",
|
||||
"GET /user/packages/{package_type}/{package_name}/versions",
|
||||
"GET /user/public_emails",
|
||||
"GET /user/repos",
|
||||
"GET /user/repository_invitations",
|
||||
"GET /user/social_accounts",
|
||||
"GET /user/ssh_signing_keys",
|
||||
"GET /user/starred",
|
||||
"GET /user/subscriptions",
|
||||
"GET /user/teams",
|
||||
"GET /users",
|
||||
"GET /users/{username}/attestations/{subject_digest}",
|
||||
"GET /users/{username}/events",
|
||||
"GET /users/{username}/events/orgs/{org}",
|
||||
"GET /users/{username}/events/public",
|
||||
"GET /users/{username}/followers",
|
||||
"GET /users/{username}/following",
|
||||
"GET /users/{username}/gists",
|
||||
"GET /users/{username}/gpg_keys",
|
||||
"GET /users/{username}/keys",
|
||||
"GET /users/{username}/orgs",
|
||||
"GET /users/{username}/packages",
|
||||
"GET /users/{username}/projects",
|
||||
"GET /users/{username}/received_events",
|
||||
"GET /users/{username}/received_events/public",
|
||||
"GET /users/{username}/repos",
|
||||
"GET /users/{username}/social_accounts",
|
||||
"GET /users/{username}/ssh_signing_keys",
|
||||
"GET /users/{username}/starred",
|
||||
"GET /users/{username}/subscriptions"
|
||||
];
|
||||
|
||||
// pkg/dist-src/paginating-endpoints.js
|
||||
function isPaginatingEndpoint(arg) {
|
||||
if (typeof arg === "string") {
|
||||
return paginatingEndpoints.includes(arg);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
function paginateRest(octokit) {
|
||||
return {
|
||||
paginate: Object.assign(paginate.bind(null, octokit), {
|
||||
iterator: iterator.bind(null, octokit)
|
||||
})
|
||||
};
|
||||
}
|
||||
paginateRest.VERSION = VERSION;
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9210:
|
||||
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__nccwpck_require__.r(__webpack_exports__);
|
||||
|
||||
// EXPORTS
|
||||
__nccwpck_require__.d(__webpack_exports__, {
|
||||
legacyRestEndpointMethods: () => (/* binding */ legacyRestEndpointMethods),
|
||||
restEndpointMethods: () => (/* binding */ restEndpointMethods)
|
||||
});
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js
|
||||
const VERSION = "13.3.0";
|
||||
|
||||
//# sourceMappingURL=version.js.map
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js
|
||||
const Endpoints = {
|
||||
actions: {
|
||||
addCustomLabelsToSelfHostedRunnerForOrg: [
|
||||
"POST /orgs/{org}/actions/runners/{runner_id}/labels"
|
||||
],
|
||||
addCustomLabelsToSelfHostedRunnerForRepo: [
|
||||
"POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
||||
],
|
||||
addRepoAccessToSelfHostedRunnerGroupInOrg: [
|
||||
"PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"
|
||||
],
|
||||
addSelectedRepoToOrgSecret: [
|
||||
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
||||
],
|
||||
addSelectedRepoToOrgVariable: [
|
||||
"PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
||||
],
|
||||
approveWorkflowRun: [
|
||||
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"
|
||||
],
|
||||
cancelWorkflowRun: [
|
||||
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"
|
||||
],
|
||||
createEnvironmentVariable: [
|
||||
"POST /repos/{owner}/{repo}/environments/{environment_name}/variables"
|
||||
],
|
||||
createOrUpdateEnvironmentSecret: [
|
||||
"PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
||||
],
|
||||
createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"],
|
||||
createOrUpdateRepoSecret: [
|
||||
"PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
||||
],
|
||||
createOrgVariable: ["POST /orgs/{org}/actions/variables"],
|
||||
createRegistrationTokenForOrg: [
|
||||
"POST /orgs/{org}/actions/runners/registration-token"
|
||||
],
|
||||
createRegistrationTokenForRepo: [
|
||||
"POST /repos/{owner}/{repo}/actions/runners/registration-token"
|
||||
],
|
||||
createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"],
|
||||
createRemoveTokenForRepo: [
|
||||
"POST /repos/{owner}/{repo}/actions/runners/remove-token"
|
||||
],
|
||||
createRepoVariable: ["POST /repos/{owner}/{repo}/actions/variables"],
|
||||
createWorkflowDispatch: [
|
||||
"POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"
|
||||
],
|
||||
deleteActionsCacheById: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"
|
||||
],
|
||||
deleteActionsCacheByKey: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"
|
||||
],
|
||||
deleteArtifact: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
||||
],
|
||||
deleteEnvironmentSecret: [
|
||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
||||
],
|
||||
deleteEnvironmentVariable: [
|
||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
||||
],
|
||||
deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
|
||||
deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
|
||||
deleteRepoSecret: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
||||
],
|
||||
deleteRepoVariable: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/variables/{name}"
|
||||
],
|
||||
deleteSelfHostedRunnerFromOrg: [
|
||||
"DELETE /orgs/{org}/actions/runners/{runner_id}"
|
||||
],
|
||||
deleteSelfHostedRunnerFromRepo: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
||||
],
|
||||
deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
||||
deleteWorkflowRunLogs: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
||||
],
|
||||
disableSelectedRepositoryGithubActionsOrganization: [
|
||||
"DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
||||
],
|
||||
disableWorkflow: [
|
||||
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"
|
||||
],
|
||||
downloadArtifact: [
|
||||
"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"
|
||||
],
|
||||
downloadJobLogsForWorkflowRun: [
|
||||
"GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"
|
||||
],
|
||||
downloadWorkflowRunAttemptLogs: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"
|
||||
],
|
||||
downloadWorkflowRunLogs: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
||||
],
|
||||
enableSelectedRepositoryGithubActionsOrganization: [
|
||||
"PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
||||
],
|
||||
enableWorkflow: [
|
||||
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"
|
||||
],
|
||||
forceCancelWorkflowRun: [
|
||||
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"
|
||||
],
|
||||
generateRunnerJitconfigForOrg: [
|
||||
"POST /orgs/{org}/actions/runners/generate-jitconfig"
|
||||
],
|
||||
generateRunnerJitconfigForRepo: [
|
||||
"POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"
|
||||
],
|
||||
getActionsCacheList: ["GET /repos/{owner}/{repo}/actions/caches"],
|
||||
getActionsCacheUsage: ["GET /repos/{owner}/{repo}/actions/cache/usage"],
|
||||
getActionsCacheUsageByRepoForOrg: [
|
||||
"GET /orgs/{org}/actions/cache/usage-by-repository"
|
||||
],
|
||||
getActionsCacheUsageForOrg: ["GET /orgs/{org}/actions/cache/usage"],
|
||||
getAllowedActionsOrganization: [
|
||||
"GET /orgs/{org}/actions/permissions/selected-actions"
|
||||
],
|
||||
getAllowedActionsRepository: [
|
||||
"GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
||||
],
|
||||
getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
|
||||
getCustomOidcSubClaimForRepo: [
|
||||
"GET /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
||||
],
|
||||
getEnvironmentPublicKey: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"
|
||||
],
|
||||
getEnvironmentSecret: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
||||
],
|
||||
getEnvironmentVariable: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
||||
],
|
||||
getGithubActionsDefaultWorkflowPermissionsOrganization: [
|
||||
"GET /orgs/{org}/actions/permissions/workflow"
|
||||
],
|
||||
getGithubActionsDefaultWorkflowPermissionsRepository: [
|
||||
"GET /repos/{owner}/{repo}/actions/permissions/workflow"
|
||||
],
|
||||
getGithubActionsPermissionsOrganization: [
|
||||
"GET /orgs/{org}/actions/permissions"
|
||||
],
|
||||
getGithubActionsPermissionsRepository: [
|
||||
"GET /repos/{owner}/{repo}/actions/permissions"
|
||||
],
|
||||
getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
|
||||
getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
|
||||
getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
|
||||
getOrgVariable: ["GET /orgs/{org}/actions/variables/{name}"],
|
||||
getPendingDeploymentsForRun: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
||||
],
|
||||
getRepoPermissions: [
|
||||
"GET /repos/{owner}/{repo}/actions/permissions",
|
||||
{},
|
||||
{ renamed: ["actions", "getGithubActionsPermissionsRepository"] }
|
||||
],
|
||||
getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"],
|
||||
getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
|
||||
getRepoVariable: ["GET /repos/{owner}/{repo}/actions/variables/{name}"],
|
||||
getReviewsForRun: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"
|
||||
],
|
||||
getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"],
|
||||
getSelfHostedRunnerForRepo: [
|
||||
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
||||
],
|
||||
getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],
|
||||
getWorkflowAccessToRepository: [
|
||||
"GET /repos/{owner}/{repo}/actions/permissions/access"
|
||||
],
|
||||
getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
||||
getWorkflowRunAttempt: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"
|
||||
],
|
||||
getWorkflowRunUsage: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"
|
||||
],
|
||||
getWorkflowUsage: [
|
||||
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
||||
],
|
||||
listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
|
||||
listEnvironmentSecrets: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"
|
||||
],
|
||||
listEnvironmentVariables: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables"
|
||||
],
|
||||
listJobsForWorkflowRun: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
|
||||
],
|
||||
listJobsForWorkflowRunAttempt: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"
|
||||
],
|
||||
listLabelsForSelfHostedRunnerForOrg: [
|
||||
"GET /orgs/{org}/actions/runners/{runner_id}/labels"
|
||||
],
|
||||
listLabelsForSelfHostedRunnerForRepo: [
|
||||
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
||||
],
|
||||
listOrgSecrets: ["GET /orgs/{org}/actions/secrets"],
|
||||
listOrgVariables: ["GET /orgs/{org}/actions/variables"],
|
||||
listRepoOrganizationSecrets: [
|
||||
"GET /repos/{owner}/{repo}/actions/organization-secrets"
|
||||
],
|
||||
listRepoOrganizationVariables: [
|
||||
"GET /repos/{owner}/{repo}/actions/organization-variables"
|
||||
],
|
||||
listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"],
|
||||
listRepoVariables: ["GET /repos/{owner}/{repo}/actions/variables"],
|
||||
listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"],
|
||||
listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"],
|
||||
listRunnerApplicationsForRepo: [
|
||||
"GET /repos/{owner}/{repo}/actions/runners/downloads"
|
||||
],
|
||||
listSelectedReposForOrgSecret: [
|
||||
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
||||
],
|
||||
listSelectedReposForOrgVariable: [
|
||||
"GET /orgs/{org}/actions/variables/{name}/repositories"
|
||||
],
|
||||
listSelectedRepositoriesEnabledGithubActionsOrganization: [
|
||||
"GET /orgs/{org}/actions/permissions/repositories"
|
||||
],
|
||||
listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"],
|
||||
listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"],
|
||||
listWorkflowRunArtifacts: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"
|
||||
],
|
||||
listWorkflowRuns: [
|
||||
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"
|
||||
],
|
||||
listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"],
|
||||
reRunJobForWorkflowRun: [
|
||||
"POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"
|
||||
],
|
||||
reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],
|
||||
reRunWorkflowFailedJobs: [
|
||||
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"
|
||||
],
|
||||
removeAllCustomLabelsFromSelfHostedRunnerForOrg: [
|
||||
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels"
|
||||
],
|
||||
removeAllCustomLabelsFromSelfHostedRunnerForRepo: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
||||
],
|
||||
removeCustomLabelFromSelfHostedRunnerForOrg: [
|
||||
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"
|
||||
],
|
||||
removeCustomLabelFromSelfHostedRunnerForRepo: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"
|
||||
],
|
||||
removeSelectedRepoFromOrgSecret: [
|
||||
"DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
||||
],
|
||||
removeSelectedRepoFromOrgVariable: [
|
||||
"DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
||||
],
|
||||
reviewCustomGatesForRun: [
|
||||
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"
|
||||
],
|
||||
reviewPendingDeploymentsForRun: [
|
||||
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
||||
],
|
||||
setAllowedActionsOrganization: [
|
||||
"PUT /orgs/{org}/actions/permissions/selected-actions"
|
||||
],
|
||||
setAllowedActionsRepository: [
|
||||
"PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
||||
],
|
||||
setCustomLabelsForSelfHostedRunnerForOrg: [
|
||||
"PUT /orgs/{org}/actions/runners/{runner_id}/labels"
|
||||
],
|
||||
setCustomLabelsForSelfHostedRunnerForRepo: [
|
||||
"PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
||||
],
|
||||
setCustomOidcSubClaimForRepo: [
|
||||
"PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
||||
],
|
||||
setGithubActionsDefaultWorkflowPermissionsOrganization: [
|
||||
"PUT /orgs/{org}/actions/permissions/workflow"
|
||||
],
|
||||
setGithubActionsDefaultWorkflowPermissionsRepository: [
|
||||
"PUT /repos/{owner}/{repo}/actions/permissions/workflow"
|
||||
],
|
||||
setGithubActionsPermissionsOrganization: [
|
||||
"PUT /orgs/{org}/actions/permissions"
|
||||
],
|
||||
setGithubActionsPermissionsRepository: [
|
||||
"PUT /repos/{owner}/{repo}/actions/permissions"
|
||||
],
|
||||
setSelectedReposForOrgSecret: [
|
||||
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
||||
],
|
||||
setSelectedReposForOrgVariable: [
|
||||
"PUT /orgs/{org}/actions/variables/{name}/repositories"
|
||||
],
|
||||
setSelectedRepositoriesEnabledGithubActionsOrganization: [
|
||||
"PUT /orgs/{org}/actions/permissions/repositories"
|
||||
],
|
||||
setWorkflowAccessToRepository: [
|
||||
"PUT /repos/{owner}/{repo}/actions/permissions/access"
|
||||
],
|
||||
updateEnvironmentVariable: [
|
||||
"PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
||||
],
|
||||
updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
|
||||
updateRepoVariable: [
|
||||
"PATCH /repos/{owner}/{repo}/actions/variables/{name}"
|
||||
]
|
||||
},
|
||||
activity: {
|
||||
checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"],
|
||||
deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"],
|
||||
deleteThreadSubscription: [
|
||||
"DELETE /notifications/threads/{thread_id}/subscription"
|
||||
],
|
||||
getFeeds: ["GET /feeds"],
|
||||
getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"],
|
||||
getThread: ["GET /notifications/threads/{thread_id}"],
|
||||
getThreadSubscriptionForAuthenticatedUser: [
|
||||
"GET /notifications/threads/{thread_id}/subscription"
|
||||
],
|
||||
listEventsForAuthenticatedUser: ["GET /users/{username}/events"],
|
||||
listNotificationsForAuthenticatedUser: ["GET /notifications"],
|
||||
listOrgEventsForAuthenticatedUser: [
|
||||
"GET /users/{username}/events/orgs/{org}"
|
||||
],
|
||||
listPublicEvents: ["GET /events"],
|
||||
listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"],
|
||||
listPublicEventsForUser: ["GET /users/{username}/events/public"],
|
||||
listPublicOrgEvents: ["GET /orgs/{org}/events"],
|
||||
listReceivedEventsForUser: ["GET /users/{username}/received_events"],
|
||||
listReceivedPublicEventsForUser: [
|
||||
"GET /users/{username}/received_events/public"
|
||||
],
|
||||
listRepoEvents: ["GET /repos/{owner}/{repo}/events"],
|
||||
listRepoNotificationsForAuthenticatedUser: [
|
||||
"GET /repos/{owner}/{repo}/notifications"
|
||||
],
|
||||
listReposStarredByAuthenticatedUser: ["GET /user/starred"],
|
||||
listReposStarredByUser: ["GET /users/{username}/starred"],
|
||||
listReposWatchedByUser: ["GET /users/{username}/subscriptions"],
|
||||
listStargazersForRepo: ["GET /repos/{owner}/{repo}/stargazers"],
|
||||
listWatchedReposForAuthenticatedUser: ["GET /user/subscriptions"],
|
||||
listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"],
|
||||
markNotificationsAsRead: ["PUT /notifications"],
|
||||
markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"],
|
||||
markThreadAsDone: ["DELETE /notifications/threads/{thread_id}"],
|
||||
markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"],
|
||||
setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"],
|
||||
setThreadSubscription: [
|
||||
"PUT /notifications/threads/{thread_id}/subscription"
|
||||
],
|
||||
starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"],
|
||||
unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"]
|
||||
},
|
||||
apps: {
|
||||
addRepoToInstallation: [
|
||||
"PUT /user/installations/{installation_id}/repositories/{repository_id}",
|
||||
{},
|
||||
{ renamed: ["apps", "addRepoToInstallationForAuthenticatedUser"] }
|
||||
],
|
||||
addRepoToInstallationForAuthenticatedUser: [
|
||||
"PUT /user/installations/{installation_id}/repositories/{repository_id}"
|
||||
],
|
||||
checkToken: ["POST /applications/{client_id}/token"],
|
||||
createFromManifest: ["POST /app-manifests/{code}/conversions"],
|
||||
createInstallationAccessToken: [
|
||||
"POST /app/installations/{installation_id}/access_tokens"
|
||||
],
|
||||
deleteAuthorization: ["DELETE /applications/{client_id}/grant"],
|
||||
deleteInstallation: ["DELETE /app/installations/{installation_id}"],
|
||||
deleteToken: ["DELETE /applications/{client_id}/token"],
|
||||
getAuthenticated: ["GET /app"],
|
||||
getBySlug: ["GET /apps/{app_slug}"],
|
||||
getInstallation: ["GET /app/installations/{installation_id}"],
|
||||
getOrgInstallation: ["GET /orgs/{org}/installation"],
|
||||
getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"],
|
||||
getSubscriptionPlanForAccount: [
|
||||
"GET /marketplace_listing/accounts/{account_id}"
|
||||
],
|
||||
getSubscriptionPlanForAccountStubbed: [
|
||||
"GET /marketplace_listing/stubbed/accounts/{account_id}"
|
||||
],
|
||||
getUserInstallation: ["GET /users/{username}/installation"],
|
||||
getWebhookConfigForApp: ["GET /app/hook/config"],
|
||||
getWebhookDelivery: ["GET /app/hook/deliveries/{delivery_id}"],
|
||||
listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
|
||||
listAccountsForPlanStubbed: [
|
||||
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"
|
||||
],
|
||||
listInstallationReposForAuthenticatedUser: [
|
||||
"GET /user/installations/{installation_id}/repositories"
|
||||
],
|
||||
listInstallationRequestsForAuthenticatedApp: [
|
||||
"GET /app/installation-requests"
|
||||
],
|
||||
listInstallations: ["GET /app/installations"],
|
||||
listInstallationsForAuthenticatedUser: ["GET /user/installations"],
|
||||
listPlans: ["GET /marketplace_listing/plans"],
|
||||
listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"],
|
||||
listReposAccessibleToInstallation: ["GET /installation/repositories"],
|
||||
listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
|
||||
listSubscriptionsForAuthenticatedUserStubbed: [
|
||||
"GET /user/marketplace_purchases/stubbed"
|
||||
],
|
||||
listWebhookDeliveries: ["GET /app/hook/deliveries"],
|
||||
redeliverWebhookDelivery: [
|
||||
"POST /app/hook/deliveries/{delivery_id}/attempts"
|
||||
],
|
||||
removeRepoFromInstallation: [
|
||||
"DELETE /user/installations/{installation_id}/repositories/{repository_id}",
|
||||
{},
|
||||
{ renamed: ["apps", "removeRepoFromInstallationForAuthenticatedUser"] }
|
||||
],
|
||||
removeRepoFromInstallationForAuthenticatedUser: [
|
||||
"DELETE /user/installations/{installation_id}/repositories/{repository_id}"
|
||||
],
|
||||
resetToken: ["PATCH /applications/{client_id}/token"],
|
||||
revokeInstallationAccessToken: ["DELETE /installation/token"],
|
||||
scopeToken: ["POST /applications/{client_id}/token/scoped"],
|
||||
suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"],
|
||||
unsuspendInstallation: [
|
||||
"DELETE /app/installations/{installation_id}/suspended"
|
||||
],
|
||||
updateWebhookConfigForApp: ["PATCH /app/hook/config"]
|
||||
},
|
||||
billing: {
|
||||
getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"],
|
||||
getGithubActionsBillingUser: [
|
||||
"GET /users/{username}/settings/billing/actions"
|
||||
],
|
||||
getGithubBillingUsageReportOrg: [
|
||||
"GET /organizations/{org}/settings/billing/usage"
|
||||
],
|
||||
getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
|
||||
getGithubPackagesBillingUser: [
|
||||
"GET /users/{username}/settings/billing/packages"
|
||||
],
|
||||
getSharedStorageBillingOrg: [
|
||||
"GET /orgs/{org}/settings/billing/shared-storage"
|
||||
],
|
||||
getSharedStorageBillingUser: [
|
||||
"GET /users/{username}/settings/billing/shared-storage"
|
||||
]
|
||||
},
|
||||
checks: {
|
||||
create: ["POST /repos/{owner}/{repo}/check-runs"],
|
||||
createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
|
||||
get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],
|
||||
getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],
|
||||
listAnnotations: [
|
||||
"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"
|
||||
],
|
||||
listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],
|
||||
listForSuite: [
|
||||
"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"
|
||||
],
|
||||
listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],
|
||||
rerequestRun: [
|
||||
"POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"
|
||||
],
|
||||
rerequestSuite: [
|
||||
"POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"
|
||||
],
|
||||
setSuitesPreferences: [
|
||||
"PATCH /repos/{owner}/{repo}/check-suites/preferences"
|
||||
],
|
||||
update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]
|
||||
},
|
||||
codeScanning: {
|
||||
commitAutofix: [
|
||||
"POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits"
|
||||
],
|
||||
createAutofix: [
|
||||
"POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"
|
||||
],
|
||||
createVariantAnalysis: [
|
||||
"POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses"
|
||||
],
|
||||
deleteAnalysis: [
|
||||
"DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"
|
||||
],
|
||||
deleteCodeqlDatabase: [
|
||||
"DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"
|
||||
],
|
||||
getAlert: [
|
||||
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",
|
||||
{},
|
||||
{ renamedParameters: { alert_id: "alert_number" } }
|
||||
],
|
||||
getAnalysis: [
|
||||
"GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"
|
||||
],
|
||||
getAutofix: [
|
||||
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"
|
||||
],
|
||||
getCodeqlDatabase: [
|
||||
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"
|
||||
],
|
||||
getDefaultSetup: ["GET /repos/{owner}/{repo}/code-scanning/default-setup"],
|
||||
getSarif: ["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],
|
||||
getVariantAnalysis: [
|
||||
"GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}"
|
||||
],
|
||||
getVariantAnalysisRepoTask: [
|
||||
"GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}"
|
||||
],
|
||||
listAlertInstances: [
|
||||
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"
|
||||
],
|
||||
listAlertsForOrg: ["GET /orgs/{org}/code-scanning/alerts"],
|
||||
listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"],
|
||||
listAlertsInstances: [
|
||||
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
|
||||
{},
|
||||
{ renamed: ["codeScanning", "listAlertInstances"] }
|
||||
],
|
||||
listCodeqlDatabases: [
|
||||
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases"
|
||||
],
|
||||
listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"],
|
||||
updateAlert: [
|
||||
"PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"
|
||||
],
|
||||
updateDefaultSetup: [
|
||||
"PATCH /repos/{owner}/{repo}/code-scanning/default-setup"
|
||||
],
|
||||
uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"]
|
||||
},
|
||||
codeSecurity: {
|
||||
attachConfiguration: [
|
||||
"POST /orgs/{org}/code-security/configurations/{configuration_id}/attach"
|
||||
],
|
||||
attachEnterpriseConfiguration: [
|
||||
"POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach"
|
||||
],
|
||||
createConfiguration: ["POST /orgs/{org}/code-security/configurations"],
|
||||
createConfigurationForEnterprise: [
|
||||
"POST /enterprises/{enterprise}/code-security/configurations"
|
||||
],
|
||||
deleteConfiguration: [
|
||||
"DELETE /orgs/{org}/code-security/configurations/{configuration_id}"
|
||||
],
|
||||
deleteConfigurationForEnterprise: [
|
||||
"DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}"
|
||||
],
|
||||
detachConfiguration: [
|
||||
"DELETE /orgs/{org}/code-security/configurations/detach"
|
||||
],
|
||||
getConfiguration: [
|
||||
"GET /orgs/{org}/code-security/configurations/{configuration_id}"
|
||||
],
|
||||
getConfigurationForRepository: [
|
||||
"GET /repos/{owner}/{repo}/code-security-configuration"
|
||||
],
|
||||
getConfigurationsForEnterprise: [
|
||||
"GET /enterprises/{enterprise}/code-security/configurations"
|
||||
],
|
||||
getConfigurationsForOrg: ["GET /orgs/{org}/code-security/configurations"],
|
||||
getDefaultConfigurations: [
|
||||
"GET /orgs/{org}/code-security/configurations/defaults"
|
||||
],
|
||||
getDefaultConfigurationsForEnterprise: [
|
||||
"GET /enterprises/{enterprise}/code-security/configurations/defaults"
|
||||
],
|
||||
getRepositoriesForConfiguration: [
|
||||
"GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories"
|
||||
],
|
||||
getRepositoriesForEnterpriseConfiguration: [
|
||||
"GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories"
|
||||
],
|
||||
getSingleConfigurationForEnterprise: [
|
||||
"GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}"
|
||||
],
|
||||
setConfigurationAsDefault: [
|
||||
"PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults"
|
||||
],
|
||||
setConfigurationAsDefaultForEnterprise: [
|
||||
"PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults"
|
||||
],
|
||||
updateConfiguration: [
|
||||
"PATCH /orgs/{org}/code-security/configurations/{configuration_id}"
|
||||
],
|
||||
updateEnterpriseConfiguration: [
|
||||
"PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}"
|
||||
]
|
||||
},
|
||||
codesOfConduct: {
|
||||
getAllCodesOfConduct: ["GET /codes_of_conduct"],
|
||||
getConductCode: ["GET /codes_of_conduct/{key}"]
|
||||
},
|
||||
codespaces: {
|
||||
addRepositoryForSecretForAuthenticatedUser: [
|
||||
"PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
||||
],
|
||||
addSelectedRepoToOrgSecret: [
|
||||
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
||||
],
|
||||
checkPermissionsForDevcontainer: [
|
||||
"GET /repos/{owner}/{repo}/codespaces/permissions_check"
|
||||
],
|
||||
codespaceMachinesForAuthenticatedUser: [
|
||||
"GET /user/codespaces/{codespace_name}/machines"
|
||||
],
|
||||
createForAuthenticatedUser: ["POST /user/codespaces"],
|
||||
createOrUpdateOrgSecret: [
|
||||
"PUT /orgs/{org}/codespaces/secrets/{secret_name}"
|
||||
],
|
||||
createOrUpdateRepoSecret: [
|
||||
"PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
||||
],
|
||||
createOrUpdateSecretForAuthenticatedUser: [
|
||||
"PUT /user/codespaces/secrets/{secret_name}"
|
||||
],
|
||||
createWithPrForAuthenticatedUser: [
|
||||
"POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"
|
||||
],
|
||||
createWithRepoForAuthenticatedUser: [
|
||||
"POST /repos/{owner}/{repo}/codespaces"
|
||||
],
|
||||
deleteForAuthenticatedUser: ["DELETE /user/codespaces/{codespace_name}"],
|
||||
deleteFromOrganization: [
|
||||
"DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"
|
||||
],
|
||||
deleteOrgSecret: ["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],
|
||||
deleteRepoSecret: [
|
||||
"DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
||||
],
|
||||
deleteSecretForAuthenticatedUser: [
|
||||
"DELETE /user/codespaces/secrets/{secret_name}"
|
||||
],
|
||||
exportForAuthenticatedUser: [
|
||||
"POST /user/codespaces/{codespace_name}/exports"
|
||||
],
|
||||
getCodespacesForUserInOrg: [
|
||||
"GET /orgs/{org}/members/{username}/codespaces"
|
||||
],
|
||||
getExportDetailsForAuthenticatedUser: [
|
||||
"GET /user/codespaces/{codespace_name}/exports/{export_id}"
|
||||
],
|
||||
getForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}"],
|
||||
getOrgPublicKey: ["GET /orgs/{org}/codespaces/secrets/public-key"],
|
||||
getOrgSecret: ["GET /orgs/{org}/codespaces/secrets/{secret_name}"],
|
||||
getPublicKeyForAuthenticatedUser: [
|
||||
"GET /user/codespaces/secrets/public-key"
|
||||
],
|
||||
getRepoPublicKey: [
|
||||
"GET /repos/{owner}/{repo}/codespaces/secrets/public-key"
|
||||
],
|
||||
getRepoSecret: [
|
||||
"GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
||||
],
|
||||
getSecretForAuthenticatedUser: [
|
||||
"GET /user/codespaces/secrets/{secret_name}"
|
||||
],
|
||||
listDevcontainersInRepositoryForAuthenticatedUser: [
|
||||
"GET /repos/{owner}/{repo}/codespaces/devcontainers"
|
||||
],
|
||||
listForAuthenticatedUser: ["GET /user/codespaces"],
|
||||
listInOrganization: [
|
||||
"GET /orgs/{org}/codespaces",
|
||||
{},
|
||||
{ renamedParameters: { org_id: "org" } }
|
||||
],
|
||||
listInRepositoryForAuthenticatedUser: [
|
||||
"GET /repos/{owner}/{repo}/codespaces"
|
||||
],
|
||||
listOrgSecrets: ["GET /orgs/{org}/codespaces/secrets"],
|
||||
listRepoSecrets: ["GET /repos/{owner}/{repo}/codespaces/secrets"],
|
||||
listRepositoriesForSecretForAuthenticatedUser: [
|
||||
"GET /user/codespaces/secrets/{secret_name}/repositories"
|
||||
],
|
||||
listSecretsForAuthenticatedUser: ["GET /user/codespaces/secrets"],
|
||||
listSelectedReposForOrgSecret: [
|
||||
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
||||
],
|
||||
preFlightWithRepoForAuthenticatedUser: [
|
||||
"GET /repos/{owner}/{repo}/codespaces/new"
|
||||
],
|
||||
publishForAuthenticatedUser: [
|
||||
"POST /user/codespaces/{codespace_name}/publish"
|
||||
],
|
||||
removeRepositoryForSecretForAuthenticatedUser: [
|
||||
"DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
||||
],
|
||||
removeSelectedRepoFromOrgSecret: [
|
||||
"DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
||||
],
|
||||
repoMachinesForAuthenticatedUser: [
|
||||
"GET /repos/{owner}/{repo}/codespaces/machines"
|
||||
],
|
||||
setRepositoriesForSecretForAuthenticatedUser: [
|
||||
"PUT /user/codespaces/secrets/{secret_name}/repositories"
|
||||
],
|
||||
setSelectedReposForOrgSecret: [
|
||||
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
||||
],
|
||||
startForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/start"],
|
||||
stopForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/stop"],
|
||||
stopInOrganization: [
|
||||
"POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"
|
||||
],
|
||||
updateForAuthenticatedUser: ["PATCH /user/codespaces/{codespace_name}"]
|
||||
},
|
||||
copilot: {
|
||||
addCopilotSeatsForTeams: [
|
||||
"POST /orgs/{org}/copilot/billing/selected_teams"
|
||||
],
|
||||
addCopilotSeatsForUsers: [
|
||||
"POST /orgs/{org}/copilot/billing/selected_users"
|
||||
],
|
||||
cancelCopilotSeatAssignmentForTeams: [
|
||||
"DELETE /orgs/{org}/copilot/billing/selected_teams"
|
||||
],
|
||||
cancelCopilotSeatAssignmentForUsers: [
|
||||
"DELETE /orgs/{org}/copilot/billing/selected_users"
|
||||
],
|
||||
copilotMetricsForOrganization: ["GET /orgs/{org}/copilot/metrics"],
|
||||
copilotMetricsForTeam: ["GET /orgs/{org}/team/{team_slug}/copilot/metrics"],
|
||||
getCopilotOrganizationDetails: ["GET /orgs/{org}/copilot/billing"],
|
||||
getCopilotSeatDetailsForUser: [
|
||||
"GET /orgs/{org}/members/{username}/copilot"
|
||||
],
|
||||
listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"],
|
||||
usageMetricsForOrg: ["GET /orgs/{org}/copilot/usage"],
|
||||
usageMetricsForTeam: ["GET /orgs/{org}/team/{team_slug}/copilot/usage"]
|
||||
},
|
||||
dependabot: {
|
||||
addSelectedRepoToOrgSecret: [
|
||||
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
||||
],
|
||||
createOrUpdateOrgSecret: [
|
||||
"PUT /orgs/{org}/dependabot/secrets/{secret_name}"
|
||||
],
|
||||
createOrUpdateRepoSecret: [
|
||||
"PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
||||
],
|
||||
deleteOrgSecret: ["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],
|
||||
deleteRepoSecret: [
|
||||
"DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
||||
],
|
||||
getAlert: ["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],
|
||||
getOrgPublicKey: ["GET /orgs/{org}/dependabot/secrets/public-key"],
|
||||
getOrgSecret: ["GET /orgs/{org}/dependabot/secrets/{secret_name}"],
|
||||
getRepoPublicKey: [
|
||||
"GET /repos/{owner}/{repo}/dependabot/secrets/public-key"
|
||||
],
|
||||
getRepoSecret: [
|
||||
"GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
||||
],
|
||||
listAlertsForEnterprise: [
|
||||
"GET /enterprises/{enterprise}/dependabot/alerts"
|
||||
],
|
||||
listAlertsForOrg: ["GET /orgs/{org}/dependabot/alerts"],
|
||||
listAlertsForRepo: ["GET /repos/{owner}/{repo}/dependabot/alerts"],
|
||||
listOrgSecrets: ["GET /orgs/{org}/dependabot/secrets"],
|
||||
listRepoSecrets: ["GET /repos/{owner}/{repo}/dependabot/secrets"],
|
||||
listSelectedReposForOrgSecret: [
|
||||
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
||||
],
|
||||
removeSelectedRepoFromOrgSecret: [
|
||||
"DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
||||
],
|
||||
setSelectedReposForOrgSecret: [
|
||||
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
||||
],
|
||||
updateAlert: [
|
||||
"PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"
|
||||
]
|
||||
},
|
||||
dependencyGraph: {
|
||||
createRepositorySnapshot: [
|
||||
"POST /repos/{owner}/{repo}/dependency-graph/snapshots"
|
||||
],
|
||||
diffRange: [
|
||||
"GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"
|
||||
],
|
||||
exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
|
||||
},
|
||||
emojis: { get: ["GET /emojis"] },
|
||||
gists: {
|
||||
checkIsStarred: ["GET /gists/{gist_id}/star"],
|
||||
create: ["POST /gists"],
|
||||
createComment: ["POST /gists/{gist_id}/comments"],
|
||||
delete: ["DELETE /gists/{gist_id}"],
|
||||
deleteComment: ["DELETE /gists/{gist_id}/comments/{comment_id}"],
|
||||
fork: ["POST /gists/{gist_id}/forks"],
|
||||
get: ["GET /gists/{gist_id}"],
|
||||
getComment: ["GET /gists/{gist_id}/comments/{comment_id}"],
|
||||
getRevision: ["GET /gists/{gist_id}/{sha}"],
|
||||
list: ["GET /gists"],
|
||||
listComments: ["GET /gists/{gist_id}/comments"],
|
||||
listCommits: ["GET /gists/{gist_id}/commits"],
|
||||
listForUser: ["GET /users/{username}/gists"],
|
||||
listForks: ["GET /gists/{gist_id}/forks"],
|
||||
listPublic: ["GET /gists/public"],
|
||||
listStarred: ["GET /gists/starred"],
|
||||
star: ["PUT /gists/{gist_id}/star"],
|
||||
unstar: ["DELETE /gists/{gist_id}/star"],
|
||||
update: ["PATCH /gists/{gist_id}"],
|
||||
updateComment: ["PATCH /gists/{gist_id}/comments/{comment_id}"]
|
||||
},
|
||||
git: {
|
||||
createBlob: ["POST /repos/{owner}/{repo}/git/blobs"],
|
||||
createCommit: ["POST /repos/{owner}/{repo}/git/commits"],
|
||||
createRef: ["POST /repos/{owner}/{repo}/git/refs"],
|
||||
createTag: ["POST /repos/{owner}/{repo}/git/tags"],
|
||||
createTree: ["POST /repos/{owner}/{repo}/git/trees"],
|
||||
deleteRef: ["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],
|
||||
getBlob: ["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],
|
||||
getCommit: ["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],
|
||||
getRef: ["GET /repos/{owner}/{repo}/git/ref/{ref}"],
|
||||
getTag: ["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],
|
||||
getTree: ["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],
|
||||
listMatchingRefs: ["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],
|
||||
updateRef: ["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]
|
||||
},
|
||||
gitignore: {
|
||||
getAllTemplates: ["GET /gitignore/templates"],
|
||||
getTemplate: ["GET /gitignore/templates/{name}"]
|
||||
},
|
||||
interactions: {
|
||||
getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
|
||||
getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
|
||||
getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"],
|
||||
getRestrictionsForYourPublicRepos: [
|
||||
"GET /user/interaction-limits",
|
||||
{},
|
||||
{ renamed: ["interactions", "getRestrictionsForAuthenticatedUser"] }
|
||||
],
|
||||
removeRestrictionsForAuthenticatedUser: ["DELETE /user/interaction-limits"],
|
||||
removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"],
|
||||
removeRestrictionsForRepo: [
|
||||
"DELETE /repos/{owner}/{repo}/interaction-limits"
|
||||
],
|
||||
removeRestrictionsForYourPublicRepos: [
|
||||
"DELETE /user/interaction-limits",
|
||||
{},
|
||||
{ renamed: ["interactions", "removeRestrictionsForAuthenticatedUser"] }
|
||||
],
|
||||
setRestrictionsForAuthenticatedUser: ["PUT /user/interaction-limits"],
|
||||
setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"],
|
||||
setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"],
|
||||
setRestrictionsForYourPublicRepos: [
|
||||
"PUT /user/interaction-limits",
|
||||
{},
|
||||
{ renamed: ["interactions", "setRestrictionsForAuthenticatedUser"] }
|
||||
]
|
||||
},
|
||||
issues: {
|
||||
addAssignees: [
|
||||
"POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
||||
],
|
||||
addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
||||
addSubIssue: [
|
||||
"POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"
|
||||
],
|
||||
checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"],
|
||||
checkUserCanBeAssignedToIssue: [
|
||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"
|
||||
],
|
||||
create: ["POST /repos/{owner}/{repo}/issues"],
|
||||
createComment: [
|
||||
"POST /repos/{owner}/{repo}/issues/{issue_number}/comments"
|
||||
],
|
||||
createLabel: ["POST /repos/{owner}/{repo}/labels"],
|
||||
createMilestone: ["POST /repos/{owner}/{repo}/milestones"],
|
||||
deleteComment: [
|
||||
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"
|
||||
],
|
||||
deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"],
|
||||
deleteMilestone: [
|
||||
"DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"
|
||||
],
|
||||
get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"],
|
||||
getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
||||
getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"],
|
||||
getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"],
|
||||
getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],
|
||||
list: ["GET /issues"],
|
||||
listAssignees: ["GET /repos/{owner}/{repo}/assignees"],
|
||||
listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],
|
||||
listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"],
|
||||
listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],
|
||||
listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"],
|
||||
listEventsForTimeline: [
|
||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"
|
||||
],
|
||||
listForAuthenticatedUser: ["GET /user/issues"],
|
||||
listForOrg: ["GET /orgs/{org}/issues"],
|
||||
listForRepo: ["GET /repos/{owner}/{repo}/issues"],
|
||||
listLabelsForMilestone: [
|
||||
"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"
|
||||
],
|
||||
listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"],
|
||||
listLabelsOnIssue: [
|
||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
||||
],
|
||||
listMilestones: ["GET /repos/{owner}/{repo}/milestones"],
|
||||
listSubIssues: [
|
||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"
|
||||
],
|
||||
lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
||||
removeAllLabels: [
|
||||
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
||||
],
|
||||
removeAssignees: [
|
||||
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
||||
],
|
||||
removeLabel: [
|
||||
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
|
||||
],
|
||||
removeSubIssue: [
|
||||
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue"
|
||||
],
|
||||
reprioritizeSubIssue: [
|
||||
"PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority"
|
||||
],
|
||||
setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
||||
unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
||||
update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],
|
||||
updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
||||
updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"],
|
||||
updateMilestone: [
|
||||
"PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"
|
||||
]
|
||||
},
|
||||
licenses: {
|
||||
get: ["GET /licenses/{license}"],
|
||||
getAllCommonlyUsed: ["GET /licenses"],
|
||||
getForRepo: ["GET /repos/{owner}/{repo}/license"]
|
||||
},
|
||||
markdown: {
|
||||
render: ["POST /markdown"],
|
||||
renderRaw: [
|
||||
"POST /markdown/raw",
|
||||
{ headers: { "content-type": "text/plain; charset=utf-8" } }
|
||||
]
|
||||
},
|
||||
meta: {
|
||||
get: ["GET /meta"],
|
||||
getAllVersions: ["GET /versions"],
|
||||
getOctocat: ["GET /octocat"],
|
||||
getZen: ["GET /zen"],
|
||||
root: ["GET /"]
|
||||
},
|
||||
migrations: {
|
||||
deleteArchiveForAuthenticatedUser: [
|
||||
"DELETE /user/migrations/{migration_id}/archive"
|
||||
],
|
||||
deleteArchiveForOrg: [
|
||||
"DELETE /orgs/{org}/migrations/{migration_id}/archive"
|
||||
],
|
||||
downloadArchiveForOrg: [
|
||||
"GET /orgs/{org}/migrations/{migration_id}/archive"
|
||||
],
|
||||
getArchiveForAuthenticatedUser: [
|
||||
"GET /user/migrations/{migration_id}/archive"
|
||||
],
|
||||
getStatusForAuthenticatedUser: ["GET /user/migrations/{migration_id}"],
|
||||
getStatusForOrg: ["GET /orgs/{org}/migrations/{migration_id}"],
|
||||
listForAuthenticatedUser: ["GET /user/migrations"],
|
||||
listForOrg: ["GET /orgs/{org}/migrations"],
|
||||
listReposForAuthenticatedUser: [
|
||||
"GET /user/migrations/{migration_id}/repositories"
|
||||
],
|
||||
listReposForOrg: ["GET /orgs/{org}/migrations/{migration_id}/repositories"],
|
||||
listReposForUser: [
|
||||
"GET /user/migrations/{migration_id}/repositories",
|
||||
{},
|
||||
{ renamed: ["migrations", "listReposForAuthenticatedUser"] }
|
||||
],
|
||||
startForAuthenticatedUser: ["POST /user/migrations"],
|
||||
startForOrg: ["POST /orgs/{org}/migrations"],
|
||||
unlockRepoForAuthenticatedUser: [
|
||||
"DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"
|
||||
],
|
||||
unlockRepoForOrg: [
|
||||
"DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"
|
||||
]
|
||||
},
|
||||
oidc: {
|
||||
getOidcCustomSubTemplateForOrg: [
|
||||
"GET /orgs/{org}/actions/oidc/customization/sub"
|
||||
],
|
||||
updateOidcCustomSubTemplateForOrg: [
|
||||
"PUT /orgs/{org}/actions/oidc/customization/sub"
|
||||
]
|
||||
},
|
||||
orgs: {
|
||||
addSecurityManagerTeam: [
|
||||
"PUT /orgs/{org}/security-managers/teams/{team_slug}",
|
||||
{},
|
||||
{
|
||||
deprecated: "octokit.rest.orgs.addSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#add-a-security-manager-team"
|
||||
}
|
||||
],
|
||||
assignTeamToOrgRole: [
|
||||
"PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"
|
||||
],
|
||||
assignUserToOrgRole: [
|
||||
"PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"
|
||||
],
|
||||
blockUser: ["PUT /orgs/{org}/blocks/{username}"],
|
||||
cancelInvitation: ["DELETE /orgs/{org}/invitations/{invitation_id}"],
|
||||
checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"],
|
||||
checkMembershipForUser: ["GET /orgs/{org}/members/{username}"],
|
||||
checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"],
|
||||
convertMemberToOutsideCollaborator: [
|
||||
"PUT /orgs/{org}/outside_collaborators/{username}"
|
||||
],
|
||||
createInvitation: ["POST /orgs/{org}/invitations"],
|
||||
createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"],
|
||||
createOrUpdateCustomPropertiesValuesForRepos: [
|
||||
"PATCH /orgs/{org}/properties/values"
|
||||
],
|
||||
createOrUpdateCustomProperty: [
|
||||
"PUT /orgs/{org}/properties/schema/{custom_property_name}"
|
||||
],
|
||||
createWebhook: ["POST /orgs/{org}/hooks"],
|
||||
delete: ["DELETE /orgs/{org}"],
|
||||
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
|
||||
enableOrDisableSecurityProductOnAllOrgRepos: [
|
||||
"POST /orgs/{org}/{security_product}/{enablement}",
|
||||
{},
|
||||
{
|
||||
deprecated: "octokit.rest.orgs.enableOrDisableSecurityProductOnAllOrgRepos() is deprecated, see https://docs.github.com/rest/orgs/orgs#enable-or-disable-a-security-feature-for-an-organization"
|
||||
}
|
||||
],
|
||||
get: ["GET /orgs/{org}"],
|
||||
getAllCustomProperties: ["GET /orgs/{org}/properties/schema"],
|
||||
getCustomProperty: [
|
||||
"GET /orgs/{org}/properties/schema/{custom_property_name}"
|
||||
],
|
||||
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
||||
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
||||
getOrgRole: ["GET /orgs/{org}/organization-roles/{role_id}"],
|
||||
getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
|
||||
getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
|
||||
getWebhookDelivery: [
|
||||
"GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"
|
||||
],
|
||||
list: ["GET /organizations"],
|
||||
listAppInstallations: ["GET /orgs/{org}/installations"],
|
||||
listAttestations: ["GET /orgs/{org}/attestations/{subject_digest}"],
|
||||
listBlockedUsers: ["GET /orgs/{org}/blocks"],
|
||||
listCustomPropertiesValuesForRepos: ["GET /orgs/{org}/properties/values"],
|
||||
listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
|
||||
listForAuthenticatedUser: ["GET /user/orgs"],
|
||||
listForUser: ["GET /users/{username}/orgs"],
|
||||
listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
|
||||
listMembers: ["GET /orgs/{org}/members"],
|
||||
listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
|
||||
listOrgRoleTeams: ["GET /orgs/{org}/organization-roles/{role_id}/teams"],
|
||||
listOrgRoleUsers: ["GET /orgs/{org}/organization-roles/{role_id}/users"],
|
||||
listOrgRoles: ["GET /orgs/{org}/organization-roles"],
|
||||
listOrganizationFineGrainedPermissions: [
|
||||
"GET /orgs/{org}/organization-fine-grained-permissions"
|
||||
],
|
||||
listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"],
|
||||
listPatGrantRepositories: [
|
||||
"GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"
|
||||
],
|
||||
listPatGrantRequestRepositories: [
|
||||
"GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"
|
||||
],
|
||||
listPatGrantRequests: ["GET /orgs/{org}/personal-access-token-requests"],
|
||||
listPatGrants: ["GET /orgs/{org}/personal-access-tokens"],
|
||||
listPendingInvitations: ["GET /orgs/{org}/invitations"],
|
||||
listPublicMembers: ["GET /orgs/{org}/public_members"],
|
||||
listSecurityManagerTeams: [
|
||||
"GET /orgs/{org}/security-managers",
|
||||
{},
|
||||
{
|
||||
deprecated: "octokit.rest.orgs.listSecurityManagerTeams() is deprecated, see https://docs.github.com/rest/orgs/security-managers#list-security-manager-teams"
|
||||
}
|
||||
],
|
||||
listWebhookDeliveries: ["GET /orgs/{org}/hooks/{hook_id}/deliveries"],
|
||||
listWebhooks: ["GET /orgs/{org}/hooks"],
|
||||
pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"],
|
||||
redeliverWebhookDelivery: [
|
||||
"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
||||
],
|
||||
removeCustomProperty: [
|
||||
"DELETE /orgs/{org}/properties/schema/{custom_property_name}"
|
||||
],
|
||||
removeMember: ["DELETE /orgs/{org}/members/{username}"],
|
||||
removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
|
||||
removeOutsideCollaborator: [
|
||||
"DELETE /orgs/{org}/outside_collaborators/{username}"
|
||||
],
|
||||
removePublicMembershipForAuthenticatedUser: [
|
||||
"DELETE /orgs/{org}/public_members/{username}"
|
||||
],
|
||||
removeSecurityManagerTeam: [
|
||||
"DELETE /orgs/{org}/security-managers/teams/{team_slug}",
|
||||
{},
|
||||
{
|
||||
deprecated: "octokit.rest.orgs.removeSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team"
|
||||
}
|
||||
],
|
||||
reviewPatGrantRequest: [
|
||||
"POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"
|
||||
],
|
||||
reviewPatGrantRequestsInBulk: [
|
||||
"POST /orgs/{org}/personal-access-token-requests"
|
||||
],
|
||||
revokeAllOrgRolesTeam: [
|
||||
"DELETE /orgs/{org}/organization-roles/teams/{team_slug}"
|
||||
],
|
||||
revokeAllOrgRolesUser: [
|
||||
"DELETE /orgs/{org}/organization-roles/users/{username}"
|
||||
],
|
||||
revokeOrgRoleTeam: [
|
||||
"DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"
|
||||
],
|
||||
revokeOrgRoleUser: [
|
||||
"DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"
|
||||
],
|
||||
setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
|
||||
setPublicMembershipForAuthenticatedUser: [
|
||||
"PUT /orgs/{org}/public_members/{username}"
|
||||
],
|
||||
unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
|
||||
update: ["PATCH /orgs/{org}"],
|
||||
updateMembershipForAuthenticatedUser: [
|
||||
"PATCH /user/memberships/orgs/{org}"
|
||||
],
|
||||
updatePatAccess: ["POST /orgs/{org}/personal-access-tokens/{pat_id}"],
|
||||
updatePatAccesses: ["POST /orgs/{org}/personal-access-tokens"],
|
||||
updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"],
|
||||
updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"]
|
||||
},
|
||||
packages: {
|
||||
deletePackageForAuthenticatedUser: [
|
||||
"DELETE /user/packages/{package_type}/{package_name}"
|
||||
],
|
||||
deletePackageForOrg: [
|
||||
"DELETE /orgs/{org}/packages/{package_type}/{package_name}"
|
||||
],
|
||||
deletePackageForUser: [
|
||||
"DELETE /users/{username}/packages/{package_type}/{package_name}"
|
||||
],
|
||||
deletePackageVersionForAuthenticatedUser: [
|
||||
"DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
||||
],
|
||||
deletePackageVersionForOrg: [
|
||||
"DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
||||
],
|
||||
deletePackageVersionForUser: [
|
||||
"DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
||||
],
|
||||
getAllPackageVersionsForAPackageOwnedByAnOrg: [
|
||||
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
|
||||
{},
|
||||
{ renamed: ["packages", "getAllPackageVersionsForPackageOwnedByOrg"] }
|
||||
],
|
||||
getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: [
|
||||
"GET /user/packages/{package_type}/{package_name}/versions",
|
||||
{},
|
||||
{
|
||||
renamed: [
|
||||
"packages",
|
||||
"getAllPackageVersionsForPackageOwnedByAuthenticatedUser"
|
||||
]
|
||||
}
|
||||
],
|
||||
getAllPackageVersionsForPackageOwnedByAuthenticatedUser: [
|
||||
"GET /user/packages/{package_type}/{package_name}/versions"
|
||||
],
|
||||
getAllPackageVersionsForPackageOwnedByOrg: [
|
||||
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions"
|
||||
],
|
||||
getAllPackageVersionsForPackageOwnedByUser: [
|
||||
"GET /users/{username}/packages/{package_type}/{package_name}/versions"
|
||||
],
|
||||
getPackageForAuthenticatedUser: [
|
||||
"GET /user/packages/{package_type}/{package_name}"
|
||||
],
|
||||
getPackageForOrganization: [
|
||||
"GET /orgs/{org}/packages/{package_type}/{package_name}"
|
||||
],
|
||||
getPackageForUser: [
|
||||
"GET /users/{username}/packages/{package_type}/{package_name}"
|
||||
],
|
||||
getPackageVersionForAuthenticatedUser: [
|
||||
"GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
||||
],
|
||||
getPackageVersionForOrganization: [
|
||||
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
||||
],
|
||||
getPackageVersionForUser: [
|
||||
"GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
||||
],
|
||||
listDockerMigrationConflictingPackagesForAuthenticatedUser: [
|
||||
"GET /user/docker/conflicts"
|
||||
],
|
||||
listDockerMigrationConflictingPackagesForOrganization: [
|
||||
"GET /orgs/{org}/docker/conflicts"
|
||||
],
|
||||
listDockerMigrationConflictingPackagesForUser: [
|
||||
"GET /users/{username}/docker/conflicts"
|
||||
],
|
||||
listPackagesForAuthenticatedUser: ["GET /user/packages"],
|
||||
listPackagesForOrganization: ["GET /orgs/{org}/packages"],
|
||||
listPackagesForUser: ["GET /users/{username}/packages"],
|
||||
restorePackageForAuthenticatedUser: [
|
||||
"POST /user/packages/{package_type}/{package_name}/restore{?token}"
|
||||
],
|
||||
restorePackageForOrg: [
|
||||
"POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"
|
||||
],
|
||||
restorePackageForUser: [
|
||||
"POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"
|
||||
],
|
||||
restorePackageVersionForAuthenticatedUser: [
|
||||
"POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
||||
],
|
||||
restorePackageVersionForOrg: [
|
||||
"POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
||||
],
|
||||
restorePackageVersionForUser: [
|
||||
"POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
||||
]
|
||||
},
|
||||
privateRegistries: {
|
||||
createOrgPrivateRegistry: ["POST /orgs/{org}/private-registries"],
|
||||
deleteOrgPrivateRegistry: [
|
||||
"DELETE /orgs/{org}/private-registries/{secret_name}"
|
||||
],
|
||||
getOrgPrivateRegistry: ["GET /orgs/{org}/private-registries/{secret_name}"],
|
||||
getOrgPublicKey: ["GET /orgs/{org}/private-registries/public-key"],
|
||||
listOrgPrivateRegistries: ["GET /orgs/{org}/private-registries"],
|
||||
updateOrgPrivateRegistry: [
|
||||
"PATCH /orgs/{org}/private-registries/{secret_name}"
|
||||
]
|
||||
},
|
||||
projects: {
|
||||
addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
|
||||
createCard: ["POST /projects/columns/{column_id}/cards"],
|
||||
createColumn: ["POST /projects/{project_id}/columns"],
|
||||
createForAuthenticatedUser: ["POST /user/projects"],
|
||||
createForOrg: ["POST /orgs/{org}/projects"],
|
||||
createForRepo: ["POST /repos/{owner}/{repo}/projects"],
|
||||
delete: ["DELETE /projects/{project_id}"],
|
||||
deleteCard: ["DELETE /projects/columns/cards/{card_id}"],
|
||||
deleteColumn: ["DELETE /projects/columns/{column_id}"],
|
||||
get: ["GET /projects/{project_id}"],
|
||||
getCard: ["GET /projects/columns/cards/{card_id}"],
|
||||
getColumn: ["GET /projects/columns/{column_id}"],
|
||||
getPermissionForUser: [
|
||||
"GET /projects/{project_id}/collaborators/{username}/permission"
|
||||
],
|
||||
listCards: ["GET /projects/columns/{column_id}/cards"],
|
||||
listCollaborators: ["GET /projects/{project_id}/collaborators"],
|
||||
listColumns: ["GET /projects/{project_id}/columns"],
|
||||
listForOrg: ["GET /orgs/{org}/projects"],
|
||||
listForRepo: ["GET /repos/{owner}/{repo}/projects"],
|
||||
listForUser: ["GET /users/{username}/projects"],
|
||||
moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
|
||||
moveColumn: ["POST /projects/columns/{column_id}/moves"],
|
||||
removeCollaborator: [
|
||||
"DELETE /projects/{project_id}/collaborators/{username}"
|
||||
],
|
||||
update: ["PATCH /projects/{project_id}"],
|
||||
updateCard: ["PATCH /projects/columns/cards/{card_id}"],
|
||||
updateColumn: ["PATCH /projects/columns/{column_id}"]
|
||||
},
|
||||
pulls: {
|
||||
checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
||||
create: ["POST /repos/{owner}/{repo}/pulls"],
|
||||
createReplyForReviewComment: [
|
||||
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"
|
||||
],
|
||||
createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
||||
createReviewComment: [
|
||||
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
||||
],
|
||||
deletePendingReview: [
|
||||
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
||||
],
|
||||
deleteReviewComment: [
|
||||
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
||||
],
|
||||
dismissReview: [
|
||||
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"
|
||||
],
|
||||
get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"],
|
||||
getReview: [
|
||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
||||
],
|
||||
getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],
|
||||
list: ["GET /repos/{owner}/{repo}/pulls"],
|
||||
listCommentsForReview: [
|
||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"
|
||||
],
|
||||
listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],
|
||||
listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],
|
||||
listRequestedReviewers: [
|
||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
||||
],
|
||||
listReviewComments: [
|
||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
||||
],
|
||||
listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"],
|
||||
listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
||||
merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
||||
removeRequestedReviewers: [
|
||||
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
||||
],
|
||||
requestReviewers: [
|
||||
"POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
||||
],
|
||||
submitReview: [
|
||||
"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"
|
||||
],
|
||||
update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],
|
||||
updateBranch: [
|
||||
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"
|
||||
],
|
||||
updateReview: [
|
||||
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
||||
],
|
||||
updateReviewComment: [
|
||||
"PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
||||
]
|
||||
},
|
||||
rateLimit: { get: ["GET /rate_limit"] },
|
||||
reactions: {
|
||||
createForCommitComment: [
|
||||
"POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
||||
],
|
||||
createForIssue: [
|
||||
"POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"
|
||||
],
|
||||
createForIssueComment: [
|
||||
"POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
||||
],
|
||||
createForPullRequestReviewComment: [
|
||||
"POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
||||
],
|
||||
createForRelease: [
|
||||
"POST /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
||||
],
|
||||
createForTeamDiscussionCommentInOrg: [
|
||||
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
||||
],
|
||||
createForTeamDiscussionInOrg: [
|
||||
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
||||
],
|
||||
deleteForCommitComment: [
|
||||
"DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"
|
||||
],
|
||||
deleteForIssue: [
|
||||
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"
|
||||
],
|
||||
deleteForIssueComment: [
|
||||
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"
|
||||
],
|
||||
deleteForPullRequestComment: [
|
||||
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"
|
||||
],
|
||||
deleteForRelease: [
|
||||
"DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"
|
||||
],
|
||||
deleteForTeamDiscussion: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"
|
||||
],
|
||||
deleteForTeamDiscussionComment: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"
|
||||
],
|
||||
listForCommitComment: [
|
||||
"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
||||
],
|
||||
listForIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],
|
||||
listForIssueComment: [
|
||||
"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
||||
],
|
||||
listForPullRequestReviewComment: [
|
||||
"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
||||
],
|
||||
listForRelease: [
|
||||
"GET /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
||||
],
|
||||
listForTeamDiscussionCommentInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
||||
],
|
||||
listForTeamDiscussionInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
||||
]
|
||||
},
|
||||
repos: {
|
||||
acceptInvitation: [
|
||||
"PATCH /user/repository_invitations/{invitation_id}",
|
||||
{},
|
||||
{ renamed: ["repos", "acceptInvitationForAuthenticatedUser"] }
|
||||
],
|
||||
acceptInvitationForAuthenticatedUser: [
|
||||
"PATCH /user/repository_invitations/{invitation_id}"
|
||||
],
|
||||
addAppAccessRestrictions: [
|
||||
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
||||
{},
|
||||
{ mapToData: "apps" }
|
||||
],
|
||||
addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"],
|
||||
addStatusCheckContexts: [
|
||||
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
||||
{},
|
||||
{ mapToData: "contexts" }
|
||||
],
|
||||
addTeamAccessRestrictions: [
|
||||
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
||||
{},
|
||||
{ mapToData: "teams" }
|
||||
],
|
||||
addUserAccessRestrictions: [
|
||||
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
||||
{},
|
||||
{ mapToData: "users" }
|
||||
],
|
||||
cancelPagesDeployment: [
|
||||
"POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"
|
||||
],
|
||||
checkAutomatedSecurityFixes: [
|
||||
"GET /repos/{owner}/{repo}/automated-security-fixes"
|
||||
],
|
||||
checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
|
||||
checkPrivateVulnerabilityReporting: [
|
||||
"GET /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||
],
|
||||
checkVulnerabilityAlerts: [
|
||||
"GET /repos/{owner}/{repo}/vulnerability-alerts"
|
||||
],
|
||||
codeownersErrors: ["GET /repos/{owner}/{repo}/codeowners/errors"],
|
||||
compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"],
|
||||
compareCommitsWithBasehead: [
|
||||
"GET /repos/{owner}/{repo}/compare/{basehead}"
|
||||
],
|
||||
createAttestation: ["POST /repos/{owner}/{repo}/attestations"],
|
||||
createAutolink: ["POST /repos/{owner}/{repo}/autolinks"],
|
||||
createCommitComment: [
|
||||
"POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
||||
],
|
||||
createCommitSignatureProtection: [
|
||||
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
||||
],
|
||||
createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"],
|
||||
createDeployKey: ["POST /repos/{owner}/{repo}/keys"],
|
||||
createDeployment: ["POST /repos/{owner}/{repo}/deployments"],
|
||||
createDeploymentBranchPolicy: [
|
||||
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
||||
],
|
||||
createDeploymentProtectionRule: [
|
||||
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
||||
],
|
||||
createDeploymentStatus: [
|
||||
"POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
||||
],
|
||||
createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"],
|
||||
createForAuthenticatedUser: ["POST /user/repos"],
|
||||
createFork: ["POST /repos/{owner}/{repo}/forks"],
|
||||
createInOrg: ["POST /orgs/{org}/repos"],
|
||||
createOrUpdateCustomPropertiesValues: [
|
||||
"PATCH /repos/{owner}/{repo}/properties/values"
|
||||
],
|
||||
createOrUpdateEnvironment: [
|
||||
"PUT /repos/{owner}/{repo}/environments/{environment_name}"
|
||||
],
|
||||
createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"],
|
||||
createOrgRuleset: ["POST /orgs/{org}/rulesets"],
|
||||
createPagesDeployment: ["POST /repos/{owner}/{repo}/pages/deployments"],
|
||||
createPagesSite: ["POST /repos/{owner}/{repo}/pages"],
|
||||
createRelease: ["POST /repos/{owner}/{repo}/releases"],
|
||||
createRepoRuleset: ["POST /repos/{owner}/{repo}/rulesets"],
|
||||
createUsingTemplate: [
|
||||
"POST /repos/{template_owner}/{template_repo}/generate"
|
||||
],
|
||||
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
|
||||
declineInvitation: [
|
||||
"DELETE /user/repository_invitations/{invitation_id}",
|
||||
{},
|
||||
{ renamed: ["repos", "declineInvitationForAuthenticatedUser"] }
|
||||
],
|
||||
declineInvitationForAuthenticatedUser: [
|
||||
"DELETE /user/repository_invitations/{invitation_id}"
|
||||
],
|
||||
delete: ["DELETE /repos/{owner}/{repo}"],
|
||||
deleteAccessRestrictions: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
||||
],
|
||||
deleteAdminBranchProtection: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
||||
],
|
||||
deleteAnEnvironment: [
|
||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}"
|
||||
],
|
||||
deleteAutolink: ["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
||||
deleteBranchProtection: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection"
|
||||
],
|
||||
deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],
|
||||
deleteCommitSignatureProtection: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
||||
],
|
||||
deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"],
|
||||
deleteDeployment: [
|
||||
"DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"
|
||||
],
|
||||
deleteDeploymentBranchPolicy: [
|
||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
||||
],
|
||||
deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"],
|
||||
deleteInvitation: [
|
||||
"DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"
|
||||
],
|
||||
deleteOrgRuleset: ["DELETE /orgs/{org}/rulesets/{ruleset_id}"],
|
||||
deletePagesSite: ["DELETE /repos/{owner}/{repo}/pages"],
|
||||
deletePullRequestReviewProtection: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
||||
],
|
||||
deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"],
|
||||
deleteReleaseAsset: [
|
||||
"DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
||||
],
|
||||
deleteRepoRuleset: ["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
||||
deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],
|
||||
disableAutomatedSecurityFixes: [
|
||||
"DELETE /repos/{owner}/{repo}/automated-security-fixes"
|
||||
],
|
||||
disableDeploymentProtectionRule: [
|
||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
||||
],
|
||||
disablePrivateVulnerabilityReporting: [
|
||||
"DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||
],
|
||||
disableVulnerabilityAlerts: [
|
||||
"DELETE /repos/{owner}/{repo}/vulnerability-alerts"
|
||||
],
|
||||
downloadArchive: [
|
||||
"GET /repos/{owner}/{repo}/zipball/{ref}",
|
||||
{},
|
||||
{ renamed: ["repos", "downloadZipballArchive"] }
|
||||
],
|
||||
downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"],
|
||||
downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"],
|
||||
enableAutomatedSecurityFixes: [
|
||||
"PUT /repos/{owner}/{repo}/automated-security-fixes"
|
||||
],
|
||||
enablePrivateVulnerabilityReporting: [
|
||||
"PUT /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||
],
|
||||
enableVulnerabilityAlerts: [
|
||||
"PUT /repos/{owner}/{repo}/vulnerability-alerts"
|
||||
],
|
||||
generateReleaseNotes: [
|
||||
"POST /repos/{owner}/{repo}/releases/generate-notes"
|
||||
],
|
||||
get: ["GET /repos/{owner}/{repo}"],
|
||||
getAccessRestrictions: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
||||
],
|
||||
getAdminBranchProtection: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
||||
],
|
||||
getAllDeploymentProtectionRules: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
||||
],
|
||||
getAllEnvironments: ["GET /repos/{owner}/{repo}/environments"],
|
||||
getAllStatusCheckContexts: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
|
||||
],
|
||||
getAllTopics: ["GET /repos/{owner}/{repo}/topics"],
|
||||
getAppsWithAccessToProtectedBranch: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
|
||||
],
|
||||
getAutolink: ["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
||||
getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"],
|
||||
getBranchProtection: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection"
|
||||
],
|
||||
getBranchRules: ["GET /repos/{owner}/{repo}/rules/branches/{branch}"],
|
||||
getClones: ["GET /repos/{owner}/{repo}/traffic/clones"],
|
||||
getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"],
|
||||
getCollaboratorPermissionLevel: [
|
||||
"GET /repos/{owner}/{repo}/collaborators/{username}/permission"
|
||||
],
|
||||
getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"],
|
||||
getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"],
|
||||
getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"],
|
||||
getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"],
|
||||
getCommitSignatureProtection: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
||||
],
|
||||
getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"],
|
||||
getContent: ["GET /repos/{owner}/{repo}/contents/{path}"],
|
||||
getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"],
|
||||
getCustomDeploymentProtectionRule: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
||||
],
|
||||
getCustomPropertiesValues: ["GET /repos/{owner}/{repo}/properties/values"],
|
||||
getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
|
||||
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
|
||||
getDeploymentBranchPolicy: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
||||
],
|
||||
getDeploymentStatus: [
|
||||
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"
|
||||
],
|
||||
getEnvironment: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}"
|
||||
],
|
||||
getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"],
|
||||
getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"],
|
||||
getOrgRuleSuite: ["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],
|
||||
getOrgRuleSuites: ["GET /orgs/{org}/rulesets/rule-suites"],
|
||||
getOrgRuleset: ["GET /orgs/{org}/rulesets/{ruleset_id}"],
|
||||
getOrgRulesets: ["GET /orgs/{org}/rulesets"],
|
||||
getPages: ["GET /repos/{owner}/{repo}/pages"],
|
||||
getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],
|
||||
getPagesDeployment: [
|
||||
"GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"
|
||||
],
|
||||
getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"],
|
||||
getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"],
|
||||
getPullRequestReviewProtection: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
||||
],
|
||||
getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"],
|
||||
getReadme: ["GET /repos/{owner}/{repo}/readme"],
|
||||
getReadmeInDirectory: ["GET /repos/{owner}/{repo}/readme/{dir}"],
|
||||
getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"],
|
||||
getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],
|
||||
getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"],
|
||||
getRepoRuleSuite: [
|
||||
"GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"
|
||||
],
|
||||
getRepoRuleSuites: ["GET /repos/{owner}/{repo}/rulesets/rule-suites"],
|
||||
getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
||||
getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
|
||||
getStatusChecksProtection: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
||||
],
|
||||
getTeamsWithAccessToProtectedBranch: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
|
||||
],
|
||||
getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"],
|
||||
getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"],
|
||||
getUsersWithAccessToProtectedBranch: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
|
||||
],
|
||||
getViews: ["GET /repos/{owner}/{repo}/traffic/views"],
|
||||
getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"],
|
||||
getWebhookConfigForRepo: [
|
||||
"GET /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
||||
],
|
||||
getWebhookDelivery: [
|
||||
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"
|
||||
],
|
||||
listActivities: ["GET /repos/{owner}/{repo}/activity"],
|
||||
listAttestations: [
|
||||
"GET /repos/{owner}/{repo}/attestations/{subject_digest}"
|
||||
],
|
||||
listAutolinks: ["GET /repos/{owner}/{repo}/autolinks"],
|
||||
listBranches: ["GET /repos/{owner}/{repo}/branches"],
|
||||
listBranchesForHeadCommit: [
|
||||
"GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"
|
||||
],
|
||||
listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"],
|
||||
listCommentsForCommit: [
|
||||
"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
||||
],
|
||||
listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"],
|
||||
listCommitStatusesForRef: [
|
||||
"GET /repos/{owner}/{repo}/commits/{ref}/statuses"
|
||||
],
|
||||
listCommits: ["GET /repos/{owner}/{repo}/commits"],
|
||||
listContributors: ["GET /repos/{owner}/{repo}/contributors"],
|
||||
listCustomDeploymentRuleIntegrations: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"
|
||||
],
|
||||
listDeployKeys: ["GET /repos/{owner}/{repo}/keys"],
|
||||
listDeploymentBranchPolicies: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
||||
],
|
||||
listDeploymentStatuses: [
|
||||
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
||||
],
|
||||
listDeployments: ["GET /repos/{owner}/{repo}/deployments"],
|
||||
listForAuthenticatedUser: ["GET /user/repos"],
|
||||
listForOrg: ["GET /orgs/{org}/repos"],
|
||||
listForUser: ["GET /users/{username}/repos"],
|
||||
listForks: ["GET /repos/{owner}/{repo}/forks"],
|
||||
listInvitations: ["GET /repos/{owner}/{repo}/invitations"],
|
||||
listInvitationsForAuthenticatedUser: ["GET /user/repository_invitations"],
|
||||
listLanguages: ["GET /repos/{owner}/{repo}/languages"],
|
||||
listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"],
|
||||
listPublic: ["GET /repositories"],
|
||||
listPullRequestsAssociatedWithCommit: [
|
||||
"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"
|
||||
],
|
||||
listReleaseAssets: [
|
||||
"GET /repos/{owner}/{repo}/releases/{release_id}/assets"
|
||||
],
|
||||
listReleases: ["GET /repos/{owner}/{repo}/releases"],
|
||||
listTags: ["GET /repos/{owner}/{repo}/tags"],
|
||||
listTeams: ["GET /repos/{owner}/{repo}/teams"],
|
||||
listWebhookDeliveries: [
|
||||
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"
|
||||
],
|
||||
listWebhooks: ["GET /repos/{owner}/{repo}/hooks"],
|
||||
merge: ["POST /repos/{owner}/{repo}/merges"],
|
||||
mergeUpstream: ["POST /repos/{owner}/{repo}/merge-upstream"],
|
||||
pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],
|
||||
redeliverWebhookDelivery: [
|
||||
"POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
||||
],
|
||||
removeAppAccessRestrictions: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
||||
{},
|
||||
{ mapToData: "apps" }
|
||||
],
|
||||
removeCollaborator: [
|
||||
"DELETE /repos/{owner}/{repo}/collaborators/{username}"
|
||||
],
|
||||
removeStatusCheckContexts: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
||||
{},
|
||||
{ mapToData: "contexts" }
|
||||
],
|
||||
removeStatusCheckProtection: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
||||
],
|
||||
removeTeamAccessRestrictions: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
||||
{},
|
||||
{ mapToData: "teams" }
|
||||
],
|
||||
removeUserAccessRestrictions: [
|
||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
||||
{},
|
||||
{ mapToData: "users" }
|
||||
],
|
||||
renameBranch: ["POST /repos/{owner}/{repo}/branches/{branch}/rename"],
|
||||
replaceAllTopics: ["PUT /repos/{owner}/{repo}/topics"],
|
||||
requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"],
|
||||
setAdminBranchProtection: [
|
||||
"POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
||||
],
|
||||
setAppAccessRestrictions: [
|
||||
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
||||
{},
|
||||
{ mapToData: "apps" }
|
||||
],
|
||||
setStatusCheckContexts: [
|
||||
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
||||
{},
|
||||
{ mapToData: "contexts" }
|
||||
],
|
||||
setTeamAccessRestrictions: [
|
||||
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
||||
{},
|
||||
{ mapToData: "teams" }
|
||||
],
|
||||
setUserAccessRestrictions: [
|
||||
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
||||
{},
|
||||
{ mapToData: "users" }
|
||||
],
|
||||
testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],
|
||||
transfer: ["POST /repos/{owner}/{repo}/transfer"],
|
||||
update: ["PATCH /repos/{owner}/{repo}"],
|
||||
updateBranchProtection: [
|
||||
"PUT /repos/{owner}/{repo}/branches/{branch}/protection"
|
||||
],
|
||||
updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],
|
||||
updateDeploymentBranchPolicy: [
|
||||
"PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
||||
],
|
||||
updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"],
|
||||
updateInvitation: [
|
||||
"PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"
|
||||
],
|
||||
updateOrgRuleset: ["PUT /orgs/{org}/rulesets/{ruleset_id}"],
|
||||
updatePullRequestReviewProtection: [
|
||||
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
||||
],
|
||||
updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"],
|
||||
updateReleaseAsset: [
|
||||
"PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
||||
],
|
||||
updateRepoRuleset: ["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
||||
updateStatusCheckPotection: [
|
||||
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
|
||||
{},
|
||||
{ renamed: ["repos", "updateStatusCheckProtection"] }
|
||||
],
|
||||
updateStatusCheckProtection: [
|
||||
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
||||
],
|
||||
updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],
|
||||
updateWebhookConfigForRepo: [
|
||||
"PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
||||
],
|
||||
uploadReleaseAsset: [
|
||||
"POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",
|
||||
{ baseUrl: "https://uploads.github.com" }
|
||||
]
|
||||
},
|
||||
search: {
|
||||
code: ["GET /search/code"],
|
||||
commits: ["GET /search/commits"],
|
||||
issuesAndPullRequests: ["GET /search/issues"],
|
||||
labels: ["GET /search/labels"],
|
||||
repos: ["GET /search/repositories"],
|
||||
topics: ["GET /search/topics"],
|
||||
users: ["GET /search/users"]
|
||||
},
|
||||
secretScanning: {
|
||||
createPushProtectionBypass: [
|
||||
"POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses"
|
||||
],
|
||||
getAlert: [
|
||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
||||
],
|
||||
getScanHistory: ["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],
|
||||
listAlertsForEnterprise: [
|
||||
"GET /enterprises/{enterprise}/secret-scanning/alerts"
|
||||
],
|
||||
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
|
||||
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
|
||||
listLocationsForAlert: [
|
||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"
|
||||
],
|
||||
updateAlert: [
|
||||
"PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
||||
]
|
||||
},
|
||||
securityAdvisories: {
|
||||
createFork: [
|
||||
"POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"
|
||||
],
|
||||
createPrivateVulnerabilityReport: [
|
||||
"POST /repos/{owner}/{repo}/security-advisories/reports"
|
||||
],
|
||||
createRepositoryAdvisory: [
|
||||
"POST /repos/{owner}/{repo}/security-advisories"
|
||||
],
|
||||
createRepositoryAdvisoryCveRequest: [
|
||||
"POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"
|
||||
],
|
||||
getGlobalAdvisory: ["GET /advisories/{ghsa_id}"],
|
||||
getRepositoryAdvisory: [
|
||||
"GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
||||
],
|
||||
listGlobalAdvisories: ["GET /advisories"],
|
||||
listOrgRepositoryAdvisories: ["GET /orgs/{org}/security-advisories"],
|
||||
listRepositoryAdvisories: ["GET /repos/{owner}/{repo}/security-advisories"],
|
||||
updateRepositoryAdvisory: [
|
||||
"PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
||||
]
|
||||
},
|
||||
teams: {
|
||||
addOrUpdateMembershipForUserInOrg: [
|
||||
"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
||||
],
|
||||
addOrUpdateProjectPermissionsInOrg: [
|
||||
"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
||||
],
|
||||
addOrUpdateRepoPermissionsInOrg: [
|
||||
"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
||||
],
|
||||
checkPermissionsForProjectInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
||||
],
|
||||
checkPermissionsForRepoInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
||||
],
|
||||
create: ["POST /orgs/{org}/teams"],
|
||||
createDiscussionCommentInOrg: [
|
||||
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
||||
],
|
||||
createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"],
|
||||
deleteDiscussionCommentInOrg: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
||||
],
|
||||
deleteDiscussionInOrg: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
||||
],
|
||||
deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"],
|
||||
getByName: ["GET /orgs/{org}/teams/{team_slug}"],
|
||||
getDiscussionCommentInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
||||
],
|
||||
getDiscussionInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
||||
],
|
||||
getMembershipForUserInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
||||
],
|
||||
list: ["GET /orgs/{org}/teams"],
|
||||
listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"],
|
||||
listDiscussionCommentsInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
||||
],
|
||||
listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"],
|
||||
listForAuthenticatedUser: ["GET /user/teams"],
|
||||
listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"],
|
||||
listPendingInvitationsInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/invitations"
|
||||
],
|
||||
listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
|
||||
listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
|
||||
removeMembershipForUserInOrg: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
||||
],
|
||||
removeProjectInOrg: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
||||
],
|
||||
removeRepoInOrg: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
||||
],
|
||||
updateDiscussionCommentInOrg: [
|
||||
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
||||
],
|
||||
updateDiscussionInOrg: [
|
||||
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
||||
],
|
||||
updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"]
|
||||
},
|
||||
users: {
|
||||
addEmailForAuthenticated: [
|
||||
"POST /user/emails",
|
||||
{},
|
||||
{ renamed: ["users", "addEmailForAuthenticatedUser"] }
|
||||
],
|
||||
addEmailForAuthenticatedUser: ["POST /user/emails"],
|
||||
addSocialAccountForAuthenticatedUser: ["POST /user/social_accounts"],
|
||||
block: ["PUT /user/blocks/{username}"],
|
||||
checkBlocked: ["GET /user/blocks/{username}"],
|
||||
checkFollowingForUser: ["GET /users/{username}/following/{target_user}"],
|
||||
checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"],
|
||||
createGpgKeyForAuthenticated: [
|
||||
"POST /user/gpg_keys",
|
||||
{},
|
||||
{ renamed: ["users", "createGpgKeyForAuthenticatedUser"] }
|
||||
],
|
||||
createGpgKeyForAuthenticatedUser: ["POST /user/gpg_keys"],
|
||||
createPublicSshKeyForAuthenticated: [
|
||||
"POST /user/keys",
|
||||
{},
|
||||
{ renamed: ["users", "createPublicSshKeyForAuthenticatedUser"] }
|
||||
],
|
||||
createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"],
|
||||
createSshSigningKeyForAuthenticatedUser: ["POST /user/ssh_signing_keys"],
|
||||
deleteEmailForAuthenticated: [
|
||||
"DELETE /user/emails",
|
||||
{},
|
||||
{ renamed: ["users", "deleteEmailForAuthenticatedUser"] }
|
||||
],
|
||||
deleteEmailForAuthenticatedUser: ["DELETE /user/emails"],
|
||||
deleteGpgKeyForAuthenticated: [
|
||||
"DELETE /user/gpg_keys/{gpg_key_id}",
|
||||
{},
|
||||
{ renamed: ["users", "deleteGpgKeyForAuthenticatedUser"] }
|
||||
],
|
||||
deleteGpgKeyForAuthenticatedUser: ["DELETE /user/gpg_keys/{gpg_key_id}"],
|
||||
deletePublicSshKeyForAuthenticated: [
|
||||
"DELETE /user/keys/{key_id}",
|
||||
{},
|
||||
{ renamed: ["users", "deletePublicSshKeyForAuthenticatedUser"] }
|
||||
],
|
||||
deletePublicSshKeyForAuthenticatedUser: ["DELETE /user/keys/{key_id}"],
|
||||
deleteSocialAccountForAuthenticatedUser: ["DELETE /user/social_accounts"],
|
||||
deleteSshSigningKeyForAuthenticatedUser: [
|
||||
"DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"
|
||||
],
|
||||
follow: ["PUT /user/following/{username}"],
|
||||
getAuthenticated: ["GET /user"],
|
||||
getById: ["GET /user/{account_id}"],
|
||||
getByUsername: ["GET /users/{username}"],
|
||||
getContextForUser: ["GET /users/{username}/hovercard"],
|
||||
getGpgKeyForAuthenticated: [
|
||||
"GET /user/gpg_keys/{gpg_key_id}",
|
||||
{},
|
||||
{ renamed: ["users", "getGpgKeyForAuthenticatedUser"] }
|
||||
],
|
||||
getGpgKeyForAuthenticatedUser: ["GET /user/gpg_keys/{gpg_key_id}"],
|
||||
getPublicSshKeyForAuthenticated: [
|
||||
"GET /user/keys/{key_id}",
|
||||
{},
|
||||
{ renamed: ["users", "getPublicSshKeyForAuthenticatedUser"] }
|
||||
],
|
||||
getPublicSshKeyForAuthenticatedUser: ["GET /user/keys/{key_id}"],
|
||||
getSshSigningKeyForAuthenticatedUser: [
|
||||
"GET /user/ssh_signing_keys/{ssh_signing_key_id}"
|
||||
],
|
||||
list: ["GET /users"],
|
||||
listAttestations: ["GET /users/{username}/attestations/{subject_digest}"],
|
||||
listBlockedByAuthenticated: [
|
||||
"GET /user/blocks",
|
||||
{},
|
||||
{ renamed: ["users", "listBlockedByAuthenticatedUser"] }
|
||||
],
|
||||
listBlockedByAuthenticatedUser: ["GET /user/blocks"],
|
||||
listEmailsForAuthenticated: [
|
||||
"GET /user/emails",
|
||||
{},
|
||||
{ renamed: ["users", "listEmailsForAuthenticatedUser"] }
|
||||
],
|
||||
listEmailsForAuthenticatedUser: ["GET /user/emails"],
|
||||
listFollowedByAuthenticated: [
|
||||
"GET /user/following",
|
||||
{},
|
||||
{ renamed: ["users", "listFollowedByAuthenticatedUser"] }
|
||||
],
|
||||
listFollowedByAuthenticatedUser: ["GET /user/following"],
|
||||
listFollowersForAuthenticatedUser: ["GET /user/followers"],
|
||||
listFollowersForUser: ["GET /users/{username}/followers"],
|
||||
listFollowingForUser: ["GET /users/{username}/following"],
|
||||
listGpgKeysForAuthenticated: [
|
||||
"GET /user/gpg_keys",
|
||||
{},
|
||||
{ renamed: ["users", "listGpgKeysForAuthenticatedUser"] }
|
||||
],
|
||||
listGpgKeysForAuthenticatedUser: ["GET /user/gpg_keys"],
|
||||
listGpgKeysForUser: ["GET /users/{username}/gpg_keys"],
|
||||
listPublicEmailsForAuthenticated: [
|
||||
"GET /user/public_emails",
|
||||
{},
|
||||
{ renamed: ["users", "listPublicEmailsForAuthenticatedUser"] }
|
||||
],
|
||||
listPublicEmailsForAuthenticatedUser: ["GET /user/public_emails"],
|
||||
listPublicKeysForUser: ["GET /users/{username}/keys"],
|
||||
listPublicSshKeysForAuthenticated: [
|
||||
"GET /user/keys",
|
||||
{},
|
||||
{ renamed: ["users", "listPublicSshKeysForAuthenticatedUser"] }
|
||||
],
|
||||
listPublicSshKeysForAuthenticatedUser: ["GET /user/keys"],
|
||||
listSocialAccountsForAuthenticatedUser: ["GET /user/social_accounts"],
|
||||
listSocialAccountsForUser: ["GET /users/{username}/social_accounts"],
|
||||
listSshSigningKeysForAuthenticatedUser: ["GET /user/ssh_signing_keys"],
|
||||
listSshSigningKeysForUser: ["GET /users/{username}/ssh_signing_keys"],
|
||||
setPrimaryEmailVisibilityForAuthenticated: [
|
||||
"PATCH /user/email/visibility",
|
||||
{},
|
||||
{ renamed: ["users", "setPrimaryEmailVisibilityForAuthenticatedUser"] }
|
||||
],
|
||||
setPrimaryEmailVisibilityForAuthenticatedUser: [
|
||||
"PATCH /user/email/visibility"
|
||||
],
|
||||
unblock: ["DELETE /user/blocks/{username}"],
|
||||
unfollow: ["DELETE /user/following/{username}"],
|
||||
updateAuthenticated: ["PATCH /user"]
|
||||
}
|
||||
};
|
||||
var endpoints_default = Endpoints;
|
||||
|
||||
//# sourceMappingURL=endpoints.js.map
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js
|
||||
|
||||
const endpointMethodsMap = /* @__PURE__ */ new Map();
|
||||
for (const [scope, endpoints] of Object.entries(endpoints_default)) {
|
||||
for (const [methodName, endpoint] of Object.entries(endpoints)) {
|
||||
const [route, defaults, decorations] = endpoint;
|
||||
const [method, url] = route.split(/ /);
|
||||
const endpointDefaults = Object.assign(
|
||||
{
|
||||
method,
|
||||
url
|
||||
},
|
||||
defaults
|
||||
);
|
||||
if (!endpointMethodsMap.has(scope)) {
|
||||
endpointMethodsMap.set(scope, /* @__PURE__ */ new Map());
|
||||
}
|
||||
endpointMethodsMap.get(scope).set(methodName, {
|
||||
scope,
|
||||
methodName,
|
||||
endpointDefaults,
|
||||
decorations
|
||||
});
|
||||
}
|
||||
}
|
||||
const handler = {
|
||||
has({ scope }, methodName) {
|
||||
return endpointMethodsMap.get(scope).has(methodName);
|
||||
},
|
||||
getOwnPropertyDescriptor(target, methodName) {
|
||||
return {
|
||||
value: this.get(target, methodName),
|
||||
// ensures method is in the cache
|
||||
configurable: true,
|
||||
writable: true,
|
||||
enumerable: true
|
||||
};
|
||||
},
|
||||
defineProperty(target, methodName, descriptor) {
|
||||
Object.defineProperty(target.cache, methodName, descriptor);
|
||||
return true;
|
||||
},
|
||||
deleteProperty(target, methodName) {
|
||||
delete target.cache[methodName];
|
||||
return true;
|
||||
},
|
||||
ownKeys({ scope }) {
|
||||
return [...endpointMethodsMap.get(scope).keys()];
|
||||
},
|
||||
set(target, methodName, value) {
|
||||
return target.cache[methodName] = value;
|
||||
},
|
||||
get({ octokit, scope, cache }, methodName) {
|
||||
if (cache[methodName]) {
|
||||
return cache[methodName];
|
||||
}
|
||||
const method = endpointMethodsMap.get(scope).get(methodName);
|
||||
if (!method) {
|
||||
return void 0;
|
||||
}
|
||||
const { endpointDefaults, decorations } = method;
|
||||
if (decorations) {
|
||||
cache[methodName] = decorate(
|
||||
octokit,
|
||||
scope,
|
||||
methodName,
|
||||
endpointDefaults,
|
||||
decorations
|
||||
);
|
||||
} else {
|
||||
cache[methodName] = octokit.request.defaults(endpointDefaults);
|
||||
}
|
||||
return cache[methodName];
|
||||
}
|
||||
};
|
||||
function endpointsToMethods(octokit) {
|
||||
const newMethods = {};
|
||||
for (const scope of endpointMethodsMap.keys()) {
|
||||
newMethods[scope] = new Proxy({ octokit, scope, cache: {} }, handler);
|
||||
}
|
||||
return newMethods;
|
||||
}
|
||||
function decorate(octokit, scope, methodName, defaults, decorations) {
|
||||
const requestWithDefaults = octokit.request.defaults(defaults);
|
||||
function withDecorations(...args) {
|
||||
let options = requestWithDefaults.endpoint.merge(...args);
|
||||
if (decorations.mapToData) {
|
||||
options = Object.assign({}, options, {
|
||||
data: options[decorations.mapToData],
|
||||
[decorations.mapToData]: void 0
|
||||
});
|
||||
return requestWithDefaults(options);
|
||||
}
|
||||
if (decorations.renamed) {
|
||||
const [newScope, newMethodName] = decorations.renamed;
|
||||
octokit.log.warn(
|
||||
`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`
|
||||
);
|
||||
}
|
||||
if (decorations.deprecated) {
|
||||
octokit.log.warn(decorations.deprecated);
|
||||
}
|
||||
if (decorations.renamedParameters) {
|
||||
const options2 = requestWithDefaults.endpoint.merge(...args);
|
||||
for (const [name, alias] of Object.entries(
|
||||
decorations.renamedParameters
|
||||
)) {
|
||||
if (name in options2) {
|
||||
octokit.log.warn(
|
||||
`"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`
|
||||
);
|
||||
if (!(alias in options2)) {
|
||||
options2[alias] = options2[name];
|
||||
}
|
||||
delete options2[name];
|
||||
}
|
||||
}
|
||||
return requestWithDefaults(options2);
|
||||
}
|
||||
return requestWithDefaults(...args);
|
||||
}
|
||||
return Object.assign(withDecorations, requestWithDefaults);
|
||||
}
|
||||
|
||||
//# sourceMappingURL=endpoints-to-methods.js.map
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js
|
||||
|
||||
|
||||
function restEndpointMethods(octokit) {
|
||||
const api = endpointsToMethods(octokit);
|
||||
return {
|
||||
rest: api
|
||||
};
|
||||
}
|
||||
restEndpointMethods.VERSION = VERSION;
|
||||
function legacyRestEndpointMethods(octokit) {
|
||||
const api = endpointsToMethods(octokit);
|
||||
return {
|
||||
...api,
|
||||
rest: api
|
||||
};
|
||||
}
|
||||
legacyRestEndpointMethods.VERSION = VERSION;
|
||||
|
||||
//# sourceMappingURL=index.js.map
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
@@ -36549,6 +36663,34 @@ module.exports = parseParams
|
||||
/******/ }
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/define property getters */
|
||||
/******/ (() => {
|
||||
/******/ // define getter functions for harmony exports
|
||||
/******/ __nccwpck_require__.d = (exports, definition) => {
|
||||
/******/ for(var key in definition) {
|
||||
/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) {
|
||||
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
||||
/******/ (() => {
|
||||
/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __nccwpck_require__.r = (exports) => {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/compat */
|
||||
/******/
|
||||
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
|
||||
|
||||
Generated
+604
-641
@@ -9,30 +9,32 @@
|
||||
"version": "1.0.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/cache": "^3.3.0",
|
||||
"@actions/cache": "^4.0.0",
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/github": "^6.0.0",
|
||||
"@actions/glob": "^0.5.0",
|
||||
"@actions/io": "^1.1.3",
|
||||
"@actions/tool-cache": "^2.0.1",
|
||||
"@octokit/rest": "^21.0.2"
|
||||
"@actions/tool-cache": "^2.0.2",
|
||||
"@octokit/core": "^6.1.3",
|
||||
"@octokit/plugin-paginate-rest": "^11.4.0",
|
||||
"@octokit/plugin-rest-endpoint-methods": "^13.3.0",
|
||||
"smol-toml": "^1.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "1.9.4",
|
||||
"@types/node": "^22.9.1",
|
||||
"@types/node": "^22.12.0",
|
||||
"@types/semver": "^7.5.8",
|
||||
"@vercel/ncc": "^0.38.3",
|
||||
"jest": "^29.7.0",
|
||||
"js-yaml": "^4.1.0",
|
||||
"ts-jest": "^29.2.5",
|
||||
"typescript": "^5.6.3"
|
||||
"typescript": "^5.7.3"
|
||||
}
|
||||
},
|
||||
"node_modules/@actions/cache": {
|
||||
"version": "3.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@actions/cache/-/cache-3.3.0.tgz",
|
||||
"integrity": "sha512-+eCsMTIZUEm+QA9GqjollOhCdvRrZ1JV8d9Rp34zVNizBkYITO8dhKczP5Xps1dFzc5n59p7vYVtZrGt18bb5Q==",
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.0.0.tgz",
|
||||
"integrity": "sha512-WIuxjnZ44lNYtIS4fqSaYvF00hORdy3cSin+jx8xNgBVGWnNIAiCBHjlwusVQlcgExoQC9pHXGrDsZyZr7rCDQ==",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.0.1",
|
||||
@@ -42,7 +44,9 @@
|
||||
"@azure/abort-controller": "^1.1.0",
|
||||
"@azure/ms-rest-js": "^2.6.0",
|
||||
"@azure/storage-blob": "^12.13.0",
|
||||
"semver": "^6.3.1"
|
||||
"@protobuf-ts/plugin": "^2.9.4",
|
||||
"semver": "^6.3.1",
|
||||
"twirp-ts": "^2.5.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@actions/cache/node_modules/@actions/glob": {
|
||||
@@ -71,17 +75,6 @@
|
||||
"@actions/io": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@actions/github": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@actions/github/-/github-6.0.0.tgz",
|
||||
"integrity": "sha512-alScpSVnYmjNEXboZjarjukQEzgCRmjMv6Xj47fsdnqGS73bjJNDpiiXmp8jr0UZLdUB6d9jW63IcmddUP+l0g==",
|
||||
"dependencies": {
|
||||
"@actions/http-client": "^2.2.0",
|
||||
"@octokit/core": "^5.0.1",
|
||||
"@octokit/plugin-paginate-rest": "^9.0.0",
|
||||
"@octokit/plugin-rest-endpoint-methods": "^10.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@actions/glob": {
|
||||
"version": "0.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@actions/glob/-/glob-0.5.0.tgz",
|
||||
@@ -106,16 +99,15 @@
|
||||
"integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q=="
|
||||
},
|
||||
"node_modules/@actions/tool-cache": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-2.0.1.tgz",
|
||||
"integrity": "sha512-iPU+mNwrbA8jodY8eyo/0S/QqCKDajiR8OxWTnSk/SnYg0sj8Hp4QcUEVC1YFpHWXtrfbQrE13Jz4k4HXJQKcA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-2.0.2.tgz",
|
||||
"integrity": "sha512-fBhNNOWxuoLxztQebpOaWu6WeVmuwa77Z+DxIZ1B+OYvGkGQon6kTVg6Z32Cb13WCuw0szqonK+hh03mJV7Z6w==",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.2.6",
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.0.0",
|
||||
"@actions/http-client": "^2.0.1",
|
||||
"@actions/io": "^1.1.1",
|
||||
"semver": "^6.1.0",
|
||||
"uuid": "^3.3.2"
|
||||
"semver": "^6.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@ampproject/remapping": {
|
||||
@@ -1585,212 +1577,23 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/auth-token": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-4.0.0.tgz",
|
||||
"integrity": "sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==",
|
||||
"version": "5.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.1.2.tgz",
|
||||
"integrity": "sha512-JcQDsBdg49Yky2w2ld20IHAlwr8d/d8N6NiOXbtuoPCqzbsiJgF633mVUw3x4mo0H5ypataQIX7SFu3yy44Mpw==",
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/core": {
|
||||
"version": "5.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.2.0.tgz",
|
||||
"integrity": "sha512-1LFfa/qnMQvEOAdzlQymH0ulepxbxnCYAKJZfMci/5XJyIHWgEYnDmgnKakbTh7CH2tFQ5O60oYDvns4i9RAIg==",
|
||||
"dependencies": {
|
||||
"@octokit/auth-token": "^4.0.0",
|
||||
"@octokit/graphql": "^7.1.0",
|
||||
"@octokit/request": "^8.3.1",
|
||||
"@octokit/request-error": "^5.1.0",
|
||||
"@octokit/types": "^13.0.0",
|
||||
"before-after-hook": "^2.2.0",
|
||||
"universal-user-agent": "^6.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/core/node_modules/@octokit/openapi-types": {
|
||||
"version": "22.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||
},
|
||||
"node_modules/@octokit/core/node_modules/@octokit/types": {
|
||||
"version": "13.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||
"dependencies": {
|
||||
"@octokit/openapi-types": "^22.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/endpoint": {
|
||||
"version": "9.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-9.0.5.tgz",
|
||||
"integrity": "sha512-ekqR4/+PCLkEBF6qgj8WqJfvDq65RH85OAgrtnVp1mSxaXF03u2xW/hUdweGS5654IlC0wkNYC18Z50tSYTAFw==",
|
||||
"dependencies": {
|
||||
"@octokit/types": "^13.1.0",
|
||||
"universal-user-agent": "^6.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/endpoint/node_modules/@octokit/openapi-types": {
|
||||
"version": "22.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||
},
|
||||
"node_modules/@octokit/endpoint/node_modules/@octokit/types": {
|
||||
"version": "13.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||
"dependencies": {
|
||||
"@octokit/openapi-types": "^22.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/graphql": {
|
||||
"version": "7.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-7.1.0.tgz",
|
||||
"integrity": "sha512-r+oZUH7aMFui1ypZnAvZmn0KSqAUgE1/tUXIWaqUCa1758ts/Jio84GZuzsvUkme98kv0WFY8//n0J1Z+vsIsQ==",
|
||||
"dependencies": {
|
||||
"@octokit/request": "^8.3.0",
|
||||
"@octokit/types": "^13.0.0",
|
||||
"universal-user-agent": "^6.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/graphql/node_modules/@octokit/openapi-types": {
|
||||
"version": "22.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||
},
|
||||
"node_modules/@octokit/graphql/node_modules/@octokit/types": {
|
||||
"version": "13.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||
"dependencies": {
|
||||
"@octokit/openapi-types": "^22.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/openapi-types": {
|
||||
"version": "19.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-19.0.0.tgz",
|
||||
"integrity": "sha512-PclQ6JGMTE9iUStpzMkwLCISFn/wDeRjkZFIKALpvJQNBGwDoYYi2fFvuHwssoQ1rXI5mfh6jgTgWuddeUzfWw=="
|
||||
},
|
||||
"node_modules/@octokit/plugin-paginate-rest": {
|
||||
"version": "9.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.0.0.tgz",
|
||||
"integrity": "sha512-oIJzCpttmBTlEhBmRvb+b9rlnGpmFgDtZ0bB6nq39qIod6A5DP+7RkVLMOixIgRCYSHDTeayWqmiJ2SZ6xgfdw==",
|
||||
"dependencies": {
|
||||
"@octokit/types": "^12.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@octokit/core": ">=5"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/plugin-rest-endpoint-methods": {
|
||||
"version": "10.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.0.0.tgz",
|
||||
"integrity": "sha512-16VkwE2v6rXU+/gBsYC62M8lKWOphY5Lg4wpjYnVE9Zbu0J6IwiT5kILoj1YOB53XLmcJR+Nqp8DmifOPY4H3g==",
|
||||
"dependencies": {
|
||||
"@octokit/types": "^12.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@octokit/core": ">=5"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/request": {
|
||||
"version": "8.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-8.4.0.tgz",
|
||||
"integrity": "sha512-9Bb014e+m2TgBeEJGEbdplMVWwPmL1FPtggHQRkV+WVsMggPtEkLKPlcVYm/o8xKLkpJ7B+6N8WfQMtDLX2Dpw==",
|
||||
"dependencies": {
|
||||
"@octokit/endpoint": "^9.0.1",
|
||||
"@octokit/request-error": "^5.1.0",
|
||||
"@octokit/types": "^13.1.0",
|
||||
"universal-user-agent": "^6.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/request-error": {
|
||||
"version": "5.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-5.1.0.tgz",
|
||||
"integrity": "sha512-GETXfE05J0+7H2STzekpKObFe765O5dlAKUTLNGeH+x47z7JjXHfsHKo5z21D/o/IOZTUEI6nyWyR+bZVP/n5Q==",
|
||||
"dependencies": {
|
||||
"@octokit/types": "^13.1.0",
|
||||
"deprecation": "^2.0.0",
|
||||
"once": "^1.4.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/request-error/node_modules/@octokit/openapi-types": {
|
||||
"version": "22.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||
},
|
||||
"node_modules/@octokit/request-error/node_modules/@octokit/types": {
|
||||
"version": "13.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||
"dependencies": {
|
||||
"@octokit/openapi-types": "^22.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/request/node_modules/@octokit/openapi-types": {
|
||||
"version": "22.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||
},
|
||||
"node_modules/@octokit/request/node_modules/@octokit/types": {
|
||||
"version": "13.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||
"dependencies": {
|
||||
"@octokit/openapi-types": "^22.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/rest": {
|
||||
"version": "21.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-21.0.2.tgz",
|
||||
"integrity": "sha512-+CiLisCoyWmYicH25y1cDfCrv41kRSvTq6pPWtRroRJzhsCZWZyCqGyI8foJT5LmScADSwRAnr/xo+eewL04wQ==",
|
||||
"dependencies": {
|
||||
"@octokit/core": "^6.1.2",
|
||||
"@octokit/plugin-paginate-rest": "^11.0.0",
|
||||
"@octokit/plugin-request-log": "^5.3.1",
|
||||
"@octokit/plugin-rest-endpoint-methods": "^13.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/rest/node_modules/@octokit/auth-token": {
|
||||
"version": "5.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.1.1.tgz",
|
||||
"integrity": "sha512-rh3G3wDO8J9wSjfI436JUKzHIxq8NaiL0tVeB2aXmG6p/9859aUOAjA9pmSPNGGZxfwmaJ9ozOJImuNVJdpvbA==",
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/rest/node_modules/@octokit/core": {
|
||||
"version": "6.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.2.tgz",
|
||||
"integrity": "sha512-hEb7Ma4cGJGEUNOAVmyfdB/3WirWMg5hDuNFVejGEDFqupeOysLc2sG6HJxY2etBp5YQu5Wtxwi020jS9xlUwg==",
|
||||
"version": "6.1.3",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.3.tgz",
|
||||
"integrity": "sha512-z+j7DixNnfpdToYsOutStDgeRzJSMnbj8T1C/oQjB6Aa+kRfNjs/Fn7W6c8bmlt6mfy3FkgeKBRnDjxQow5dow==",
|
||||
"dependencies": {
|
||||
"@octokit/auth-token": "^5.0.0",
|
||||
"@octokit/graphql": "^8.0.0",
|
||||
"@octokit/request": "^9.0.0",
|
||||
"@octokit/request-error": "^6.0.1",
|
||||
"@octokit/types": "^13.0.0",
|
||||
"@octokit/graphql": "^8.1.2",
|
||||
"@octokit/request": "^9.1.4",
|
||||
"@octokit/request-error": "^6.1.6",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"before-after-hook": "^3.0.2",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
},
|
||||
@@ -1798,124 +1601,96 @@
|
||||
"node": ">= 18"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/rest/node_modules/@octokit/endpoint": {
|
||||
"version": "10.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.1.1.tgz",
|
||||
"integrity": "sha512-JYjh5rMOwXMJyUpj028cu0Gbp7qe/ihxfJMLc8VZBMMqSwLgOxDI1911gV4Enl1QSavAQNJcwmwBF9M0VvLh6Q==",
|
||||
"node_modules/@octokit/endpoint": {
|
||||
"version": "10.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.1.2.tgz",
|
||||
"integrity": "sha512-XybpFv9Ms4hX5OCHMZqyODYqGTZ3H6K6Vva+M9LR7ib/xr1y1ZnlChYv9H680y77Vd/i/k+thXApeRASBQkzhA==",
|
||||
"dependencies": {
|
||||
"@octokit/types": "^13.0.0",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"universal-user-agent": "^7.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/rest/node_modules/@octokit/graphql": {
|
||||
"version": "8.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-8.1.1.tgz",
|
||||
"integrity": "sha512-ukiRmuHTi6ebQx/HFRCXKbDlOh/7xEV6QUXaE7MJEKGNAncGI/STSbOkl12qVXZrfZdpXctx5O9X1AIaebiDBg==",
|
||||
"node_modules/@octokit/graphql": {
|
||||
"version": "8.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-8.1.2.tgz",
|
||||
"integrity": "sha512-bdlj/CJVjpaz06NBpfHhp4kGJaRZfz7AzC+6EwUImRtrwIw8dIgJ63Xg0OzV9pRn3rIzrt5c2sa++BL0JJ8GLw==",
|
||||
"dependencies": {
|
||||
"@octokit/request": "^9.0.0",
|
||||
"@octokit/types": "^13.0.0",
|
||||
"@octokit/request": "^9.1.4",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/rest/node_modules/@octokit/openapi-types": {
|
||||
"version": "22.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||
"node_modules/@octokit/openapi-types": {
|
||||
"version": "23.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-23.0.1.tgz",
|
||||
"integrity": "sha512-izFjMJ1sir0jn0ldEKhZ7xegCTj/ObmEDlEfpFrx4k/JyZSMRHbO3/rBwgE7f3m2DHt+RrNGIVw4wSmwnm3t/g=="
|
||||
},
|
||||
"node_modules/@octokit/rest/node_modules/@octokit/plugin-paginate-rest": {
|
||||
"version": "11.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-11.3.1.tgz",
|
||||
"integrity": "sha512-ryqobs26cLtM1kQxqeZui4v8FeznirUsksiA+RYemMPJ7Micju0WSkv50dBksTuZks9O5cg4wp+t8fZ/cLY56g==",
|
||||
"node_modules/@octokit/plugin-paginate-rest": {
|
||||
"version": "11.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-11.4.0.tgz",
|
||||
"integrity": "sha512-ttpGck5AYWkwMkMazNCZMqxKqIq1fJBNxBfsFwwfyYKTf914jKkLF0POMS3YkPBwp5g1c2Y4L79gDz01GhSr1g==",
|
||||
"dependencies": {
|
||||
"@octokit/types": "^13.5.0"
|
||||
"@octokit/types": "^13.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@octokit/core": "5"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/rest/node_modules/@octokit/plugin-request-log": {
|
||||
"version": "5.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-5.3.1.tgz",
|
||||
"integrity": "sha512-n/lNeCtq+9ofhC15xzmJCNKP2BWTv8Ih2TTy+jatNCCq/gQP/V7rK3fjIfuz0pDWDALO/o/4QY4hyOF6TQQFUw==",
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@octokit/core": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods": {
|
||||
"version": "13.2.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.2.2.tgz",
|
||||
"integrity": "sha512-EI7kXWidkt3Xlok5uN43suK99VWqc8OaIMktY9d9+RNKl69juoTyxmLoWPIZgJYzi41qj/9zU7G/ljnNOJ5AFA==",
|
||||
"node_modules/@octokit/plugin-rest-endpoint-methods": {
|
||||
"version": "13.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.3.0.tgz",
|
||||
"integrity": "sha512-LUm44shlmkp/6VC+qQgHl3W5vzUP99ZM54zH6BuqkJK4DqfFLhegANd+fM4YRLapTvPm4049iG7F3haANKMYvQ==",
|
||||
"dependencies": {
|
||||
"@octokit/types": "^13.5.0"
|
||||
"@octokit/types": "^13.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@octokit/core": "^5"
|
||||
"@octokit/core": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/rest/node_modules/@octokit/request": {
|
||||
"version": "9.1.3",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.1.3.tgz",
|
||||
"integrity": "sha512-V+TFhu5fdF3K58rs1pGUJIDH5RZLbZm5BI+MNF+6o/ssFNT4vWlCh/tVpF3NxGtP15HUxTTMUbsG5llAuU2CZA==",
|
||||
"node_modules/@octokit/request": {
|
||||
"version": "9.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.2.0.tgz",
|
||||
"integrity": "sha512-kXLfcxhC4ozCnAXy2ff+cSxpcF0A1UqxjvYMqNuPIeOAzJbVWQ+dy5G2fTylofB/gTbObT8O6JORab+5XtA1Kw==",
|
||||
"dependencies": {
|
||||
"@octokit/endpoint": "^10.0.0",
|
||||
"@octokit/request-error": "^6.0.1",
|
||||
"@octokit/types": "^13.1.0",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"fast-content-type-parse": "^2.0.0",
|
||||
"universal-user-agent": "^7.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/rest/node_modules/@octokit/request-error": {
|
||||
"version": "6.1.4",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.4.tgz",
|
||||
"integrity": "sha512-VpAhIUxwhWZQImo/dWAN/NpPqqojR6PSLgLYAituLM6U+ddx9hCioFGwBr5Mi+oi5CLeJkcAs3gJ0PYYzU6wUg==",
|
||||
"node_modules/@octokit/request-error": {
|
||||
"version": "6.1.6",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.6.tgz",
|
||||
"integrity": "sha512-pqnVKYo/at0NuOjinrgcQYpEbv4snvP3bKMRqHaD9kIsk9u1LCpb2smHZi8/qJfgeNqLo5hNW4Z7FezNdEo0xg==",
|
||||
"dependencies": {
|
||||
"@octokit/types": "^13.0.0"
|
||||
"@octokit/types": "^13.6.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/rest/node_modules/@octokit/types": {
|
||||
"version": "13.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||
"dependencies": {
|
||||
"@octokit/openapi-types": "^22.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/rest/node_modules/before-after-hook": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-3.0.2.tgz",
|
||||
"integrity": "sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A=="
|
||||
},
|
||||
"node_modules/@octokit/rest/node_modules/universal-user-agent": {
|
||||
"version": "7.0.2",
|
||||
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz",
|
||||
"integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q=="
|
||||
},
|
||||
"node_modules/@octokit/types": {
|
||||
"version": "12.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.0.0.tgz",
|
||||
"integrity": "sha512-EzD434aHTFifGudYAygnFlS1Tl6KhbTynEWELQXIbTY8Msvb5nEqTZIm7sbPEt4mQYLZwu3zPKVdeIrw0g7ovg==",
|
||||
"version": "13.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.7.0.tgz",
|
||||
"integrity": "sha512-BXfRP+3P3IN6fd4uF3SniaHKOO4UXWBfkdR3vA8mIvaoO/wLjGN5qivUtW0QRitBHHMcfC41SLhNVYIZZE+wkA==",
|
||||
"dependencies": {
|
||||
"@octokit/openapi-types": "^19.0.0"
|
||||
"@octokit/openapi-types": "^23.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@opentelemetry/api": {
|
||||
@@ -1926,6 +1701,76 @@
|
||||
"node": ">=8.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@protobuf-ts/plugin": {
|
||||
"version": "2.9.4",
|
||||
"resolved": "https://registry.npmjs.org/@protobuf-ts/plugin/-/plugin-2.9.4.tgz",
|
||||
"integrity": "sha512-Db5Laq5T3mc6ERZvhIhkj1rn57/p8gbWiCKxQWbZBBl20wMuqKoHbRw4tuD7FyXi+IkwTToaNVXymv5CY3E8Rw==",
|
||||
"dependencies": {
|
||||
"@protobuf-ts/plugin-framework": "^2.9.4",
|
||||
"@protobuf-ts/protoc": "^2.9.4",
|
||||
"@protobuf-ts/runtime": "^2.9.4",
|
||||
"@protobuf-ts/runtime-rpc": "^2.9.4",
|
||||
"typescript": "^3.9"
|
||||
},
|
||||
"bin": {
|
||||
"protoc-gen-dump": "bin/protoc-gen-dump",
|
||||
"protoc-gen-ts": "bin/protoc-gen-ts"
|
||||
}
|
||||
},
|
||||
"node_modules/@protobuf-ts/plugin-framework": {
|
||||
"version": "2.9.4",
|
||||
"resolved": "https://registry.npmjs.org/@protobuf-ts/plugin-framework/-/plugin-framework-2.9.4.tgz",
|
||||
"integrity": "sha512-9nuX1kjdMliv+Pes8dQCKyVhjKgNNfwxVHg+tx3fLXSfZZRcUHMc1PMwB9/vTvc6gBKt9QGz5ERqSqZc0++E9A==",
|
||||
"dependencies": {
|
||||
"@protobuf-ts/runtime": "^2.9.4",
|
||||
"typescript": "^3.9"
|
||||
}
|
||||
},
|
||||
"node_modules/@protobuf-ts/plugin-framework/node_modules/typescript": {
|
||||
"version": "3.9.10",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz",
|
||||
"integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==",
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@protobuf-ts/plugin/node_modules/typescript": {
|
||||
"version": "3.9.10",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz",
|
||||
"integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==",
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@protobuf-ts/protoc": {
|
||||
"version": "2.9.4",
|
||||
"resolved": "https://registry.npmjs.org/@protobuf-ts/protoc/-/protoc-2.9.4.tgz",
|
||||
"integrity": "sha512-hQX+nOhFtrA+YdAXsXEDrLoGJqXHpgv4+BueYF0S9hy/Jq0VRTVlJS1Etmf4qlMt/WdigEes5LOd/LDzui4GIQ==",
|
||||
"bin": {
|
||||
"protoc": "protoc.js"
|
||||
}
|
||||
},
|
||||
"node_modules/@protobuf-ts/runtime": {
|
||||
"version": "2.9.4",
|
||||
"resolved": "https://registry.npmjs.org/@protobuf-ts/runtime/-/runtime-2.9.4.tgz",
|
||||
"integrity": "sha512-vHRFWtJJB/SiogWDF0ypoKfRIZ41Kq+G9cEFj6Qm1eQaAhJ1LDFvgZ7Ja4tb3iLOQhz0PaoPnnOijF1qmEqTxg=="
|
||||
},
|
||||
"node_modules/@protobuf-ts/runtime-rpc": {
|
||||
"version": "2.9.4",
|
||||
"resolved": "https://registry.npmjs.org/@protobuf-ts/runtime-rpc/-/runtime-rpc-2.9.4.tgz",
|
||||
"integrity": "sha512-y9L9JgnZxXFqH5vD4d7j9duWvIJ7AShyBRoNKJGhu9Q27qIbchfzli66H9RvrQNIFk5ER7z1Twe059WZGqERcA==",
|
||||
"dependencies": {
|
||||
"@protobuf-ts/runtime": "^2.9.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@sinclair/typebox": {
|
||||
"version": "0.27.8",
|
||||
"resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz",
|
||||
@@ -2025,11 +1870,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "22.9.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.1.tgz",
|
||||
"integrity": "sha512-p8Yy/8sw1caA8CdRIQBG5tiLHmxtQKObCijiAa9Ez+d4+PRffM4054xbju0msf+cvhJpnFEeNjxmVT/0ipktrg==",
|
||||
"version": "22.12.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.12.0.tgz",
|
||||
"integrity": "sha512-Fll2FZ1riMjNmlmJOdAyY5pUbkftXslB5DgEzlIuNaiWhXd00FhWxVC/r4yV/4wBb9JfImTu+jiSvXTkJ7F/gA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"undici-types": "~6.19.8"
|
||||
"undici-types": "~6.20.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/node-fetch": {
|
||||
@@ -2287,9 +2133,9 @@
|
||||
"integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
|
||||
},
|
||||
"node_modules/before-after-hook": {
|
||||
"version": "2.2.3",
|
||||
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz",
|
||||
"integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ=="
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-3.0.2.tgz",
|
||||
"integrity": "sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A=="
|
||||
},
|
||||
"node_modules/brace-expansion": {
|
||||
"version": "1.1.11",
|
||||
@@ -2376,6 +2222,20 @@
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/camel-case": {
|
||||
"version": "4.1.2",
|
||||
"resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz",
|
||||
"integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==",
|
||||
"dependencies": {
|
||||
"pascal-case": "^3.1.2",
|
||||
"tslib": "^2.0.3"
|
||||
}
|
||||
},
|
||||
"node_modules/camel-case/node_modules/tslib": {
|
||||
"version": "2.8.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
||||
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
|
||||
},
|
||||
"node_modules/camelcase": {
|
||||
"version": "5.3.1",
|
||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
|
||||
@@ -2510,6 +2370,14 @@
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/commander": {
|
||||
"version": "6.2.1",
|
||||
"resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz",
|
||||
"integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==",
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
}
|
||||
},
|
||||
"node_modules/concat-map": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
||||
@@ -2543,9 +2411,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/cross-spawn": {
|
||||
"version": "7.0.3",
|
||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
||||
"integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
|
||||
"version": "7.0.6",
|
||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
|
||||
"integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"path-key": "^3.1.0",
|
||||
@@ -2604,11 +2472,6 @@
|
||||
"node": ">=0.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/deprecation": {
|
||||
"version": "2.3.1",
|
||||
"resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz",
|
||||
"integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ=="
|
||||
},
|
||||
"node_modules/detect-newline": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz",
|
||||
@@ -2627,6 +2490,18 @@
|
||||
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/dot-object": {
|
||||
"version": "2.1.5",
|
||||
"resolved": "https://registry.npmjs.org/dot-object/-/dot-object-2.1.5.tgz",
|
||||
"integrity": "sha512-xHF8EP4XH/Ba9fvAF2LDd5O3IITVolerVV6xvkxoM8zlGEiCUrggpAnHyOoKJKCrhvPcGATFAUwIujj7bRG5UA==",
|
||||
"dependencies": {
|
||||
"commander": "^6.1.0",
|
||||
"glob": "^7.1.6"
|
||||
},
|
||||
"bin": {
|
||||
"dot-object": "bin/dot-object"
|
||||
}
|
||||
},
|
||||
"node_modules/ejs": {
|
||||
"version": "3.1.10",
|
||||
"resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",
|
||||
@@ -2770,6 +2645,21 @@
|
||||
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/fast-content-type-parse": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/fast-content-type-parse/-/fast-content-type-parse-2.0.1.tgz",
|
||||
"integrity": "sha512-nGqtvLrj5w0naR6tDPfB4cUmYCqouzyQiz6C5y/LtcDllJdrcc6WaWW6iXyIIOErTa/XRybj28aasdn4LkVk6Q==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/fastify"
|
||||
},
|
||||
{
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/fastify"
|
||||
}
|
||||
]
|
||||
},
|
||||
"node_modules/fast-json-stable-stringify": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
|
||||
@@ -2843,8 +2733,7 @@
|
||||
"node_modules/fs.realpath": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
||||
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
|
||||
"dev": true
|
||||
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
|
||||
},
|
||||
"node_modules/fsevents": {
|
||||
"version": "2.3.3",
|
||||
@@ -2912,7 +2801,6 @@
|
||||
"version": "7.1.6",
|
||||
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
|
||||
"integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"fs.realpath": "^1.0.0",
|
||||
"inflight": "^1.0.4",
|
||||
@@ -3093,7 +2981,6 @@
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
||||
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"once": "^1.3.0",
|
||||
"wrappy": "1"
|
||||
@@ -3102,8 +2989,7 @@
|
||||
"node_modules/inherits": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
||||
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
||||
"dev": true
|
||||
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
|
||||
},
|
||||
"node_modules/is-arrayish": {
|
||||
"version": "0.2.1",
|
||||
@@ -3951,12 +3837,30 @@
|
||||
"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/lodash": {
|
||||
"version": "4.17.21",
|
||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
||||
},
|
||||
"node_modules/lodash.memoize": {
|
||||
"version": "4.1.2",
|
||||
"resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz",
|
||||
"integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/lower-case": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz",
|
||||
"integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==",
|
||||
"dependencies": {
|
||||
"tslib": "^2.0.3"
|
||||
}
|
||||
},
|
||||
"node_modules/lower-case/node_modules/tslib": {
|
||||
"version": "2.8.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
||||
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
|
||||
},
|
||||
"node_modules/lru-cache": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
|
||||
@@ -4084,6 +3988,20 @@
|
||||
"integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/no-case": {
|
||||
"version": "3.0.4",
|
||||
"resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz",
|
||||
"integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==",
|
||||
"dependencies": {
|
||||
"lower-case": "^2.0.2",
|
||||
"tslib": "^2.0.3"
|
||||
}
|
||||
},
|
||||
"node_modules/no-case/node_modules/tslib": {
|
||||
"version": "2.8.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
||||
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
|
||||
},
|
||||
"node_modules/node-int64": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz",
|
||||
@@ -4158,11 +4076,24 @@
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/pascal-case": {
|
||||
"version": "3.1.2",
|
||||
"resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz",
|
||||
"integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==",
|
||||
"dependencies": {
|
||||
"no-case": "^3.0.4",
|
||||
"tslib": "^2.0.3"
|
||||
}
|
||||
},
|
||||
"node_modules/pascal-case/node_modules/tslib": {
|
||||
"version": "2.8.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
||||
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
|
||||
},
|
||||
"node_modules/path-is-absolute": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
||||
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
@@ -4182,6 +4113,11 @@
|
||||
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/path-to-regexp": {
|
||||
"version": "6.3.0",
|
||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.3.0.tgz",
|
||||
"integrity": "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ=="
|
||||
},
|
||||
"node_modules/picocolors": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
|
||||
@@ -4209,6 +4145,20 @@
|
||||
"node": ">= 6"
|
||||
}
|
||||
},
|
||||
"node_modules/prettier": {
|
||||
"version": "2.8.8",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz",
|
||||
"integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==",
|
||||
"bin": {
|
||||
"prettier": "bin-prettier.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10.13.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/prettier/prettier?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/pretty-format": {
|
||||
"version": "29.7.0",
|
||||
"resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz",
|
||||
@@ -4389,6 +4339,17 @@
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/smol-toml": {
|
||||
"version": "1.3.1",
|
||||
"resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.3.1.tgz",
|
||||
"integrity": "sha512-tEYNll18pPKHroYSmLLrksq233j021G0giwW7P3D24jC54pQ5W5BXMsQ/Mvw1OJCmEYDgY+lrzT+3nNUtoNfXQ==",
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/cyyynthia"
|
||||
}
|
||||
},
|
||||
"node_modules/source-map": {
|
||||
"version": "0.6.1",
|
||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
||||
@@ -4625,6 +4586,15 @@
|
||||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/ts-poet": {
|
||||
"version": "4.15.0",
|
||||
"resolved": "https://registry.npmjs.org/ts-poet/-/ts-poet-4.15.0.tgz",
|
||||
"integrity": "sha512-sLLR8yQBvHzi9d4R1F4pd+AzQxBfzOSSjfxiJxQhkUoH5bL7RsAC6wgvtVUQdGqiCsyS9rT6/8X2FI7ipdir5g==",
|
||||
"dependencies": {
|
||||
"lodash": "^4.17.15",
|
||||
"prettier": "^2.5.1"
|
||||
}
|
||||
},
|
||||
"node_modules/tslib": {
|
||||
"version": "1.10.0",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz",
|
||||
@@ -4638,6 +4608,34 @@
|
||||
"node": ">=0.6.11 <=0.7.0 || >=0.7.3"
|
||||
}
|
||||
},
|
||||
"node_modules/twirp-ts": {
|
||||
"version": "2.5.0",
|
||||
"resolved": "https://registry.npmjs.org/twirp-ts/-/twirp-ts-2.5.0.tgz",
|
||||
"integrity": "sha512-JTKIK5Pf/+3qCrmYDFlqcPPUx+ohEWKBaZy8GL8TmvV2VvC0SXVyNYILO39+GCRbqnuP6hBIF+BVr8ZxRz+6fw==",
|
||||
"dependencies": {
|
||||
"@protobuf-ts/plugin-framework": "^2.0.7",
|
||||
"camel-case": "^4.1.2",
|
||||
"dot-object": "^2.1.4",
|
||||
"path-to-regexp": "^6.2.0",
|
||||
"ts-poet": "^4.5.0",
|
||||
"yaml": "^1.10.2"
|
||||
},
|
||||
"bin": {
|
||||
"protoc-gen-twirp_ts": "protoc-gen-twirp_ts"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@protobuf-ts/plugin": "^2.5.0",
|
||||
"ts-proto": "^1.81.3"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@protobuf-ts/plugin": {
|
||||
"optional": true
|
||||
},
|
||||
"ts-proto": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/type-detect": {
|
||||
"version": "4.0.8",
|
||||
"resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
|
||||
@@ -4648,9 +4646,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.6.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz",
|
||||
"integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==",
|
||||
"version": "5.7.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz",
|
||||
"integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
@@ -4661,9 +4659,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/undici": {
|
||||
"version": "5.28.4",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-5.28.4.tgz",
|
||||
"integrity": "sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==",
|
||||
"version": "5.28.5",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-5.28.5.tgz",
|
||||
"integrity": "sha512-zICwjrDrcrUE0pyyJc1I2QzBkLM8FINsgOrt6WjA+BgajVq9Nxu2PbFFXUrAggLfDXlZGZBVZYw7WNV5KiBiBA==",
|
||||
"dependencies": {
|
||||
"@fastify/busboy": "^2.0.0"
|
||||
},
|
||||
@@ -4672,14 +4670,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/undici-types": {
|
||||
"version": "6.19.8",
|
||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz",
|
||||
"integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw=="
|
||||
"version": "6.20.0",
|
||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz",
|
||||
"integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg=="
|
||||
},
|
||||
"node_modules/universal-user-agent": {
|
||||
"version": "6.0.1",
|
||||
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz",
|
||||
"integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ=="
|
||||
"version": "7.0.2",
|
||||
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz",
|
||||
"integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q=="
|
||||
},
|
||||
"node_modules/update-browserslist-db": {
|
||||
"version": "1.0.10",
|
||||
@@ -4707,15 +4705,6 @@
|
||||
"browserslist": ">= 4.21.0"
|
||||
}
|
||||
},
|
||||
"node_modules/uuid": {
|
||||
"version": "3.4.0",
|
||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
|
||||
"integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==",
|
||||
"deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.",
|
||||
"bin": {
|
||||
"uuid": "bin/uuid"
|
||||
}
|
||||
},
|
||||
"node_modules/v8-to-istanbul": {
|
||||
"version": "9.1.0",
|
||||
"resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz",
|
||||
@@ -4844,6 +4833,14 @@
|
||||
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/yaml": {
|
||||
"version": "1.10.2",
|
||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",
|
||||
"integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
}
|
||||
},
|
||||
"node_modules/yargs": {
|
||||
"version": "17.7.2",
|
||||
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
|
||||
@@ -4886,9 +4883,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/cache": {
|
||||
"version": "3.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@actions/cache/-/cache-3.3.0.tgz",
|
||||
"integrity": "sha512-+eCsMTIZUEm+QA9GqjollOhCdvRrZ1JV8d9Rp34zVNizBkYITO8dhKczP5Xps1dFzc5n59p7vYVtZrGt18bb5Q==",
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.0.0.tgz",
|
||||
"integrity": "sha512-WIuxjnZ44lNYtIS4fqSaYvF00hORdy3cSin+jx8xNgBVGWnNIAiCBHjlwusVQlcgExoQC9pHXGrDsZyZr7rCDQ==",
|
||||
"requires": {
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.0.1",
|
||||
@@ -4898,7 +4895,9 @@
|
||||
"@azure/abort-controller": "^1.1.0",
|
||||
"@azure/ms-rest-js": "^2.6.0",
|
||||
"@azure/storage-blob": "^12.13.0",
|
||||
"semver": "^6.3.1"
|
||||
"@protobuf-ts/plugin": "^2.9.4",
|
||||
"semver": "^6.3.1",
|
||||
"twirp-ts": "^2.5.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/glob": {
|
||||
@@ -4929,17 +4928,6 @@
|
||||
"@actions/io": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"@actions/github": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@actions/github/-/github-6.0.0.tgz",
|
||||
"integrity": "sha512-alScpSVnYmjNEXboZjarjukQEzgCRmjMv6Xj47fsdnqGS73bjJNDpiiXmp8jr0UZLdUB6d9jW63IcmddUP+l0g==",
|
||||
"requires": {
|
||||
"@actions/http-client": "^2.2.0",
|
||||
"@octokit/core": "^5.0.1",
|
||||
"@octokit/plugin-paginate-rest": "^9.0.0",
|
||||
"@octokit/plugin-rest-endpoint-methods": "^10.0.0"
|
||||
}
|
||||
},
|
||||
"@actions/glob": {
|
||||
"version": "0.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@actions/glob/-/glob-0.5.0.tgz",
|
||||
@@ -4964,16 +4952,15 @@
|
||||
"integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q=="
|
||||
},
|
||||
"@actions/tool-cache": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-2.0.1.tgz",
|
||||
"integrity": "sha512-iPU+mNwrbA8jodY8eyo/0S/QqCKDajiR8OxWTnSk/SnYg0sj8Hp4QcUEVC1YFpHWXtrfbQrE13Jz4k4HXJQKcA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-2.0.2.tgz",
|
||||
"integrity": "sha512-fBhNNOWxuoLxztQebpOaWu6WeVmuwa77Z+DxIZ1B+OYvGkGQon6kTVg6Z32Cb13WCuw0szqonK+hh03mJV7Z6w==",
|
||||
"requires": {
|
||||
"@actions/core": "^1.2.6",
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.0.0",
|
||||
"@actions/http-client": "^2.0.1",
|
||||
"@actions/io": "^1.1.1",
|
||||
"semver": "^6.1.0",
|
||||
"uuid": "^3.3.2"
|
||||
"semver": "^6.1.0"
|
||||
}
|
||||
},
|
||||
"@ampproject/remapping": {
|
||||
@@ -6083,281 +6070,90 @@
|
||||
}
|
||||
},
|
||||
"@octokit/auth-token": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-4.0.0.tgz",
|
||||
"integrity": "sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA=="
|
||||
"version": "5.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.1.2.tgz",
|
||||
"integrity": "sha512-JcQDsBdg49Yky2w2ld20IHAlwr8d/d8N6NiOXbtuoPCqzbsiJgF633mVUw3x4mo0H5ypataQIX7SFu3yy44Mpw=="
|
||||
},
|
||||
"@octokit/core": {
|
||||
"version": "5.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.2.0.tgz",
|
||||
"integrity": "sha512-1LFfa/qnMQvEOAdzlQymH0ulepxbxnCYAKJZfMci/5XJyIHWgEYnDmgnKakbTh7CH2tFQ5O60oYDvns4i9RAIg==",
|
||||
"version": "6.1.3",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.3.tgz",
|
||||
"integrity": "sha512-z+j7DixNnfpdToYsOutStDgeRzJSMnbj8T1C/oQjB6Aa+kRfNjs/Fn7W6c8bmlt6mfy3FkgeKBRnDjxQow5dow==",
|
||||
"requires": {
|
||||
"@octokit/auth-token": "^4.0.0",
|
||||
"@octokit/graphql": "^7.1.0",
|
||||
"@octokit/request": "^8.3.1",
|
||||
"@octokit/request-error": "^5.1.0",
|
||||
"@octokit/types": "^13.0.0",
|
||||
"before-after-hook": "^2.2.0",
|
||||
"universal-user-agent": "^6.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@octokit/openapi-types": {
|
||||
"version": "22.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||
},
|
||||
"@octokit/types": {
|
||||
"version": "13.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||
"requires": {
|
||||
"@octokit/openapi-types": "^22.2.0"
|
||||
}
|
||||
}
|
||||
"@octokit/auth-token": "^5.0.0",
|
||||
"@octokit/graphql": "^8.1.2",
|
||||
"@octokit/request": "^9.1.4",
|
||||
"@octokit/request-error": "^6.1.6",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"before-after-hook": "^3.0.2",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
}
|
||||
},
|
||||
"@octokit/endpoint": {
|
||||
"version": "9.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-9.0.5.tgz",
|
||||
"integrity": "sha512-ekqR4/+PCLkEBF6qgj8WqJfvDq65RH85OAgrtnVp1mSxaXF03u2xW/hUdweGS5654IlC0wkNYC18Z50tSYTAFw==",
|
||||
"version": "10.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.1.2.tgz",
|
||||
"integrity": "sha512-XybpFv9Ms4hX5OCHMZqyODYqGTZ3H6K6Vva+M9LR7ib/xr1y1ZnlChYv9H680y77Vd/i/k+thXApeRASBQkzhA==",
|
||||
"requires": {
|
||||
"@octokit/types": "^13.1.0",
|
||||
"universal-user-agent": "^6.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@octokit/openapi-types": {
|
||||
"version": "22.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||
},
|
||||
"@octokit/types": {
|
||||
"version": "13.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||
"requires": {
|
||||
"@octokit/openapi-types": "^22.2.0"
|
||||
}
|
||||
}
|
||||
"@octokit/types": "^13.6.2",
|
||||
"universal-user-agent": "^7.0.2"
|
||||
}
|
||||
},
|
||||
"@octokit/graphql": {
|
||||
"version": "7.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-7.1.0.tgz",
|
||||
"integrity": "sha512-r+oZUH7aMFui1ypZnAvZmn0KSqAUgE1/tUXIWaqUCa1758ts/Jio84GZuzsvUkme98kv0WFY8//n0J1Z+vsIsQ==",
|
||||
"version": "8.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-8.1.2.tgz",
|
||||
"integrity": "sha512-bdlj/CJVjpaz06NBpfHhp4kGJaRZfz7AzC+6EwUImRtrwIw8dIgJ63Xg0OzV9pRn3rIzrt5c2sa++BL0JJ8GLw==",
|
||||
"requires": {
|
||||
"@octokit/request": "^8.3.0",
|
||||
"@octokit/types": "^13.0.0",
|
||||
"universal-user-agent": "^6.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@octokit/openapi-types": {
|
||||
"version": "22.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||
},
|
||||
"@octokit/types": {
|
||||
"version": "13.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||
"requires": {
|
||||
"@octokit/openapi-types": "^22.2.0"
|
||||
}
|
||||
}
|
||||
"@octokit/request": "^9.1.4",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
}
|
||||
},
|
||||
"@octokit/openapi-types": {
|
||||
"version": "19.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-19.0.0.tgz",
|
||||
"integrity": "sha512-PclQ6JGMTE9iUStpzMkwLCISFn/wDeRjkZFIKALpvJQNBGwDoYYi2fFvuHwssoQ1rXI5mfh6jgTgWuddeUzfWw=="
|
||||
"version": "23.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-23.0.1.tgz",
|
||||
"integrity": "sha512-izFjMJ1sir0jn0ldEKhZ7xegCTj/ObmEDlEfpFrx4k/JyZSMRHbO3/rBwgE7f3m2DHt+RrNGIVw4wSmwnm3t/g=="
|
||||
},
|
||||
"@octokit/plugin-paginate-rest": {
|
||||
"version": "9.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.0.0.tgz",
|
||||
"integrity": "sha512-oIJzCpttmBTlEhBmRvb+b9rlnGpmFgDtZ0bB6nq39qIod6A5DP+7RkVLMOixIgRCYSHDTeayWqmiJ2SZ6xgfdw==",
|
||||
"version": "11.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-11.4.0.tgz",
|
||||
"integrity": "sha512-ttpGck5AYWkwMkMazNCZMqxKqIq1fJBNxBfsFwwfyYKTf914jKkLF0POMS3YkPBwp5g1c2Y4L79gDz01GhSr1g==",
|
||||
"requires": {
|
||||
"@octokit/types": "^12.0.0"
|
||||
"@octokit/types": "^13.7.0"
|
||||
}
|
||||
},
|
||||
"@octokit/plugin-rest-endpoint-methods": {
|
||||
"version": "10.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.0.0.tgz",
|
||||
"integrity": "sha512-16VkwE2v6rXU+/gBsYC62M8lKWOphY5Lg4wpjYnVE9Zbu0J6IwiT5kILoj1YOB53XLmcJR+Nqp8DmifOPY4H3g==",
|
||||
"version": "13.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.3.0.tgz",
|
||||
"integrity": "sha512-LUm44shlmkp/6VC+qQgHl3W5vzUP99ZM54zH6BuqkJK4DqfFLhegANd+fM4YRLapTvPm4049iG7F3haANKMYvQ==",
|
||||
"requires": {
|
||||
"@octokit/types": "^12.0.0"
|
||||
"@octokit/types": "^13.7.0"
|
||||
}
|
||||
},
|
||||
"@octokit/request": {
|
||||
"version": "8.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-8.4.0.tgz",
|
||||
"integrity": "sha512-9Bb014e+m2TgBeEJGEbdplMVWwPmL1FPtggHQRkV+WVsMggPtEkLKPlcVYm/o8xKLkpJ7B+6N8WfQMtDLX2Dpw==",
|
||||
"version": "9.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.2.0.tgz",
|
||||
"integrity": "sha512-kXLfcxhC4ozCnAXy2ff+cSxpcF0A1UqxjvYMqNuPIeOAzJbVWQ+dy5G2fTylofB/gTbObT8O6JORab+5XtA1Kw==",
|
||||
"requires": {
|
||||
"@octokit/endpoint": "^9.0.1",
|
||||
"@octokit/request-error": "^5.1.0",
|
||||
"@octokit/types": "^13.1.0",
|
||||
"universal-user-agent": "^6.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@octokit/openapi-types": {
|
||||
"version": "22.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||
},
|
||||
"@octokit/types": {
|
||||
"version": "13.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||
"requires": {
|
||||
"@octokit/openapi-types": "^22.2.0"
|
||||
}
|
||||
}
|
||||
"@octokit/endpoint": "^10.0.0",
|
||||
"@octokit/request-error": "^6.0.1",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"fast-content-type-parse": "^2.0.0",
|
||||
"universal-user-agent": "^7.0.2"
|
||||
}
|
||||
},
|
||||
"@octokit/request-error": {
|
||||
"version": "5.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-5.1.0.tgz",
|
||||
"integrity": "sha512-GETXfE05J0+7H2STzekpKObFe765O5dlAKUTLNGeH+x47z7JjXHfsHKo5z21D/o/IOZTUEI6nyWyR+bZVP/n5Q==",
|
||||
"version": "6.1.6",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.6.tgz",
|
||||
"integrity": "sha512-pqnVKYo/at0NuOjinrgcQYpEbv4snvP3bKMRqHaD9kIsk9u1LCpb2smHZi8/qJfgeNqLo5hNW4Z7FezNdEo0xg==",
|
||||
"requires": {
|
||||
"@octokit/types": "^13.1.0",
|
||||
"deprecation": "^2.0.0",
|
||||
"once": "^1.4.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@octokit/openapi-types": {
|
||||
"version": "22.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||
},
|
||||
"@octokit/types": {
|
||||
"version": "13.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||
"requires": {
|
||||
"@octokit/openapi-types": "^22.2.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@octokit/rest": {
|
||||
"version": "21.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-21.0.2.tgz",
|
||||
"integrity": "sha512-+CiLisCoyWmYicH25y1cDfCrv41kRSvTq6pPWtRroRJzhsCZWZyCqGyI8foJT5LmScADSwRAnr/xo+eewL04wQ==",
|
||||
"requires": {
|
||||
"@octokit/core": "^6.1.2",
|
||||
"@octokit/plugin-paginate-rest": "^11.0.0",
|
||||
"@octokit/plugin-request-log": "^5.3.1",
|
||||
"@octokit/plugin-rest-endpoint-methods": "^13.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@octokit/auth-token": {
|
||||
"version": "5.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.1.1.tgz",
|
||||
"integrity": "sha512-rh3G3wDO8J9wSjfI436JUKzHIxq8NaiL0tVeB2aXmG6p/9859aUOAjA9pmSPNGGZxfwmaJ9ozOJImuNVJdpvbA=="
|
||||
},
|
||||
"@octokit/core": {
|
||||
"version": "6.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.2.tgz",
|
||||
"integrity": "sha512-hEb7Ma4cGJGEUNOAVmyfdB/3WirWMg5hDuNFVejGEDFqupeOysLc2sG6HJxY2etBp5YQu5Wtxwi020jS9xlUwg==",
|
||||
"requires": {
|
||||
"@octokit/auth-token": "^5.0.0",
|
||||
"@octokit/graphql": "^8.0.0",
|
||||
"@octokit/request": "^9.0.0",
|
||||
"@octokit/request-error": "^6.0.1",
|
||||
"@octokit/types": "^13.0.0",
|
||||
"before-after-hook": "^3.0.2",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
}
|
||||
},
|
||||
"@octokit/endpoint": {
|
||||
"version": "10.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.1.1.tgz",
|
||||
"integrity": "sha512-JYjh5rMOwXMJyUpj028cu0Gbp7qe/ihxfJMLc8VZBMMqSwLgOxDI1911gV4Enl1QSavAQNJcwmwBF9M0VvLh6Q==",
|
||||
"requires": {
|
||||
"@octokit/types": "^13.0.0",
|
||||
"universal-user-agent": "^7.0.2"
|
||||
}
|
||||
},
|
||||
"@octokit/graphql": {
|
||||
"version": "8.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-8.1.1.tgz",
|
||||
"integrity": "sha512-ukiRmuHTi6ebQx/HFRCXKbDlOh/7xEV6QUXaE7MJEKGNAncGI/STSbOkl12qVXZrfZdpXctx5O9X1AIaebiDBg==",
|
||||
"requires": {
|
||||
"@octokit/request": "^9.0.0",
|
||||
"@octokit/types": "^13.0.0",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
}
|
||||
},
|
||||
"@octokit/openapi-types": {
|
||||
"version": "22.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||
},
|
||||
"@octokit/plugin-paginate-rest": {
|
||||
"version": "11.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-11.3.1.tgz",
|
||||
"integrity": "sha512-ryqobs26cLtM1kQxqeZui4v8FeznirUsksiA+RYemMPJ7Micju0WSkv50dBksTuZks9O5cg4wp+t8fZ/cLY56g==",
|
||||
"requires": {
|
||||
"@octokit/types": "^13.5.0"
|
||||
}
|
||||
},
|
||||
"@octokit/plugin-request-log": {
|
||||
"version": "5.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-5.3.1.tgz",
|
||||
"integrity": "sha512-n/lNeCtq+9ofhC15xzmJCNKP2BWTv8Ih2TTy+jatNCCq/gQP/V7rK3fjIfuz0pDWDALO/o/4QY4hyOF6TQQFUw==",
|
||||
"requires": {}
|
||||
},
|
||||
"@octokit/plugin-rest-endpoint-methods": {
|
||||
"version": "13.2.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.2.2.tgz",
|
||||
"integrity": "sha512-EI7kXWidkt3Xlok5uN43suK99VWqc8OaIMktY9d9+RNKl69juoTyxmLoWPIZgJYzi41qj/9zU7G/ljnNOJ5AFA==",
|
||||
"requires": {
|
||||
"@octokit/types": "^13.5.0"
|
||||
}
|
||||
},
|
||||
"@octokit/request": {
|
||||
"version": "9.1.3",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.1.3.tgz",
|
||||
"integrity": "sha512-V+TFhu5fdF3K58rs1pGUJIDH5RZLbZm5BI+MNF+6o/ssFNT4vWlCh/tVpF3NxGtP15HUxTTMUbsG5llAuU2CZA==",
|
||||
"requires": {
|
||||
"@octokit/endpoint": "^10.0.0",
|
||||
"@octokit/request-error": "^6.0.1",
|
||||
"@octokit/types": "^13.1.0",
|
||||
"universal-user-agent": "^7.0.2"
|
||||
}
|
||||
},
|
||||
"@octokit/request-error": {
|
||||
"version": "6.1.4",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.4.tgz",
|
||||
"integrity": "sha512-VpAhIUxwhWZQImo/dWAN/NpPqqojR6PSLgLYAituLM6U+ddx9hCioFGwBr5Mi+oi5CLeJkcAs3gJ0PYYzU6wUg==",
|
||||
"requires": {
|
||||
"@octokit/types": "^13.0.0"
|
||||
}
|
||||
},
|
||||
"@octokit/types": {
|
||||
"version": "13.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||
"requires": {
|
||||
"@octokit/openapi-types": "^22.2.0"
|
||||
}
|
||||
},
|
||||
"before-after-hook": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-3.0.2.tgz",
|
||||
"integrity": "sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A=="
|
||||
},
|
||||
"universal-user-agent": {
|
||||
"version": "7.0.2",
|
||||
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz",
|
||||
"integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q=="
|
||||
}
|
||||
"@octokit/types": "^13.6.2"
|
||||
}
|
||||
},
|
||||
"@octokit/types": {
|
||||
"version": "12.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.0.0.tgz",
|
||||
"integrity": "sha512-EzD434aHTFifGudYAygnFlS1Tl6KhbTynEWELQXIbTY8Msvb5nEqTZIm7sbPEt4mQYLZwu3zPKVdeIrw0g7ovg==",
|
||||
"version": "13.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.7.0.tgz",
|
||||
"integrity": "sha512-BXfRP+3P3IN6fd4uF3SniaHKOO4UXWBfkdR3vA8mIvaoO/wLjGN5qivUtW0QRitBHHMcfC41SLhNVYIZZE+wkA==",
|
||||
"requires": {
|
||||
"@octokit/openapi-types": "^19.0.0"
|
||||
"@octokit/openapi-types": "^23.0.1"
|
||||
}
|
||||
},
|
||||
"@opentelemetry/api": {
|
||||
@@ -6365,6 +6161,59 @@
|
||||
"resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.4.1.tgz",
|
||||
"integrity": "sha512-O2yRJce1GOc6PAy3QxFM4NzFiWzvScDC1/5ihYBL6BUEVdq0XMWN01sppE+H6bBXbaFYipjwFLEWLg5PaSOThA=="
|
||||
},
|
||||
"@protobuf-ts/plugin": {
|
||||
"version": "2.9.4",
|
||||
"resolved": "https://registry.npmjs.org/@protobuf-ts/plugin/-/plugin-2.9.4.tgz",
|
||||
"integrity": "sha512-Db5Laq5T3mc6ERZvhIhkj1rn57/p8gbWiCKxQWbZBBl20wMuqKoHbRw4tuD7FyXi+IkwTToaNVXymv5CY3E8Rw==",
|
||||
"requires": {
|
||||
"@protobuf-ts/plugin-framework": "^2.9.4",
|
||||
"@protobuf-ts/protoc": "^2.9.4",
|
||||
"@protobuf-ts/runtime": "^2.9.4",
|
||||
"@protobuf-ts/runtime-rpc": "^2.9.4",
|
||||
"typescript": "^3.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"typescript": {
|
||||
"version": "3.9.10",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz",
|
||||
"integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"@protobuf-ts/plugin-framework": {
|
||||
"version": "2.9.4",
|
||||
"resolved": "https://registry.npmjs.org/@protobuf-ts/plugin-framework/-/plugin-framework-2.9.4.tgz",
|
||||
"integrity": "sha512-9nuX1kjdMliv+Pes8dQCKyVhjKgNNfwxVHg+tx3fLXSfZZRcUHMc1PMwB9/vTvc6gBKt9QGz5ERqSqZc0++E9A==",
|
||||
"requires": {
|
||||
"@protobuf-ts/runtime": "^2.9.4",
|
||||
"typescript": "^3.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"typescript": {
|
||||
"version": "3.9.10",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz",
|
||||
"integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"@protobuf-ts/protoc": {
|
||||
"version": "2.9.4",
|
||||
"resolved": "https://registry.npmjs.org/@protobuf-ts/protoc/-/protoc-2.9.4.tgz",
|
||||
"integrity": "sha512-hQX+nOhFtrA+YdAXsXEDrLoGJqXHpgv4+BueYF0S9hy/Jq0VRTVlJS1Etmf4qlMt/WdigEes5LOd/LDzui4GIQ=="
|
||||
},
|
||||
"@protobuf-ts/runtime": {
|
||||
"version": "2.9.4",
|
||||
"resolved": "https://registry.npmjs.org/@protobuf-ts/runtime/-/runtime-2.9.4.tgz",
|
||||
"integrity": "sha512-vHRFWtJJB/SiogWDF0ypoKfRIZ41Kq+G9cEFj6Qm1eQaAhJ1LDFvgZ7Ja4tb3iLOQhz0PaoPnnOijF1qmEqTxg=="
|
||||
},
|
||||
"@protobuf-ts/runtime-rpc": {
|
||||
"version": "2.9.4",
|
||||
"resolved": "https://registry.npmjs.org/@protobuf-ts/runtime-rpc/-/runtime-rpc-2.9.4.tgz",
|
||||
"integrity": "sha512-y9L9JgnZxXFqH5vD4d7j9duWvIJ7AShyBRoNKJGhu9Q27qIbchfzli66H9RvrQNIFk5ER7z1Twe059WZGqERcA==",
|
||||
"requires": {
|
||||
"@protobuf-ts/runtime": "^2.9.4"
|
||||
}
|
||||
},
|
||||
"@sinclair/typebox": {
|
||||
"version": "0.27.8",
|
||||
"resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz",
|
||||
@@ -6464,11 +6313,11 @@
|
||||
}
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "22.9.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.1.tgz",
|
||||
"integrity": "sha512-p8Yy/8sw1caA8CdRIQBG5tiLHmxtQKObCijiAa9Ez+d4+PRffM4054xbju0msf+cvhJpnFEeNjxmVT/0ipktrg==",
|
||||
"version": "22.12.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.12.0.tgz",
|
||||
"integrity": "sha512-Fll2FZ1riMjNmlmJOdAyY5pUbkftXslB5DgEzlIuNaiWhXd00FhWxVC/r4yV/4wBb9JfImTu+jiSvXTkJ7F/gA==",
|
||||
"requires": {
|
||||
"undici-types": "~6.19.8"
|
||||
"undici-types": "~6.20.0"
|
||||
}
|
||||
},
|
||||
"@types/node-fetch": {
|
||||
@@ -6676,9 +6525,9 @@
|
||||
"integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
|
||||
},
|
||||
"before-after-hook": {
|
||||
"version": "2.2.3",
|
||||
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz",
|
||||
"integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ=="
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-3.0.2.tgz",
|
||||
"integrity": "sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A=="
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "1.1.11",
|
||||
@@ -6740,6 +6589,22 @@
|
||||
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
|
||||
"dev": true
|
||||
},
|
||||
"camel-case": {
|
||||
"version": "4.1.2",
|
||||
"resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz",
|
||||
"integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==",
|
||||
"requires": {
|
||||
"pascal-case": "^3.1.2",
|
||||
"tslib": "^2.0.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"tslib": {
|
||||
"version": "2.8.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
||||
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"camelcase": {
|
||||
"version": "5.3.1",
|
||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
|
||||
@@ -6826,6 +6691,11 @@
|
||||
"delayed-stream": "~1.0.0"
|
||||
}
|
||||
},
|
||||
"commander": {
|
||||
"version": "6.2.1",
|
||||
"resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz",
|
||||
"integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA=="
|
||||
},
|
||||
"concat-map": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
||||
@@ -6853,9 +6723,9 @@
|
||||
}
|
||||
},
|
||||
"cross-spawn": {
|
||||
"version": "7.0.3",
|
||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
||||
"integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
|
||||
"version": "7.0.6",
|
||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
|
||||
"integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"path-key": "^3.1.0",
|
||||
@@ -6890,11 +6760,6 @@
|
||||
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
||||
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="
|
||||
},
|
||||
"deprecation": {
|
||||
"version": "2.3.1",
|
||||
"resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz",
|
||||
"integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ=="
|
||||
},
|
||||
"detect-newline": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz",
|
||||
@@ -6907,6 +6772,15 @@
|
||||
"integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==",
|
||||
"dev": true
|
||||
},
|
||||
"dot-object": {
|
||||
"version": "2.1.5",
|
||||
"resolved": "https://registry.npmjs.org/dot-object/-/dot-object-2.1.5.tgz",
|
||||
"integrity": "sha512-xHF8EP4XH/Ba9fvAF2LDd5O3IITVolerVV6xvkxoM8zlGEiCUrggpAnHyOoKJKCrhvPcGATFAUwIujj7bRG5UA==",
|
||||
"requires": {
|
||||
"commander": "^6.1.0",
|
||||
"glob": "^7.1.6"
|
||||
}
|
||||
},
|
||||
"ejs": {
|
||||
"version": "3.1.10",
|
||||
"resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",
|
||||
@@ -7007,6 +6881,11 @@
|
||||
"jest-util": "^29.7.0"
|
||||
}
|
||||
},
|
||||
"fast-content-type-parse": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/fast-content-type-parse/-/fast-content-type-parse-2.0.1.tgz",
|
||||
"integrity": "sha512-nGqtvLrj5w0naR6tDPfB4cUmYCqouzyQiz6C5y/LtcDllJdrcc6WaWW6iXyIIOErTa/XRybj28aasdn4LkVk6Q=="
|
||||
},
|
||||
"fast-json-stable-stringify": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
|
||||
@@ -7073,8 +6952,7 @@
|
||||
"fs.realpath": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
||||
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
|
||||
"dev": true
|
||||
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
|
||||
},
|
||||
"fsevents": {
|
||||
"version": "2.3.3",
|
||||
@@ -7117,7 +6995,6 @@
|
||||
"version": "7.1.6",
|
||||
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
|
||||
"integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"fs.realpath": "^1.0.0",
|
||||
"inflight": "^1.0.4",
|
||||
@@ -7246,7 +7123,6 @@
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
||||
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"once": "^1.3.0",
|
||||
"wrappy": "1"
|
||||
@@ -7255,8 +7131,7 @@
|
||||
"inherits": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
||||
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
||||
"dev": true
|
||||
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
|
||||
},
|
||||
"is-arrayish": {
|
||||
"version": "0.2.1",
|
||||
@@ -7895,12 +7770,32 @@
|
||||
"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
|
||||
"dev": true
|
||||
},
|
||||
"lodash": {
|
||||
"version": "4.17.21",
|
||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
||||
},
|
||||
"lodash.memoize": {
|
||||
"version": "4.1.2",
|
||||
"resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz",
|
||||
"integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=",
|
||||
"dev": true
|
||||
},
|
||||
"lower-case": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz",
|
||||
"integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==",
|
||||
"requires": {
|
||||
"tslib": "^2.0.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"tslib": {
|
||||
"version": "2.8.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
||||
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"lru-cache": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
|
||||
@@ -8000,6 +7895,22 @@
|
||||
"integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",
|
||||
"dev": true
|
||||
},
|
||||
"no-case": {
|
||||
"version": "3.0.4",
|
||||
"resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz",
|
||||
"integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==",
|
||||
"requires": {
|
||||
"lower-case": "^2.0.2",
|
||||
"tslib": "^2.0.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"tslib": {
|
||||
"version": "2.8.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
||||
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"node-int64": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz",
|
||||
@@ -8056,11 +7967,26 @@
|
||||
"lines-and-columns": "^1.1.6"
|
||||
}
|
||||
},
|
||||
"pascal-case": {
|
||||
"version": "3.1.2",
|
||||
"resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz",
|
||||
"integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==",
|
||||
"requires": {
|
||||
"no-case": "^3.0.4",
|
||||
"tslib": "^2.0.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"tslib": {
|
||||
"version": "2.8.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
||||
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"path-is-absolute": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
||||
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
|
||||
"dev": true
|
||||
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18="
|
||||
},
|
||||
"path-key": {
|
||||
"version": "3.1.1",
|
||||
@@ -8074,6 +8000,11 @@
|
||||
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
|
||||
"dev": true
|
||||
},
|
||||
"path-to-regexp": {
|
||||
"version": "6.3.0",
|
||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.3.0.tgz",
|
||||
"integrity": "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ=="
|
||||
},
|
||||
"picocolors": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
|
||||
@@ -8092,6 +8023,11 @@
|
||||
"integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==",
|
||||
"dev": true
|
||||
},
|
||||
"prettier": {
|
||||
"version": "2.8.8",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz",
|
||||
"integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q=="
|
||||
},
|
||||
"pretty-format": {
|
||||
"version": "29.7.0",
|
||||
"resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz",
|
||||
@@ -8221,6 +8157,11 @@
|
||||
"integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
|
||||
"dev": true
|
||||
},
|
||||
"smol-toml": {
|
||||
"version": "1.3.1",
|
||||
"resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.3.1.tgz",
|
||||
"integrity": "sha512-tEYNll18pPKHroYSmLLrksq233j021G0giwW7P3D24jC54pQ5W5BXMsQ/Mvw1OJCmEYDgY+lrzT+3nNUtoNfXQ=="
|
||||
},
|
||||
"source-map": {
|
||||
"version": "0.6.1",
|
||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
||||
@@ -8379,6 +8320,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"ts-poet": {
|
||||
"version": "4.15.0",
|
||||
"resolved": "https://registry.npmjs.org/ts-poet/-/ts-poet-4.15.0.tgz",
|
||||
"integrity": "sha512-sLLR8yQBvHzi9d4R1F4pd+AzQxBfzOSSjfxiJxQhkUoH5bL7RsAC6wgvtVUQdGqiCsyS9rT6/8X2FI7ipdir5g==",
|
||||
"requires": {
|
||||
"lodash": "^4.17.15",
|
||||
"prettier": "^2.5.1"
|
||||
}
|
||||
},
|
||||
"tslib": {
|
||||
"version": "1.10.0",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz",
|
||||
@@ -8389,6 +8339,19 @@
|
||||
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
|
||||
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg=="
|
||||
},
|
||||
"twirp-ts": {
|
||||
"version": "2.5.0",
|
||||
"resolved": "https://registry.npmjs.org/twirp-ts/-/twirp-ts-2.5.0.tgz",
|
||||
"integrity": "sha512-JTKIK5Pf/+3qCrmYDFlqcPPUx+ohEWKBaZy8GL8TmvV2VvC0SXVyNYILO39+GCRbqnuP6hBIF+BVr8ZxRz+6fw==",
|
||||
"requires": {
|
||||
"@protobuf-ts/plugin-framework": "^2.0.7",
|
||||
"camel-case": "^4.1.2",
|
||||
"dot-object": "^2.1.4",
|
||||
"path-to-regexp": "^6.2.0",
|
||||
"ts-poet": "^4.5.0",
|
||||
"yaml": "^1.10.2"
|
||||
}
|
||||
},
|
||||
"type-detect": {
|
||||
"version": "4.0.8",
|
||||
"resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
|
||||
@@ -8396,28 +8359,28 @@
|
||||
"dev": true
|
||||
},
|
||||
"typescript": {
|
||||
"version": "5.6.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz",
|
||||
"integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==",
|
||||
"version": "5.7.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz",
|
||||
"integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==",
|
||||
"dev": true
|
||||
},
|
||||
"undici": {
|
||||
"version": "5.28.4",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-5.28.4.tgz",
|
||||
"integrity": "sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==",
|
||||
"version": "5.28.5",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-5.28.5.tgz",
|
||||
"integrity": "sha512-zICwjrDrcrUE0pyyJc1I2QzBkLM8FINsgOrt6WjA+BgajVq9Nxu2PbFFXUrAggLfDXlZGZBVZYw7WNV5KiBiBA==",
|
||||
"requires": {
|
||||
"@fastify/busboy": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"undici-types": {
|
||||
"version": "6.19.8",
|
||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz",
|
||||
"integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw=="
|
||||
"version": "6.20.0",
|
||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz",
|
||||
"integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg=="
|
||||
},
|
||||
"universal-user-agent": {
|
||||
"version": "6.0.1",
|
||||
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz",
|
||||
"integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ=="
|
||||
"version": "7.0.2",
|
||||
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz",
|
||||
"integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q=="
|
||||
},
|
||||
"update-browserslist-db": {
|
||||
"version": "1.0.10",
|
||||
@@ -8429,11 +8392,6 @@
|
||||
"picocolors": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"uuid": {
|
||||
"version": "3.4.0",
|
||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
|
||||
"integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A=="
|
||||
},
|
||||
"v8-to-istanbul": {
|
||||
"version": "9.1.0",
|
||||
"resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz",
|
||||
@@ -8537,6 +8495,11 @@
|
||||
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
|
||||
"dev": true
|
||||
},
|
||||
"yaml": {
|
||||
"version": "1.10.2",
|
||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",
|
||||
"integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg=="
|
||||
},
|
||||
"yargs": {
|
||||
"version": "17.7.2",
|
||||
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
|
||||
|
||||
+8
-6
@@ -23,23 +23,25 @@
|
||||
"author": "@eifinger",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/cache": "^3.3.0",
|
||||
"@actions/cache": "^4.0.0",
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/github": "^6.0.0",
|
||||
"@actions/glob": "^0.5.0",
|
||||
"@actions/io": "^1.1.3",
|
||||
"@actions/tool-cache": "^2.0.1",
|
||||
"@octokit/rest": "^21.0.2"
|
||||
"@actions/tool-cache": "^2.0.2",
|
||||
"@octokit/core": "^6.1.3",
|
||||
"@octokit/plugin-paginate-rest": "^11.4.0",
|
||||
"@octokit/plugin-rest-endpoint-methods": "^13.3.0",
|
||||
"smol-toml": "^1.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "1.9.4",
|
||||
"@types/node": "^22.9.1",
|
||||
"@types/node": "^22.12.0",
|
||||
"@types/semver": "^7.5.8",
|
||||
"@vercel/ncc": "^0.38.3",
|
||||
"jest": "^29.7.0",
|
||||
"js-yaml": "^4.1.0",
|
||||
"ts-jest": "^29.2.5",
|
||||
"typescript": "^5.6.3"
|
||||
"typescript": "^5.7.3"
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+43
-8
@@ -4,16 +4,18 @@ import {
|
||||
cacheDependencyGlob,
|
||||
cacheLocalPath,
|
||||
cacheSuffix,
|
||||
pythonVersion as pythonVersionInput,
|
||||
} from "../utils/inputs";
|
||||
import { getArch, getPlatform } from "../utils/platforms";
|
||||
import { hashFiles } from "../hash/hash-files";
|
||||
import * as exec from "@actions/exec";
|
||||
|
||||
export const STATE_CACHE_KEY = "cache-key";
|
||||
export const STATE_CACHE_MATCHED_KEY = "cache-matched-key";
|
||||
const CACHE_VERSION = "1";
|
||||
|
||||
export async function restoreCache(version: string): Promise<void> {
|
||||
const cacheKey = await computeKeys(version);
|
||||
export async function restoreCache(): Promise<void> {
|
||||
const cacheKey = await computeKeys();
|
||||
|
||||
let matchedKey: string | undefined;
|
||||
core.info(
|
||||
@@ -33,7 +35,7 @@ export async function restoreCache(version: string): Promise<void> {
|
||||
handleMatchResult(matchedKey, cacheKey);
|
||||
}
|
||||
|
||||
async function computeKeys(version: string): Promise<string> {
|
||||
async function computeKeys(): Promise<string> {
|
||||
let cacheDependencyPathHash = "-";
|
||||
if (cacheDependencyGlob !== "") {
|
||||
core.info(
|
||||
@@ -41,15 +43,48 @@ async function computeKeys(version: string): Promise<string> {
|
||||
);
|
||||
cacheDependencyPathHash += await hashFiles(cacheDependencyGlob, true);
|
||||
if (cacheDependencyPathHash === "-") {
|
||||
throw new Error(
|
||||
`No file matched to [${cacheDependencyGlob.split("\n").join(",")}], make sure you have checked out the target repository`,
|
||||
core.warning(
|
||||
`No file matched to [${cacheDependencyGlob.split("\n").join(",")}]. The cache will never get invalidated. Make sure you have checked out the target repository and configured the cache-dependency-glob input correctly.`,
|
||||
);
|
||||
}
|
||||
} else {
|
||||
cacheDependencyPathHash += "no-dependency-glob";
|
||||
}
|
||||
if (cacheDependencyPathHash === "-") {
|
||||
cacheDependencyPathHash = "-no-dependency-glob";
|
||||
}
|
||||
const suffix = cacheSuffix ? `-${cacheSuffix}` : "";
|
||||
return `setup-uv-${CACHE_VERSION}-${getArch()}-${getPlatform()}-${version}${cacheDependencyPathHash}${suffix}`;
|
||||
const pythonVersion = await getPythonVersion();
|
||||
return `setup-uv-${CACHE_VERSION}-${getArch()}-${getPlatform()}-${pythonVersion}${cacheDependencyPathHash}${suffix}`;
|
||||
}
|
||||
|
||||
async function getPythonVersion(): Promise<string> {
|
||||
if (pythonVersionInput !== "") {
|
||||
return pythonVersionInput;
|
||||
}
|
||||
|
||||
let output = "";
|
||||
const options: exec.ExecOptions = {
|
||||
silent: !core.isDebug(),
|
||||
listeners: {
|
||||
stdout: (data: Buffer) => {
|
||||
output += data.toString();
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
try {
|
||||
const execArgs = ["python", "find"];
|
||||
await exec.exec("uv", execArgs, options);
|
||||
const pythonPath = output.trim();
|
||||
|
||||
output = "";
|
||||
await exec.exec(pythonPath, ["--version"], options);
|
||||
// output is like "Python 3.8.10"
|
||||
return output.split(" ")[1].trim();
|
||||
} catch (error) {
|
||||
const err = error as Error;
|
||||
core.debug(`Failed to get python version from uv. Error: ${err.message}`);
|
||||
return "unknown";
|
||||
}
|
||||
}
|
||||
|
||||
function handleMatchResult(
|
||||
|
||||
@@ -1,5 +1,787 @@
|
||||
// AUTOGENERATED_DO_NOT_EDIT
|
||||
export const KNOWN_CHECKSUMS: { [key: string]: string } = {
|
||||
"aarch64-apple-darwin-0.5.29":
|
||||
"c89e96bde40402cc4db2f59bcb886882ab69e557235279283a2db9dea61135c3",
|
||||
"aarch64-pc-windows-msvc-0.5.29":
|
||||
"172509e9824b925082612f19ab0e030e08108033d7e5c10e67ede69b3bf290d8",
|
||||
"aarch64-unknown-linux-gnu-0.5.29":
|
||||
"d1f716e8362d7da654a154b8331054a987c1fc16562bd719190a42458e945785",
|
||||
"aarch64-unknown-linux-musl-0.5.29":
|
||||
"3f2d03e62b951a3e46e9c1cfae3091235c05ff274c7163162b8726fb56133219",
|
||||
"arm-unknown-linux-musleabihf-0.5.29":
|
||||
"5ee7d5e95f93434845c1e14740c5e957f8747b751af054996f45a9095426a496",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.29":
|
||||
"98b88f2bc2905241ff460529a9d24cdaa70e8b31c573ba07240eb4a163e7fa3d",
|
||||
"armv7-unknown-linux-musleabihf-0.5.29":
|
||||
"95f148fb44c71f817d0f9c7e14591f1364c7da62a3cb9d353a0e45b4332031d3",
|
||||
"i686-pc-windows-msvc-0.5.29":
|
||||
"e35c4bba6af151e3a952629c7054b0f6d901c83aa7a3a21aedc3880424790294",
|
||||
"i686-unknown-linux-gnu-0.5.29":
|
||||
"9e81a4f621500d161ae810a7f68a25a8bfc141d172267a36c19cf491c5bf8fa7",
|
||||
"i686-unknown-linux-musl-0.5.29":
|
||||
"07b4f43a4c561120cd5951c5aa49ad0aa2a1c1ebce870f533f06fa0e0a8ece4f",
|
||||
"powerpc64-unknown-linux-gnu-0.5.29":
|
||||
"0eae3ece0811815cbed9619995486a2d4ba4df47abe3f7fcc27153eff9c5a655",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.29":
|
||||
"0e38436e4068eec23498f88a5c1b721411986e6a983f243680a60b716b7c301c",
|
||||
"s390x-unknown-linux-gnu-0.5.29":
|
||||
"6a42886dd10c6437a1a56982cd0c116d063f05483aa7db1cc0343f705ef96f91",
|
||||
"x86_64-apple-darwin-0.5.29":
|
||||
"2f13ef5a82b91ba137fd6441f478c406a0a8b0df41e9573d1e61551a1de5a3a2",
|
||||
"x86_64-pc-windows-msvc-0.5.29":
|
||||
"2453b17df889822a5b8dcd3467dd6b75a410d61f5e6504362e3852fb3175c19c",
|
||||
"x86_64-unknown-linux-gnu-0.5.29":
|
||||
"46d3fcf04d64be42bded914d648657cd62d968172604e3aaf8386142c09d2317",
|
||||
"x86_64-unknown-linux-musl-0.5.29":
|
||||
"bb06a385a918b7b8d927ef08e283843b66005dfccf0a940bfd0882f22cbc1a7f",
|
||||
"aarch64-apple-darwin-0.5.28":
|
||||
"57cbf655a5bc5c1ffa7315c0b25ff342f44a919fa099311c0d994914011b421e",
|
||||
"aarch64-pc-windows-msvc-0.5.28":
|
||||
"76bb4fe97c78f5de294614cb36294a3204e57117d8ce2f826bf1b8fd28d770ef",
|
||||
"aarch64-unknown-linux-gnu-0.5.28":
|
||||
"fe3c481940c5542d034a863239f23d64ee45abcd636c480c1ea0f34469a66c86",
|
||||
"aarch64-unknown-linux-musl-0.5.28":
|
||||
"d2f622ffbb129c9368a147672e79f9b7c8e33c4ac0bbba6510c7e92d699d7fb3",
|
||||
"arm-unknown-linux-musleabihf-0.5.28":
|
||||
"0bf8b33107e58d15065bce5fd29d24de7b4401ddcaf6791840568876f1247f46",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.28":
|
||||
"6a3ceb156b6ced721792ffa1d9d4fd35a28167960cd5b1847bfd39fd1d2d59bf",
|
||||
"armv7-unknown-linux-musleabihf-0.5.28":
|
||||
"29dec32b29a5f4736f0062ff47aade2c922e08922241783e7af4aba0639658cc",
|
||||
"i686-pc-windows-msvc-0.5.28":
|
||||
"7ff2b7bde705cdca7f6fe6aec9e7047b47e09bf97be9c5ff597ff6e19a369544",
|
||||
"i686-unknown-linux-gnu-0.5.28":
|
||||
"27ff0f4d1ce96b5abe5113e3033e48a16d588c2e855439f0d8fbc59b75c041de",
|
||||
"i686-unknown-linux-musl-0.5.28":
|
||||
"0f72a1c8321d05dbfc3382d28e7bb9f83079198fd5b16c25560b0f66b6a6a8c7",
|
||||
"powerpc64-unknown-linux-gnu-0.5.28":
|
||||
"caf37897a6a3734a706f2d5ffb2c7953f37e903b6a34d02300fbf96f77a44b82",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.28":
|
||||
"74bc6aacea26c67305910bcbe4b6178b96fefe643b2002567cc094ad2c209ef1",
|
||||
"s390x-unknown-linux-gnu-0.5.28":
|
||||
"b3f49b0268ab971ff7f39ca924fb8291ce3d8ffe8f6c0d7ff16bc12055cd1e85",
|
||||
"x86_64-apple-darwin-0.5.28":
|
||||
"36484907ec1988f1553bdc7de659d8bc0b46b8eaca09b0f67359b116caac170d",
|
||||
"x86_64-pc-windows-msvc-0.5.28":
|
||||
"31053741c49624726d5ce8cb1ab8f5fc267ed0333ab8257450bd71a7c2a68d05",
|
||||
"x86_64-unknown-linux-gnu-0.5.28":
|
||||
"1f2a654627e02fed5f8b883592439b842e74d98091bbafe9e71c7101f4f97d74",
|
||||
"x86_64-unknown-linux-musl-0.5.28":
|
||||
"9ca7e51c8ea414aa1a275d12956676da1064e0a1cbf8d5b39b15c45d923a09c3",
|
||||
"aarch64-apple-darwin-0.5.27":
|
||||
"efe367393fc02b8e8609c38bce78d743261d7fc885e5eabfbd08ce881816aea3",
|
||||
"aarch64-pc-windows-msvc-0.5.27":
|
||||
"5b652867d6dc42946953d786aa1e466e9fbcd877a48d4c18f56c26801abb486b",
|
||||
"aarch64-unknown-linux-gnu-0.5.27":
|
||||
"7b8175e7370056efa6e8f4c8fec854f3a026c0ecda628694f5200fdf666167fa",
|
||||
"aarch64-unknown-linux-musl-0.5.27":
|
||||
"5df998660ed17555679c7a6b43b25f1c4d76d76b6062d31491663960804060d5",
|
||||
"arm-unknown-linux-musleabihf-0.5.27":
|
||||
"d80200d7c0c3ef32b2e938872726de29128a3b9bc080038fb3fc6f2eedbf1f34",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.27":
|
||||
"3fa94262b12268c7b9b91ed0ea739752e0c63ef2105396122faa93cd5bbdae8c",
|
||||
"armv7-unknown-linux-musleabihf-0.5.27":
|
||||
"86e688ced31f6322d6b4dc544453ba02021685e553995c2c72eb41f82fd2662b",
|
||||
"i686-pc-windows-msvc-0.5.27":
|
||||
"0158534490ba4b4cf64716116d73220f019688a22a1eba78535d9d95e918ec71",
|
||||
"i686-unknown-linux-gnu-0.5.27":
|
||||
"66b6128cd9b745a312bc81d6d3fedf02850acdf96dfca53ab5a3d11ddb1fe083",
|
||||
"i686-unknown-linux-musl-0.5.27":
|
||||
"8e95b813f804e8670aed79608778582b3f64dcf468ec185e49f5188505c3edf6",
|
||||
"powerpc64-unknown-linux-gnu-0.5.27":
|
||||
"1a129dbc27566be04ce68f5bc10a626954abe7651b35ce73d8a24b2e7a89ffe1",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.27":
|
||||
"b63051bdd5392fa6a3d8d98c661b395c62a2a05a0e96ae877047c4c7be1b92ff",
|
||||
"s390x-unknown-linux-gnu-0.5.27":
|
||||
"07377ed611dbf1548f06b65ad6d2bb84f3ff1ccce936ba972d7b7f5492e47d30",
|
||||
"x86_64-apple-darwin-0.5.27":
|
||||
"a75c9d77c90c4ac367690134cd471108c09b95226c62cd6422ca0db8bbea2197",
|
||||
"x86_64-pc-windows-msvc-0.5.27":
|
||||
"195d43f6578c33838523bf4f3c80d690914496592b2946bda8598b8500e744f6",
|
||||
"x86_64-unknown-linux-gnu-0.5.27":
|
||||
"27261ddf7654d4f34ed4600348415e0c30de2a307cc6eff6a671a849263b2dcf",
|
||||
"x86_64-unknown-linux-musl-0.5.27":
|
||||
"94cb0a392e5cfb82068476462e6c06e19745ea9e74fc828187f6809d97b529b4",
|
||||
"aarch64-apple-darwin-0.5.26":
|
||||
"3b503c630dc65b991502e1d9fe0ffc410ae50c503e8df6d4900f23b9ad436366",
|
||||
"aarch64-pc-windows-msvc-0.5.26":
|
||||
"3319e6f4506fdb2e3d8791bae05995f0aeda947ee87e373c17a699fb39165e3d",
|
||||
"aarch64-unknown-linux-gnu-0.5.26":
|
||||
"6ce061c2f14bf2f0b12c2b7a0f80c65408bf2dcee9743c4fc4ec1f30b85ecb98",
|
||||
"aarch64-unknown-linux-musl-0.5.26":
|
||||
"42ce9a728ecd054268ba5a621002385e79ea10ba4546a8a6a695f430902029f5",
|
||||
"arm-unknown-linux-musleabihf-0.5.26":
|
||||
"87b8a2af3b9784a6b7ab5ddb2fff0c505bbccaae0a457f6b228257ed23adfed0",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.26":
|
||||
"c311f89e6d23a9bd7d2f62e225d6b54a8fc85889f3519219f3308ea7eb687871",
|
||||
"armv7-unknown-linux-musleabihf-0.5.26":
|
||||
"0e4d68538847637c376f51d962796e9336c9ccbcccdfad547e3458cd7cf1a70e",
|
||||
"i686-pc-windows-msvc-0.5.26":
|
||||
"ecf2858d13ba0cbe1b82cc10e9b0538309ee53a7c18f71e8afcc56b1e5e909e0",
|
||||
"i686-unknown-linux-gnu-0.5.26":
|
||||
"833199e00a8187468c49dd315e041dbaf30e6e6340e65dd3df0c5aec8605c3d8",
|
||||
"i686-unknown-linux-musl-0.5.26":
|
||||
"72d4ed889ceac3cf5f7233a7e38eb2dd70a95e36dab0ce9ebed1f6a9a68f19be",
|
||||
"powerpc64-unknown-linux-gnu-0.5.26":
|
||||
"7838adddce0d17aa933cbe843ca673e44eb89de508175cc707473540de6388cd",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.26":
|
||||
"fe1d770840110b59554228b12382881abefc1ab2d2ca009adc1502179422bc0d",
|
||||
"s390x-unknown-linux-gnu-0.5.26":
|
||||
"086c8d03ee4aff702a32d58086accf971ce58a2f000323414935e0f50e816c04",
|
||||
"x86_64-apple-darwin-0.5.26":
|
||||
"7cf20dd534545a74290a244d3e8244d1010ba38d2d5950f504b6c93fab169f57",
|
||||
"x86_64-pc-windows-msvc-0.5.26":
|
||||
"a938eebb7433eb7097ae1cf3d53f9bb083edd4c746045f284a1c8904af1a1a11",
|
||||
"x86_64-unknown-linux-gnu-0.5.26":
|
||||
"555f17717e7663109104b62976e9da6cfda1ad84213407b437fd9c8f573cc0ef",
|
||||
"x86_64-unknown-linux-musl-0.5.26":
|
||||
"6858d7951b9ae20c3955b2b0addbf2f184ab68175d1c659d11e0a14f1472fb81",
|
||||
"aarch64-apple-darwin-0.5.25":
|
||||
"3c29e941d691614bc4eba95629c8f8dee106e5d44d70a03efed66a544588caa1",
|
||||
"aarch64-pc-windows-msvc-0.5.25":
|
||||
"e3c4d014dc8aa14a36fab9316d9f435a93900893d7164472452c39037112b829",
|
||||
"aarch64-unknown-linux-gnu-0.5.25":
|
||||
"402342f9a5ff1544b41af368794ab436965a1a03109b43bd0dd552ce6af8256d",
|
||||
"aarch64-unknown-linux-musl-0.5.25":
|
||||
"6648d924f01ce01e4968e377c1f32a53592b55485a859f97421619d3a7dd7d86",
|
||||
"arm-unknown-linux-musleabihf-0.5.25":
|
||||
"45ed53c20c5852d9dba97deeceaa1cb8fdccdaec69952c0940329e27b3830e83",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.25":
|
||||
"54bd4af03e93acdc7ac6546f62923a782fc871a20850356fa8870dd256a6c2e8",
|
||||
"armv7-unknown-linux-musleabihf-0.5.25":
|
||||
"f2adbe37fbe57540c39396d6d47878c86027eae91b442d609c2e97da2398dff5",
|
||||
"i686-pc-windows-msvc-0.5.25":
|
||||
"7f55c0e6ab90218d2646c3915b111378fc0ffd61308893d495ddc8e49f16ed36",
|
||||
"i686-unknown-linux-gnu-0.5.25":
|
||||
"8d71e66e4efcc1097e2beedd3572867eb7ea9b5cdac286c115a5118fcf5d2219",
|
||||
"i686-unknown-linux-musl-0.5.25":
|
||||
"406630b6b20bcef76069e08c5eaaa5420e190ae0036f4a85e2a14f3d7c610be6",
|
||||
"powerpc64-unknown-linux-gnu-0.5.25":
|
||||
"202aa6bc9e541bc322ad743f6afe334ef31dcb5c568f24cd5c963fa535538f20",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.25":
|
||||
"7956759f6543ca7ed4e51ab7d68a2dca6d9e73d12a19afbe40d275f2384b8535",
|
||||
"s390x-unknown-linux-gnu-0.5.25":
|
||||
"b17eed40b701252cf6e02c64533bc741dfa6e05340da64cd9feef36afcfed897",
|
||||
"x86_64-apple-darwin-0.5.25":
|
||||
"f76e3fb259ec74b2e003ed7e47d1f06a431686381665fc03e2f35e2ee72e6a57",
|
||||
"x86_64-pc-windows-msvc-0.5.25":
|
||||
"51ea202a472e552c04e6a13ac7eece0d56748750b9726e4b94f4f3dc96b5f77f",
|
||||
"x86_64-unknown-linux-gnu-0.5.25":
|
||||
"fe04914881e2e01fe62001b223344a7c43af734faba447d4764fe92d3baf794e",
|
||||
"x86_64-unknown-linux-musl-0.5.25":
|
||||
"aeade1b8fa1fa3c021d30e8f1932fd2c24dca62217c7d6d9da740dde75b7e52f",
|
||||
"aarch64-apple-darwin-0.5.24":
|
||||
"8016d47f4cce265b3d122ad8cbbf701713caf803fa7d3ef69d8a1fd6793d939a",
|
||||
"aarch64-unknown-linux-gnu-0.5.24":
|
||||
"3cf910468c37c709580d83d19b7b55352cfe05d6e1cc038718698410b6b8c6f0",
|
||||
"aarch64-unknown-linux-musl-0.5.24":
|
||||
"aaae0b6fb17b3cafa9869292f4e03104b26fd0de4a36182a6edec44c1665f6a5",
|
||||
"arm-unknown-linux-musleabihf-0.5.24":
|
||||
"a11698237ff36b72d119467805c8630d5bfdf6132fe98d01f7c44451c783d450",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.24":
|
||||
"e44001c955b7a2c3e53006a262bf74189f75bc2e6d63ac2e71638fb8eee20501",
|
||||
"armv7-unknown-linux-musleabihf-0.5.24":
|
||||
"8ca5c602c5a31a6c497abf10dd96694fb2bb9df362fdc604d156fa5044786379",
|
||||
"i686-pc-windows-msvc-0.5.24":
|
||||
"d2550254b96753214f9098a03091fa398d948c971738d50ff36113a3b27e391e",
|
||||
"i686-unknown-linux-gnu-0.5.24":
|
||||
"7b335c5736fa50aa3092f4212201ea7a65a15c6f40282a315861ec36bf64a41e",
|
||||
"i686-unknown-linux-musl-0.5.24":
|
||||
"6b7a8df65d15ad782ca17d82f79b4d7a235e85bf50411e3f7549878909b2a0bb",
|
||||
"powerpc64-unknown-linux-gnu-0.5.24":
|
||||
"22c2fb1971cd4ea77d78fc2c7c5574f5e4646525473d08d1b16a4389cda560a8",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.24":
|
||||
"1e3cfaa0890d42f448bed7d6c7b66240abfe43130c6923b1d5fb7b0ebc302b94",
|
||||
"s390x-unknown-linux-gnu-0.5.24":
|
||||
"a3c8e92deb720dcbf7414d8d0bb91934016d0ace23c3dd452f49a1b92490e0bf",
|
||||
"x86_64-apple-darwin-0.5.24":
|
||||
"dcee10ef84309cf0de4153cb7913b0b506eae0a2e6407faa0f1717f015c35f0c",
|
||||
"x86_64-pc-windows-msvc-0.5.24":
|
||||
"bd3fedeee0da543d7ac0a530328b3880bc83c1b332b3996f0da691f83423e813",
|
||||
"x86_64-unknown-linux-gnu-0.5.24":
|
||||
"a0eb614f7fc38a6e14ef1c4819f1f187591db8e0d3c4218dae38b1bd663a00e2",
|
||||
"x86_64-unknown-linux-musl-0.5.24":
|
||||
"5a5a1231a3ecb4f01aab9c839a49764d9ea1ae8e5e467a0aa2a2754c94f9f81c",
|
||||
"aarch64-apple-darwin-0.5.23":
|
||||
"bedfc709b281ab4c6ff1c84c0ad7e4525bf2669f56f009f6fb308657bebe165b",
|
||||
"aarch64-unknown-linux-gnu-0.5.23":
|
||||
"0f864a958e88693b8102dd7bc0e543a6b6f56e514ba8798235e54fb95c4856a4",
|
||||
"aarch64-unknown-linux-musl-0.5.23":
|
||||
"bbfafc3623267d25f63713c934eb57bf521b8b14b94d18412c697d69dbd68251",
|
||||
"arm-unknown-linux-musleabihf-0.5.23":
|
||||
"3031d44ae02a6189182956de345c0e22c40b6a8f19bbe67ed7016df228da5cd6",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.23":
|
||||
"48429f7f01e9bd6bfb80c2e97db878c05d7d1be1d10de432a33650c65c9d6172",
|
||||
"armv7-unknown-linux-musleabihf-0.5.23":
|
||||
"baa22c4e66f80eb1a900437b58966f529af70c89739b690096fa665d6324f540",
|
||||
"i686-pc-windows-msvc-0.5.23":
|
||||
"c9d6f5806666921a31f0a3ac88f9848884c67cd7348b0c0dd420c92ae40371ff",
|
||||
"i686-unknown-linux-gnu-0.5.23":
|
||||
"91bf1765b77010318d9666601d6ec41108f561a8be5d8a3a0b41c4fbd38c4bb1",
|
||||
"i686-unknown-linux-musl-0.5.23":
|
||||
"79093074197e76be9c7699ad361cf6fccc95dd8cea2b10ac2875acc658be55b3",
|
||||
"powerpc64-unknown-linux-gnu-0.5.23":
|
||||
"acce824961d78934ec9735bd9dac2a8b7f16e9638c6d909671690c43283bd644",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.23":
|
||||
"678773a17cccfa5d8c8e7043e4ebbbaf48b3e1aa482dd334c36e06ba8ebe993e",
|
||||
"s390x-unknown-linux-gnu-0.5.23":
|
||||
"34700493c47fcf668ac175ab66c8fb6bdc058dfc56a3f868d34b6e5a586957dd",
|
||||
"x86_64-apple-darwin-0.5.23":
|
||||
"40525eceff3a95051e0139839140ec3597a45221cca5000b8290d20d771294f5",
|
||||
"x86_64-pc-windows-msvc-0.5.23":
|
||||
"140be2cf57e37c7c86be4840d17b71fbc7daa21e2f46ed60830b4a39ef527663",
|
||||
"x86_64-unknown-linux-gnu-0.5.23":
|
||||
"6c45b9a95328b5c250bab14a17af574f7fa284fac0830d6a827e5f6f0b0e6732",
|
||||
"x86_64-unknown-linux-musl-0.5.23":
|
||||
"d656e3c274b43e8d9253d79ce3bd20d6bf1bd3fdb13dfd13e5e07d7aa528906d",
|
||||
"aarch64-apple-darwin-0.5.22":
|
||||
"95496f513653e7246589b2334a04e2a001f6436919af30d68180ce480fd3971a",
|
||||
"aarch64-unknown-linux-gnu-0.5.22":
|
||||
"0ff503ff9d473d25d0460a375ff6ec3ed186ee6be2ffedc67642b3c7d77b6299",
|
||||
"aarch64-unknown-linux-musl-0.5.22":
|
||||
"43593ffde18d83f9453a69db70f5dbc61726beefc3bbdb80d1db61612eb26a41",
|
||||
"arm-unknown-linux-musleabihf-0.5.22":
|
||||
"78829476fad51a9361aefbb8ee5ed7aa19b981a7d6384e6033115277b761fe94",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.22":
|
||||
"2c6b4876c6aa6e642466fb389cc106f5f9cb4ebb9e389bf2c9e883012d3d127b",
|
||||
"armv7-unknown-linux-musleabihf-0.5.22":
|
||||
"fc62722c44cd4ccae7e713452bc5d81907852da6d50f3123c4878e510fba52f7",
|
||||
"i686-pc-windows-msvc-0.5.22":
|
||||
"4c4e029f05cd94b09cb3c3ac9d2dd4adeb2a1e54d13a09ba79c244d95d960ba7",
|
||||
"i686-unknown-linux-gnu-0.5.22":
|
||||
"d17ee5a2ea99875781c21ba2acc3785d86ebf27cc76011fa59ae52f21d349a49",
|
||||
"i686-unknown-linux-musl-0.5.22":
|
||||
"092387e1a32a40cee94165d96072e219b299b8d76a25a764659ccb178855c3d8",
|
||||
"powerpc64-unknown-linux-gnu-0.5.22":
|
||||
"bd8c2b70f461d6cc189abaaaa0d4e75f6b3044eddaef0f790920436f2d7cb772",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.22":
|
||||
"ecd4c18c0a889b7ceaca906340f89ef815b5a7e37fbfb318ec6131f23627b794",
|
||||
"s390x-unknown-linux-gnu-0.5.22":
|
||||
"5c092fb46def4c7a45094905990acfab34cf4ad3af60e6accddbfa81b1409c03",
|
||||
"x86_64-apple-darwin-0.5.22":
|
||||
"5f636c75a976389ec0a4b03b4a7a78b5634daf1915703079cbc514a26c691e18",
|
||||
"x86_64-pc-windows-msvc-0.5.22":
|
||||
"bbe5dc1b2777f170d53d3d7856376eda9229a2c4f74332336e0ef0603325cbe5",
|
||||
"x86_64-unknown-linux-gnu-0.5.22":
|
||||
"d15f8595f080817f55f207bf9a67cbce6423e5b1fbfeba58c7e67e86bcc7be41",
|
||||
"x86_64-unknown-linux-musl-0.5.22":
|
||||
"fba667f90b0b89b4171127ebe7b29961250ddbcd9f86116eb195c46afe0857c8",
|
||||
"aarch64-apple-darwin-0.5.21":
|
||||
"74f501d91b4db0b767d5d621086d3e2e8acc3f5356cf5527de80e97bb312a626",
|
||||
"aarch64-unknown-linux-gnu-0.5.21":
|
||||
"c4cc2ec78a294378b867ebd08c5842d3ce71074c2818dc7f641422fb3bf4b2d2",
|
||||
"aarch64-unknown-linux-musl-0.5.21":
|
||||
"26152b092f6ace9bec1fe91b39fe11f55428ce5fba87f5de0ec6b16e2c65928f",
|
||||
"arm-unknown-linux-musleabihf-0.5.21":
|
||||
"2a90a8976a7efbe5eef613b84285f2f6b0cda7e9547a2e548bf6f253cc06dbb1",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.21":
|
||||
"71b0e840af1e50368d60bdb6a4bb22483b0462e7238e7e08fb624466c4b22c65",
|
||||
"armv7-unknown-linux-musleabihf-0.5.21":
|
||||
"46a3be0330ebfbeb4c521a523545334ef3bd38ac0b4acab19734c0d50399ac6f",
|
||||
"i686-pc-windows-msvc-0.5.21":
|
||||
"a0583cd71a410ce8329cd0951a72966a1219c1a7c12c437c3072779ce7dfe893",
|
||||
"i686-unknown-linux-gnu-0.5.21":
|
||||
"5d46307d7883f5ec5416c589b65bfedd17544accbe54eabd13d27417bcdf435e",
|
||||
"i686-unknown-linux-musl-0.5.21":
|
||||
"27d220b8e8effd1dc566e6ae7f90e7a074af07f4e61a0406f2c8c9883ef82e33",
|
||||
"powerpc64-unknown-linux-gnu-0.5.21":
|
||||
"ca744fee2634dfe203683fa809e4b5998564ebf2b8e7f0c329c1229edbe1ea8a",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.21":
|
||||
"1c08d342b4644158eee7723a75f59b3f388ceb4a91106d284d343acfb906bb77",
|
||||
"s390x-unknown-linux-gnu-0.5.21":
|
||||
"892c78a989164f1e6e97a8e07d995bf1ab6c5374ee85d4b47c47c6706bb2e8fe",
|
||||
"x86_64-apple-darwin-0.5.21":
|
||||
"66a0f5ea3aee2d497450138ae1e99f734eed7457af5e839a41ef219d51e90e17",
|
||||
"x86_64-pc-windows-msvc-0.5.21":
|
||||
"9968e8ef4b567d5690ccb9ac6e8338eb56cb964c57430a2843dd21f88ec5b81a",
|
||||
"x86_64-unknown-linux-gnu-0.5.21":
|
||||
"e108c300eafae22ad8e6d94519605530f18f8762eb58d2b98a617edfb5d088fc",
|
||||
"x86_64-unknown-linux-musl-0.5.21":
|
||||
"71347d2fdda9e3e7105ecd3a8566e3b607da9fddf23ac83adafcf6451ea9139d",
|
||||
"aarch64-apple-darwin-0.5.20":
|
||||
"d7f0c219808073f8ae8c6a991e85e5c7539b4e539b014a4ca5b3286911f06fd5",
|
||||
"aarch64-unknown-linux-gnu-0.5.20":
|
||||
"3d2281312d047288ecb021f4c761cd351f993514e3ea7f369354701b3a44c756",
|
||||
"aarch64-unknown-linux-musl-0.5.20":
|
||||
"162b19dbe6d82fd7846dd6ff25a7a6250ce4ee5d0d55e2e245625382984072b0",
|
||||
"arm-unknown-linux-musleabihf-0.5.20":
|
||||
"19a06cf913bfb3d8ecb0e1c0368f98b03e9ec5a35ea3edc03a4e0af04f4f95ad",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.20":
|
||||
"769c07de286d607d0e13e9e83051a5ac0cfe1c34695ece976934345e09e97f4b",
|
||||
"armv7-unknown-linux-musleabihf-0.5.20":
|
||||
"1330f3e38f6bdae2d2e2d458957e5531cf729989db942832aede12c5e5d5a1ab",
|
||||
"i686-pc-windows-msvc-0.5.20":
|
||||
"389182a593b6f761dffb7c82c3eee3f8e4f4848fbf26fa1e6ab95ac3fcad687b",
|
||||
"i686-unknown-linux-gnu-0.5.20":
|
||||
"88a1e7b7c08682fb379f540cfab31c38c31d5a7a3f227e5446dd9000519c7195",
|
||||
"i686-unknown-linux-musl-0.5.20":
|
||||
"fb105fc9c3bbb4ad44ac5c0066cb9f48912f55a97f65dabaa48367198c0f87ea",
|
||||
"powerpc64-unknown-linux-gnu-0.5.20":
|
||||
"a42c4bf4e397ed0d85bc5ed8d589f1e3dbd6f24fdbb16469ffa20b63977894aa",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.20":
|
||||
"bf52e43047ad4e7f178b62d2a175f0ee272f014a520726fe293960d03bfa122d",
|
||||
"s390x-unknown-linux-gnu-0.5.20":
|
||||
"69c198eca4c81299a7a323df729e03ce6198d84fa26e9d98ea1e02436933469f",
|
||||
"x86_64-apple-darwin-0.5.20":
|
||||
"22bb373a2bb0f15e441819a054e68798534d536b1b1943fdb813d6b53ffe48a4",
|
||||
"x86_64-pc-windows-msvc-0.5.20":
|
||||
"dede2f71e7a15137ca17e3a1106e3797a650a2e2d607658f31ad4e986de3d67d",
|
||||
"x86_64-unknown-linux-gnu-0.5.20":
|
||||
"8fdbfca767917f957e4541747cbf7b23b45c211109dbba97b49962fa3547aab4",
|
||||
"x86_64-unknown-linux-musl-0.5.20":
|
||||
"5326a6d14d4668dafee4ecf36f7664103a25bf0918dfe162c8c49dab017b74ed",
|
||||
"aarch64-apple-darwin-0.5.19":
|
||||
"f223bb08d04257dbba421736f906d91b040f654ab49963afc2f30f7949ae7b79",
|
||||
"aarch64-unknown-linux-gnu-0.5.19":
|
||||
"2da1baa85958e5ee36f2ac85b0c56cb99c0c3140f6ff18c60825485b8193eedb",
|
||||
"aarch64-unknown-linux-musl-0.5.19":
|
||||
"ff5b42337bd94f41db157f73b39d41586be8c76d8824550b0f6d5e808e5f0356",
|
||||
"arm-unknown-linux-musleabihf-0.5.19":
|
||||
"84ae72130383340e14df47656f1974eb76a28ab7ed8b5c479bdbc8b907ad91e7",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.19":
|
||||
"bec22bc7e1d584749f26bc4d84116faf925f9db484fe0afb58f6a2aa0c04707c",
|
||||
"armv7-unknown-linux-musleabihf-0.5.19":
|
||||
"79c575e9dcd58cf88e8b2fd37242ac923d04c31a62bed54db78219e35257a262",
|
||||
"i686-pc-windows-msvc-0.5.19":
|
||||
"7f0439c0977baf5573d0c31820887fb0c478d2ef29fdad4256bf0a0b536a387f",
|
||||
"i686-unknown-linux-gnu-0.5.19":
|
||||
"0b9a88787f80bda623987a314875c7cccfed599b5d2803565734c292e2cd33ef",
|
||||
"i686-unknown-linux-musl-0.5.19":
|
||||
"e9a89334fadda0905da42017db76c63da9b1ef02ef9595acea322d1e73f1fea0",
|
||||
"powerpc64-unknown-linux-gnu-0.5.19":
|
||||
"d891e5a5849e0220a49a31396371303d7f9de6c86b34f306c129a87dc6debfac",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.19":
|
||||
"efeb6ce7adff1ef45ca2e3351011a9a423add39f08676f5f4b85fdf2244fb8cd",
|
||||
"s390x-unknown-linux-gnu-0.5.19":
|
||||
"a37620a3ce3d351adc57ce70249ee0bdce2fbd336886db6b4de4d31447644acb",
|
||||
"x86_64-apple-darwin-0.5.19":
|
||||
"9af5050495e9fc114cabcb4c2dbaded65569ccc0583ab3f62a6d9977984b65fa",
|
||||
"x86_64-pc-windows-msvc-0.5.19":
|
||||
"ada2b3d704a78e118f6c8e215468e8f50eef440211938970cdef79dfafe9ddc5",
|
||||
"x86_64-unknown-linux-gnu-0.5.19":
|
||||
"ace8c180865bb87fb3d7004a8cafde78270676d87ab5531615f136cc860db78d",
|
||||
"x86_64-unknown-linux-musl-0.5.19":
|
||||
"eb9d0e1db24c6abbfec3e589f55efd2ef9ce9313f89bf1dd934635d194762b57",
|
||||
"aarch64-apple-darwin-0.5.18":
|
||||
"13bcde0a15c50af976980b484f140e10969df67488542856a2152534f255c675",
|
||||
"aarch64-unknown-linux-gnu-0.5.18":
|
||||
"a511f609236b9bfc9dedfcb9867ef1d0f1dc23cc2012f9e4e38e0c184657fd31",
|
||||
"aarch64-unknown-linux-musl-0.5.18":
|
||||
"5b1bd1471f4d8298f11da5f025bdbcc4c8057a24c8b95573003c0320b6fa99a8",
|
||||
"arm-unknown-linux-musleabihf-0.5.18":
|
||||
"4262e0a6c14998c8637f1ba018980464a5e6aeb5f35aaa0149643c99a32631b3",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.18":
|
||||
"29d4f9b0c020f55de11c9bd24cf8360771c1893275dd9e3b978f0fe4421bfb4f",
|
||||
"armv7-unknown-linux-musleabihf-0.5.18":
|
||||
"95049e75c3da2113142da0b9e60451c43fac44702590f4e5abb6fc7cde744429",
|
||||
"i686-pc-windows-msvc-0.5.18":
|
||||
"06729cf6685f0271e91bcb5cf748d18a5c5d793fa9e0a611d0c7541a0aed574a",
|
||||
"i686-unknown-linux-gnu-0.5.18":
|
||||
"d92146688e5b1a7ddb79e8f91d91c8174d44a5945b06797cd17bbf187f13da64",
|
||||
"i686-unknown-linux-musl-0.5.18":
|
||||
"1ec37579d0dec4739c707cb5096c52dea9319196dfd63ea6e121e16074892cac",
|
||||
"powerpc64-unknown-linux-gnu-0.5.18":
|
||||
"e6cf16040aabb5b1940e88841dcc90967aa592c8c7492699449ca050713cb567",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.18":
|
||||
"3efccbb5820be67b270333f9ca87d2d598e38648a6ea7a3fb9970a5a424be11f",
|
||||
"s390x-unknown-linux-gnu-0.5.18":
|
||||
"f7903ade2a7747041d5d10f043e01e0a6c9c881b6fe7cb1bd54b9efac8ed7620",
|
||||
"x86_64-apple-darwin-0.5.18":
|
||||
"e77b6b35169d2e0a3b43d43690f813136c94e24e4eef72d560e7901e42621d18",
|
||||
"x86_64-pc-windows-msvc-0.5.18":
|
||||
"77f414173d0970c8977a614585fc013290659b0d74ae22be24559fde915832de",
|
||||
"x86_64-unknown-linux-gnu-0.5.18":
|
||||
"1dbaeffc5cfac769f99700c0fc8c4ef4494a339720c6bf8b79367b1acd701b46",
|
||||
"x86_64-unknown-linux-musl-0.5.18":
|
||||
"d4d3bf7dda0fd66a34ee99407506b753213bbe6e4076c0c38c4b645d00406979",
|
||||
"aarch64-apple-darwin-0.5.17":
|
||||
"9e041a7c0bbd8a653b2272e03ba5de5b726dcbbccc3ffcc526dc7de9f14ad334",
|
||||
"aarch64-unknown-linux-gnu-0.5.17":
|
||||
"22164a4a86272ab2a4af2b01773a7e636f643426831f4dd9c71b2760c592a57b",
|
||||
"aarch64-unknown-linux-musl-0.5.17":
|
||||
"86021b10ad06f97a82d605ae7b7e580cd17d29b2877b65e31ef63db50514d2b0",
|
||||
"arm-unknown-linux-musleabihf-0.5.17":
|
||||
"b68e96d7abb87180a44f9b315db2d3f88ad59325b10451b561e0620edd71d476",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.17":
|
||||
"125662419ae6b2332d2bab6764ba8ef9396fd0cc9487a5fbbcf41bdcf379e697",
|
||||
"armv7-unknown-linux-musleabihf-0.5.17":
|
||||
"f8d2dcee69ad15858a827265db527184bdbd07b60a24e04d2d9787abf781cc0b",
|
||||
"i686-pc-windows-msvc-0.5.17":
|
||||
"1aecdd843d15a0149cf83d07c3b36d184578a6a07fcf2730ef9986393259e960",
|
||||
"i686-unknown-linux-gnu-0.5.17":
|
||||
"4165443b8757cdcd615ccfe721aac5137c7d4165ae9dc2640975c1035018f09c",
|
||||
"i686-unknown-linux-musl-0.5.17":
|
||||
"0242308d2ffe1de6538d79a13aae4cee8a48bfc76e71d559836a2f43808393c0",
|
||||
"powerpc64-unknown-linux-gnu-0.5.17":
|
||||
"a79bfc1c004339c1da253421b35471af383e724eaffe8ab332685b253402a7c1",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.17":
|
||||
"db2f384a7b9605b9ae03ca493f0c35174577a3b53d238861b11b9dc1c404cb16",
|
||||
"s390x-unknown-linux-gnu-0.5.17":
|
||||
"4312abce9f52dca597c4b4896e8f2f7575d50b2183af4c74412bc26eb6278d3f",
|
||||
"x86_64-apple-darwin-0.5.17":
|
||||
"f66f961bf0c6e2bbc3e45de4692cdebb126edd5af4e920dea91a3fedabc502ee",
|
||||
"x86_64-pc-windows-msvc-0.5.17":
|
||||
"00aed721abc4bb125d92b45733aa65a2254344bffed984d85cf0de6b164f5011",
|
||||
"x86_64-unknown-linux-gnu-0.5.17":
|
||||
"6121d9693b2013e970e495872c5a750ff0e471c2618821c2d4314666c0bd9ee7",
|
||||
"x86_64-unknown-linux-musl-0.5.17":
|
||||
"0aa0d03f80422a066396a54c7d9f7f78576a22827860273fd635f97e04f3e1a7",
|
||||
"aarch64-apple-darwin-0.5.16":
|
||||
"0b16039f469df078c1445f5b7f84d3c0342580c4592b5a4b604db2c86dc37c3e",
|
||||
"aarch64-unknown-linux-gnu-0.5.16":
|
||||
"59d28abe79037f835020ba834f01ac5c1f96c8556c6ff9a06a8fd5701048731c",
|
||||
"aarch64-unknown-linux-musl-0.5.16":
|
||||
"8913580d960e1d5a24316506b9925cb6aa4ab6547d88d7cab1aa5049825e1d4a",
|
||||
"arm-unknown-linux-musleabihf-0.5.16":
|
||||
"e97d623d641a3c807bcafef222544786813ed5176d0dbea8d0f6adc2deea88b7",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.16":
|
||||
"fe814f38a72c7f264e4cd8fdcb84519bf92a88f0e67d7a0a6a38dc18e938c0fc",
|
||||
"armv7-unknown-linux-musleabihf-0.5.16":
|
||||
"f72c8302fa59190a90ccb743d90d3efae71e78ea7c6b52c68b3e23b6c6fb3276",
|
||||
"i686-pc-windows-msvc-0.5.16":
|
||||
"fe24a7b1438152d8dcc7acedaad3b15362ef2e58d496611819fd8b99942dc2ed",
|
||||
"i686-unknown-linux-gnu-0.5.16":
|
||||
"d2ddc285d3962b45e05a59e62fb188d7bad3f969b45ff5256db0226efe44208b",
|
||||
"i686-unknown-linux-musl-0.5.16":
|
||||
"ac6b59b6b383a852ba5c22df777f9c3f39a85364a485bcc4203ca427417cb25b",
|
||||
"powerpc64-unknown-linux-gnu-0.5.16":
|
||||
"1ff9c39c6660548aa69934a25c8d92ffb11a7c9c1f39db9795e9f061ff34a8bd",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.16":
|
||||
"87c568a126d59d66b99ec087182f4cd9de336678dfb60c51da35d678160875d6",
|
||||
"s390x-unknown-linux-gnu-0.5.16":
|
||||
"23c8331689d99c6fb70646a41a9d8ef5211d4eefe25baebb08b6b6c7f126af6e",
|
||||
"x86_64-apple-darwin-0.5.16":
|
||||
"72732a379d2aff6585c6bfd52593042a470e752d6af685cc01e1ee06d817cddb",
|
||||
"x86_64-pc-windows-msvc-0.5.16":
|
||||
"3fe298d7b10b63e9cec6711d03853874735f1dd33f655ad3ee6677965807883f",
|
||||
"x86_64-unknown-linux-gnu-0.5.16":
|
||||
"a320393232ac29acfe75cd0d3fb943ee2a5cc3727d2c9d1bb14bb9eea1fc60c9",
|
||||
"x86_64-unknown-linux-musl-0.5.16":
|
||||
"82962a1ef9ca888c32933fe9022c4b946e9bf047ffb0084a614b8cf7a5306dbf",
|
||||
"aarch64-apple-darwin-0.5.15":
|
||||
"bb7409c4d7d503e929bcd31bf179ae6f555f5092d0d5dc38df37be9f29832859",
|
||||
"aarch64-unknown-linux-gnu-0.5.15":
|
||||
"02f69686d0e1fe9673bb449fc45e53e6bfb0f48c5d371b35c145828c4239f123",
|
||||
"aarch64-unknown-linux-musl-0.5.15":
|
||||
"78ac5d4c7b9773bb3f6867f452ed83dd2f38f26116d2369ff5b4ea02eb7519bd",
|
||||
"arm-unknown-linux-musleabihf-0.5.15":
|
||||
"f416a9350161feacc48a96f90a1a38244d70f3ba07fbf96010ed477ff69814ed",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.15":
|
||||
"182c316f44df157979e7430fb952eced1ad8020d1d8d810e88ce6985c9428615",
|
||||
"armv7-unknown-linux-musleabihf-0.5.15":
|
||||
"0b4400e8c22921355d5e69cf17cb0a44da93af09125e1dc636a69d2175a23898",
|
||||
"i686-pc-windows-msvc-0.5.15":
|
||||
"9092e142ce3a35f8c9f36058c3278f6b99718c02d8b904001ccc1cd918a0c798",
|
||||
"i686-unknown-linux-gnu-0.5.15":
|
||||
"d945431e618c2688ac62e640c16022c587a6f80677c64346280143d83939f93f",
|
||||
"i686-unknown-linux-musl-0.5.15":
|
||||
"6e1a968662a0952083e9a297ec067606621f93b55ccfbdd8ca475fd13b328d90",
|
||||
"powerpc64-unknown-linux-gnu-0.5.15":
|
||||
"58a6663e477645194c34dfac96b4c42ba6e7c4b5aa851c1e52276769b279b605",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.15":
|
||||
"c7281fa8fedd6332c594faa7e1dc1555960c7fb60d3e1b013309651b8d53377d",
|
||||
"s390x-unknown-linux-gnu-0.5.15":
|
||||
"590751ffaf36f3f01b66afcb7de844ed0f69aeb2b54595cf191a4e60ddfab11c",
|
||||
"x86_64-apple-darwin-0.5.15":
|
||||
"6a729cb237d895eebeb65363419f41b217dbcd745819bcef61098a5ddd583f08",
|
||||
"x86_64-pc-windows-msvc-0.5.15":
|
||||
"2c49a892f793b957b0add32aa21a64940caf4bc03319cf0bb3b27caeebb985f7",
|
||||
"x86_64-unknown-linux-gnu-0.5.15":
|
||||
"6c650324daafc07331c00b458872d50f56f160544015c8a499fd2e160b404ebb",
|
||||
"x86_64-unknown-linux-musl-0.5.15":
|
||||
"40d8564e954bbd18f2c5ba80978491c3a25ab49e067664daf525e34c38a370b8",
|
||||
"aarch64-apple-darwin-0.5.14":
|
||||
"d548dffc256014c4c8c693e148140a3a21bcc2bf066a35e1d5f0d24c91d32112",
|
||||
"aarch64-unknown-linux-gnu-0.5.14":
|
||||
"1c9cdb265b0c24ce2e74b7795a00842dc6d487c11ba49aa6c9ca1c784b82755a",
|
||||
"aarch64-unknown-linux-musl-0.5.14":
|
||||
"64c5321f5141db39e04209d170db34fcef5c8de3f561346dc0c1d132801c4f88",
|
||||
"arm-unknown-linux-musleabihf-0.5.14":
|
||||
"903f87c609479099c87c229429f2a25f451689d862ee19170f6d87ab656815a0",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.14":
|
||||
"c33a4caa441c770ca720d301059eeb6af5473ceb22b69adf08b99043c3e4a854",
|
||||
"armv7-unknown-linux-musleabihf-0.5.14":
|
||||
"c3b1bbe0d70e916abdd557092bf94c4830f98c471fe7d45b23d4dec8546251f3",
|
||||
"i686-pc-windows-msvc-0.5.14":
|
||||
"2ea709cf816b70661c6aa43d6aff7526faebafc2d45f7167d3192c5b9bb0a28f",
|
||||
"i686-unknown-linux-gnu-0.5.14":
|
||||
"74fd05a1e04bb8c591cb4531d517848d1e2cdc05762ccd291429c165e2a19aa1",
|
||||
"i686-unknown-linux-musl-0.5.14":
|
||||
"a616553164336a57fc154a424d44cd75eb06104bc4e69f3d757e3da90a90d31f",
|
||||
"powerpc64-unknown-linux-gnu-0.5.14":
|
||||
"4b675ac963f4d90034f8b8de8b03e0691b7e48eb8ce7bf5449ea65774750dfd4",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.14":
|
||||
"2a7bb1d27a6a057cbd5f62a5bc2ec77175c71224de8fb1bb5107acb1a07cc02a",
|
||||
"s390x-unknown-linux-gnu-0.5.14":
|
||||
"68acbfadd9e100b69b31f4995265b716465df909a7d110bba76d93e8adc3a76b",
|
||||
"x86_64-apple-darwin-0.5.14":
|
||||
"8caf91b936ede1167abaebae07c2a1cbb22473355fa0ad7ebb2580307e84fb47",
|
||||
"x86_64-pc-windows-msvc-0.5.14":
|
||||
"ee2468e40320a0a2a36435e66bbd0d861228c4c06767f22d97876528138f4ba0",
|
||||
"x86_64-unknown-linux-gnu-0.5.14":
|
||||
"22034760075b92487b326da5aa1a2a3e1917e2e766c12c0fd466fccda77013c7",
|
||||
"x86_64-unknown-linux-musl-0.5.14":
|
||||
"e1ccdfe1691c1f791d84bb6e1697e49416ca4b62103dcdf3b63772f03834f113",
|
||||
"aarch64-apple-darwin-0.5.13":
|
||||
"8a1ddbe5131c50cbf5247f2f335252d14767a7ff74f08c8a1813f003bc86d37f",
|
||||
"aarch64-unknown-linux-gnu-0.5.13":
|
||||
"d0054db9ba0ec472ee6d28fa3eda94fb021b5e77c962f3bb1ff4b4fa7934e66d",
|
||||
"aarch64-unknown-linux-musl-0.5.13":
|
||||
"fcbc405bdf8f6edf25818b756af702e8161528f4317d65310d9a0d4e02d7f544",
|
||||
"arm-unknown-linux-musleabihf-0.5.13":
|
||||
"ba382034294dffcbe36d4a299a5c69c4f48caac9c4b78a1727c7fc9101175202",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.13":
|
||||
"cc28eeaa29b85f17c27cefe96497b3448024e14b5bc92921e1b7d157375d2334",
|
||||
"armv7-unknown-linux-musleabihf-0.5.13":
|
||||
"449b680c4a3d936e9005e39983208a183e0fffa62fe73e6daed85f51389fc40e",
|
||||
"i686-pc-windows-msvc-0.5.13":
|
||||
"c1531c2f1eb8c36b2947abf039caf1aeba4253c3c35716705ca339a0a3d96594",
|
||||
"i686-unknown-linux-gnu-0.5.13":
|
||||
"35b964c75699b6569d950fb39561146b830101403c9a937ace1fc64fc1967c1b",
|
||||
"i686-unknown-linux-musl-0.5.13":
|
||||
"a33007ed60d67fa4c5b7689c1adb33751a5c1a8732057ed84b9deddbb39cd3a6",
|
||||
"powerpc64-unknown-linux-gnu-0.5.13":
|
||||
"9e34fc400e51f3331452083dd5e54fadc0f3be81f7901772366faf4c75e2680b",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.13":
|
||||
"ee01812f102379bc9bb6ea991f81536c9546a5f0d4990b9ed1fbb1900cb5f647",
|
||||
"s390x-unknown-linux-gnu-0.5.13":
|
||||
"f43c42318411ff5f3e8ea4be2228e71fb28b01ffcc08259bb301877c7f7155e0",
|
||||
"x86_64-apple-darwin-0.5.13":
|
||||
"f871b2b002b750438e5e6df4b0809a9f7d089bc5d4d0466bc63577c9ecc59979",
|
||||
"x86_64-pc-windows-msvc-0.5.13":
|
||||
"c8a2e7e8bd87866fd1d52dbd4b4c0d85f328a6dcdeff17b85cc9c9af447ef3c3",
|
||||
"x86_64-unknown-linux-gnu-0.5.13":
|
||||
"0127da50d3c361d094545aab32921bbce856b3fcc24f1d10436a6426b3f16330",
|
||||
"x86_64-unknown-linux-musl-0.5.13":
|
||||
"1afaef0180a6b9fe43fa6658443796b8e235fc41382a451634515890cf3aca06",
|
||||
"aarch64-apple-darwin-0.5.12":
|
||||
"9eb8e0d3487f5389bec2c60cea37bb0a4d028513bffe854b9ece82d538c0f312",
|
||||
"aarch64-unknown-linux-gnu-0.5.12":
|
||||
"ed8b4928a148365a84133ce96344fc22ac62674db2c6bef88853d0e38791e8d8",
|
||||
"aarch64-unknown-linux-musl-0.5.12":
|
||||
"3ce19d81232cd2dcc2646060370a1583ca5558e7f61d934ae22798006719341d",
|
||||
"arm-unknown-linux-musleabihf-0.5.12":
|
||||
"744409cd0b7f6314b8ba140cb63f72e2576dfec5c83491d12455775d870d508d",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.12":
|
||||
"452f8b769818858c3343444396d270d34026f0f7649cc89c4076ecdc8eb6d391",
|
||||
"armv7-unknown-linux-musleabihf-0.5.12":
|
||||
"35abf5e98f2c9a8250045a58a568086f0e223be703c090134bedaf6279ebaac5",
|
||||
"i686-pc-windows-msvc-0.5.12":
|
||||
"04f91508e6aeb7a2054e98552ff537b9863afbcbd4f72ba8bf8d9e9e25b37808",
|
||||
"i686-unknown-linux-gnu-0.5.12":
|
||||
"38c8fbdb74ee9eb95ecdb4b843d9014d47214cdf5415520378161979d1b0cb34",
|
||||
"i686-unknown-linux-musl-0.5.12":
|
||||
"6a8bb35f83c2a66711da3cee8d939e8893b34b25ae6cb53590c111637a93d527",
|
||||
"powerpc64-unknown-linux-gnu-0.5.12":
|
||||
"d1477f41b919c60d10a191bd81aeec0185cec7efb0364d9689b202b3a6607912",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.12":
|
||||
"12629950b444487c66a3a99f0ff0f82f11a7b0a57e8305b2767eed5b85a4a3bb",
|
||||
"s390x-unknown-linux-gnu-0.5.12":
|
||||
"36fc6d9ee6294ce54a2e3e92f10df094bebdd2862c29223bde18361aad9a9f1d",
|
||||
"x86_64-apple-darwin-0.5.12":
|
||||
"78f38c88bf5e410600cd8f8ee4d5ba3ee781c94c091b1a57566256a2178ef4a3",
|
||||
"x86_64-pc-windows-msvc-0.5.12":
|
||||
"04b45a4af12c0bb7cc31004dfcfed2e722c4ca07e1ac58850f93a9343dd5d06f",
|
||||
"x86_64-unknown-linux-gnu-0.5.12":
|
||||
"65b8dcf3f3e592887fae0daf1b3a9e3aad1262f74bb21cf80d1700c7caba7f23",
|
||||
"x86_64-unknown-linux-musl-0.5.12":
|
||||
"bd517e6508feef0261289b16c844c377127f21377c18c4a564d0d09add556fca",
|
||||
"aarch64-apple-darwin-0.5.11":
|
||||
"695f3640d5b1a4e28de7e36e3a2e14072852dcc6c70bf9e4deec6ada00d516b4",
|
||||
"aarch64-unknown-linux-gnu-0.5.11":
|
||||
"055c329c38a93c01d378349d51cb4d521d1998c8a79355ddc00f863ce451942f",
|
||||
"aarch64-unknown-linux-musl-0.5.11":
|
||||
"d0bb82d8bceb561dc785f3811f5f5a427f1be47b654f0cc5d6c36d779e03a3ff",
|
||||
"arm-unknown-linux-musleabihf-0.5.11":
|
||||
"a889ef4a6bbb7d2c2e460544e8c949ca9d01e18c56af23b6bfb4d8b952319dc7",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.11":
|
||||
"e9f4ff168ecaf87fee4ba129c0de59f6bab96a249fa21ecafdd853d61f2ff929",
|
||||
"armv7-unknown-linux-musleabihf-0.5.11":
|
||||
"202b6437480af1e46a9722d20e179983951edee1d92c307ea457acfafbd378bf",
|
||||
"i686-pc-windows-msvc-0.5.11":
|
||||
"955dfba777851761b246bfa701a05fa809676493fa83ec29837f5315ada38b3f",
|
||||
"i686-unknown-linux-gnu-0.5.11":
|
||||
"916df079c0125c2a5d48e1f012064f24dc7ef2ab8c94bccc192cf9d96094db5a",
|
||||
"i686-unknown-linux-musl-0.5.11":
|
||||
"a06d22d1f9d0233941817fc263dd928913f20aaac940c336f995e3ad3592736d",
|
||||
"powerpc64-unknown-linux-gnu-0.5.11":
|
||||
"dc2e4ce36bf01c1fb1f1ff8506cc11f4fe607f077ab235ea660417fd4e1964df",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.11":
|
||||
"ca60d5f715f068647e487c003f1e55eea303abcec2ef8cb04c3d87c83bc580f7",
|
||||
"s390x-unknown-linux-gnu-0.5.11":
|
||||
"8b1b9d9c1dc2f195e4f490c1ea7c848e0eec025510dd576036df44dc78c27c28",
|
||||
"x86_64-apple-darwin-0.5.11":
|
||||
"7e23d1d892c23f9e74245c4fd3d3e246438ce9b34460f85eee61f784de137b0b",
|
||||
"x86_64-pc-windows-msvc-0.5.11":
|
||||
"3e8203e6434b45427f20824419f8d8d53f970a76d94ccdcad07f8498fa01a9d0",
|
||||
"x86_64-unknown-linux-gnu-0.5.11":
|
||||
"14411de26cdea5f5139fafaf2b675b1c633e744dd49c6d6a9fc8817ec065158b",
|
||||
"x86_64-unknown-linux-musl-0.5.11":
|
||||
"5b77978bc8ded7e1b6ddb6d6a3e52f684bcc07c6d9be11d7b4fc3c1c23f4458f",
|
||||
"aarch64-apple-darwin-0.5.10":
|
||||
"dd3fa053379017923a4692cabdebb96844f83c7a516d9e6cb30502574cbd322d",
|
||||
"aarch64-unknown-linux-gnu-0.5.10":
|
||||
"f4316a657c964994d7eb736ba875f3f685c4b61e961f514e98fb50ed181da72a",
|
||||
"aarch64-unknown-linux-musl-0.5.10":
|
||||
"82e0472b5b0e6c738db3abe454e39e4b25b3d02f84b34b41dc7abca01ade09b7",
|
||||
"arm-unknown-linux-musleabihf-0.5.10":
|
||||
"269001ff4b3cda3af685d78803ae25d96fe78282040c416875784cda37fa6c73",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.10":
|
||||
"e6c0d421a2c66e3938cc2d78138239a782561da3c595c2e37d4bde36883ede95",
|
||||
"armv7-unknown-linux-musleabihf-0.5.10":
|
||||
"ab50758c7e1f56e6ec1e8a66a9b727ad7f3db1a872dd56b2c2e7f9d71a06b39a",
|
||||
"i686-pc-windows-msvc-0.5.10":
|
||||
"676336743ca7f152a5f5186c49e8a171a9d49ad735c08e1bb5d85f6ed280d57b",
|
||||
"i686-unknown-linux-gnu-0.5.10":
|
||||
"1d8c84de2e995ee26dfc9cd0bfee6bf546b06995dcd13e255b005d5a59a8c349",
|
||||
"i686-unknown-linux-musl-0.5.10":
|
||||
"1867b910f331a56891bc0f287ae5fbf05cb09ded229d1d95a25a1e76e7b0a010",
|
||||
"powerpc64-unknown-linux-gnu-0.5.10":
|
||||
"b617172c145df05dcf28666570cb3a798d393cb7f48292686490cf7b0b8fb508",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.10":
|
||||
"95a0234191ba11109163cba2bf4c757d92bc98be0aa1349d7f32b5d85c8935b5",
|
||||
"s390x-unknown-linux-gnu-0.5.10":
|
||||
"a6943d479fca4fccab7af39bd47f097d67e64382665768600ab268cf167f1cee",
|
||||
"x86_64-apple-darwin-0.5.10":
|
||||
"f82ed219d9e4cc22ac24168450567351881930774197bf9ad4bb5fc50e1eaf0d",
|
||||
"x86_64-pc-windows-msvc-0.5.10":
|
||||
"d97566f535f07a9bbcaed90900a4a9e1b800076daa3193f23d17910879e7fbc5",
|
||||
"x86_64-unknown-linux-gnu-0.5.10":
|
||||
"13452b7a99d953e970ec52861de03f6f2e00bfee2c4357bc63c292a70472b386",
|
||||
"x86_64-unknown-linux-musl-0.5.10":
|
||||
"e94e9060ce51fabad2b62846df3963f908101ffebc02fec5e8c1baa373bd6edb",
|
||||
"aarch64-apple-darwin-0.5.9":
|
||||
"66d352728d0efe9ecc65f7e9ee419fce139e3ab99addc08527e8cebbb405d382",
|
||||
"aarch64-unknown-linux-gnu-0.5.9":
|
||||
"376d5d52a4b3a9875d66898261e2ce2d31d36c095a1d81cb88d953f5bf7273eb",
|
||||
"aarch64-unknown-linux-musl-0.5.9":
|
||||
"ec5598ae9daba48f7a12b2f12533c6aa683049e6a822835794cea136f63abd31",
|
||||
"arm-unknown-linux-musleabihf-0.5.9":
|
||||
"4ca86619f26c0879f81e26760b529a548ba96b33141d24075b71137cf9dfa639",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.9":
|
||||
"412d249f2c9a3dd7c070a219fc658fe9a36c6e9c50bef53b536efd54446eeae9",
|
||||
"armv7-unknown-linux-musleabihf-0.5.9":
|
||||
"4097f1b45627212aa8936c973d9c7dcfaf1512ed08cfe958cf9dc68d0cc5d02f",
|
||||
"i686-pc-windows-msvc-0.5.9":
|
||||
"73ac9d7aab6bafe1d8da36b7d4cb2bd969ca1d9c675b7a021afec3c913fe223f",
|
||||
"i686-unknown-linux-gnu-0.5.9":
|
||||
"7236440874031e47a2ff3b4df93c7c2833c0bbe428716e491b8e87c8539a6651",
|
||||
"i686-unknown-linux-musl-0.5.9":
|
||||
"64e588a32f12dac948733eb8ad57f7344bffd30023150a4b9b2b9b2a47ba2c9b",
|
||||
"powerpc64-unknown-linux-gnu-0.5.9":
|
||||
"56d62d87a42f05f49f29fda674ec2576b811838029c048ed776cdbbaa690da57",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.9":
|
||||
"15a6f24ad5b30b2ce71a9fcc31ecd88d658c8534fac58d2a9af33a3e7c48a99b",
|
||||
"s390x-unknown-linux-gnu-0.5.9":
|
||||
"e5a3ebc23c9acba4f8ae2a9f0a4344297e5a604cb24f63751193494f64e42822",
|
||||
"x86_64-apple-darwin-0.5.9":
|
||||
"f4b4311cd2c2928aadee6b4e85aec2c6db7d779d4f9009eb4733bc8b2f20dbb5",
|
||||
"x86_64-pc-windows-msvc-0.5.9":
|
||||
"8cb608cdf23b79f4f598969b72890db657c5addab312890c37ab20b9b57c501f",
|
||||
"x86_64-unknown-linux-gnu-0.5.9":
|
||||
"e9cca3fb618dbc056f770d3ac4d52af491b532e60c8b19b97b9ba24f42db2bc1",
|
||||
"x86_64-unknown-linux-musl-0.5.9":
|
||||
"f97ffe29c03f01bb19a948eb8eb1e27cefbbf83b8dd54057da0247a664a303ac",
|
||||
"aarch64-apple-darwin-0.5.8":
|
||||
"745b3b8c0c2ea5b3ae253bc4c01fa5026ef399f4836749bef468d44747f291b0",
|
||||
"aarch64-unknown-linux-gnu-0.5.8":
|
||||
"2eecc3b90d2316a85c9245107ddc6a5eecb9f481d97f4da94845972db0e93457",
|
||||
"aarch64-unknown-linux-musl-0.5.8":
|
||||
"f30278b8a479e5d5e55f69432e4fcfc2b7ef20fa6e7aebfe92c30fb6bcef93c7",
|
||||
"arm-unknown-linux-musleabihf-0.5.8":
|
||||
"59c1e1a3c2aa50ad06495655d3ae1f0a58d9ec3c6179aecd6f3a6b5a01a30fde",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.8":
|
||||
"a697d9cee4e1698a4e9634caa57fc3f0afca370014bb37cc8d13a339374bf1da",
|
||||
"armv7-unknown-linux-musleabihf-0.5.8":
|
||||
"596a103852edd5e09c8acd12206b123a1c1808c9161271c2819572477d4694f5",
|
||||
"i686-pc-windows-msvc-0.5.8":
|
||||
"2e1dc6042c1d419c296d4fa424218b24fb87a2fc6c8b61280f9d7df26a90e3f7",
|
||||
"i686-unknown-linux-gnu-0.5.8":
|
||||
"e4edad6a7a772ccf7695ece61698fa289cb9ef113fb3e3b5ce8739cfee7ab8d6",
|
||||
"i686-unknown-linux-musl-0.5.8":
|
||||
"878cd30bfbfbe53b721970d72961f1a1694afba3de6df96aa15d0f3782fa249b",
|
||||
"powerpc64-unknown-linux-gnu-0.5.8":
|
||||
"36735c72bb137cdd44f7d534da570d99354f08b1bf2e704616a946cf58f37c71",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.8":
|
||||
"a00e19ebf37b384abdb19968e65d38503880d5dc093f9795bc3d5d45ca9db6b3",
|
||||
"s390x-unknown-linux-gnu-0.5.8":
|
||||
"b8feaf065cad523651936acd62d90d4d37d4cb5b52703cf753f6cd1eb97cb6ea",
|
||||
"x86_64-apple-darwin-0.5.8":
|
||||
"c3da7bebc434c59264737ff2430d942cb1d8605f20a7f4093232b1715eaafdca",
|
||||
"x86_64-pc-windows-msvc-0.5.8":
|
||||
"9335f35ebfb29ad2cc8b65862f43d5f72ee50038a22b216e999342efb402e319",
|
||||
"x86_64-unknown-linux-gnu-0.5.8":
|
||||
"dd73615862bb9cfb1f31a491b486123eb7730f99a815ec38baf297a37c749a14",
|
||||
"x86_64-unknown-linux-musl-0.5.8":
|
||||
"b503c9e5a9aacba7f9283a1595931656cbac652c7fda1c486935af7d6e82b0c2",
|
||||
"aarch64-apple-darwin-0.5.7":
|
||||
"b8cab25ab2ec0714dbb34179f948c27aa4ab307be54e0628e9e1eef1d2264f9f",
|
||||
"aarch64-unknown-linux-gnu-0.5.7":
|
||||
"d4dd7a72689888c92b5191902fd4ec9d25b7eeba07be41ba4a8f89acbb403e2d",
|
||||
"aarch64-unknown-linux-musl-0.5.7":
|
||||
"2c0fdf774ebfabecadf403c2fb966cc1a023b3db3907041fae34c77464a38a2b",
|
||||
"arm-unknown-linux-musleabihf-0.5.7":
|
||||
"7d375c18cb8819f712072fa64cbfeede37bc246513d2bcdabb06e08999ac3908",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.7":
|
||||
"2495d0c98b18b0fb1e258bcefd05d9771720e769f642046e6943aa9c8dc3a006",
|
||||
"armv7-unknown-linux-musleabihf-0.5.7":
|
||||
"070f3c59782832f1befd054053ba9def92e94e265aea2c06078c127525d2b086",
|
||||
"i686-pc-windows-msvc-0.5.7":
|
||||
"d207a2791a513e3d645779e5d86cc88f7040426ec5e4a5521498b87558f93db6",
|
||||
"i686-unknown-linux-gnu-0.5.7":
|
||||
"01d7c0444812563712038f472fcac77981a5dac9c44d507ccbccd49ec1828a12",
|
||||
"i686-unknown-linux-musl-0.5.7":
|
||||
"ad934cb434d896637a4a9bf9defd309ebd71b46294aa6d878cf23d8377d3b2e1",
|
||||
"powerpc64-unknown-linux-gnu-0.5.7":
|
||||
"ff17ee98044a38d65f177d4534c10d7e971f7df13ee4b50710f7929cc6cb1342",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.7":
|
||||
"080de54bc6b2a2c56c3d39d3ae857bac322702fd5a53b7732260a04ea6f25f67",
|
||||
"powerpc64le-unknown-linux-musl-0.5.7":
|
||||
"326c1da6f0bbd16350a45243a4ebe4deab838c2af5662c20514ae878986689c2",
|
||||
"s390x-unknown-linux-gnu-0.5.7":
|
||||
"ad94c056abf9a5caf652136de3569b999a5e0cba0456e41459e5ee34215465b0",
|
||||
"x86_64-apple-darwin-0.5.7":
|
||||
"b0ff9937005e9dbc68798f587e72cedfe488f0866bb47532a8c3273e7222090a",
|
||||
"x86_64-pc-windows-msvc-0.5.7":
|
||||
"cb2aea0d8f85ffe1c4e2a431cbbd6e5c8faeb732e7cf8e4bee1c10b7779e7352",
|
||||
"x86_64-unknown-linux-gnu-0.5.7":
|
||||
"8a0a3e823684dec6e49ae17f31bf6483c778fd579671992d9156875210e5161e",
|
||||
"x86_64-unknown-linux-musl-0.5.7":
|
||||
"4433fddf179fb49c962d6b4f824602b81cc20228406382b6fd21da33f816f8db",
|
||||
"aarch64-apple-darwin-0.5.6":
|
||||
"dc122e0c41f7a3fbc8004802062785e6b5c8171bc2a2ca0adc5485165c92452d",
|
||||
"aarch64-unknown-linux-gnu-0.5.6":
|
||||
"e90777ae28652cc7c40084ca2156bd344b5f95ee2ea9792b6e0c3a15f527c778",
|
||||
"aarch64-unknown-linux-musl-0.5.6":
|
||||
"b7e346728daac9c0d0d2e5df333f19275c232373a9ad29255b7aab2d8972f7fe",
|
||||
"arm-unknown-linux-musleabihf-0.5.6":
|
||||
"89ab758f876a6724ad1667f9e267369892dc7c570c136e40651ecbfd3a78e0e5",
|
||||
"armv7-unknown-linux-gnueabihf-0.5.6":
|
||||
"6e17c62e361400498f95d39c0565e1e71fd252c732485ff0bea7af68ea24739c",
|
||||
"armv7-unknown-linux-musleabihf-0.5.6":
|
||||
"c1806fb75ebc416e50e796ad3a61b82d096172d46fd4701c431cb54df4faf85a",
|
||||
"i686-pc-windows-msvc-0.5.6":
|
||||
"4e387415a2238a7e827cf653448c032aa7085ccb4e14c5376f022aa52a3b145d",
|
||||
"i686-unknown-linux-gnu-0.5.6":
|
||||
"d61e0b1aa8fa302f39604ba8080972fccd9e2b76b653c0ae4d9fffc0b91e193d",
|
||||
"i686-unknown-linux-musl-0.5.6":
|
||||
"3ca5626e6325a116aad2f44ba30bccc31a15b35ac2e67349982b9c717900004f",
|
||||
"powerpc64-unknown-linux-gnu-0.5.6":
|
||||
"112fd134f44c35800c1321bdd5ffc081d1d0bcd439e43fc3043829ed718fb7d5",
|
||||
"powerpc64le-unknown-linux-gnu-0.5.6":
|
||||
"56fcf8a19260d25ebda937422382c701446ff7849d86fc0aba37d9b60e8dcca9",
|
||||
"powerpc64le-unknown-linux-musl-0.5.6":
|
||||
"86f0347ff9cdfa214192d0143e673c61aca0981ab330f9ecf967acce2002f0df",
|
||||
"s390x-unknown-linux-gnu-0.5.6":
|
||||
"170beaaa681acf3c7535dbca04808f1ad51689c86a3439f93eb6e0a4567ea24d",
|
||||
"x86_64-apple-darwin-0.5.6":
|
||||
"9c45d209e5abdcfa42aa44cf456df6c0952b9d719b01d9c9e787886b17a5080e",
|
||||
"x86_64-pc-windows-msvc-0.5.6":
|
||||
"46c21ac0449ae967d65518d8025f6ae4006387802373bce0e72ebd133d77e94f",
|
||||
"x86_64-unknown-linux-gnu-0.5.6":
|
||||
"83521a07922e4ddff61b9204890a974e56ad9333f295690d3ddae931243ec3db",
|
||||
"x86_64-unknown-linux-musl-0.5.6":
|
||||
"0578a350834a79f39dc2301b613e094597fc6b7937e5249519a7e1fd17f6184f",
|
||||
"aarch64-apple-darwin-0.5.5":
|
||||
"9368ad5eb6dfb414e88b1ab70ef03a15963569a2bba5b2ad79f8cd0cdde01646",
|
||||
"aarch64-unknown-linux-gnu-0.5.5":
|
||||
|
||||
@@ -5,7 +5,11 @@ import { promises as fs } from "node:fs";
|
||||
import { OWNER, REPO, TOOL_CACHE_NAME } from "../utils/constants";
|
||||
import type { Architecture, Platform } from "../utils/platforms";
|
||||
import { validateChecksum } from "./checksum/checksum";
|
||||
import * as github from "@actions/github";
|
||||
import { Octokit } from "@octokit/core";
|
||||
import { paginateRest } from "@octokit/plugin-paginate-rest";
|
||||
import { restEndpointMethods } from "@octokit/plugin-rest-endpoint-methods";
|
||||
|
||||
const PaginatingOctokit = Octokit.plugin(paginateRest, restEndpointMethods);
|
||||
|
||||
export function tryGetFromToolCache(
|
||||
arch: Architecture,
|
||||
@@ -91,8 +95,26 @@ export async function resolveVersion(
|
||||
}
|
||||
|
||||
async function getAvailableVersions(githubToken: string): Promise<string[]> {
|
||||
const octokit = github.getOctokit(githubToken);
|
||||
try {
|
||||
const octokit = new PaginatingOctokit({
|
||||
auth: githubToken,
|
||||
});
|
||||
return await getReleaseTagNames(octokit);
|
||||
} catch (err) {
|
||||
if ((err as Error).message.includes("Bad credentials")) {
|
||||
core.info(
|
||||
"No (valid) GitHub token provided. Falling back to anonymous. Requests might be rate limited.",
|
||||
);
|
||||
const octokit = new PaginatingOctokit();
|
||||
return await getReleaseTagNames(octokit);
|
||||
}
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
|
||||
async function getReleaseTagNames(
|
||||
octokit: InstanceType<typeof PaginatingOctokit>,
|
||||
): Promise<string[]> {
|
||||
const response = await octokit.paginate(octokit.rest.repos.listReleases, {
|
||||
owner: OWNER,
|
||||
repo: REPO,
|
||||
@@ -101,15 +123,37 @@ async function getAvailableVersions(githubToken: string): Promise<string[]> {
|
||||
}
|
||||
|
||||
async function getLatestVersion(githubToken: string) {
|
||||
const octokit = github.getOctokit(githubToken);
|
||||
|
||||
const { data: latestRelease } = await octokit.rest.repos.getLatestRelease({
|
||||
owner: OWNER,
|
||||
repo: REPO,
|
||||
const octokit = new PaginatingOctokit({
|
||||
auth: githubToken,
|
||||
});
|
||||
|
||||
let latestRelease: { tag_name: string } | undefined;
|
||||
try {
|
||||
latestRelease = await getLatestRelease(octokit);
|
||||
} catch (err) {
|
||||
if ((err as Error).message.includes("Bad credentials")) {
|
||||
core.info(
|
||||
"No (valid) GitHub token provided. Falling back to anonymous. Requests might be rate limited.",
|
||||
);
|
||||
const octokit = new PaginatingOctokit();
|
||||
latestRelease = await getLatestRelease(octokit);
|
||||
} else {
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
|
||||
if (!latestRelease) {
|
||||
throw new Error("Could not determine latest release.");
|
||||
}
|
||||
return latestRelease.tag_name;
|
||||
}
|
||||
|
||||
async function getLatestRelease(
|
||||
octokit: InstanceType<typeof PaginatingOctokit>,
|
||||
) {
|
||||
const { data: latestRelease } = await octokit.rest.repos.getLatestRelease({
|
||||
owner: OWNER,
|
||||
repo: REPO,
|
||||
});
|
||||
return latestRelease;
|
||||
}
|
||||
|
||||
+47
-13
@@ -18,11 +18,16 @@ import {
|
||||
checkSum,
|
||||
enableCache,
|
||||
githubToken,
|
||||
pyProjectFile,
|
||||
pythonVersion,
|
||||
toolBinDir,
|
||||
toolDir,
|
||||
version,
|
||||
uvFile,
|
||||
version as versionInput,
|
||||
} from "./utils/inputs";
|
||||
import * as exec from "@actions/exec";
|
||||
import fs from "node:fs";
|
||||
import { getUvVersionFromConfigFile } from "./utils/pyproject";
|
||||
|
||||
async function run(): Promise<void> {
|
||||
const platform = getPlatform();
|
||||
@@ -35,18 +40,12 @@ async function run(): Promise<void> {
|
||||
if (arch === undefined) {
|
||||
throw new Error(`Unsupported architecture: ${process.arch}`);
|
||||
}
|
||||
const setupResult = await setupUv(
|
||||
platform,
|
||||
arch,
|
||||
version,
|
||||
checkSum,
|
||||
githubToken,
|
||||
);
|
||||
const setupResult = await setupUv(platform, arch, checkSum, githubToken);
|
||||
|
||||
addUvToPath(setupResult.uvDir);
|
||||
addToolBinToPath();
|
||||
setToolDir();
|
||||
setupPython();
|
||||
await setupPython();
|
||||
addMatchers();
|
||||
setCacheDir(cacheLocalPath);
|
||||
|
||||
@@ -54,7 +53,7 @@ async function run(): Promise<void> {
|
||||
core.info(`Successfully installed uv version ${setupResult.version}`);
|
||||
|
||||
if (enableCache) {
|
||||
await restoreCache(setupResult.version);
|
||||
await restoreCache();
|
||||
}
|
||||
process.exit(0);
|
||||
} catch (err) {
|
||||
@@ -65,11 +64,10 @@ async function run(): Promise<void> {
|
||||
async function setupUv(
|
||||
platform: Platform,
|
||||
arch: Architecture,
|
||||
versionInput: string,
|
||||
checkSum: string | undefined,
|
||||
githubToken: string,
|
||||
): Promise<{ uvDir: string; version: string }> {
|
||||
const resolvedVersion = await resolveVersion(versionInput, githubToken);
|
||||
const resolvedVersion = await determineVersion();
|
||||
const toolCacheResult = tryGetFromToolCache(arch, resolvedVersion);
|
||||
if (toolCacheResult.installedPath) {
|
||||
core.info(`Found uv in tool-cache for ${toolCacheResult.version}`);
|
||||
@@ -93,6 +91,28 @@ async function setupUv(
|
||||
};
|
||||
}
|
||||
|
||||
async function determineVersion(): Promise<string> {
|
||||
if (versionInput !== "") {
|
||||
return await resolveVersion(versionInput, githubToken);
|
||||
}
|
||||
const configFile = uvFile !== "" ? uvFile : pyProjectFile;
|
||||
if (configFile !== "") {
|
||||
const versionFromConfigFile = getUvVersionFromConfigFile(configFile);
|
||||
if (versionFromConfigFile === undefined) {
|
||||
core.warning(
|
||||
`Could not find required-version under [tool.uv] in ${configFile}. Falling back to latest`,
|
||||
);
|
||||
}
|
||||
return await resolveVersion(versionFromConfigFile || "latest", githubToken);
|
||||
}
|
||||
if (!fs.existsSync("uv.toml") && !fs.existsSync("pyproject.toml")) {
|
||||
return await resolveVersion("latest", githubToken);
|
||||
}
|
||||
const versionFile = fs.existsSync("uv.toml") ? "uv.toml" : "pyproject.toml";
|
||||
const versionFromConfigFile = getUvVersionFromConfigFile(versionFile);
|
||||
return await resolveVersion(versionFromConfigFile || "latest", githubToken);
|
||||
}
|
||||
|
||||
function addUvToPath(cachedPath: string): void {
|
||||
core.addPath(cachedPath);
|
||||
core.info(`Added ${cachedPath} to the path`);
|
||||
@@ -125,10 +145,24 @@ function setToolDir(): void {
|
||||
}
|
||||
}
|
||||
|
||||
function setupPython(): void {
|
||||
async function setupPython(): Promise<void> {
|
||||
if (pythonVersion !== "") {
|
||||
core.exportVariable("UV_PYTHON", pythonVersion);
|
||||
core.info(`Set UV_PYTHON to ${pythonVersion}`);
|
||||
const options: exec.ExecOptions = {
|
||||
silent: !core.isDebug(),
|
||||
};
|
||||
const execArgs = ["venv", "--python", pythonVersion];
|
||||
|
||||
core.info("Activating python venv...");
|
||||
await exec.exec("uv", execArgs, options);
|
||||
|
||||
let venvBinPath = ".venv/bin";
|
||||
if (process.platform === "win32") {
|
||||
venvBinPath = ".venv/Scripts";
|
||||
}
|
||||
core.addPath(path.resolve(venvBinPath));
|
||||
core.exportVariable("VIRTUAL_ENV", path.resolve(".venv"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,16 +1,22 @@
|
||||
import * as github from "@actions/github";
|
||||
import * as semver from "semver";
|
||||
import * as core from "@actions/core";
|
||||
import { Octokit } from "@octokit/core";
|
||||
import { paginateRest } from "@octokit/plugin-paginate-rest";
|
||||
import { restEndpointMethods } from "@octokit/plugin-rest-endpoint-methods";
|
||||
|
||||
import { OWNER, REPO } from "./utils/constants";
|
||||
import * as semver from "semver";
|
||||
|
||||
import { updateChecksums } from "./download/checksum/update-known-checksums";
|
||||
|
||||
const PaginatingOctokit = Octokit.plugin(paginateRest, restEndpointMethods);
|
||||
|
||||
async function run(): Promise<void> {
|
||||
const checksumFilePath = process.argv.slice(2)[0];
|
||||
const github_token = process.argv.slice(2)[1];
|
||||
|
||||
const octokit = github.getOctokit(github_token);
|
||||
const octokit = new PaginatingOctokit({
|
||||
auth: github_token,
|
||||
});
|
||||
|
||||
const response = await octokit.paginate(octokit.rest.repos.listReleases, {
|
||||
owner: OWNER,
|
||||
|
||||
+11
-1
@@ -2,9 +2,11 @@ import * as core from "@actions/core";
|
||||
import path from "node:path";
|
||||
|
||||
export const version = core.getInput("version");
|
||||
export const pyProjectFile = core.getInput("pyproject-file");
|
||||
export const uvFile = core.getInput("uv-file");
|
||||
export const pythonVersion = core.getInput("python-version");
|
||||
export const checkSum = core.getInput("checksum");
|
||||
export const enableCache = core.getInput("enable-cache") === "true";
|
||||
export const enableCache = getEnableCache();
|
||||
export const cacheSuffix = core.getInput("cache-suffix") || "";
|
||||
export const cacheLocalPath = getCacheLocalPath();
|
||||
export const cacheDependencyGlob = core.getInput("cache-dependency-glob");
|
||||
@@ -15,6 +17,14 @@ export const toolBinDir = getToolBinDir();
|
||||
export const toolDir = getToolDir();
|
||||
export const githubToken = core.getInput("github-token");
|
||||
|
||||
function getEnableCache(): boolean {
|
||||
const enableCacheInput = core.getInput("enable-cache");
|
||||
if (enableCacheInput === "auto") {
|
||||
return process.env.RUNNER_ENVIRONMENT === "github-hosted";
|
||||
}
|
||||
return enableCacheInput === "true";
|
||||
}
|
||||
|
||||
function getToolBinDir(): string | undefined {
|
||||
const toolBinDirInput = core.getInput("tool-bin-dir");
|
||||
if (toolBinDirInput !== "") {
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
import fs from "node:fs";
|
||||
import * as core from "@actions/core";
|
||||
import * as toml from "smol-toml";
|
||||
|
||||
export function getUvVersionFromConfigFile(
|
||||
filePath: string,
|
||||
): string | undefined {
|
||||
if (!fs.existsSync(filePath)) {
|
||||
core.warning(`Could not find file: ${filePath}`);
|
||||
return undefined;
|
||||
}
|
||||
let requiredVersion: string | undefined;
|
||||
try {
|
||||
requiredVersion = getRequiredVersion(filePath);
|
||||
} catch (err) {
|
||||
const message = (err as Error).message;
|
||||
core.warning(`Error while parsing ${filePath}: ${message}`);
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (requiredVersion?.startsWith("==")) {
|
||||
requiredVersion = requiredVersion.slice(2);
|
||||
}
|
||||
if (requiredVersion !== undefined) {
|
||||
core.info(
|
||||
`Found required-version for uv in ${filePath}: ${requiredVersion}`,
|
||||
);
|
||||
}
|
||||
return requiredVersion;
|
||||
}
|
||||
|
||||
function getRequiredVersion(filePath: string): string | undefined {
|
||||
const fileContent = fs.readFileSync(filePath, "utf-8");
|
||||
|
||||
if (filePath.endsWith("pyproject.toml")) {
|
||||
const tomlContent = toml.parse(fileContent) as {
|
||||
tool?: { uv?: { "required-version"?: string } };
|
||||
};
|
||||
return tomlContent?.tool?.uv?.["required-version"];
|
||||
}
|
||||
const tomlContent = toml.parse(fileContent) as {
|
||||
"required-version"?: string;
|
||||
};
|
||||
return tomlContent["required-version"];
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
|
||||
"target": "ES2022" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
|
||||
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
|
||||
"outDir": "./lib" /* Redirect output structure to the directory. */,
|
||||
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
|
||||
|
||||
Reference in New Issue
Block a user