mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-06-09 11:30:42 +00:00
Compare commits
10 Commits
always-fal
...
inline-dis
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6120bf3e89 | ||
|
|
04c950a723 | ||
|
|
d02c4c2d68 | ||
|
|
a4fd982317 | ||
|
|
a05a582c56 | ||
|
|
0e855c90d0 | ||
|
|
d8a276f11f | ||
|
|
59ae1ec55b | ||
|
|
f94ec6bedd | ||
|
|
0313224678 |
0
.git-blame-ignore-revs
Normal file
0
.git-blame-ignore-revs
Normal file
49
.github/workflows/check-dist.yml
vendored
49
.github/workflows/check-dist.yml
vendored
@@ -1,49 +0,0 @@
|
|||||||
# `dist/index.js` is a special file in Actions.
|
|
||||||
# When you reference an action with `uses:` in a workflow,
|
|
||||||
# `index.js` is the code that will run.
|
|
||||||
# For our project, we generate this file through a build process from other source files.
|
|
||||||
# We need to make sure the checked-in `index.js` actually matches what we expect it to be.
|
|
||||||
name: Check dist/
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
check-dist:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Node.js 20
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: npm ci
|
|
||||||
|
|
||||||
- name: Rebuild the dist/ directory
|
|
||||||
run: |
|
|
||||||
npm run build
|
|
||||||
npm run package
|
|
||||||
|
|
||||||
- name: Compare the expected and actual dist/ directories
|
|
||||||
run: |
|
|
||||||
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
|
|
||||||
echo "Detected uncommitted changes after build. See status below:"
|
|
||||||
git diff --text -v
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
id: diff
|
|
||||||
|
|
||||||
# If index.js was different than expected, upload the expected version as an artifact
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
|
|
||||||
with:
|
|
||||||
name: dist
|
|
||||||
path: dist/
|
|
||||||
9
.github/workflows/codeql-analysis.yml
vendored
9
.github/workflows/codeql-analysis.yml
vendored
@@ -12,13 +12,14 @@
|
|||||||
name: "CodeQL"
|
name: "CodeQL"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches:
|
||||||
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
# The branches below must be a subset of the branches above
|
# The branches below must be a subset of the branches above
|
||||||
branches: [main]
|
branches:
|
||||||
schedule:
|
- main
|
||||||
- cron: "31 7 * * 3"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
|
|||||||
2
.github/workflows/release-drafter.yml
vendored
2
.github/workflows/release-drafter.yml
vendored
@@ -3,10 +3,10 @@ name: Release Drafter
|
|||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
# yamllint disable-line rule:truthy
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update_release_draft:
|
update_release_draft:
|
||||||
|
|||||||
3
.github/workflows/test-cache-windows.yml
vendored
3
.github/workflows/test-cache-windows.yml
vendored
@@ -1,6 +1,9 @@
|
|||||||
name: "test-cache-windows"
|
name: "test-cache-windows"
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|||||||
3
.github/workflows/test-cache.yml
vendored
3
.github/workflows/test-cache.yml
vendored
@@ -1,6 +1,9 @@
|
|||||||
name: "test-cache"
|
name: "test-cache"
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|||||||
3
.github/workflows/test-windows.yml
vendored
3
.github/workflows/test-windows.yml
vendored
@@ -1,6 +1,9 @@
|
|||||||
name: "test-windows"
|
name: "test-windows"
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|||||||
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@@ -1,6 +1,9 @@
|
|||||||
name: "test"
|
name: "test"
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
@@ -10,10 +13,12 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Actionlint
|
||||||
|
uses: eifinger/actionlint-action@23c85443d840cd73bbecb9cddfc933cc21649a38 # v1.9.1
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "20"
|
node-version: "20"
|
||||||
@@ -23,7 +28,7 @@ jobs:
|
|||||||
npm run all
|
npm run all
|
||||||
- name: Make sure no changes from linters are detected
|
- name: Make sure no changes from linters are detected
|
||||||
run: |
|
run: |
|
||||||
git diff --exit-code
|
git diff --exit-code || (echo "::error::Please run 'npm run all' to fix the issues" && exit 1)
|
||||||
test-default-version:
|
test-default-version:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
@@ -218,6 +223,5 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install latest version
|
- name: Install latest version
|
||||||
uses: ./
|
uses: ./
|
||||||
- run: apk add python3
|
|
||||||
- run: uv sync
|
- run: uv sync
|
||||||
working-directory: __tests__/fixtures/uv-project
|
working-directory: __tests__/fixtures/uv-project
|
||||||
|
|||||||
2
.github/workflows/update-known-checksums.yml
vendored
2
.github/workflows/update-known-checksums.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
|||||||
src/download/checksum/known-checksums.ts ${{ secrets.GITHUB_TOKEN }}
|
src/download/checksum/known-checksums.ts ${{ secrets.GITHUB_TOKEN }}
|
||||||
- run: npm install && npm run all
|
- run: npm install && npm run all
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@dd2324fc52d5d43c699a5636bcf19fceaa70c284 # v7.0.7
|
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
|
||||||
with:
|
with:
|
||||||
commit-message: "chore: update known checksums"
|
commit-message: "chore: update known checksums"
|
||||||
title:
|
title:
|
||||||
|
|||||||
32
.github/workflows/update-major-minor-tags.yml
vendored
32
.github/workflows/update-major-minor-tags.yml
vendored
@@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
name: Update Major Minor Tags
|
name: Update Major Minor Tags
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches-ignore:
|
branches-ignore:
|
||||||
@@ -15,5 +14,32 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Run Update semver
|
- name: Update Major Minor Tags
|
||||||
uses: haya14busa/action-update-semver@v1.2.1
|
run: |
|
||||||
|
set -x
|
||||||
|
|
||||||
|
cd "${GITHUB_WORKSPACE}" || exit
|
||||||
|
|
||||||
|
# Set up variables.
|
||||||
|
TAG="${GITHUB_REF#refs/tags/}" # v1.2.3
|
||||||
|
MINOR="${TAG%.*}" # v1.2
|
||||||
|
MAJOR="${MINOR%.*}" # v1
|
||||||
|
|
||||||
|
if [ "${GITHUB_REF}" = "${TAG}" ]; then
|
||||||
|
echo "This workflow is not triggered by tag push: GITHUB_REF=${GITHUB_REF}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
MESSAGE="Release ${TAG}"
|
||||||
|
|
||||||
|
# Set up Git.
|
||||||
|
git config user.name "${GITHUB_ACTOR}"
|
||||||
|
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
|
||||||
|
|
||||||
|
# Update MAJOR/MINOR tag
|
||||||
|
git tag -fa "${MAJOR}" -m "${MESSAGE}"
|
||||||
|
git tag -fa "${MINOR}" -m "${MESSAGE}"
|
||||||
|
|
||||||
|
# Push
|
||||||
|
git push --force origin "${MINOR}"
|
||||||
|
git push --force origin "${MAJOR}"
|
||||||
|
|||||||
21
README.md
21
README.md
@@ -279,6 +279,20 @@ If you want to ignore this, set the `ignore-nothing-to-cache` input to `true`.
|
|||||||
ignore-nothing-to-cache: true
|
ignore-nothing-to-cache: true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Ignore empty workdir
|
||||||
|
|
||||||
|
By default, the action will warn if the workdir is empty, because this is usually the case when
|
||||||
|
`actions/checkout` is configured to run after `setup-uv`, which is not supported.
|
||||||
|
|
||||||
|
If you want to ignore this, set the `ignore-empty-workdir` input to `true`.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- name: Ignore empty workdir
|
||||||
|
uses: astral-sh/setup-uv@v5
|
||||||
|
with:
|
||||||
|
ignore-empty-workdir: true
|
||||||
|
```
|
||||||
|
|
||||||
### GitHub authentication token
|
### GitHub authentication token
|
||||||
|
|
||||||
This action uses the GitHub API to fetch the uv release artifacts. To avoid hitting the GitHub API
|
This action uses the GitHub API to fetch the uv release artifacts. To avoid hitting the GitHub API
|
||||||
@@ -447,6 +461,13 @@ The reason for the warning is, that we have to way to know if this is the first
|
|||||||
cache key or the user accidentally misconfigured the [cache-dependency-glob](#cache-dependency-glob)
|
cache key or the user accidentally misconfigured the [cache-dependency-glob](#cache-dependency-glob)
|
||||||
or [cache-suffix](#enable-caching) and the cache never gets used.
|
or [cache-suffix](#enable-caching) and the cache never gets used.
|
||||||
|
|
||||||
|
### Do I have to run `actions/checkout` before or after `setup-uv`?
|
||||||
|
|
||||||
|
Some workflows need uv but do not need to access the repository content.
|
||||||
|
|
||||||
|
But **if** you need to access the repository content, you have run `actions/checkout` before running `setup-uv`.
|
||||||
|
Running `actions/checkout` after `setup-uv` **is not supported**.
|
||||||
|
|
||||||
## Acknowledgements
|
## Acknowledgements
|
||||||
|
|
||||||
`setup-uv` was initially written and published by [Kevin Stillhammer](https://github.com/eifinger)
|
`setup-uv` was initially written and published by [Kevin Stillhammer](https://github.com/eifinger)
|
||||||
|
|||||||
@@ -45,6 +45,9 @@ inputs:
|
|||||||
ignore-nothing-to-cache:
|
ignore-nothing-to-cache:
|
||||||
description: "Ignore when nothing is found to cache."
|
description: "Ignore when nothing is found to cache."
|
||||||
default: "false"
|
default: "false"
|
||||||
|
ignore-empty-workdir:
|
||||||
|
description: "Ignore when the working directory is empty."
|
||||||
|
default: "false"
|
||||||
tool-dir:
|
tool-dir:
|
||||||
description: "Custom path to set UV_TOOL_DIR to."
|
description: "Custom path to set UV_TOOL_DIR to."
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
2908
dist/save-cache/index.js
generated
vendored
2908
dist/save-cache/index.js
generated
vendored
@@ -220,7 +220,7 @@ function restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsAr
|
|||||||
};
|
};
|
||||||
const response = yield twirpClient.GetCacheEntryDownloadURL(request);
|
const response = yield twirpClient.GetCacheEntryDownloadURL(request);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
core.warning(`Cache not found for keys: ${keys.join(', ')}`);
|
core.debug(`Cache not found for keys: ${keys.join(', ')}`);
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
core.info(`Cache hit for: ${request.key}`);
|
core.info(`Cache hit for: ${request.key}`);
|
||||||
@@ -412,12 +412,20 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
|
|||||||
key,
|
key,
|
||||||
version
|
version
|
||||||
};
|
};
|
||||||
const response = yield twirpClient.CreateCacheEntry(request);
|
let signedUploadUrl;
|
||||||
if (!response.ok) {
|
try {
|
||||||
|
const response = yield twirpClient.CreateCacheEntry(request);
|
||||||
|
if (!response.ok) {
|
||||||
|
throw new Error('Response was not ok');
|
||||||
|
}
|
||||||
|
signedUploadUrl = response.signedUploadUrl;
|
||||||
|
}
|
||||||
|
catch (error) {
|
||||||
|
core.debug(`Failed to reserve cache: ${error}`);
|
||||||
throw new ReserveCacheError(`Unable to reserve cache with key ${key}, another job may be creating this cache.`);
|
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}`);
|
core.debug(`Attempting to upload cache located at: ${archivePath}`);
|
||||||
yield cacheHttpClient.saveCache(cacheId, archivePath, response.signedUploadUrl, options);
|
yield cacheHttpClient.saveCache(cacheId, archivePath, signedUploadUrl, options);
|
||||||
const finalizeRequest = {
|
const finalizeRequest = {
|
||||||
key,
|
key,
|
||||||
version,
|
version,
|
||||||
@@ -458,156 +466,13 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 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:
|
/***/ 3156:
|
||||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
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;
|
exports.CacheService = 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 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)
|
// @generated from protobuf file "results/api/v1/cache.proto" (package "github.actions.results.api.v1", syntax proto3)
|
||||||
// tslint:disable
|
// tslint:disable
|
||||||
@@ -617,7 +482,6 @@ const runtime_2 = __nccwpck_require__(8886);
|
|||||||
const runtime_3 = __nccwpck_require__(8886);
|
const runtime_3 = __nccwpck_require__(8886);
|
||||||
const runtime_4 = __nccwpck_require__(8886);
|
const runtime_4 = __nccwpck_require__(8886);
|
||||||
const runtime_5 = __nccwpck_require__(8886);
|
const runtime_5 = __nccwpck_require__(8886);
|
||||||
const cacheentry_1 = __nccwpck_require__(5893);
|
|
||||||
const cachemetadata_1 = __nccwpck_require__(9444);
|
const cachemetadata_1 = __nccwpck_require__(9444);
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class CreateCacheEntryRequest$Type extends runtime_5.MessageType {
|
class CreateCacheEntryRequest$Type extends runtime_5.MessageType {
|
||||||
@@ -985,376 +849,25 @@ class GetCacheEntryDownloadURLResponse$Type extends runtime_5.MessageType {
|
|||||||
* @generated MessageType for protobuf message github.actions.results.api.v1.GetCacheEntryDownloadURLResponse
|
* @generated MessageType for protobuf message github.actions.results.api.v1.GetCacheEntryDownloadURLResponse
|
||||||
*/
|
*/
|
||||||
exports.GetCacheEntryDownloadURLResponse = new GetCacheEntryDownloadURLResponse$Type();
|
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
|
* @generated ServiceType for protobuf service github.actions.results.api.v1.CacheService
|
||||||
*/
|
*/
|
||||||
exports.CacheService = new runtime_rpc_1.ServiceType("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: "CreateCacheEntry", options: {}, I: exports.CreateCacheEntryRequest, O: exports.CreateCacheEntryResponse },
|
||||||
{ name: "FinalizeCacheEntryUpload", options: {}, I: exports.FinalizeCacheEntryUploadRequest, O: exports.FinalizeCacheEntryUploadResponse },
|
{ name: "FinalizeCacheEntryUpload", options: {}, I: exports.FinalizeCacheEntryUploadRequest, O: exports.FinalizeCacheEntryUploadResponse },
|
||||||
{ name: "GetCacheEntryDownloadURL", options: {}, I: exports.GetCacheEntryDownloadURLRequest, O: exports.GetCacheEntryDownloadURLResponse },
|
{ 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
|
//# sourceMappingURL=cache.js.map
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 564:
|
/***/ 1486:
|
||||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
"use strict";
|
"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 }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.createCacheServiceServer = exports.CacheServiceMethodList = exports.CacheServiceMethod = exports.CacheServiceClientProtobuf = exports.CacheServiceClientJSON = void 0;
|
exports.CacheServiceClientProtobuf = exports.CacheServiceClientJSON = void 0;
|
||||||
const twirp_ts_1 = __nccwpck_require__(430);
|
|
||||||
const cache_1 = __nccwpck_require__(3156);
|
const cache_1 = __nccwpck_require__(3156);
|
||||||
class CacheServiceClientJSON {
|
class CacheServiceClientJSON {
|
||||||
constructor(rpc) {
|
constructor(rpc) {
|
||||||
@@ -1362,9 +875,6 @@ class CacheServiceClientJSON {
|
|||||||
this.CreateCacheEntry.bind(this);
|
this.CreateCacheEntry.bind(this);
|
||||||
this.FinalizeCacheEntryUpload.bind(this);
|
this.FinalizeCacheEntryUpload.bind(this);
|
||||||
this.GetCacheEntryDownloadURL.bind(this);
|
this.GetCacheEntryDownloadURL.bind(this);
|
||||||
this.DeleteCacheEntry.bind(this);
|
|
||||||
this.ListCacheEntries.bind(this);
|
|
||||||
this.LookupCacheEntry.bind(this);
|
|
||||||
}
|
}
|
||||||
CreateCacheEntry(request) {
|
CreateCacheEntry(request) {
|
||||||
const data = cache_1.CreateCacheEntryRequest.toJson(request, {
|
const data = cache_1.CreateCacheEntryRequest.toJson(request, {
|
||||||
@@ -1396,36 +906,6 @@ class CacheServiceClientJSON {
|
|||||||
ignoreUnknownFields: true,
|
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;
|
exports.CacheServiceClientJSON = CacheServiceClientJSON;
|
||||||
class CacheServiceClientProtobuf {
|
class CacheServiceClientProtobuf {
|
||||||
@@ -1434,9 +914,6 @@ class CacheServiceClientProtobuf {
|
|||||||
this.CreateCacheEntry.bind(this);
|
this.CreateCacheEntry.bind(this);
|
||||||
this.FinalizeCacheEntryUpload.bind(this);
|
this.FinalizeCacheEntryUpload.bind(this);
|
||||||
this.GetCacheEntryDownloadURL.bind(this);
|
this.GetCacheEntryDownloadURL.bind(this);
|
||||||
this.DeleteCacheEntry.bind(this);
|
|
||||||
this.ListCacheEntries.bind(this);
|
|
||||||
this.LookupCacheEntry.bind(this);
|
|
||||||
}
|
}
|
||||||
CreateCacheEntry(request) {
|
CreateCacheEntry(request) {
|
||||||
const data = cache_1.CreateCacheEntryRequest.toBinary(request);
|
const data = cache_1.CreateCacheEntryRequest.toBinary(request);
|
||||||
@@ -1453,610 +930,9 @@ class CacheServiceClientProtobuf {
|
|||||||
const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "GetCacheEntryDownloadURL", "application/protobuf", data);
|
const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "GetCacheEntryDownloadURL", "application/protobuf", data);
|
||||||
return promise.then((data) => cache_1.GetCacheEntryDownloadURLResponse.fromBinary(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;
|
exports.CacheServiceClientProtobuf = CacheServiceClientProtobuf;
|
||||||
var CacheServiceMethod;
|
//# sourceMappingURL=cache.twirp-client.js.map
|
||||||
(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
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
@@ -3327,7 +2203,7 @@ const config_1 = __nccwpck_require__(7606);
|
|||||||
const cacheUtils_1 = __nccwpck_require__(8299);
|
const cacheUtils_1 = __nccwpck_require__(8299);
|
||||||
const auth_1 = __nccwpck_require__(4552);
|
const auth_1 = __nccwpck_require__(4552);
|
||||||
const http_client_1 = __nccwpck_require__(4844);
|
const http_client_1 = __nccwpck_require__(4844);
|
||||||
const cache_twirp_1 = __nccwpck_require__(564);
|
const cache_twirp_client_1 = __nccwpck_require__(1486);
|
||||||
/**
|
/**
|
||||||
* This class is a wrapper around the CacheServiceClientJSON class generated by Twirp.
|
* This class is a wrapper around the CacheServiceClientJSON class generated by Twirp.
|
||||||
*
|
*
|
||||||
@@ -3464,7 +2340,7 @@ class CacheServiceClient {
|
|||||||
}
|
}
|
||||||
function internalCacheTwirpClient(options) {
|
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);
|
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);
|
return new cache_twirp_client_1.CacheServiceClientJSON(client);
|
||||||
}
|
}
|
||||||
exports.internalCacheTwirpClient = internalCacheTwirpClient;
|
exports.internalCacheTwirpClient = internalCacheTwirpClient;
|
||||||
//# sourceMappingURL=cacheTwirpClient.js.map
|
//# sourceMappingURL=cacheTwirpClient.js.map
|
||||||
@@ -77833,599 +76709,6 @@ 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:
|
/***/ 9829:
|
||||||
@@ -83298,1152 +81581,6 @@ if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
|
|||||||
exports.debug = debug; // for test
|
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 7125:
|
/***/ 7125:
|
||||||
@@ -91777,7 +88914,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
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.uvFile = exports.pyProjectFile = exports.version = void 0;
|
exports.githubToken = exports.toolDir = exports.toolBinDir = exports.ignoreEmptyWorkdir = 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 core = __importStar(__nccwpck_require__(7484));
|
||||||
const node_path_1 = __importDefault(__nccwpck_require__(6760));
|
const node_path_1 = __importDefault(__nccwpck_require__(6760));
|
||||||
exports.version = core.getInput("version");
|
exports.version = core.getInput("version");
|
||||||
@@ -91791,6 +88928,7 @@ exports.cacheLocalPath = getCacheLocalPath();
|
|||||||
exports.cacheDependencyGlob = core.getInput("cache-dependency-glob");
|
exports.cacheDependencyGlob = core.getInput("cache-dependency-glob");
|
||||||
exports.pruneCache = core.getInput("prune-cache") === "true";
|
exports.pruneCache = core.getInput("prune-cache") === "true";
|
||||||
exports.ignoreNothingToCache = core.getInput("ignore-nothing-to-cache") === "true";
|
exports.ignoreNothingToCache = core.getInput("ignore-nothing-to-cache") === "true";
|
||||||
|
exports.ignoreEmptyWorkdir = core.getInput("ignore-empty-workdir") === "true";
|
||||||
exports.toolBinDir = getToolBinDir();
|
exports.toolBinDir = getToolBinDir();
|
||||||
exports.toolDir = getToolDir();
|
exports.toolDir = getToolDir();
|
||||||
exports.githubToken = core.getInput("github-token");
|
exports.githubToken = core.getInput("github-token");
|
||||||
@@ -93858,7 +90996,7 @@ module.exports = parseParams
|
|||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
"use strict";
|
"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"}}');
|
module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.0.2","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"},"devDependencies":{"@types/semver":"^6.0.0","typescript":"^5.2.2"}}');
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
|||||||
14337
dist/setup/index.js
generated
vendored
14337
dist/setup/index.js
generated
vendored
File diff suppressed because one or more lines are too long
11418
dist/update-known-checksums/index.js
generated
vendored
11418
dist/update-known-checksums/index.js
generated
vendored
File diff suppressed because one or more lines are too long
725
package-lock.json
generated
725
package-lock.json
generated
@@ -9,33 +9,33 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/cache": "^4.0.0",
|
"@actions/cache": "^4.0.2",
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/glob": "^0.5.0",
|
"@actions/glob": "^0.5.0",
|
||||||
"@actions/io": "^1.1.3",
|
"@actions/io": "^1.1.3",
|
||||||
"@actions/tool-cache": "^2.0.2",
|
"@actions/tool-cache": "^2.0.2",
|
||||||
"@octokit/core": "^6.1.3",
|
"@octokit/core": "^6.1.4",
|
||||||
"@octokit/plugin-paginate-rest": "^11.4.0",
|
"@octokit/plugin-paginate-rest": "^11.4.3",
|
||||||
"@octokit/plugin-rest-endpoint-methods": "^13.3.0",
|
"@octokit/plugin-rest-endpoint-methods": "^13.3.1",
|
||||||
"smol-toml": "^1.3.1",
|
"smol-toml": "^1.3.1",
|
||||||
"undici": "^6.19.8"
|
"undici": "^7.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "1.9.4",
|
"@biomejs/biome": "1.9.4",
|
||||||
"@types/node": "^22.12.0",
|
"@types/node": "^22.13.10",
|
||||||
"@types/semver": "^7.5.8",
|
"@types/semver": "^7.5.8",
|
||||||
"@vercel/ncc": "^0.38.3",
|
"@vercel/ncc": "^0.38.3",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"ts-jest": "^29.2.5",
|
"ts-jest": "^29.2.6",
|
||||||
"typescript": "^5.7.3"
|
"typescript": "^5.8.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/cache": {
|
"node_modules/@actions/cache": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.0.2.tgz",
|
||||||
"integrity": "sha512-WIuxjnZ44lNYtIS4fqSaYvF00hORdy3cSin+jx8xNgBVGWnNIAiCBHjlwusVQlcgExoQC9pHXGrDsZyZr7rCDQ==",
|
"integrity": "sha512-cBr7JL1q+JKjbBd3w3SZN5OQ1Xg+/D8QLMcE7MpgpghZlL4biBO0ZEeraoTxCZyfN0YY0dxXlLgsgGv/sT5BTg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.0.1",
|
"@actions/exec": "^1.0.1",
|
||||||
@@ -46,8 +46,7 @@
|
|||||||
"@azure/ms-rest-js": "^2.6.0",
|
"@azure/ms-rest-js": "^2.6.0",
|
||||||
"@azure/storage-blob": "^12.13.0",
|
"@azure/storage-blob": "^12.13.0",
|
||||||
"@protobuf-ts/plugin": "^2.9.4",
|
"@protobuf-ts/plugin": "^2.9.4",
|
||||||
"semver": "^6.3.1",
|
"semver": "^6.3.1"
|
||||||
"twirp-ts": "^2.5.0"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/cache/node_modules/@actions/glob": {
|
"node_modules/@actions/cache/node_modules/@actions/glob": {
|
||||||
@@ -388,12 +387,13 @@
|
|||||||
"integrity": "sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig=="
|
"integrity": "sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig=="
|
||||||
},
|
},
|
||||||
"node_modules/@babel/code-frame": {
|
"node_modules/@babel/code-frame": {
|
||||||
"version": "7.25.7",
|
"version": "7.26.2",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.25.7.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz",
|
||||||
"integrity": "sha512-0xZJFNE5XMpENsgfHYTw8FbX4kv53mFLn2i3XPoq69LyhYSCBJtitaHx9QnsVTrsogI4Z3+HtEfZ2/GFPOtf5g==",
|
"integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/highlight": "^7.25.7",
|
"@babel/helper-validator-identifier": "^7.25.9",
|
||||||
|
"js-tokens": "^4.0.0",
|
||||||
"picocolors": "^1.0.0"
|
"picocolors": "^1.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -582,18 +582,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/helper-string-parser": {
|
"node_modules/@babel/helper-string-parser": {
|
||||||
"version": "7.25.7",
|
"version": "7.25.9",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.7.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz",
|
||||||
"integrity": "sha512-CbkjYdsJNHFk8uqpEkpCvRs3YRp9tY6FmFY7wLMSYuGYkrdUi7r2lc4/wqsvlHoMznX3WJ9IP8giGPq68T/Y6g==",
|
"integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/helper-validator-identifier": {
|
"node_modules/@babel/helper-validator-identifier": {
|
||||||
"version": "7.25.7",
|
"version": "7.25.9",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.7.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz",
|
||||||
"integrity": "sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg==",
|
"integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
@@ -609,103 +609,25 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/helpers": {
|
"node_modules/@babel/helpers": {
|
||||||
"version": "7.21.0",
|
"version": "7.26.10",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.21.0.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.26.10.tgz",
|
||||||
"integrity": "sha512-XXve0CBtOW0pd7MRzzmoyuSj0e3SEzj8pgyFxnTT1NJZL38BD1MK7yYrm8yefRPIDvNNe14xR4FdbHwpInD4rA==",
|
"integrity": "sha512-UPYc3SauzZ3JGgj87GgZ89JVdC5dj0AoetR5Bw6wj4niittNyFh6+eOGonYvJ1ao6B8lEa3Q3klS7ADZ53bc5g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/template": "^7.20.7",
|
"@babel/template": "^7.26.9",
|
||||||
"@babel/traverse": "^7.21.0",
|
"@babel/types": "^7.26.10"
|
||||||
"@babel/types": "^7.21.0"
|
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/highlight": {
|
|
||||||
"version": "7.25.7",
|
|
||||||
"resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.25.7.tgz",
|
|
||||||
"integrity": "sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/helper-validator-identifier": "^7.25.7",
|
|
||||||
"chalk": "^2.4.2",
|
|
||||||
"js-tokens": "^4.0.0",
|
|
||||||
"picocolors": "^1.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.9.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/highlight/node_modules/ansi-styles": {
|
|
||||||
"version": "3.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
|
|
||||||
"integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"color-convert": "^1.9.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/highlight/node_modules/chalk": {
|
|
||||||
"version": "2.4.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
|
|
||||||
"integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"ansi-styles": "^3.2.1",
|
|
||||||
"escape-string-regexp": "^1.0.5",
|
|
||||||
"supports-color": "^5.3.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/highlight/node_modules/color-convert": {
|
|
||||||
"version": "1.9.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
|
|
||||||
"integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"color-name": "1.1.3"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/highlight/node_modules/color-name": {
|
|
||||||
"version": "1.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
|
|
||||||
"integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"node_modules/@babel/highlight/node_modules/has-flag": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
|
|
||||||
"integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",
|
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/highlight/node_modules/supports-color": {
|
|
||||||
"version": "5.5.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
|
|
||||||
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"has-flag": "^3.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/parser": {
|
"node_modules/@babel/parser": {
|
||||||
"version": "7.25.8",
|
"version": "7.26.10",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.8.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.10.tgz",
|
||||||
"integrity": "sha512-HcttkxzdPucv3nNFmfOOMfFf64KgdJVqm1KaCm25dPGMLElo9nsLvXeJECQg8UzPuBGLyTSA0ZzqCtDSzKTEoQ==",
|
"integrity": "sha512-6aQR2zGE/QFi8JpDLjUZEPYOs7+mhKXm86VaKFiLP35JQwQb6bwUE+XbvkH0EptsYhbNBSUGaUBLKqxH1xSgsA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/types": "^7.25.8"
|
"@babel/types": "^7.26.10"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"parser": "bin/babel-parser.js"
|
"parser": "bin/babel-parser.js"
|
||||||
@@ -892,14 +814,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/template": {
|
"node_modules/@babel/template": {
|
||||||
"version": "7.25.7",
|
"version": "7.26.9",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.7.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.26.9.tgz",
|
||||||
"integrity": "sha512-wRwtAgI3bAS+JGU2upWNL9lSlDcRCqD05BZ1n3X2ONLH1WilFP6O1otQjeMK/1g0pvYcXC7b/qVUB1keofjtZA==",
|
"integrity": "sha512-qyRplbeIpNZhmzOysF/wFMuP9sctmh2cFzRAZOn1YapxBsE1i9bJIY586R/WBLfLcmcBlM8ROBiQURnnNy+zfA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/code-frame": "^7.25.7",
|
"@babel/code-frame": "^7.26.2",
|
||||||
"@babel/parser": "^7.25.7",
|
"@babel/parser": "^7.26.9",
|
||||||
"@babel/types": "^7.25.7"
|
"@babel/types": "^7.26.9"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
@@ -924,14 +846,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/types": {
|
"node_modules/@babel/types": {
|
||||||
"version": "7.25.8",
|
"version": "7.26.10",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.8.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.10.tgz",
|
||||||
"integrity": "sha512-JWtuCu8VQsMladxVz/P4HzHUGCAwpuqacmowgXFs5XjxIgKuNjnLokQzuVjlTvIzODaDmpjT3oxcC48vyk9EWg==",
|
"integrity": "sha512-emqcG3vHrpxUKTrxcblR36dcrcoRDvKmnL/dCL6ZsHaShW80qxCAcNhzQZrpeM765VzEos+xOi4s+r4IXzTwdQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-string-parser": "^7.25.7",
|
"@babel/helper-string-parser": "^7.25.9",
|
||||||
"@babel/helper-validator-identifier": "^7.25.7",
|
"@babel/helper-validator-identifier": "^7.25.9"
|
||||||
"to-fast-properties": "^2.0.0"
|
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
@@ -1597,14 +1518,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/core": {
|
"node_modules/@octokit/core": {
|
||||||
"version": "6.1.3",
|
"version": "6.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.4.tgz",
|
||||||
"integrity": "sha512-z+j7DixNnfpdToYsOutStDgeRzJSMnbj8T1C/oQjB6Aa+kRfNjs/Fn7W6c8bmlt6mfy3FkgeKBRnDjxQow5dow==",
|
"integrity": "sha512-lAS9k7d6I0MPN+gb9bKDt7X8SdxknYqAMh44S5L+lNqIN2NuV8nvv3g8rPp7MuRxcOpxpUIATWprO0C34a8Qmg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/auth-token": "^5.0.0",
|
"@octokit/auth-token": "^5.0.0",
|
||||||
"@octokit/graphql": "^8.1.2",
|
"@octokit/graphql": "^8.1.2",
|
||||||
"@octokit/request": "^9.1.4",
|
"@octokit/request": "^9.2.1",
|
||||||
"@octokit/request-error": "^6.1.6",
|
"@octokit/request-error": "^6.1.7",
|
||||||
"@octokit/types": "^13.6.2",
|
"@octokit/types": "^13.6.2",
|
||||||
"before-after-hook": "^3.0.2",
|
"before-after-hook": "^3.0.2",
|
||||||
"universal-user-agent": "^7.0.0"
|
"universal-user-agent": "^7.0.0"
|
||||||
@@ -1658,11 +1579,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/plugin-rest-endpoint-methods": {
|
"node_modules/@octokit/plugin-rest-endpoint-methods": {
|
||||||
"version": "13.3.0",
|
"version": "13.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.3.1.tgz",
|
||||||
"integrity": "sha512-LUm44shlmkp/6VC+qQgHl3W5vzUP99ZM54zH6BuqkJK4DqfFLhegANd+fM4YRLapTvPm4049iG7F3haANKMYvQ==",
|
"integrity": "sha512-o8uOBdsyR+WR8MK9Cco8dCgvG13H1RlM1nWnK/W7TEACQBFux/vPREgKucxUfuDQ5yi1T3hGf4C5ZmZXAERgwQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/types": "^13.7.0"
|
"@octokit/types": "^13.8.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 18"
|
"node": ">= 18"
|
||||||
@@ -1882,10 +1803,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "22.12.0",
|
"version": "22.13.10",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.12.0.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz",
|
||||||
"integrity": "sha512-Fll2FZ1riMjNmlmJOdAyY5pUbkftXslB5DgEzlIuNaiWhXd00FhWxVC/r4yV/4wBb9JfImTu+jiSvXTkJ7F/gA==",
|
"integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==",
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"undici-types": "~6.20.0"
|
"undici-types": "~6.20.0"
|
||||||
}
|
}
|
||||||
@@ -2234,20 +2154,6 @@
|
|||||||
"node": ">=6"
|
"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": {
|
"node_modules/camelcase": {
|
||||||
"version": "5.3.1",
|
"version": "5.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
|
||||||
@@ -2382,14 +2288,6 @@
|
|||||||
"node": ">= 0.8"
|
"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": {
|
"node_modules/concat-map": {
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
||||||
@@ -2502,18 +2400,6 @@
|
|||||||
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
|
"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": {
|
"node_modules/ejs": {
|
||||||
"version": "3.1.10",
|
"version": "3.1.10",
|
||||||
"resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",
|
||||||
@@ -2571,15 +2457,6 @@
|
|||||||
"node": ">=6"
|
"node": ">=6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/escape-string-regexp": {
|
|
||||||
"version": "1.0.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
|
|
||||||
"integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",
|
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
|
||||||
"node": ">=0.8.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/esprima": {
|
"node_modules/esprima": {
|
||||||
"version": "4.0.1",
|
"version": "4.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
||||||
@@ -2745,7 +2622,8 @@
|
|||||||
"node_modules/fs.realpath": {
|
"node_modules/fs.realpath": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
||||||
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
|
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/fsevents": {
|
"node_modules/fsevents": {
|
||||||
"version": "2.3.3",
|
"version": "2.3.3",
|
||||||
@@ -2813,6 +2691,7 @@
|
|||||||
"version": "7.1.6",
|
"version": "7.1.6",
|
||||||
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
|
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
|
||||||
"integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
|
"integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
|
||||||
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fs.realpath": "^1.0.0",
|
"fs.realpath": "^1.0.0",
|
||||||
"inflight": "^1.0.4",
|
"inflight": "^1.0.4",
|
||||||
@@ -2993,6 +2872,7 @@
|
|||||||
"version": "1.0.6",
|
"version": "1.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
||||||
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
|
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
|
||||||
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"once": "^1.3.0",
|
"once": "^1.3.0",
|
||||||
"wrappy": "1"
|
"wrappy": "1"
|
||||||
@@ -3001,7 +2881,8 @@
|
|||||||
"node_modules/inherits": {
|
"node_modules/inherits": {
|
||||||
"version": "2.0.4",
|
"version": "2.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
||||||
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
|
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/is-arrayish": {
|
"node_modules/is-arrayish": {
|
||||||
"version": "0.2.1",
|
"version": "0.2.1",
|
||||||
@@ -3849,30 +3730,12 @@
|
|||||||
"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
|
"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
|
||||||
"dev": true
|
"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": {
|
"node_modules/lodash.memoize": {
|
||||||
"version": "4.1.2",
|
"version": "4.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz",
|
||||||
"integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=",
|
"integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=",
|
||||||
"dev": true
|
"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": {
|
"node_modules/lru-cache": {
|
||||||
"version": "6.0.0",
|
"version": "6.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
|
||||||
@@ -4000,20 +3863,6 @@
|
|||||||
"integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",
|
"integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",
|
||||||
"dev": true
|
"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": {
|
"node_modules/node-int64": {
|
||||||
"version": "0.4.0",
|
"version": "0.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz",
|
||||||
@@ -4051,6 +3900,7 @@
|
|||||||
"version": "1.4.0",
|
"version": "1.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
||||||
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
|
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
|
||||||
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"wrappy": "1"
|
"wrappy": "1"
|
||||||
}
|
}
|
||||||
@@ -4088,24 +3938,11 @@
|
|||||||
"url": "https://github.com/sponsors/sindresorhus"
|
"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": {
|
"node_modules/path-is-absolute": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
||||||
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
|
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
|
||||||
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
@@ -4125,11 +3962,6 @@
|
|||||||
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
|
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
|
||||||
"dev": true
|
"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": {
|
"node_modules/picocolors": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
|
||||||
@@ -4157,20 +3989,6 @@
|
|||||||
"node": ">= 6"
|
"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": {
|
"node_modules/pretty-format": {
|
||||||
"version": "29.7.0",
|
"version": "29.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz",
|
||||||
@@ -4512,15 +4330,6 @@
|
|||||||
"integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==",
|
"integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/to-fast-properties": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
|
|
||||||
"integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==",
|
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/to-regex-range": {
|
"node_modules/to-regex-range": {
|
||||||
"version": "5.0.1",
|
"version": "5.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
|
||||||
@@ -4539,9 +4348,9 @@
|
|||||||
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
|
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
|
||||||
},
|
},
|
||||||
"node_modules/ts-jest": {
|
"node_modules/ts-jest": {
|
||||||
"version": "29.2.5",
|
"version": "29.2.6",
|
||||||
"resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.2.5.tgz",
|
"resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.2.6.tgz",
|
||||||
"integrity": "sha512-KD8zB2aAZrcKIdGk4OwpJggeLcH1FgrICqDSROWqlnJXGCXK4Mn6FcdK2B6670Xr73lHMG1kHw8R87A0ecZ+vA==",
|
"integrity": "sha512-yTNZVZqc8lSixm+QGVFcPe6+yj7+TWZwIesuOWvfcn4B9bz5x4NDzVCQQjOs7Hfouu36aEqfEbo9Qpo+gq8dDg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bs-logger": "^0.2.6",
|
"bs-logger": "^0.2.6",
|
||||||
@@ -4551,7 +4360,7 @@
|
|||||||
"json5": "^2.2.3",
|
"json5": "^2.2.3",
|
||||||
"lodash.memoize": "^4.1.2",
|
"lodash.memoize": "^4.1.2",
|
||||||
"make-error": "^1.3.6",
|
"make-error": "^1.3.6",
|
||||||
"semver": "^7.6.3",
|
"semver": "^7.7.1",
|
||||||
"yargs-parser": "^21.1.1"
|
"yargs-parser": "^21.1.1"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
@@ -4587,9 +4396,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/ts-jest/node_modules/semver": {
|
"node_modules/ts-jest/node_modules/semver": {
|
||||||
"version": "7.6.3",
|
"version": "7.7.1",
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
|
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
|
||||||
"integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
|
"integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"semver": "bin/semver.js"
|
"semver": "bin/semver.js"
|
||||||
@@ -4598,15 +4407,6 @@
|
|||||||
"node": ">=10"
|
"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": {
|
"node_modules/tslib": {
|
||||||
"version": "1.10.0",
|
"version": "1.10.0",
|
||||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz",
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz",
|
||||||
@@ -4620,34 +4420,6 @@
|
|||||||
"node": ">=0.6.11 <=0.7.0 || >=0.7.3"
|
"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": {
|
"node_modules/type-detect": {
|
||||||
"version": "4.0.8",
|
"version": "4.0.8",
|
||||||
"resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
|
"resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
|
||||||
@@ -4658,9 +4430,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/typescript": {
|
"node_modules/typescript": {
|
||||||
"version": "5.7.3",
|
"version": "5.8.2",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz",
|
||||||
"integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==",
|
"integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsc": "bin/tsc",
|
"tsc": "bin/tsc",
|
||||||
@@ -4671,11 +4443,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/undici": {
|
"node_modules/undici": {
|
||||||
"version": "6.21.1",
|
"version": "7.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/undici/-/undici-6.21.1.tgz",
|
"resolved": "https://registry.npmjs.org/undici/-/undici-7.5.0.tgz",
|
||||||
"integrity": "sha512-q/1rj5D0/zayJB2FraXdaWxbhWiNKDvu8naDT2dl1yTlvJp4BLtOcp2a5BvgGNQpYYJzau7tf1WgKv3b+7mqpQ==",
|
"integrity": "sha512-NFQG741e8mJ0fLQk90xKxFdaSM7z4+IQpAgsFI36bCDY9Z2+aXXZjVy2uUksMouWfMI9+w5ejOq5zYYTBCQJDQ==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.17"
|
"node": ">=20.18.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/undici-types": {
|
"node_modules/undici-types": {
|
||||||
@@ -4792,7 +4564,8 @@
|
|||||||
"node_modules/wrappy": {
|
"node_modules/wrappy": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
||||||
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
|
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/write-file-atomic": {
|
"node_modules/write-file-atomic": {
|
||||||
"version": "4.0.2",
|
"version": "4.0.2",
|
||||||
@@ -4842,14 +4615,6 @@
|
|||||||
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
|
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
|
||||||
"dev": true
|
"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": {
|
"node_modules/yargs": {
|
||||||
"version": "17.7.2",
|
"version": "17.7.2",
|
||||||
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
|
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
|
||||||
@@ -4892,9 +4657,9 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/cache": {
|
"@actions/cache": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.0.2.tgz",
|
||||||
"integrity": "sha512-WIuxjnZ44lNYtIS4fqSaYvF00hORdy3cSin+jx8xNgBVGWnNIAiCBHjlwusVQlcgExoQC9pHXGrDsZyZr7rCDQ==",
|
"integrity": "sha512-cBr7JL1q+JKjbBd3w3SZN5OQ1Xg+/D8QLMcE7MpgpghZlL4biBO0ZEeraoTxCZyfN0YY0dxXlLgsgGv/sT5BTg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.0.1",
|
"@actions/exec": "^1.0.1",
|
||||||
@@ -4905,8 +4670,7 @@
|
|||||||
"@azure/ms-rest-js": "^2.6.0",
|
"@azure/ms-rest-js": "^2.6.0",
|
||||||
"@azure/storage-blob": "^12.13.0",
|
"@azure/storage-blob": "^12.13.0",
|
||||||
"@protobuf-ts/plugin": "^2.9.4",
|
"@protobuf-ts/plugin": "^2.9.4",
|
||||||
"semver": "^6.3.1",
|
"semver": "^6.3.1"
|
||||||
"twirp-ts": "^2.5.0"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/glob": {
|
"@actions/glob": {
|
||||||
@@ -5207,12 +4971,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/code-frame": {
|
"@babel/code-frame": {
|
||||||
"version": "7.25.7",
|
"version": "7.26.2",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.25.7.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz",
|
||||||
"integrity": "sha512-0xZJFNE5XMpENsgfHYTw8FbX4kv53mFLn2i3XPoq69LyhYSCBJtitaHx9QnsVTrsogI4Z3+HtEfZ2/GFPOtf5g==",
|
"integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/highlight": "^7.25.7",
|
"@babel/helper-validator-identifier": "^7.25.9",
|
||||||
|
"js-tokens": "^4.0.0",
|
||||||
"picocolors": "^1.0.0"
|
"picocolors": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -5364,15 +5129,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/helper-string-parser": {
|
"@babel/helper-string-parser": {
|
||||||
"version": "7.25.7",
|
"version": "7.25.9",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.7.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz",
|
||||||
"integrity": "sha512-CbkjYdsJNHFk8uqpEkpCvRs3YRp9tY6FmFY7wLMSYuGYkrdUi7r2lc4/wqsvlHoMznX3WJ9IP8giGPq68T/Y6g==",
|
"integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@babel/helper-validator-identifier": {
|
"@babel/helper-validator-identifier": {
|
||||||
"version": "7.25.7",
|
"version": "7.25.9",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.7.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz",
|
||||||
"integrity": "sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg==",
|
"integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@babel/helper-validator-option": {
|
"@babel/helper-validator-option": {
|
||||||
@@ -5382,87 +5147,22 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@babel/helpers": {
|
"@babel/helpers": {
|
||||||
"version": "7.21.0",
|
"version": "7.26.10",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.21.0.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.26.10.tgz",
|
||||||
"integrity": "sha512-XXve0CBtOW0pd7MRzzmoyuSj0e3SEzj8pgyFxnTT1NJZL38BD1MK7yYrm8yefRPIDvNNe14xR4FdbHwpInD4rA==",
|
"integrity": "sha512-UPYc3SauzZ3JGgj87GgZ89JVdC5dj0AoetR5Bw6wj4niittNyFh6+eOGonYvJ1ao6B8lEa3Q3klS7ADZ53bc5g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/template": "^7.20.7",
|
"@babel/template": "^7.26.9",
|
||||||
"@babel/traverse": "^7.21.0",
|
"@babel/types": "^7.26.10"
|
||||||
"@babel/types": "^7.21.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@babel/highlight": {
|
|
||||||
"version": "7.25.7",
|
|
||||||
"resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.25.7.tgz",
|
|
||||||
"integrity": "sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@babel/helper-validator-identifier": "^7.25.7",
|
|
||||||
"chalk": "^2.4.2",
|
|
||||||
"js-tokens": "^4.0.0",
|
|
||||||
"picocolors": "^1.0.0"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"ansi-styles": {
|
|
||||||
"version": "3.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
|
|
||||||
"integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"color-convert": "^1.9.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"chalk": {
|
|
||||||
"version": "2.4.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
|
|
||||||
"integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"ansi-styles": "^3.2.1",
|
|
||||||
"escape-string-regexp": "^1.0.5",
|
|
||||||
"supports-color": "^5.3.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"color-convert": {
|
|
||||||
"version": "1.9.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
|
|
||||||
"integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"color-name": "1.1.3"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"color-name": {
|
|
||||||
"version": "1.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
|
|
||||||
"integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"has-flag": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
|
|
||||||
"integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"supports-color": {
|
|
||||||
"version": "5.5.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
|
|
||||||
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"has-flag": "^3.0.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/parser": {
|
"@babel/parser": {
|
||||||
"version": "7.25.8",
|
"version": "7.26.10",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.8.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.10.tgz",
|
||||||
"integrity": "sha512-HcttkxzdPucv3nNFmfOOMfFf64KgdJVqm1KaCm25dPGMLElo9nsLvXeJECQg8UzPuBGLyTSA0ZzqCtDSzKTEoQ==",
|
"integrity": "sha512-6aQR2zGE/QFi8JpDLjUZEPYOs7+mhKXm86VaKFiLP35JQwQb6bwUE+XbvkH0EptsYhbNBSUGaUBLKqxH1xSgsA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/types": "^7.25.8"
|
"@babel/types": "^7.26.10"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/plugin-syntax-async-generators": {
|
"@babel/plugin-syntax-async-generators": {
|
||||||
@@ -5592,14 +5292,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/template": {
|
"@babel/template": {
|
||||||
"version": "7.25.7",
|
"version": "7.26.9",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.7.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.26.9.tgz",
|
||||||
"integrity": "sha512-wRwtAgI3bAS+JGU2upWNL9lSlDcRCqD05BZ1n3X2ONLH1WilFP6O1otQjeMK/1g0pvYcXC7b/qVUB1keofjtZA==",
|
"integrity": "sha512-qyRplbeIpNZhmzOysF/wFMuP9sctmh2cFzRAZOn1YapxBsE1i9bJIY586R/WBLfLcmcBlM8ROBiQURnnNy+zfA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/code-frame": "^7.25.7",
|
"@babel/code-frame": "^7.26.2",
|
||||||
"@babel/parser": "^7.25.7",
|
"@babel/parser": "^7.26.9",
|
||||||
"@babel/types": "^7.25.7"
|
"@babel/types": "^7.26.9"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/traverse": {
|
"@babel/traverse": {
|
||||||
@@ -5618,14 +5318,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/types": {
|
"@babel/types": {
|
||||||
"version": "7.25.8",
|
"version": "7.26.10",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.8.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.10.tgz",
|
||||||
"integrity": "sha512-JWtuCu8VQsMladxVz/P4HzHUGCAwpuqacmowgXFs5XjxIgKuNjnLokQzuVjlTvIzODaDmpjT3oxcC48vyk9EWg==",
|
"integrity": "sha512-emqcG3vHrpxUKTrxcblR36dcrcoRDvKmnL/dCL6ZsHaShW80qxCAcNhzQZrpeM765VzEos+xOi4s+r4IXzTwdQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/helper-string-parser": "^7.25.7",
|
"@babel/helper-string-parser": "^7.25.9",
|
||||||
"@babel/helper-validator-identifier": "^7.25.7",
|
"@babel/helper-validator-identifier": "^7.25.9"
|
||||||
"to-fast-properties": "^2.0.0"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@bcoe/v8-coverage": {
|
"@bcoe/v8-coverage": {
|
||||||
@@ -6094,14 +5793,14 @@
|
|||||||
"integrity": "sha512-JcQDsBdg49Yky2w2ld20IHAlwr8d/d8N6NiOXbtuoPCqzbsiJgF633mVUw3x4mo0H5ypataQIX7SFu3yy44Mpw=="
|
"integrity": "sha512-JcQDsBdg49Yky2w2ld20IHAlwr8d/d8N6NiOXbtuoPCqzbsiJgF633mVUw3x4mo0H5ypataQIX7SFu3yy44Mpw=="
|
||||||
},
|
},
|
||||||
"@octokit/core": {
|
"@octokit/core": {
|
||||||
"version": "6.1.3",
|
"version": "6.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.4.tgz",
|
||||||
"integrity": "sha512-z+j7DixNnfpdToYsOutStDgeRzJSMnbj8T1C/oQjB6Aa+kRfNjs/Fn7W6c8bmlt6mfy3FkgeKBRnDjxQow5dow==",
|
"integrity": "sha512-lAS9k7d6I0MPN+gb9bKDt7X8SdxknYqAMh44S5L+lNqIN2NuV8nvv3g8rPp7MuRxcOpxpUIATWprO0C34a8Qmg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@octokit/auth-token": "^5.0.0",
|
"@octokit/auth-token": "^5.0.0",
|
||||||
"@octokit/graphql": "^8.1.2",
|
"@octokit/graphql": "^8.1.2",
|
||||||
"@octokit/request": "^9.1.4",
|
"@octokit/request": "^9.2.1",
|
||||||
"@octokit/request-error": "^6.1.6",
|
"@octokit/request-error": "^6.1.7",
|
||||||
"@octokit/types": "^13.6.2",
|
"@octokit/types": "^13.6.2",
|
||||||
"before-after-hook": "^3.0.2",
|
"before-after-hook": "^3.0.2",
|
||||||
"universal-user-agent": "^7.0.0"
|
"universal-user-agent": "^7.0.0"
|
||||||
@@ -6140,11 +5839,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@octokit/plugin-rest-endpoint-methods": {
|
"@octokit/plugin-rest-endpoint-methods": {
|
||||||
"version": "13.3.0",
|
"version": "13.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.3.1.tgz",
|
||||||
"integrity": "sha512-LUm44shlmkp/6VC+qQgHl3W5vzUP99ZM54zH6BuqkJK4DqfFLhegANd+fM4YRLapTvPm4049iG7F3haANKMYvQ==",
|
"integrity": "sha512-o8uOBdsyR+WR8MK9Cco8dCgvG13H1RlM1nWnK/W7TEACQBFux/vPREgKucxUfuDQ5yi1T3hGf4C5ZmZXAERgwQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@octokit/types": "^13.7.0"
|
"@octokit/types": "^13.8.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@octokit/request": {
|
"@octokit/request": {
|
||||||
@@ -6332,9 +6031,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "22.12.0",
|
"version": "22.13.10",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.12.0.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz",
|
||||||
"integrity": "sha512-Fll2FZ1riMjNmlmJOdAyY5pUbkftXslB5DgEzlIuNaiWhXd00FhWxVC/r4yV/4wBb9JfImTu+jiSvXTkJ7F/gA==",
|
"integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"undici-types": "~6.20.0"
|
"undici-types": "~6.20.0"
|
||||||
}
|
}
|
||||||
@@ -6608,22 +6307,6 @@
|
|||||||
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
|
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
|
||||||
"dev": true
|
"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": {
|
"camelcase": {
|
||||||
"version": "5.3.1",
|
"version": "5.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
|
||||||
@@ -6710,11 +6393,6 @@
|
|||||||
"delayed-stream": "~1.0.0"
|
"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": {
|
"concat-map": {
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
||||||
@@ -6791,15 +6469,6 @@
|
|||||||
"integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==",
|
"integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==",
|
||||||
"dev": true
|
"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": {
|
"ejs": {
|
||||||
"version": "3.1.10",
|
"version": "3.1.10",
|
||||||
"resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",
|
||||||
@@ -6842,12 +6511,6 @@
|
|||||||
"integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",
|
"integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"escape-string-regexp": {
|
|
||||||
"version": "1.0.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
|
|
||||||
"integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"esprima": {
|
"esprima": {
|
||||||
"version": "4.0.1",
|
"version": "4.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
||||||
@@ -6971,7 +6634,8 @@
|
|||||||
"fs.realpath": {
|
"fs.realpath": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
||||||
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
|
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"fsevents": {
|
"fsevents": {
|
||||||
"version": "2.3.3",
|
"version": "2.3.3",
|
||||||
@@ -7014,6 +6678,7 @@
|
|||||||
"version": "7.1.6",
|
"version": "7.1.6",
|
||||||
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
|
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
|
||||||
"integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
|
"integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
|
||||||
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"fs.realpath": "^1.0.0",
|
"fs.realpath": "^1.0.0",
|
||||||
"inflight": "^1.0.4",
|
"inflight": "^1.0.4",
|
||||||
@@ -7142,6 +6807,7 @@
|
|||||||
"version": "1.0.6",
|
"version": "1.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
||||||
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
|
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
|
||||||
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"once": "^1.3.0",
|
"once": "^1.3.0",
|
||||||
"wrappy": "1"
|
"wrappy": "1"
|
||||||
@@ -7150,7 +6816,8 @@
|
|||||||
"inherits": {
|
"inherits": {
|
||||||
"version": "2.0.4",
|
"version": "2.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
||||||
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
|
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"is-arrayish": {
|
"is-arrayish": {
|
||||||
"version": "0.2.1",
|
"version": "0.2.1",
|
||||||
@@ -7789,32 +7456,12 @@
|
|||||||
"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
|
"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"lodash": {
|
|
||||||
"version": "4.17.21",
|
|
||||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
|
||||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
|
||||||
},
|
|
||||||
"lodash.memoize": {
|
"lodash.memoize": {
|
||||||
"version": "4.1.2",
|
"version": "4.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz",
|
||||||
"integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=",
|
"integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=",
|
||||||
"dev": true
|
"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": {
|
"lru-cache": {
|
||||||
"version": "6.0.0",
|
"version": "6.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
|
||||||
@@ -7914,22 +7561,6 @@
|
|||||||
"integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",
|
"integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",
|
||||||
"dev": true
|
"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": {
|
"node-int64": {
|
||||||
"version": "0.4.0",
|
"version": "0.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz",
|
||||||
@@ -7961,6 +7592,7 @@
|
|||||||
"version": "1.4.0",
|
"version": "1.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
||||||
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
|
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
|
||||||
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"wrappy": "1"
|
"wrappy": "1"
|
||||||
}
|
}
|
||||||
@@ -7986,26 +7618,11 @@
|
|||||||
"lines-and-columns": "^1.1.6"
|
"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": {
|
"path-is-absolute": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
||||||
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18="
|
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"path-key": {
|
"path-key": {
|
||||||
"version": "3.1.1",
|
"version": "3.1.1",
|
||||||
@@ -8019,11 +7636,6 @@
|
|||||||
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
|
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
|
||||||
"dev": true
|
"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": {
|
"picocolors": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
|
||||||
@@ -8042,11 +7654,6 @@
|
|||||||
"integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==",
|
"integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==",
|
||||||
"dev": true
|
"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": {
|
"pretty-format": {
|
||||||
"version": "29.7.0",
|
"version": "29.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz",
|
||||||
@@ -8294,12 +7901,6 @@
|
|||||||
"integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==",
|
"integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"to-fast-properties": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
|
|
||||||
"integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"to-regex-range": {
|
"to-regex-range": {
|
||||||
"version": "5.0.1",
|
"version": "5.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
|
||||||
@@ -8315,9 +7916,9 @@
|
|||||||
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
|
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
|
||||||
},
|
},
|
||||||
"ts-jest": {
|
"ts-jest": {
|
||||||
"version": "29.2.5",
|
"version": "29.2.6",
|
||||||
"resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.2.5.tgz",
|
"resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.2.6.tgz",
|
||||||
"integrity": "sha512-KD8zB2aAZrcKIdGk4OwpJggeLcH1FgrICqDSROWqlnJXGCXK4Mn6FcdK2B6670Xr73lHMG1kHw8R87A0ecZ+vA==",
|
"integrity": "sha512-yTNZVZqc8lSixm+QGVFcPe6+yj7+TWZwIesuOWvfcn4B9bz5x4NDzVCQQjOs7Hfouu36aEqfEbo9Qpo+gq8dDg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"bs-logger": "^0.2.6",
|
"bs-logger": "^0.2.6",
|
||||||
@@ -8327,27 +7928,18 @@
|
|||||||
"json5": "^2.2.3",
|
"json5": "^2.2.3",
|
||||||
"lodash.memoize": "^4.1.2",
|
"lodash.memoize": "^4.1.2",
|
||||||
"make-error": "^1.3.6",
|
"make-error": "^1.3.6",
|
||||||
"semver": "^7.6.3",
|
"semver": "^7.7.1",
|
||||||
"yargs-parser": "^21.1.1"
|
"yargs-parser": "^21.1.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"semver": {
|
"semver": {
|
||||||
"version": "7.6.3",
|
"version": "7.7.1",
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
|
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
|
||||||
"integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
|
"integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"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": {
|
"tslib": {
|
||||||
"version": "1.10.0",
|
"version": "1.10.0",
|
||||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz",
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz",
|
||||||
@@ -8358,19 +7950,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
|
||||||
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg=="
|
"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": {
|
"type-detect": {
|
||||||
"version": "4.0.8",
|
"version": "4.0.8",
|
||||||
"resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
|
"resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
|
||||||
@@ -8378,15 +7957,15 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"version": "5.7.3",
|
"version": "5.8.2",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz",
|
||||||
"integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==",
|
"integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"undici": {
|
"undici": {
|
||||||
"version": "6.21.1",
|
"version": "7.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/undici/-/undici-6.21.1.tgz",
|
"resolved": "https://registry.npmjs.org/undici/-/undici-7.5.0.tgz",
|
||||||
"integrity": "sha512-q/1rj5D0/zayJB2FraXdaWxbhWiNKDvu8naDT2dl1yTlvJp4BLtOcp2a5BvgGNQpYYJzau7tf1WgKv3b+7mqpQ=="
|
"integrity": "sha512-NFQG741e8mJ0fLQk90xKxFdaSM7z4+IQpAgsFI36bCDY9Z2+aXXZjVy2uUksMouWfMI9+w5ejOq5zYYTBCQJDQ=="
|
||||||
},
|
},
|
||||||
"undici-types": {
|
"undici-types": {
|
||||||
"version": "6.20.0",
|
"version": "6.20.0",
|
||||||
@@ -8473,7 +8052,8 @@
|
|||||||
"wrappy": {
|
"wrappy": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
||||||
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
|
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"write-file-atomic": {
|
"write-file-atomic": {
|
||||||
"version": "4.0.2",
|
"version": "4.0.2",
|
||||||
@@ -8511,11 +8091,6 @@
|
|||||||
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
|
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"yaml": {
|
|
||||||
"version": "1.10.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",
|
|
||||||
"integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg=="
|
|
||||||
},
|
|
||||||
"yargs": {
|
"yargs": {
|
||||||
"version": "17.7.2",
|
"version": "17.7.2",
|
||||||
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
|
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
|
||||||
|
|||||||
16
package.json
16
package.json
@@ -23,26 +23,26 @@
|
|||||||
"author": "@eifinger",
|
"author": "@eifinger",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/cache": "^4.0.0",
|
"@actions/cache": "^4.0.2",
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/glob": "^0.5.0",
|
"@actions/glob": "^0.5.0",
|
||||||
"@actions/io": "^1.1.3",
|
"@actions/io": "^1.1.3",
|
||||||
"@actions/tool-cache": "^2.0.2",
|
"@actions/tool-cache": "^2.0.2",
|
||||||
"@octokit/core": "^6.1.3",
|
"@octokit/core": "^6.1.4",
|
||||||
"@octokit/plugin-paginate-rest": "^11.4.0",
|
"@octokit/plugin-paginate-rest": "^11.4.3",
|
||||||
"@octokit/plugin-rest-endpoint-methods": "^13.3.0",
|
"@octokit/plugin-rest-endpoint-methods": "^13.3.1",
|
||||||
"undici": "^6.19.8",
|
"undici": "^7.5.0",
|
||||||
"smol-toml": "^1.3.1"
|
"smol-toml": "^1.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "1.9.4",
|
"@biomejs/biome": "1.9.4",
|
||||||
"@types/node": "^22.12.0",
|
"@types/node": "^22.13.10",
|
||||||
"@types/semver": "^7.5.8",
|
"@types/semver": "^7.5.8",
|
||||||
"@vercel/ncc": "^0.38.3",
|
"@vercel/ncc": "^0.38.3",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"ts-jest": "^29.2.5",
|
"ts-jest": "^29.2.6",
|
||||||
"typescript": "^5.7.3"
|
"typescript": "^5.8.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,107 @@
|
|||||||
// AUTOGENERATED_DO_NOT_EDIT
|
// AUTOGENERATED_DO_NOT_EDIT
|
||||||
export const KNOWN_CHECKSUMS: { [key: string]: string } = {
|
export const KNOWN_CHECKSUMS: { [key: string]: string } = {
|
||||||
|
"aarch64-apple-darwin-0.6.6":
|
||||||
|
"d0fb047593122746c7529960f8efd5d7d10d2cb230302f71158e9765ad37727b",
|
||||||
|
"aarch64-pc-windows-msvc-0.6.6":
|
||||||
|
"6bb6d5a28e8a181fd5b0046778b97a75c3ec1c5117a058e1961e0f6df9ee2925",
|
||||||
|
"aarch64-unknown-linux-gnu-0.6.6":
|
||||||
|
"37a543598cdb7d8fc9b74e6b1fe1fdf8b9a279c6137c7ff8396a88f69ec7a43c",
|
||||||
|
"aarch64-unknown-linux-musl-0.6.6":
|
||||||
|
"1f11c12ccfb693a6928c097c6b2ae3caa8e073744661795a6c96c5ffa9358f24",
|
||||||
|
"arm-unknown-linux-musleabihf-0.6.6":
|
||||||
|
"6cbd68ca3cef4a9a2f0f5c53492d47596494c82df8f1017df144c37a39d13294",
|
||||||
|
"armv7-unknown-linux-gnueabihf-0.6.6":
|
||||||
|
"97c71ad1f443182b3594ef671624e23f8f7960cb84badbbbda38598457845f83",
|
||||||
|
"armv7-unknown-linux-musleabihf-0.6.6":
|
||||||
|
"bee1941d59c8703fa143e186db1f335324b1922f38201cd52bfdfe1b29062987",
|
||||||
|
"i686-pc-windows-msvc-0.6.6":
|
||||||
|
"2231f24bfe6b8729427a5ecccf0339c5feacf96309f62da51c5077f4cfe8954e",
|
||||||
|
"i686-unknown-linux-gnu-0.6.6":
|
||||||
|
"16667b429a57ee917b10093e81e52956e4c19f9fd73d05dd87c3cbc27779ac7e",
|
||||||
|
"i686-unknown-linux-musl-0.6.6":
|
||||||
|
"96fab088198ef251facccfdf3850139720249f673c937cf6cc21642f54f19894",
|
||||||
|
"powerpc64-unknown-linux-gnu-0.6.6":
|
||||||
|
"564d1207601cdb3a3684f7d3ac31bf40436ac6912df7de340216b30a2e94ca44",
|
||||||
|
"powerpc64le-unknown-linux-gnu-0.6.6":
|
||||||
|
"c2aa7d2686b1f5943a562488153141f9690acfa59d6fdb01a2272019dc4f94dd",
|
||||||
|
"s390x-unknown-linux-gnu-0.6.6":
|
||||||
|
"fe7a1425620325b6063bf8b5c008846bc0ef7c867e7a155049adf5d9c356db2d",
|
||||||
|
"x86_64-apple-darwin-0.6.6":
|
||||||
|
"c584b85e81df8d8ae8142876b80ae977e41c6bba14c57cc1061b6a87f361ad2e",
|
||||||
|
"x86_64-pc-windows-msvc-0.6.6":
|
||||||
|
"72d7866fac1a9f5e895ec632a0b8a98ea59627cb2c3b8e68af4fec899ee4b43b",
|
||||||
|
"x86_64-unknown-linux-gnu-0.6.6":
|
||||||
|
"4c3426c4919d9f44633ab9884827fa1ad64ad8d993516d636eb955a3835c4a8c",
|
||||||
|
"x86_64-unknown-linux-musl-0.6.6":
|
||||||
|
"bcc30541d54156d434a74d6070a44c333263edc65ea423d3039cb8112ed78c95",
|
||||||
|
"aarch64-apple-darwin-0.6.5":
|
||||||
|
"4952c6275778fbc7e5cf6b5739ffd944c47063134d6ea43a7037b0a028ef771e",
|
||||||
|
"aarch64-pc-windows-msvc-0.6.5":
|
||||||
|
"2af20abb3a289d57ae6a8f34ec9f6a60276947fdfb80de6d7304a1b49242cc64",
|
||||||
|
"aarch64-unknown-linux-gnu-0.6.5":
|
||||||
|
"ebf0707ab949b948ad14250ed93f968fec954e20d12ce6bc9fce74b0ce7e4900",
|
||||||
|
"aarch64-unknown-linux-musl-0.6.5":
|
||||||
|
"8e3eae9802c443f87f7519518c9900a323e95a54e47f89433452287d9d2e9d13",
|
||||||
|
"arm-unknown-linux-musleabihf-0.6.5":
|
||||||
|
"85caa3c874d98ae5cb981d13e127602c2063d69874b8fd18ca0d1083805a04b1",
|
||||||
|
"armv7-unknown-linux-gnueabihf-0.6.5":
|
||||||
|
"184051f8cceccaafee109787f5c8f5788ed6e619ad65edc98779a96b3a8782c2",
|
||||||
|
"armv7-unknown-linux-musleabihf-0.6.5":
|
||||||
|
"86c7f7dcd0197c131ecce8f3c34807470753c145e1570cec5f0836e34481af9d",
|
||||||
|
"i686-pc-windows-msvc-0.6.5":
|
||||||
|
"65dac0af6d2f143736e83fe17f5b52546686fa000fb2f1f89dbb26d1c96183db",
|
||||||
|
"i686-unknown-linux-gnu-0.6.5":
|
||||||
|
"beb346c6a869d6e742de8a797fa7c2a489c6cbc3127387e08a9106a944f56dc2",
|
||||||
|
"i686-unknown-linux-musl-0.6.5":
|
||||||
|
"5a254d1f0dc92e00c3f2a9c97f27a1adb1261f841e08f1ed3e4f03dcf45b7c12",
|
||||||
|
"powerpc64-unknown-linux-gnu-0.6.5":
|
||||||
|
"1f8fd8dde91258380dbcd4b9fc65f15a7dc3af6cfffefb9a4f99d32c4c67436d",
|
||||||
|
"powerpc64le-unknown-linux-gnu-0.6.5":
|
||||||
|
"d2b6e19ca7ecd8d7e0d1ddced965aa91a3c822d07a7f7657743945245c1f627a",
|
||||||
|
"s390x-unknown-linux-gnu-0.6.5":
|
||||||
|
"43a3e39f19fd5d098bb8c896b6c0f99a146253c271d78409cf31c2f55f2763d0",
|
||||||
|
"x86_64-apple-darwin-0.6.5":
|
||||||
|
"d336d862694e1c36afea55eb15f5df02aa77c04a168b781df515d641e23285f0",
|
||||||
|
"x86_64-pc-windows-msvc-0.6.5":
|
||||||
|
"a3e9f0913189c38b804bf6bb3d348af305a8ceabc690be92b6e111245a821640",
|
||||||
|
"x86_64-unknown-linux-gnu-0.6.5":
|
||||||
|
"8fc9895719a1291ecd193cb86f9282ff3649cef797d29eacc74c4f573aab1e2f",
|
||||||
|
"x86_64-unknown-linux-musl-0.6.5":
|
||||||
|
"ed4830b7b6293b9413618970b84dad7bc9245f4a7dfa741f943afdb647c196c4",
|
||||||
|
"aarch64-apple-darwin-0.6.4":
|
||||||
|
"1497302e13b33188d6ea4b255520e72f4b9ca9a2c5e9ad30b7bc919e5a0b1071",
|
||||||
|
"aarch64-pc-windows-msvc-0.6.4":
|
||||||
|
"92d18fec3da41dd759ff5c05074445def51d30a325cee0e94d4539fbaabae795",
|
||||||
|
"aarch64-unknown-linux-gnu-0.6.4":
|
||||||
|
"4c78928aa92170bb1c68245da3a5ce0c051e185b7cb6356c33909f94f033ae84",
|
||||||
|
"aarch64-unknown-linux-musl-0.6.4":
|
||||||
|
"fec5583459f22a26eab91aa32cb922cdb7bd72826b3e23c6c164c3814126f462",
|
||||||
|
"arm-unknown-linux-musleabihf-0.6.4":
|
||||||
|
"e9e1ef68e6b316b47a5ee48a48e5b28898a351fb588f0944666b004fa5baed2c",
|
||||||
|
"armv7-unknown-linux-gnueabihf-0.6.4":
|
||||||
|
"65df00771f9d4928853ecb5a627745edc829af3ee1339171c2f53f2afa935323",
|
||||||
|
"armv7-unknown-linux-musleabihf-0.6.4":
|
||||||
|
"f963d53f99ddcf5281b79545cf905dc66a6b25a4a5dcdefaecefd42a63710b88",
|
||||||
|
"i686-pc-windows-msvc-0.6.4":
|
||||||
|
"ecdb47abb3fc29511a2adc9df0407fe604371c6518cd2861235c8aa178928941",
|
||||||
|
"i686-unknown-linux-gnu-0.6.4":
|
||||||
|
"7e8c9c6d1b1c9f43eb50a634742f03c34d87a94d8155d2602f1f23c2c6cbfc22",
|
||||||
|
"i686-unknown-linux-musl-0.6.4":
|
||||||
|
"f3985d87a510c1fded1c8de25c6e70bcc2039e587f17efc5ab328b20c956b224",
|
||||||
|
"powerpc64-unknown-linux-gnu-0.6.4":
|
||||||
|
"81d3430b221d57070af86cdd868d766316266515fa49aa61c660ff1d61e5fa78",
|
||||||
|
"powerpc64le-unknown-linux-gnu-0.6.4":
|
||||||
|
"c8aba58a91854645ee41deeb9b0223c5218231c4d03b5b9cbe17f2ddd2f62358",
|
||||||
|
"s390x-unknown-linux-gnu-0.6.4":
|
||||||
|
"a73197566e1b706a6ca0427556b6d4732185eb6d621f0730d70c165ee5b1395e",
|
||||||
|
"x86_64-apple-darwin-0.6.4":
|
||||||
|
"af09c768697edd009ac1af66eaea35bbd29f145bd9c2c02b8f93309e23670b4f",
|
||||||
|
"x86_64-pc-windows-msvc-0.6.4":
|
||||||
|
"4526b772f5d9b0afdd61a780ab649730d125e0a56348daa7463ee44c0c5e5762",
|
||||||
|
"x86_64-unknown-linux-gnu-0.6.4":
|
||||||
|
"ed38cde84d822c1878c484e560e28c157a1c025204151efa60aa46831500f4d6",
|
||||||
|
"x86_64-unknown-linux-musl-0.6.4":
|
||||||
|
"1b04edff73d7d7f837b9d6a36a556fe2feb59cc9f747c4fcd01f76c886dd3579",
|
||||||
"aarch64-apple-darwin-0.6.3":
|
"aarch64-apple-darwin-0.6.3":
|
||||||
"51b84818bbfe08358a298ba3389c6d448d3ddc0f2601a2d63c5a62cb7b704062",
|
"51b84818bbfe08358a298ba3389c6d448d3ddc0f2601a2d63c5a62cb7b704062",
|
||||||
"aarch64-pc-windows-msvc-0.6.3":
|
"aarch64-pc-windows-msvc-0.6.3":
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
cacheLocalPath,
|
cacheLocalPath,
|
||||||
checkSum,
|
checkSum,
|
||||||
|
ignoreEmptyWorkdir,
|
||||||
enableCache,
|
enableCache,
|
||||||
githubToken,
|
githubToken,
|
||||||
pyProjectFile,
|
pyProjectFile,
|
||||||
@@ -30,6 +31,7 @@ import fs from "node:fs";
|
|||||||
import { getUvVersionFromConfigFile } from "./utils/pyproject";
|
import { getUvVersionFromConfigFile } from "./utils/pyproject";
|
||||||
|
|
||||||
async function run(): Promise<void> {
|
async function run(): Promise<void> {
|
||||||
|
detectEmptyWorkdir();
|
||||||
const platform = await getPlatform();
|
const platform = await getPlatform();
|
||||||
const arch = getArch();
|
const arch = getArch();
|
||||||
|
|
||||||
@@ -61,6 +63,20 @@ async function run(): Promise<void> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function detectEmptyWorkdir(): void {
|
||||||
|
if (fs.readdirSync(".").length === 0) {
|
||||||
|
if (ignoreEmptyWorkdir) {
|
||||||
|
core.info(
|
||||||
|
"Empty workdir detected. Ignoring because ignore-empty-workdir is enabled",
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
core.warning(
|
||||||
|
"Empty workdir detected. This may cause unexpected behavior. You can enable ignore-empty-workdir to mute this warning.",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async function setupUv(
|
async function setupUv(
|
||||||
platform: Platform,
|
platform: Platform,
|
||||||
arch: Architecture,
|
arch: Architecture,
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ export const cacheDependencyGlob = core.getInput("cache-dependency-glob");
|
|||||||
export const pruneCache = core.getInput("prune-cache") === "true";
|
export const pruneCache = core.getInput("prune-cache") === "true";
|
||||||
export const ignoreNothingToCache =
|
export const ignoreNothingToCache =
|
||||||
core.getInput("ignore-nothing-to-cache") === "true";
|
core.getInput("ignore-nothing-to-cache") === "true";
|
||||||
|
export const ignoreEmptyWorkdir =
|
||||||
|
core.getInput("ignore-empty-workdir") === "true";
|
||||||
export const toolBinDir = getToolBinDir();
|
export const toolBinDir = getToolBinDir();
|
||||||
export const toolDir = getToolDir();
|
export const toolDir = getToolDir();
|
||||||
export const githubToken = core.getInput("github-token");
|
export const githubToken = core.getInput("github-token");
|
||||||
|
|||||||
Reference in New Issue
Block a user