mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2026-01-11 05:51:42 -07:00
Compare commits
46 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0fe8953f25 | ||
|
|
17560e521b | ||
|
|
9d86fb9606 | ||
|
|
04bb1103fa | ||
|
|
e8303e5fa5 | ||
|
|
f78fdf2ef7 | ||
|
|
fa6e11acb4 | ||
|
|
a5344369ce | ||
|
|
f16dd80db2 | ||
|
|
27b165ba8f | ||
|
|
bcd983bdd2 | ||
|
|
fea91eae77 | ||
|
|
9cb5a68aaf | ||
|
|
82b249279e | ||
|
|
3363d6aa33 | ||
|
|
81d0380e46 | ||
|
|
2c4beafd88 | ||
|
|
57803a1669 | ||
|
|
7c352ee131 | ||
|
|
1b8d29ad11 | ||
|
|
75091e5206 | ||
|
|
029e36f26a | ||
|
|
d9e30df17d | ||
|
|
c9d6829953 | ||
|
|
929b771549 | ||
|
|
9d50e1392c | ||
|
|
93764e7048 | ||
|
|
de40b1f21f | ||
|
|
948e4a4fb8 | ||
|
|
0b71140c9b | ||
|
|
5966a43d57 | ||
|
|
23bc8e29ed | ||
|
|
a4133a9690 | ||
|
|
a4d1256d3c | ||
|
|
245b181622 | ||
|
|
fda8a7386a | ||
|
|
27828f1042 | ||
|
|
241ff10e9a | ||
|
|
85f47e79c9 | ||
|
|
61ed42d89c | ||
|
|
d6db4b2224 | ||
|
|
671eb8d192 | ||
|
|
8127eb81bd | ||
|
|
ec769f0156 | ||
|
|
a8c07a7430 | ||
|
|
b22f54b51e |
16
.devcontainer/devcontainer.json
Normal file
16
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||||
|
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
|
||||||
|
{
|
||||||
|
"name": "Node.js & TypeScript",
|
||||||
|
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
|
||||||
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
"extensions": [
|
||||||
|
"GitHub.vscode-github-actions",
|
||||||
|
"esbenp.prettier-vscode",
|
||||||
|
"mads-hartmann.bash-ide-vscode",
|
||||||
|
"ms-azuretools.vscode-containers"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
10
.github/workflows/npm-updates.yml
vendored
Normal file
10
.github/workflows/npm-updates.yml
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
name: NPM Updates
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
npm-updates:
|
||||||
|
uses: dawidd6/reusable-workflows/.github/workflows/npm-updates.yml@master
|
||||||
|
secrets:
|
||||||
|
personal_access_token: ${{secrets.TOKEN}}
|
||||||
78
.github/workflows/test.yml
vendored
78
.github/workflows/test.yml
vendored
@@ -5,68 +5,32 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
remote:
|
remote:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
SSH_PRIVATE_KEY: |
|
SSH_PRIVATE_KEY: |-
|
||||||
-----BEGIN OPENSSH PRIVATE KEY-----
|
-----BEGIN OPENSSH PRIVATE KEY-----
|
||||||
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
|
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
|
||||||
NhAAAAAwEAAQAAAYEAw1mPRVbmzA1LGWbk9rk9lNxC34M7ZlCHi/OAgglMtFfP6f95hoNA
|
QyNTUxOQAAACDOZViU5W+blYnk79GYr7IdVOfXRl69cgwmyM3s3jghdgAAAJCwXk9osF5P
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lCExMaq1F+8TB/r
|
|
||||||
ClnveBFFUKByahd/0MeKqWnvHvsm25EOu7IuNbQ5+MgaNS5ugQAAAAwQD1BaD/r4rUhz8Z
|
|
||||||
bJzuqMJ+5c5BdS8m+I5yEYtXWM9LE4y1KuKZxl9kdWlC/YoceVh7cmhr2l0WWELLWpQUu0
|
|
||||||
qx9Pd4PDU3FIyBw9hrNAa+FVQmFMHPh69bXtC7c9yPqA8aUXwUCUAJaXBbTb8DmZsy79LG
|
|
||||||
ysdl5xbELZlcW0cCv1RLeorxdQGjqtLTOf6aHqtqQmNIwEm07rJzU2TVMQVnlQ2Dqnfp8X
|
|
||||||
qzShem8cdVWud5OJiC8ddZFJTVkZkpsjEAAADBAMwaMpJq+wNz4k6X8EUm056IoJUuHgL5
|
|
||||||
5z1bwpQcvKI+6QmoytK6QZD1aa77Qx4rEOS8bOmdeB4sTMjh88HR2x1XsXU8qi66sxh5Wv
|
|
||||||
dkiRyb5m8cxvdMywZJ9WuSD9+cI4lR5PQaKUMJdDyB42pBrHansXoS/zW1/j3Oecv0h1lV
|
|
||||||
hSK/8idmd/gOAkcRj8uf0FvyaftILlfSeyPQM60fMgW2rrEDBiIZ2cA7yduoQB08T0lzsA
|
|
||||||
8uPJFry1jRnJ7y8wAAAA5kYXdpZGQ2QFN1bGFjbwECAw==
|
|
||||||
-----END OPENSSH PRIVATE KEY-----
|
-----END OPENSSH PRIVATE KEY-----
|
||||||
SSH_PUBLIC_KEY: |
|
SSH_PUBLIC_KEY: |-
|
||||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDDWY9FVubMDUsZZuT2uT2U3ELfgztmUIeL84CCCUy0V8/p/3mGg0CZKCCiaVOBA3KyTX+RN+FW4i9UNWuhNXqLLEzpvR4E7BIyCVmfrQ89kJfMX5Wy1+sxQflV09u5qFVNbjneDVkCHAD4Q8MEwSnZXPNtmBft0I7RadisiteSd+In6w1gStWb1apjnxrtqiJjh4KBEP/0UYzIahByua4c9Hq0oI3TMihUqX/CPNYfaNFSFFtlt/tXvZU36VbAnJyIftX5KXhhmKhv8mZbQUg9xZySg7X6EtQBDQulJqgLLPu5r4bTCBGh4sfdzfbJBWMAcV6xjNDKaGf8pVkFE990jYePOqP5ydi/J/LS3dHz8rqt261FJhpCip8VoXGha2Xn0H+/n8gQTuzRmzLYHlknhJt1izWUDvhRQaf5eNdWivtNPG8NYFXzeekcUYE6GfeCpItFxnwktvspjkIaFunLfPvLkkNjSViJlpZdNRCYg59fnhyxO7jT7IKeUKNEdoM=
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM5lWJTlb5uVieTv0Zivsh1U59dGXr1yDCbIzezeOCF2 noname
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
- name: Setup remote
|
- name: Setup remote
|
||||||
run: |
|
run: |
|
||||||
echo "$SSH_PUBLIC_KEY" | sudo tee /etc/ssh/authorized_keys
|
mkdir "$HOME/.ssh"
|
||||||
sudo tee /etc/ssh/sshd_config <<EOF
|
echo "$SSH_PUBLIC_KEY" | tee "$HOME/.ssh/authorized_keys"
|
||||||
PasswordAuthentication no
|
chmod 600 "$HOME/.ssh/authorized_keys"
|
||||||
PubkeyAuthentication yes
|
|
||||||
AuthorizedKeysFile /etc/ssh/authorized_keys
|
|
||||||
PermitRootLogin no
|
|
||||||
Subsystem sftp /usr/lib/openssh/sftp-server
|
|
||||||
EOF
|
|
||||||
sudo systemctl restart sshd
|
|
||||||
echo 'SSH_KNOWN_HOSTS<<EOF' >> $GITHUB_ENV
|
echo 'SSH_KNOWN_HOSTS<<EOF' >> $GITHUB_ENV
|
||||||
echo $(ssh-keyscan localhost) >> $GITHUB_ENV
|
echo $(ssh-keyscan localhost 2>/dev/null) >> $GITHUB_ENV
|
||||||
echo 'EOF' >> $GITHUB_ENV
|
echo 'EOF' >> $GITHUB_ENV
|
||||||
- name: With everything
|
- name: With everything
|
||||||
uses: ./
|
uses: ./
|
||||||
@@ -78,7 +42,7 @@ jobs:
|
|||||||
configuration: |
|
configuration: |
|
||||||
[defaults]
|
[defaults]
|
||||||
callbacks_enabled = ansible.posix.profile_tasks, ansible.posix.timer
|
callbacks_enabled = ansible.posix.profile_tasks, ansible.posix.timer
|
||||||
stdout_callback = yaml
|
stdout_callback = debug
|
||||||
nocows = false
|
nocows = false
|
||||||
vault_password: test
|
vault_password: test
|
||||||
requirements: requirements.yml
|
requirements: requirements.yml
|
||||||
@@ -86,6 +50,7 @@ jobs:
|
|||||||
[all]
|
[all]
|
||||||
localhost
|
localhost
|
||||||
options: |
|
options: |
|
||||||
|
-vv
|
||||||
-e docker_image=docker_url
|
-e docker_image=docker_url
|
||||||
-e docker_username=user
|
-e docker_username=user
|
||||||
-e docker_password=pass
|
-e docker_password=pass
|
||||||
@@ -96,7 +61,14 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
- name: With check mode
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
playbook: playbook.yml
|
||||||
|
directory: test
|
||||||
|
check_mode: true
|
||||||
|
options: --inventory hosts
|
||||||
- name: With custom ansible.cfg
|
- name: With custom ansible.cfg
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
@@ -105,7 +77,7 @@ jobs:
|
|||||||
configuration: |
|
configuration: |
|
||||||
[defaults]
|
[defaults]
|
||||||
callbacks_enabled = ansible.posix.profile_tasks, ansible.posix.timer
|
callbacks_enabled = ansible.posix.profile_tasks, ansible.posix.timer
|
||||||
stdout_callback = yaml
|
stdout_callback = debug
|
||||||
nocows = false
|
nocows = false
|
||||||
options: --inventory hosts
|
options: --inventory hosts
|
||||||
- name: With requirements
|
- name: With requirements
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ Should work on any OS, if `ansible-playbook` command is available in `PATH`.
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Run playbook
|
- name: Run playbook
|
||||||
uses: dawidd6/action-ansible-playbook@v2
|
uses: dawidd6/action-ansible-playbook@<REF>
|
||||||
with:
|
with:
|
||||||
# Required, playbook filepath
|
# Required, playbook filepath
|
||||||
playbook: deploy.yml
|
playbook: deploy.yml
|
||||||
|
|||||||
@@ -34,9 +34,15 @@ inputs:
|
|||||||
sudo:
|
sudo:
|
||||||
description: Set to "true" if root is required for running your playbook
|
description: Set to "true" if root is required for running your playbook
|
||||||
required: false
|
required: false
|
||||||
|
default: false
|
||||||
no_color:
|
no_color:
|
||||||
description: Set to "true" if the Ansible output should not include colors (defaults to "false")
|
description: Set to "true" if the Ansible output should not include colors (defaults to "false")
|
||||||
required: false
|
required: false
|
||||||
|
default: false
|
||||||
|
check_mode:
|
||||||
|
description: Set to "true" to enable check (dry-run) mode
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
outputs:
|
outputs:
|
||||||
output:
|
output:
|
||||||
description: The captured output of both stdout and stderr from the Ansible Playbook run
|
description: The captured output of both stdout and stderr from the Ansible Playbook run
|
||||||
|
|||||||
11
main.js
11
main.js
@@ -15,8 +15,9 @@ async function main() {
|
|||||||
const vaultPassword = core.getInput("vault_password")
|
const vaultPassword = core.getInput("vault_password")
|
||||||
const knownHosts = core.getInput("known_hosts")
|
const knownHosts = core.getInput("known_hosts")
|
||||||
const options = core.getInput("options")
|
const options = core.getInput("options")
|
||||||
const sudo = core.getInput("sudo")
|
const sudo = core.getBooleanInput("sudo")
|
||||||
const noColor = core.getInput("no_color")
|
const noColor = core.getBooleanInput("no_color")
|
||||||
|
const checkMode = core.getBooleanInput("check_mode")
|
||||||
const fileMode = 0600
|
const fileMode = 0600
|
||||||
|
|
||||||
let cmd = ["ansible-playbook", playbook]
|
let cmd = ["ansible-playbook", playbook]
|
||||||
@@ -62,7 +63,7 @@ async function main() {
|
|||||||
const inventoryFile = ".ansible_inventory"
|
const inventoryFile = ".ansible_inventory"
|
||||||
fs.writeFileSync(inventoryFile, inventory, { mode: fileMode })
|
fs.writeFileSync(inventoryFile, inventory, { mode: fileMode })
|
||||||
core.saveState("inventoryFile", inventoryFile)
|
core.saveState("inventoryFile", inventoryFile)
|
||||||
cmd.push("--inventory-file")
|
cmd.push("--inventory")
|
||||||
cmd.push(inventoryFile)
|
cmd.push(inventoryFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -94,6 +95,10 @@ async function main() {
|
|||||||
process.env.ANSIBLE_FORCE_COLOR = "True"
|
process.env.ANSIBLE_FORCE_COLOR = "True"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (checkMode) {
|
||||||
|
cmd.push("--check")
|
||||||
|
}
|
||||||
|
|
||||||
let output = ""
|
let output = ""
|
||||||
await exec.exec(cmd.join(' '), null, {
|
await exec.exec(cmd.join(' '), null, {
|
||||||
listeners: {
|
listeners: {
|
||||||
|
|||||||
1
node_modules/.bin/uuid
generated
vendored
1
node_modules/.bin/uuid
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../uuid/dist/bin/uuid
|
|
||||||
1
node_modules/.bin/yaml
generated
vendored
Symbolic link
1
node_modules/.bin/yaml
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../yaml/bin.mjs
|
||||||
74
node_modules/.package-lock.json
generated
vendored
74
node_modules/.package-lock.json
generated
vendored
@@ -4,40 +4,45 @@
|
|||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"node_modules/@actions/core": {
|
"node_modules/@actions/core": {
|
||||||
"version": "1.10.1",
|
"version": "2.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.1.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/core/-/core-2.0.2.tgz",
|
||||||
"integrity": "sha512-3lBR9EDAY+iYIpTnTIXmWcNbX3T2kCkAEQGIQx4NVQ0575nk2k3GRZDTPQG+vVtS2izSLmINlxXf0uLtnrTP+g==",
|
"integrity": "sha512-Ast1V7yHbGAhplAsuVlnb/5J8Mtr/Zl6byPPL+Qjq3lmfIgWF1ak1iYfF/079cRERiuTALTXkSuEUdZeDCfGtA==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/http-client": "^2.0.1",
|
"@actions/exec": "^2.0.0",
|
||||||
"uuid": "^8.3.2"
|
"@actions/http-client": "^3.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/exec": {
|
"node_modules/@actions/exec": {
|
||||||
"version": "1.1.1",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/exec/-/exec-2.0.0.tgz",
|
||||||
"integrity": "sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==",
|
"integrity": "sha512-k8ngrX2voJ/RIN6r9xB82NVqKpnMRtxDoiO+g3olkIUpQNqjArXrCQceduQZCQj3P3xm32pChRLqRrtXTlqhIw==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/io": "^1.0.1"
|
"@actions/io": "^2.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/http-client": {
|
"node_modules/@actions/http-client": {
|
||||||
"version": "2.2.0",
|
"version": "3.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-3.0.1.tgz",
|
||||||
"integrity": "sha512-q+epW0trjVUUHboliPb4UF9g2msf+w61b32tAkFEwL/IwP0DQWgbCMM0Hbe3e3WXSKz5VcUXbzJQgy8Hkra/Lg==",
|
"integrity": "sha512-SbGS8c/vySbNO3kjFgSW77n83C4MQx/Yoe+b1hAdpuvfHxnkHzDq2pWljUpAA56Si1Gae/7zjeZsV0CYjmLo/w==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tunnel": "^0.0.6",
|
"tunnel": "^0.0.6",
|
||||||
"undici": "^5.25.4"
|
"undici": "^5.28.5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/io": {
|
"node_modules/@actions/io": {
|
||||||
"version": "1.1.3",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/io/-/io-2.0.0.tgz",
|
||||||
"integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q=="
|
"integrity": "sha512-Jv33IN09XLO+0HS79aaODsvIRyduiF7NY/F6LYeK5oeUmrsz7aFdRphQjFoESF4jS7lMauDOttKALcpapVDIAg==",
|
||||||
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@fastify/busboy": {
|
"node_modules/@fastify/busboy": {
|
||||||
"version": "2.1.0",
|
"version": "2.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz",
|
||||||
"integrity": "sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==",
|
"integrity": "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==",
|
||||||
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14"
|
"node": ">=14"
|
||||||
}
|
}
|
||||||
@@ -46,14 +51,16 @@
|
|||||||
"version": "0.0.6",
|
"version": "0.0.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==",
|
||||||
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.6.11 <=0.7.0 || >=0.7.3"
|
"node": ">=0.6.11 <=0.7.0 || >=0.7.3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/undici": {
|
"node_modules/undici": {
|
||||||
"version": "5.28.2",
|
"version": "5.29.0",
|
||||||
"resolved": "https://registry.npmjs.org/undici/-/undici-5.28.2.tgz",
|
"resolved": "https://registry.npmjs.org/undici/-/undici-5.29.0.tgz",
|
||||||
"integrity": "sha512-wh1pHJHnUeQV5Xa8/kyQhO7WFa8M34l026L5P/+2TYiakvGy5Rdc8jWZVyG7ieht/0WgJLEd3kcU5gKx+6GC8w==",
|
"integrity": "sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fastify/busboy": "^2.0.0"
|
"@fastify/busboy": "^2.0.0"
|
||||||
},
|
},
|
||||||
@@ -61,20 +68,19 @@
|
|||||||
"node": ">=14.0"
|
"node": ">=14.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/uuid": {
|
|
||||||
"version": "8.3.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
|
|
||||||
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
|
|
||||||
"bin": {
|
|
||||||
"uuid": "dist/bin/uuid"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/yaml": {
|
"node_modules/yaml": {
|
||||||
"version": "2.3.4",
|
"version": "2.8.2",
|
||||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.4.tgz",
|
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz",
|
||||||
"integrity": "sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==",
|
"integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==",
|
||||||
|
"license": "ISC",
|
||||||
|
"bin": {
|
||||||
|
"yaml": "bin.mjs"
|
||||||
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 14"
|
"node": ">= 14.6"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/eemeli"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
153
node_modules/@actions/core/README.md
generated
vendored
153
node_modules/@actions/core/README.md
generated
vendored
@@ -16,7 +16,7 @@ import * as core from '@actions/core';
|
|||||||
|
|
||||||
#### Inputs/Outputs
|
#### Inputs/Outputs
|
||||||
|
|
||||||
Action inputs can be read with `getInput` which returns a `string` or `getBooleanInput` which parses a boolean based on the [yaml 1.2 specification](https://yaml.org/spec/1.2/spec.html#id2804923). If `required` set to be false, the input should have a default value in `action.yml`.
|
Action inputs can be read with `getInput` which returns a `string` or `getBooleanInput` which parses a boolean based on the [yaml 1.2 specification](https://yaml.org/spec/1.2/spec.html#id2804923). If `required` is set to be false, the input should have a default value in `action.yml`.
|
||||||
|
|
||||||
Outputs can be set with `setOutput` which makes them available to be mapped into inputs of other actions to ensure they are decoupled.
|
Outputs can be set with `setOutput` which makes them available to be mapped into inputs of other actions to ensure they are decoupled.
|
||||||
|
|
||||||
@@ -333,3 +333,154 @@ toPlatformPath('/foo/bar') // => \foo\bar
|
|||||||
// On a Linux runner.
|
// On a Linux runner.
|
||||||
toPlatformPath('\\foo\\bar') // => /foo/bar
|
toPlatformPath('\\foo\\bar') // => /foo/bar
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Platform helper
|
||||||
|
|
||||||
|
Provides shorthands for getting information about platform action is running on.
|
||||||
|
|
||||||
|
```js
|
||||||
|
import { platform } from '@actions/core'
|
||||||
|
|
||||||
|
/* equals to a call of os.platform() */
|
||||||
|
platform.platform // 'win32' | 'darwin' | 'linux' | 'freebsd' | 'openbsd' | 'android' | 'cygwin' | 'sunos'
|
||||||
|
|
||||||
|
/* equals to a call of os.arch() */
|
||||||
|
platform.arch // 'x64' | 'arm' | 'arm64' | 'ia32' | 'mips' | 'mipsel' | 'ppc' | 'ppc64' | 'riscv64' | 's390' | 's390x'
|
||||||
|
|
||||||
|
/* common shorthands for platform-specific logic */
|
||||||
|
platform.isWindows // true
|
||||||
|
platform.isMacOS // false
|
||||||
|
platform.isLinux // false
|
||||||
|
|
||||||
|
/* run platform-specific script to get more details about the exact platform, works on Windows, MacOS and Linux */
|
||||||
|
const {
|
||||||
|
name, // Microsoft Windows 11 Enterprise
|
||||||
|
version, // 10.0.22621
|
||||||
|
} = await platform.getDetails()
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Populating job summary
|
||||||
|
|
||||||
|
These methods can be used to populate a [job summary](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary). A job summary is a buffer that can be added to throughout your job via `core.summary` methods.
|
||||||
|
|
||||||
|
Job summaries when complete must be written to the summary buffer file via the `core.summary.write()` method.
|
||||||
|
|
||||||
|
All methods except `addRaw()` utilize the `addRaw()` method to append to the buffer, followed by an EOL using the `addEOL()` method.
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
|
||||||
|
// Write raw text, optionally add an EOL after the content, defaults to false
|
||||||
|
core.summary.addRaw('Some content here :speech_balloon:', true)
|
||||||
|
// Output: Some content here :speech_balloon:\n
|
||||||
|
|
||||||
|
// Add an operating system-specific end-of-line marker
|
||||||
|
core.summary.addEOL()
|
||||||
|
// Output (POSIX): \n
|
||||||
|
// Output (Windows): \r\n
|
||||||
|
|
||||||
|
// Add a codeblock with an optional language for syntax highlighting
|
||||||
|
core.summary.addCodeBlock('console.log(\'hello world\')', 'javascript')
|
||||||
|
// Output: <pre lang="javascript"><code>console.log('hello world')</code></pre>
|
||||||
|
|
||||||
|
// Add a list, second parameter indicates if list is ordered, defaults to false
|
||||||
|
core.summary.addList(['item1','item2','item3'], true)
|
||||||
|
// Output: <ol><li>item1</li><li>item2</li><li>item3</li></ol>
|
||||||
|
|
||||||
|
// Add a collapsible HTML details element
|
||||||
|
core.summary.addDetails('Label', 'Some detail that will be collapsed')
|
||||||
|
// Output: <details><summary>Label</summary>Some detail that will be collapsed</details>
|
||||||
|
|
||||||
|
// Add an image, image options parameter is optional, you can supply one of or both width and height in pixels
|
||||||
|
core.summary.addImage('example.png', 'alt description of img', {width: '100', height: '100'})
|
||||||
|
// Output: <img src="example.png" alt="alt description of img" width="100" height="100">
|
||||||
|
|
||||||
|
// Add an HTML section heading element, optionally pass a level that translates to 'hX' ie. h2. Defaults to h1
|
||||||
|
core.summary.addHeading('My Heading', '2')
|
||||||
|
// Output: <h2>My Heading</h2>
|
||||||
|
|
||||||
|
// Add an HTML thematic break <hr>
|
||||||
|
core.summary.addSeparator()
|
||||||
|
// Output: <hr>
|
||||||
|
|
||||||
|
// Add an HTML line break <br>
|
||||||
|
core.summary.addBreak()
|
||||||
|
// Output: <br>
|
||||||
|
|
||||||
|
// Add an HTML blockquote with an optional citation
|
||||||
|
core.summary.addQuote('To be or not to be', 'Shakespeare')
|
||||||
|
// Output: <blockquote cite="Shakespeare">To be or not to be</blockquote>
|
||||||
|
|
||||||
|
// Add an HTML anchor tag
|
||||||
|
core.summary.addLink('click here', 'https://github.com')
|
||||||
|
// Output: <a href="https://github.com">click here</a>
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Tables are added using the `addTable()` method, and an array of `SummaryTableRow`.
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
|
||||||
|
export type SummaryTableRow = (SummaryTableCell | string)[]
|
||||||
|
|
||||||
|
export interface SummaryTableCell {
|
||||||
|
/**
|
||||||
|
* Cell content
|
||||||
|
*/
|
||||||
|
data: string
|
||||||
|
/**
|
||||||
|
* Render cell as header
|
||||||
|
* (optional) default: false
|
||||||
|
*/
|
||||||
|
header?: boolean
|
||||||
|
/**
|
||||||
|
* Number of columns the cell extends
|
||||||
|
* (optional) default: '1'
|
||||||
|
*/
|
||||||
|
colspan?: string
|
||||||
|
/**
|
||||||
|
* Number of rows the cell extends
|
||||||
|
* (optional) default: '1'
|
||||||
|
*/
|
||||||
|
rowspan?: string
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
For example
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
|
||||||
|
const tableData = [
|
||||||
|
{data: 'Header1', header: true},
|
||||||
|
{data: 'Header2', header: true},
|
||||||
|
{data: 'Header3', header: true},
|
||||||
|
{data: 'MyData1'},
|
||||||
|
{data: 'MyData2'},
|
||||||
|
{data: 'MyData3'}
|
||||||
|
]
|
||||||
|
|
||||||
|
// Add an HTML table
|
||||||
|
core.summary.addTable([tableData])
|
||||||
|
// Output: <table><tr><th>Header1</th><th>Header2</th><th>Header3</th></tr><tr></tr><td>MyData1</td><td>MyData2</td><td>MyData3</td></tr></table>
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
In addition to job summary content, there are utility functions for interfacing with the buffer.
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
|
||||||
|
// Empties the summary buffer AND wipes the summary file on disk
|
||||||
|
core.summary.clear()
|
||||||
|
|
||||||
|
// Returns the current summary buffer as a string
|
||||||
|
core.summary.stringify()
|
||||||
|
|
||||||
|
// If the summary buffer is empty
|
||||||
|
core.summary.isEmptyBuffer()
|
||||||
|
|
||||||
|
// Resets the summary buffer without writing to the summary file on disk
|
||||||
|
core.summary.emptyBuffer()
|
||||||
|
|
||||||
|
// Writes text in the buffer to the summary buffer file and empties the buffer, optionally overwriting all existing content in the summary file with buffer contents. Defaults to false.
|
||||||
|
core.summary.write({overwrite: true})
|
||||||
|
```
|
||||||
31
node_modules/@actions/core/lib/command.d.ts
generated
vendored
31
node_modules/@actions/core/lib/command.d.ts
generated
vendored
@@ -2,14 +2,37 @@ export interface CommandProperties {
|
|||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Commands
|
* Issues a command to the GitHub Actions runner
|
||||||
|
*
|
||||||
|
* @param command - The command name to issue
|
||||||
|
* @param properties - Additional properties for the command (key-value pairs)
|
||||||
|
* @param message - The message to include with the command
|
||||||
|
* @remarks
|
||||||
|
* This function outputs a specially formatted string to stdout that the Actions
|
||||||
|
* runner interprets as a command. These commands can control workflow behavior,
|
||||||
|
* set outputs, create annotations, mask values, and more.
|
||||||
*
|
*
|
||||||
* Command Format:
|
* Command Format:
|
||||||
* ::name key=value,key=value::message
|
* ::name key=value,key=value::message
|
||||||
*
|
*
|
||||||
* Examples:
|
* @example
|
||||||
* ::warning::This is the message
|
* ```typescript
|
||||||
* ::set-env name=MY_VAR::some value
|
* // Issue a warning annotation
|
||||||
|
* issueCommand('warning', {}, 'This is a warning message');
|
||||||
|
* // Output: ::warning::This is a warning message
|
||||||
|
*
|
||||||
|
* // Set an environment variable
|
||||||
|
* issueCommand('set-env', { name: 'MY_VAR' }, 'some value');
|
||||||
|
* // Output: ::set-env name=MY_VAR::some value
|
||||||
|
*
|
||||||
|
* // Add a secret mask
|
||||||
|
* issueCommand('add-mask', {}, 'secretValue123');
|
||||||
|
* // Output: ::add-mask::secretValue123
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* @internal
|
||||||
|
* This is an internal utility function that powers the public API functions
|
||||||
|
* such as setSecret, warning, error, and exportVariable.
|
||||||
*/
|
*/
|
||||||
export declare function issueCommand(command: string, properties: CommandProperties, message: any): void;
|
export declare function issueCommand(command: string, properties: CommandProperties, message: any): void;
|
||||||
export declare function issue(name: string, message?: string): void;
|
export declare function issue(name: string, message?: string): void;
|
||||||
|
|||||||
70
node_modules/@actions/core/lib/command.js
generated
vendored
70
node_modules/@actions/core/lib/command.js
generated
vendored
@@ -1,7 +1,11 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||||
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||||
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||||
|
}
|
||||||
|
Object.defineProperty(o, k2, desc);
|
||||||
}) : (function(o, m, k, k2) {
|
}) : (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
o[k2] = m[k];
|
o[k2] = m[k];
|
||||||
@@ -11,36 +15,68 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.issue = exports.issueCommand = void 0;
|
exports.issueCommand = issueCommand;
|
||||||
|
exports.issue = issue;
|
||||||
const os = __importStar(require("os"));
|
const os = __importStar(require("os"));
|
||||||
const utils_1 = require("./utils");
|
const utils_1 = require("./utils");
|
||||||
/**
|
/**
|
||||||
* Commands
|
* Issues a command to the GitHub Actions runner
|
||||||
|
*
|
||||||
|
* @param command - The command name to issue
|
||||||
|
* @param properties - Additional properties for the command (key-value pairs)
|
||||||
|
* @param message - The message to include with the command
|
||||||
|
* @remarks
|
||||||
|
* This function outputs a specially formatted string to stdout that the Actions
|
||||||
|
* runner interprets as a command. These commands can control workflow behavior,
|
||||||
|
* set outputs, create annotations, mask values, and more.
|
||||||
*
|
*
|
||||||
* Command Format:
|
* Command Format:
|
||||||
* ::name key=value,key=value::message
|
* ::name key=value,key=value::message
|
||||||
*
|
*
|
||||||
* Examples:
|
* @example
|
||||||
* ::warning::This is the message
|
* ```typescript
|
||||||
* ::set-env name=MY_VAR::some value
|
* // Issue a warning annotation
|
||||||
|
* issueCommand('warning', {}, 'This is a warning message');
|
||||||
|
* // Output: ::warning::This is a warning message
|
||||||
|
*
|
||||||
|
* // Set an environment variable
|
||||||
|
* issueCommand('set-env', { name: 'MY_VAR' }, 'some value');
|
||||||
|
* // Output: ::set-env name=MY_VAR::some value
|
||||||
|
*
|
||||||
|
* // Add a secret mask
|
||||||
|
* issueCommand('add-mask', {}, 'secretValue123');
|
||||||
|
* // Output: ::add-mask::secretValue123
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* @internal
|
||||||
|
* This is an internal utility function that powers the public API functions
|
||||||
|
* such as setSecret, warning, error, and exportVariable.
|
||||||
*/
|
*/
|
||||||
function issueCommand(command, properties, message) {
|
function issueCommand(command, properties, message) {
|
||||||
const cmd = new Command(command, properties, message);
|
const cmd = new Command(command, properties, message);
|
||||||
process.stdout.write(cmd.toString() + os.EOL);
|
process.stdout.write(cmd.toString() + os.EOL);
|
||||||
}
|
}
|
||||||
exports.issueCommand = issueCommand;
|
|
||||||
function issue(name, message = '') {
|
function issue(name, message = '') {
|
||||||
issueCommand(name, {}, message);
|
issueCommand(name, {}, message);
|
||||||
}
|
}
|
||||||
exports.issue = issue;
|
|
||||||
const CMD_STRING = '::';
|
const CMD_STRING = '::';
|
||||||
class Command {
|
class Command {
|
||||||
constructor(command, properties, message) {
|
constructor(command, properties, message) {
|
||||||
@@ -76,13 +112,13 @@ class Command {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function escapeData(s) {
|
function escapeData(s) {
|
||||||
return utils_1.toCommandValue(s)
|
return (0, utils_1.toCommandValue)(s)
|
||||||
.replace(/%/g, '%25')
|
.replace(/%/g, '%25')
|
||||||
.replace(/\r/g, '%0D')
|
.replace(/\r/g, '%0D')
|
||||||
.replace(/\n/g, '%0A');
|
.replace(/\n/g, '%0A');
|
||||||
}
|
}
|
||||||
function escapeProperty(s) {
|
function escapeProperty(s) {
|
||||||
return utils_1.toCommandValue(s)
|
return (0, utils_1.toCommandValue)(s)
|
||||||
.replace(/%/g, '%25')
|
.replace(/%/g, '%25')
|
||||||
.replace(/\r/g, '%0D')
|
.replace(/\r/g, '%0D')
|
||||||
.replace(/\n/g, '%0A')
|
.replace(/\n/g, '%0A')
|
||||||
|
|||||||
2
node_modules/@actions/core/lib/command.js.map
generated
vendored
2
node_modules/@actions/core/lib/command.js.map
generated
vendored
@@ -1 +1 @@
|
|||||||
{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwB;AACxB,mCAAsC;AAWtC;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,OAAe,EACf,UAA6B,EAC7B,OAAY;IAEZ,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AAC/C,CAAC;AAPD,oCAOC;AAED,SAAgB,KAAK,CAAC,IAAY,EAAE,OAAO,GAAG,EAAE;IAC9C,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACjC,CAAC;AAFD,sBAEC;AAED,MAAM,UAAU,GAAG,IAAI,CAAA;AAEvB,MAAM,OAAO;IAKX,YAAY,OAAe,EAAE,UAA6B,EAAE,OAAe;QACzE,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,iBAAiB,CAAA;SAC5B;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,QAAQ;QACN,IAAI,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA;QAEtC,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IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC;oBACxC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;oBAChC,IAAI,GAAG,EAAE,CAAC;wBACR,IAAI,KAAK,EAAE,CAAC;4BACV,KAAK,GAAG,KAAK,CAAA;wBACf,CAAC;6BAAM,CAAC;4BACN,MAAM,IAAI,GAAG,CAAA;wBACf,CAAC;wBAED,MAAM,IAAI,GAAG,GAAG,IAAI,cAAc,CAAC,GAAG,CAAC,EAAE,CAAA;oBAC3C,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;QAED,MAAM,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAA;QACpD,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED,SAAS,UAAU,CAAC,CAAM;IACxB,OAAO,IAAA,sBAAc,EAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AAC1B,CAAC;AAED,SAAS,cAAc,CAAC,CAAM;IAC5B,OAAO,IAAA,sBAAc,EAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACzB,CAAC"}
|
||||||
31
node_modules/@actions/core/lib/core.d.ts
generated
vendored
31
node_modules/@actions/core/lib/core.d.ts
generated
vendored
@@ -59,7 +59,32 @@ export interface AnnotationProperties {
|
|||||||
export declare function exportVariable(name: string, val: any): void;
|
export declare function exportVariable(name: string, val: any): void;
|
||||||
/**
|
/**
|
||||||
* Registers a secret which will get masked from logs
|
* Registers a secret which will get masked from logs
|
||||||
* @param secret value of the secret
|
*
|
||||||
|
* @param secret - Value of the secret to be masked
|
||||||
|
* @remarks
|
||||||
|
* This function instructs the Actions runner to mask the specified value in any
|
||||||
|
* logs produced during the workflow run. Once registered, the secret value will
|
||||||
|
* be replaced with asterisks (***) whenever it appears in console output, logs,
|
||||||
|
* or error messages.
|
||||||
|
*
|
||||||
|
* This is useful for protecting sensitive information such as:
|
||||||
|
* - API keys
|
||||||
|
* - Access tokens
|
||||||
|
* - Authentication credentials
|
||||||
|
* - URL parameters containing signatures (SAS tokens)
|
||||||
|
*
|
||||||
|
* Note that masking only affects future logs; any previous appearances of the
|
||||||
|
* secret in logs before calling this function will remain unmasked.
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* ```typescript
|
||||||
|
* // Register an API token as a secret
|
||||||
|
* const apiToken = "abc123xyz456";
|
||||||
|
* setSecret(apiToken);
|
||||||
|
*
|
||||||
|
* // Now any logs containing this value will show *** instead
|
||||||
|
* console.log(`Using token: ${apiToken}`); // Outputs: "Using token: ***"
|
||||||
|
* ```
|
||||||
*/
|
*/
|
||||||
export declare function setSecret(secret: string): void;
|
export declare function setSecret(secret: string): void;
|
||||||
/**
|
/**
|
||||||
@@ -196,3 +221,7 @@ export { markdownSummary } from './summary';
|
|||||||
* Path exports
|
* Path exports
|
||||||
*/
|
*/
|
||||||
export { toPosixPath, toWin32Path, toPlatformPath } from './path-utils';
|
export { toPosixPath, toWin32Path, toPlatformPath } from './path-utils';
|
||||||
|
/**
|
||||||
|
* Platform utilities exports
|
||||||
|
*/
|
||||||
|
export * as platform from './platform';
|
||||||
|
|||||||
141
node_modules/@actions/core/lib/core.js
generated
vendored
141
node_modules/@actions/core/lib/core.js
generated
vendored
@@ -1,7 +1,11 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||||
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||||
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||||
|
}
|
||||||
|
Object.defineProperty(o, k2, desc);
|
||||||
}) : (function(o, m, k, k2) {
|
}) : (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
o[k2] = m[k];
|
o[k2] = m[k];
|
||||||
@@ -11,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
return new (P || (P = Promise))(function (resolve, reject) {
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
@@ -28,7 +42,28 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
|
exports.platform = exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = exports.markdownSummary = exports.summary = exports.ExitCode = void 0;
|
||||||
|
exports.exportVariable = exportVariable;
|
||||||
|
exports.setSecret = setSecret;
|
||||||
|
exports.addPath = addPath;
|
||||||
|
exports.getInput = getInput;
|
||||||
|
exports.getMultilineInput = getMultilineInput;
|
||||||
|
exports.getBooleanInput = getBooleanInput;
|
||||||
|
exports.setOutput = setOutput;
|
||||||
|
exports.setCommandEcho = setCommandEcho;
|
||||||
|
exports.setFailed = setFailed;
|
||||||
|
exports.isDebug = isDebug;
|
||||||
|
exports.debug = debug;
|
||||||
|
exports.error = error;
|
||||||
|
exports.warning = warning;
|
||||||
|
exports.notice = notice;
|
||||||
|
exports.info = info;
|
||||||
|
exports.startGroup = startGroup;
|
||||||
|
exports.endGroup = endGroup;
|
||||||
|
exports.group = group;
|
||||||
|
exports.saveState = saveState;
|
||||||
|
exports.getState = getState;
|
||||||
|
exports.getIDToken = getIDToken;
|
||||||
const command_1 = require("./command");
|
const command_1 = require("./command");
|
||||||
const file_command_1 = require("./file-command");
|
const file_command_1 = require("./file-command");
|
||||||
const utils_1 = require("./utils");
|
const utils_1 = require("./utils");
|
||||||
@@ -48,7 +83,7 @@ var ExitCode;
|
|||||||
* A code indicating that the action was a failure
|
* A code indicating that the action was a failure
|
||||||
*/
|
*/
|
||||||
ExitCode[ExitCode["Failure"] = 1] = "Failure";
|
ExitCode[ExitCode["Failure"] = 1] = "Failure";
|
||||||
})(ExitCode = exports.ExitCode || (exports.ExitCode = {}));
|
})(ExitCode || (exports.ExitCode = ExitCode = {}));
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
// Variables
|
// Variables
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
@@ -59,23 +94,46 @@ var ExitCode;
|
|||||||
*/
|
*/
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
function exportVariable(name, val) {
|
function exportVariable(name, val) {
|
||||||
const convertedVal = utils_1.toCommandValue(val);
|
const convertedVal = (0, utils_1.toCommandValue)(val);
|
||||||
process.env[name] = convertedVal;
|
process.env[name] = convertedVal;
|
||||||
const filePath = process.env['GITHUB_ENV'] || '';
|
const filePath = process.env['GITHUB_ENV'] || '';
|
||||||
if (filePath) {
|
if (filePath) {
|
||||||
return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val));
|
return (0, file_command_1.issueFileCommand)('ENV', (0, file_command_1.prepareKeyValueMessage)(name, val));
|
||||||
}
|
}
|
||||||
command_1.issueCommand('set-env', { name }, convertedVal);
|
(0, command_1.issueCommand)('set-env', { name }, convertedVal);
|
||||||
}
|
}
|
||||||
exports.exportVariable = exportVariable;
|
|
||||||
/**
|
/**
|
||||||
* Registers a secret which will get masked from logs
|
* Registers a secret which will get masked from logs
|
||||||
* @param secret value of the secret
|
*
|
||||||
|
* @param secret - Value of the secret to be masked
|
||||||
|
* @remarks
|
||||||
|
* This function instructs the Actions runner to mask the specified value in any
|
||||||
|
* logs produced during the workflow run. Once registered, the secret value will
|
||||||
|
* be replaced with asterisks (***) whenever it appears in console output, logs,
|
||||||
|
* or error messages.
|
||||||
|
*
|
||||||
|
* This is useful for protecting sensitive information such as:
|
||||||
|
* - API keys
|
||||||
|
* - Access tokens
|
||||||
|
* - Authentication credentials
|
||||||
|
* - URL parameters containing signatures (SAS tokens)
|
||||||
|
*
|
||||||
|
* Note that masking only affects future logs; any previous appearances of the
|
||||||
|
* secret in logs before calling this function will remain unmasked.
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* ```typescript
|
||||||
|
* // Register an API token as a secret
|
||||||
|
* const apiToken = "abc123xyz456";
|
||||||
|
* setSecret(apiToken);
|
||||||
|
*
|
||||||
|
* // Now any logs containing this value will show *** instead
|
||||||
|
* console.log(`Using token: ${apiToken}`); // Outputs: "Using token: ***"
|
||||||
|
* ```
|
||||||
*/
|
*/
|
||||||
function setSecret(secret) {
|
function setSecret(secret) {
|
||||||
command_1.issueCommand('add-mask', {}, secret);
|
(0, command_1.issueCommand)('add-mask', {}, secret);
|
||||||
}
|
}
|
||||||
exports.setSecret = setSecret;
|
|
||||||
/**
|
/**
|
||||||
* Prepends inputPath to the PATH (for this action and future actions)
|
* Prepends inputPath to the PATH (for this action and future actions)
|
||||||
* @param inputPath
|
* @param inputPath
|
||||||
@@ -83,14 +141,13 @@ exports.setSecret = setSecret;
|
|||||||
function addPath(inputPath) {
|
function addPath(inputPath) {
|
||||||
const filePath = process.env['GITHUB_PATH'] || '';
|
const filePath = process.env['GITHUB_PATH'] || '';
|
||||||
if (filePath) {
|
if (filePath) {
|
||||||
file_command_1.issueFileCommand('PATH', inputPath);
|
(0, file_command_1.issueFileCommand)('PATH', inputPath);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
command_1.issueCommand('add-path', {}, inputPath);
|
(0, command_1.issueCommand)('add-path', {}, inputPath);
|
||||||
}
|
}
|
||||||
process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
|
process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
|
||||||
}
|
}
|
||||||
exports.addPath = addPath;
|
|
||||||
/**
|
/**
|
||||||
* Gets the value of an input.
|
* Gets the value of an input.
|
||||||
* Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.
|
* Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.
|
||||||
@@ -110,7 +167,6 @@ function getInput(name, options) {
|
|||||||
}
|
}
|
||||||
return val.trim();
|
return val.trim();
|
||||||
}
|
}
|
||||||
exports.getInput = getInput;
|
|
||||||
/**
|
/**
|
||||||
* Gets the values of an multiline input. Each value is also trimmed.
|
* Gets the values of an multiline input. Each value is also trimmed.
|
||||||
*
|
*
|
||||||
@@ -128,7 +184,6 @@ function getMultilineInput(name, options) {
|
|||||||
}
|
}
|
||||||
return inputs.map(input => input.trim());
|
return inputs.map(input => input.trim());
|
||||||
}
|
}
|
||||||
exports.getMultilineInput = getMultilineInput;
|
|
||||||
/**
|
/**
|
||||||
* Gets the input value of the boolean type in the YAML 1.2 "core schema" specification.
|
* Gets the input value of the boolean type in the YAML 1.2 "core schema" specification.
|
||||||
* Support boolean input list: `true | True | TRUE | false | False | FALSE` .
|
* Support boolean input list: `true | True | TRUE | false | False | FALSE` .
|
||||||
@@ -150,7 +205,6 @@ function getBooleanInput(name, options) {
|
|||||||
throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` +
|
throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` +
|
||||||
`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
|
`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
|
||||||
}
|
}
|
||||||
exports.getBooleanInput = getBooleanInput;
|
|
||||||
/**
|
/**
|
||||||
* Sets the value of an output.
|
* Sets the value of an output.
|
||||||
*
|
*
|
||||||
@@ -161,21 +215,19 @@ exports.getBooleanInput = getBooleanInput;
|
|||||||
function setOutput(name, value) {
|
function setOutput(name, value) {
|
||||||
const filePath = process.env['GITHUB_OUTPUT'] || '';
|
const filePath = process.env['GITHUB_OUTPUT'] || '';
|
||||||
if (filePath) {
|
if (filePath) {
|
||||||
return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value));
|
return (0, file_command_1.issueFileCommand)('OUTPUT', (0, file_command_1.prepareKeyValueMessage)(name, value));
|
||||||
}
|
}
|
||||||
process.stdout.write(os.EOL);
|
process.stdout.write(os.EOL);
|
||||||
command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value));
|
(0, command_1.issueCommand)('set-output', { name }, (0, utils_1.toCommandValue)(value));
|
||||||
}
|
}
|
||||||
exports.setOutput = setOutput;
|
|
||||||
/**
|
/**
|
||||||
* Enables or disables the echoing of commands into stdout for the rest of the step.
|
* Enables or disables the echoing of commands into stdout for the rest of the step.
|
||||||
* Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.
|
* Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function setCommandEcho(enabled) {
|
function setCommandEcho(enabled) {
|
||||||
command_1.issue('echo', enabled ? 'on' : 'off');
|
(0, command_1.issue)('echo', enabled ? 'on' : 'off');
|
||||||
}
|
}
|
||||||
exports.setCommandEcho = setCommandEcho;
|
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
// Results
|
// Results
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
@@ -188,7 +240,6 @@ function setFailed(message) {
|
|||||||
process.exitCode = ExitCode.Failure;
|
process.exitCode = ExitCode.Failure;
|
||||||
error(message);
|
error(message);
|
||||||
}
|
}
|
||||||
exports.setFailed = setFailed;
|
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
// Logging Commands
|
// Logging Commands
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
@@ -198,42 +249,37 @@ exports.setFailed = setFailed;
|
|||||||
function isDebug() {
|
function isDebug() {
|
||||||
return process.env['RUNNER_DEBUG'] === '1';
|
return process.env['RUNNER_DEBUG'] === '1';
|
||||||
}
|
}
|
||||||
exports.isDebug = isDebug;
|
|
||||||
/**
|
/**
|
||||||
* Writes debug message to user log
|
* Writes debug message to user log
|
||||||
* @param message debug message
|
* @param message debug message
|
||||||
*/
|
*/
|
||||||
function debug(message) {
|
function debug(message) {
|
||||||
command_1.issueCommand('debug', {}, message);
|
(0, command_1.issueCommand)('debug', {}, message);
|
||||||
}
|
}
|
||||||
exports.debug = debug;
|
|
||||||
/**
|
/**
|
||||||
* Adds an error issue
|
* Adds an error issue
|
||||||
* @param message error issue message. Errors will be converted to string via toString()
|
* @param message error issue message. Errors will be converted to string via toString()
|
||||||
* @param properties optional properties to add to the annotation.
|
* @param properties optional properties to add to the annotation.
|
||||||
*/
|
*/
|
||||||
function error(message, properties = {}) {
|
function error(message, properties = {}) {
|
||||||
command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
|
(0, command_1.issueCommand)('error', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
|
||||||
}
|
}
|
||||||
exports.error = error;
|
|
||||||
/**
|
/**
|
||||||
* Adds a warning issue
|
* Adds a warning issue
|
||||||
* @param message warning issue message. Errors will be converted to string via toString()
|
* @param message warning issue message. Errors will be converted to string via toString()
|
||||||
* @param properties optional properties to add to the annotation.
|
* @param properties optional properties to add to the annotation.
|
||||||
*/
|
*/
|
||||||
function warning(message, properties = {}) {
|
function warning(message, properties = {}) {
|
||||||
command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
|
(0, command_1.issueCommand)('warning', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
|
||||||
}
|
}
|
||||||
exports.warning = warning;
|
|
||||||
/**
|
/**
|
||||||
* Adds a notice issue
|
* Adds a notice issue
|
||||||
* @param message notice issue message. Errors will be converted to string via toString()
|
* @param message notice issue message. Errors will be converted to string via toString()
|
||||||
* @param properties optional properties to add to the annotation.
|
* @param properties optional properties to add to the annotation.
|
||||||
*/
|
*/
|
||||||
function notice(message, properties = {}) {
|
function notice(message, properties = {}) {
|
||||||
command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
|
(0, command_1.issueCommand)('notice', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
|
||||||
}
|
}
|
||||||
exports.notice = notice;
|
|
||||||
/**
|
/**
|
||||||
* Writes info to log with console.log.
|
* Writes info to log with console.log.
|
||||||
* @param message info message
|
* @param message info message
|
||||||
@@ -241,7 +287,6 @@ exports.notice = notice;
|
|||||||
function info(message) {
|
function info(message) {
|
||||||
process.stdout.write(message + os.EOL);
|
process.stdout.write(message + os.EOL);
|
||||||
}
|
}
|
||||||
exports.info = info;
|
|
||||||
/**
|
/**
|
||||||
* Begin an output group.
|
* Begin an output group.
|
||||||
*
|
*
|
||||||
@@ -250,16 +295,14 @@ exports.info = info;
|
|||||||
* @param name The name of the output group
|
* @param name The name of the output group
|
||||||
*/
|
*/
|
||||||
function startGroup(name) {
|
function startGroup(name) {
|
||||||
command_1.issue('group', name);
|
(0, command_1.issue)('group', name);
|
||||||
}
|
}
|
||||||
exports.startGroup = startGroup;
|
|
||||||
/**
|
/**
|
||||||
* End an output group.
|
* End an output group.
|
||||||
*/
|
*/
|
||||||
function endGroup() {
|
function endGroup() {
|
||||||
command_1.issue('endgroup');
|
(0, command_1.issue)('endgroup');
|
||||||
}
|
}
|
||||||
exports.endGroup = endGroup;
|
|
||||||
/**
|
/**
|
||||||
* Wrap an asynchronous function call in a group.
|
* Wrap an asynchronous function call in a group.
|
||||||
*
|
*
|
||||||
@@ -281,7 +324,6 @@ function group(name, fn) {
|
|||||||
return result;
|
return result;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.group = group;
|
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
// Wrapper action state
|
// Wrapper action state
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
@@ -295,11 +337,10 @@ exports.group = group;
|
|||||||
function saveState(name, value) {
|
function saveState(name, value) {
|
||||||
const filePath = process.env['GITHUB_STATE'] || '';
|
const filePath = process.env['GITHUB_STATE'] || '';
|
||||||
if (filePath) {
|
if (filePath) {
|
||||||
return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value));
|
return (0, file_command_1.issueFileCommand)('STATE', (0, file_command_1.prepareKeyValueMessage)(name, value));
|
||||||
}
|
}
|
||||||
command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value));
|
(0, command_1.issueCommand)('save-state', { name }, (0, utils_1.toCommandValue)(value));
|
||||||
}
|
}
|
||||||
exports.saveState = saveState;
|
|
||||||
/**
|
/**
|
||||||
* Gets the value of an state set by this action's main execution.
|
* Gets the value of an state set by this action's main execution.
|
||||||
*
|
*
|
||||||
@@ -309,13 +350,11 @@ exports.saveState = saveState;
|
|||||||
function getState(name) {
|
function getState(name) {
|
||||||
return process.env[`STATE_${name}`] || '';
|
return process.env[`STATE_${name}`] || '';
|
||||||
}
|
}
|
||||||
exports.getState = getState;
|
|
||||||
function getIDToken(aud) {
|
function getIDToken(aud) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
return yield oidc_utils_1.OidcClient.getIDToken(aud);
|
return yield oidc_utils_1.OidcClient.getIDToken(aud);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.getIDToken = getIDToken;
|
|
||||||
/**
|
/**
|
||||||
* Summary exports
|
* Summary exports
|
||||||
*/
|
*/
|
||||||
@@ -333,4 +372,8 @@ var path_utils_1 = require("./path-utils");
|
|||||||
Object.defineProperty(exports, "toPosixPath", { enumerable: true, get: function () { return path_utils_1.toPosixPath; } });
|
Object.defineProperty(exports, "toPosixPath", { enumerable: true, get: function () { return path_utils_1.toPosixPath; } });
|
||||||
Object.defineProperty(exports, "toWin32Path", { enumerable: true, get: function () { return path_utils_1.toWin32Path; } });
|
Object.defineProperty(exports, "toWin32Path", { enumerable: true, get: function () { return path_utils_1.toWin32Path; } });
|
||||||
Object.defineProperty(exports, "toPlatformPath", { enumerable: true, get: function () { return path_utils_1.toPlatformPath; } });
|
Object.defineProperty(exports, "toPlatformPath", { enumerable: true, get: function () { return path_utils_1.toPlatformPath; } });
|
||||||
|
/**
|
||||||
|
* Platform utilities exports
|
||||||
|
*/
|
||||||
|
exports.platform = __importStar(require("./platform"));
|
||||||
//# sourceMappingURL=core.js.map
|
//# sourceMappingURL=core.js.map
|
||||||
2
node_modules/@actions/core/lib/core.js.map
generated
vendored
2
node_modules/@actions/core/lib/core.js.map
generated
vendored
File diff suppressed because one or more lines are too long
43
node_modules/@actions/core/lib/file-command.js
generated
vendored
43
node_modules/@actions/core/lib/file-command.js
generated
vendored
@@ -2,7 +2,11 @@
|
|||||||
// For internal use, subject to change.
|
// For internal use, subject to change.
|
||||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||||
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||||
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||||
|
}
|
||||||
|
Object.defineProperty(o, k2, desc);
|
||||||
}) : (function(o, m, k, k2) {
|
}) : (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
o[k2] = m[k];
|
o[k2] = m[k];
|
||||||
@@ -12,20 +16,31 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.prepareKeyValueMessage = exports.issueFileCommand = void 0;
|
exports.issueFileCommand = issueFileCommand;
|
||||||
|
exports.prepareKeyValueMessage = prepareKeyValueMessage;
|
||||||
// We use any as a valid input type
|
// We use any as a valid input type
|
||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
|
const crypto = __importStar(require("crypto"));
|
||||||
const fs = __importStar(require("fs"));
|
const fs = __importStar(require("fs"));
|
||||||
const os = __importStar(require("os"));
|
const os = __importStar(require("os"));
|
||||||
const uuid_1 = require("uuid");
|
|
||||||
const utils_1 = require("./utils");
|
const utils_1 = require("./utils");
|
||||||
function issueFileCommand(command, message) {
|
function issueFileCommand(command, message) {
|
||||||
const filePath = process.env[`GITHUB_${command}`];
|
const filePath = process.env[`GITHUB_${command}`];
|
||||||
@@ -35,14 +50,13 @@ function issueFileCommand(command, message) {
|
|||||||
if (!fs.existsSync(filePath)) {
|
if (!fs.existsSync(filePath)) {
|
||||||
throw new Error(`Missing file at path: ${filePath}`);
|
throw new Error(`Missing file at path: ${filePath}`);
|
||||||
}
|
}
|
||||||
fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, {
|
fs.appendFileSync(filePath, `${(0, utils_1.toCommandValue)(message)}${os.EOL}`, {
|
||||||
encoding: 'utf8'
|
encoding: 'utf8'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.issueFileCommand = issueFileCommand;
|
|
||||||
function prepareKeyValueMessage(key, value) {
|
function prepareKeyValueMessage(key, value) {
|
||||||
const delimiter = `ghadelimiter_${uuid_1.v4()}`;
|
const delimiter = `ghadelimiter_${crypto.randomUUID()}`;
|
||||||
const convertedValue = utils_1.toCommandValue(value);
|
const convertedValue = (0, utils_1.toCommandValue)(value);
|
||||||
// These should realistically never happen, but just in case someone finds a
|
// These should realistically never happen, but just in case someone finds a
|
||||||
// way to exploit uuid generation let's not allow keys or values that contain
|
// way to exploit uuid generation let's not allow keys or values that contain
|
||||||
// the delimiter.
|
// the delimiter.
|
||||||
@@ -54,5 +68,4 @@ function prepareKeyValueMessage(key, value) {
|
|||||||
}
|
}
|
||||||
return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`;
|
return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`;
|
||||||
}
|
}
|
||||||
exports.prepareKeyValueMessage = prepareKeyValueMessage;
|
|
||||||
//# sourceMappingURL=file-command.js.map
|
//# sourceMappingURL=file-command.js.map
|
||||||
2
node_modules/@actions/core/lib/file-command.js.map
generated
vendored
2
node_modules/@actions/core/lib/file-command.js.map
generated
vendored
@@ -1 +1 @@
|
|||||||
{"version":3,"file":"file-command.js","sourceRoot":"","sources":["../src/file-command.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;;;;;;;;;;;;;;;;;;;;AAEvC,mCAAmC;AACnC,uDAAuD;AAEvD,uCAAwB;AACxB,uCAAwB;AACxB,+BAAiC;AACjC,mCAAsC;AAEtC,SAAgB,gBAAgB,CAAC,OAAe,EAAE,OAAY;IAC5D,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,OAAO,EAAE,CAAC,CAAA;IACjD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CACb,wDAAwD,OAAO,EAAE,CAClE,CAAA;KACF;IACD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,QAAQ,EAAE,CAAC,CAAA;KACrD;IAED,EAAE,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,sBAAc,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACjE,QAAQ,EAAE,MAAM;KACjB,CAAC,CAAA;AACJ,CAAC;AAdD,4CAcC;AAED,SAAgB,sBAAsB,CAAC,GAAW,EAAE,KAAU;IAC5D,MAAM,SAAS,GAAG,gBAAgB,SAAM,EAAE,EAAE,CAAA;IAC5C,MAAM,cAAc,GAAG,sBAAc,CAAC,KAAK,CAAC,CAAA;IAE5C,4EAA4E;IAC5E,6EAA6E;IAC7E,iBAAiB;IACjB,IAAI,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QAC3B,MAAM,IAAI,KAAK,CACb,4DAA4D,SAAS,GAAG,CACzE,CAAA;KACF;IAED,IAAI,cAAc,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QACtC,MAAM,IAAI,KAAK,CACb,6DAA6D,SAAS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EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CACb,4DAA4D,SAAS,GAAG,CACzE,CAAA;IACH,CAAC;IAED,IAAI,cAAc,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;QACvC,MAAM,IAAI,KAAK,CACb,6DAA6D,SAAS,GAAG,CAC1E,CAAA;IACH,CAAC;IAED,OAAO,GAAG,GAAG,KAAK,SAAS,GAAG,EAAE,CAAC,GAAG,GAAG,cAAc,GAAG,EAAE,CAAC,GAAG,GAAG,SAAS,EAAE,CAAA;AAC9E,CAAC"}
|
||||||
6
node_modules/@actions/core/lib/oidc-utils.js
generated
vendored
6
node_modules/@actions/core/lib/oidc-utils.js
generated
vendored
@@ -36,8 +36,8 @@ class OidcClient {
|
|||||||
return runtimeUrl;
|
return runtimeUrl;
|
||||||
}
|
}
|
||||||
static getCall(id_token_url) {
|
static getCall(id_token_url) {
|
||||||
var _a;
|
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
var _a;
|
||||||
const httpclient = OidcClient.createHttpClient();
|
const httpclient = OidcClient.createHttpClient();
|
||||||
const res = yield httpclient
|
const res = yield httpclient
|
||||||
.getJson(id_token_url)
|
.getJson(id_token_url)
|
||||||
@@ -62,9 +62,9 @@ class OidcClient {
|
|||||||
const encodedAudience = encodeURIComponent(audience);
|
const encodedAudience = encodeURIComponent(audience);
|
||||||
id_token_url = `${id_token_url}&audience=${encodedAudience}`;
|
id_token_url = `${id_token_url}&audience=${encodedAudience}`;
|
||||||
}
|
}
|
||||||
core_1.debug(`ID token url is ${id_token_url}`);
|
(0, core_1.debug)(`ID token url is ${id_token_url}`);
|
||||||
const id_token = yield OidcClient.getCall(id_token_url);
|
const id_token = yield OidcClient.getCall(id_token_url);
|
||||||
core_1.setSecret(id_token);
|
(0, core_1.setSecret)(id_token);
|
||||||
return id_token;
|
return id_token;
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
|
|||||||
2
node_modules/@actions/core/lib/oidc-utils.js.map
generated
vendored
2
node_modules/@actions/core/lib/oidc-utils.js.map
generated
vendored
@@ -1 +1 @@
|
|||||||
{"version":3,"file":"oidc-utils.js","sourceRoot":"","sources":["../src/oidc-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,sDAA+C;AAC/C,wDAAqE;AACrE,iCAAuC;AAKvC,MAAa,UAAU;IACb,MAAM,CAAC,gBAAgB,CAC7B,UAAU,GAAG,IAAI,EACjB,QAAQ,GAAG,EAAE;QAEb,MAAM,cAAc,GAAmB;YACrC,YAAY,EAAE,UAAU;YACxB,UAAU,EAAE,QAAQ;SACrB,CAAA;QAED,OAAO,IAAI,wBAAU,CACnB,qBAAqB,EACrB,CAAC,IAAI,8BAAuB,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,CAAC,EAC3D,cAAc,CACf,CAAA;IACH,CAAC;IAEO,MAAM,CAAC,eAAe;QAC5B,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAA;QAC3D,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,IAAI,KAAK,CACb,2DAA2D,CAC5D,CAAA;SACF;QACD,OAAO,KAAK,CAAA;IACd,CAAC;IAEO,MAAM,CAAC,aAAa;QAC1B,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAA;QAC9D,IAAI,CAAC,UAAU,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAA;SAC3E;QACD,OAAO,UAAU,CAAA;IACnB,CAAC;IAEO,MAAM,CAAO,OAAO,CAAC,YAAoB;;;YAC/C,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAA;YAEhD,MAAM,GAAG,GAAG,MAAM,UAAU;iBACzB,OAAO,CAAgB,YAAY,CAAC;iBACpC,KAAK,CAAC,KAAK,CAAC,EAAE;gBACb,MAAM,IAAI,KAAK,CACb;uBACa,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EAAE,CAAC;oBACb,MAAM,eAAe,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAA;oBACpD,YAAY,GAAG,GAAG,YAAY,aAAa,eAAe,EAAE,CAAA;gBAC9D,CAAC;gBAED,IAAA,YAAK,EAAC,mBAAmB,YAAY,EAAE,CAAC,CAAA;gBAExC,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;gBACvD,IAAA,gBAAS,EAAC,QAAQ,CAAC,CAAA;gBACnB,OAAO,QAAQ,CAAA;YACjB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,IAAI,KAAK,CAAC,kBAAkB,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;YACpD,CAAC;QACH,CAAC;KAAA;CACF;AAzED,gCAyEC"}
|
||||||
37
node_modules/@actions/core/lib/path-utils.js
generated
vendored
37
node_modules/@actions/core/lib/path-utils.js
generated
vendored
@@ -1,7 +1,11 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||||
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||||
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||||
|
}
|
||||||
|
Object.defineProperty(o, k2, desc);
|
||||||
}) : (function(o, m, k, k2) {
|
}) : (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
o[k2] = m[k];
|
o[k2] = m[k];
|
||||||
@@ -11,15 +15,27 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0;
|
exports.toPosixPath = toPosixPath;
|
||||||
|
exports.toWin32Path = toWin32Path;
|
||||||
|
exports.toPlatformPath = toPlatformPath;
|
||||||
const path = __importStar(require("path"));
|
const path = __importStar(require("path"));
|
||||||
/**
|
/**
|
||||||
* toPosixPath converts the given path to the posix form. On Windows, \\ will be
|
* toPosixPath converts the given path to the posix form. On Windows, \\ will be
|
||||||
@@ -31,7 +47,6 @@ const path = __importStar(require("path"));
|
|||||||
function toPosixPath(pth) {
|
function toPosixPath(pth) {
|
||||||
return pth.replace(/[\\]/g, '/');
|
return pth.replace(/[\\]/g, '/');
|
||||||
}
|
}
|
||||||
exports.toPosixPath = toPosixPath;
|
|
||||||
/**
|
/**
|
||||||
* toWin32Path converts the given path to the win32 form. On Linux, / will be
|
* toWin32Path converts the given path to the win32 form. On Linux, / will be
|
||||||
* replaced with \\.
|
* replaced with \\.
|
||||||
@@ -42,7 +57,6 @@ exports.toPosixPath = toPosixPath;
|
|||||||
function toWin32Path(pth) {
|
function toWin32Path(pth) {
|
||||||
return pth.replace(/[/]/g, '\\');
|
return pth.replace(/[/]/g, '\\');
|
||||||
}
|
}
|
||||||
exports.toWin32Path = toWin32Path;
|
|
||||||
/**
|
/**
|
||||||
* toPlatformPath converts the given path to a platform-specific path. It does
|
* toPlatformPath converts the given path to a platform-specific path. It does
|
||||||
* this by replacing instances of / and \ with the platform-specific path
|
* this by replacing instances of / and \ with the platform-specific path
|
||||||
@@ -54,5 +68,4 @@ exports.toWin32Path = toWin32Path;
|
|||||||
function toPlatformPath(pth) {
|
function toPlatformPath(pth) {
|
||||||
return pth.replace(/[/\\]/g, path.sep);
|
return pth.replace(/[/\\]/g, path.sep);
|
||||||
}
|
}
|
||||||
exports.toPlatformPath = toPlatformPath;
|
|
||||||
//# sourceMappingURL=path-utils.js.map
|
//# sourceMappingURL=path-utils.js.map
|
||||||
2
node_modules/@actions/core/lib/path-utils.js.map
generated
vendored
2
node_modules/@actions/core/lib/path-utils.js.map
generated
vendored
@@ -1 +1 @@
|
|||||||
{"version":3,"file":"path-utils.js","sourceRoot":"","sources":["../src/path-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4B;AAE5B;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;AAClC,CAAC;AAFD,kCAEC;AAED;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;AAClC,CAAC;AAFD,kCAEC;AAED;;;;;;;GAOG;AACH,SAAgB,cAAc,CAAC,GAAW;IACxC,OAAO,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAA;AACxC,CAAC;AAFD,wCAEC"}
|
{"version":3,"file":"path-utils.js","sourceRoot":"","sources":["../src/path-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,kCAEC;AASD,kCAEC;AAUD,wCAEC;AAlCD,2CAA4B;AAE5B;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;AAClC,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;AAClC,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,cAAc,CAAC,GAAW;IACxC,OAAO,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAA;AACxC,CAAC"}
|
||||||
14
node_modules/@actions/core/lib/platform.d.ts
generated
vendored
Normal file
14
node_modules/@actions/core/lib/platform.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
export declare const platform: NodeJS.Platform;
|
||||||
|
export declare const arch: string;
|
||||||
|
export declare const isWindows: boolean;
|
||||||
|
export declare const isMacOS: boolean;
|
||||||
|
export declare const isLinux: boolean;
|
||||||
|
export declare function getDetails(): Promise<{
|
||||||
|
name: string;
|
||||||
|
platform: string;
|
||||||
|
arch: string;
|
||||||
|
version: string;
|
||||||
|
isWindows: boolean;
|
||||||
|
isMacOS: boolean;
|
||||||
|
isLinux: boolean;
|
||||||
|
}>;
|
||||||
104
node_modules/@actions/core/lib/platform.js
generated
vendored
Normal file
104
node_modules/@actions/core/lib/platform.js
generated
vendored
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
"use strict";
|
||||||
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||||
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||||
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||||
|
}
|
||||||
|
Object.defineProperty(o, k2, desc);
|
||||||
|
}) : (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
o[k2] = m[k];
|
||||||
|
}));
|
||||||
|
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||||
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||||
|
}) : function(o, v) {
|
||||||
|
o["default"] = v;
|
||||||
|
});
|
||||||
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
|
var ownKeys = function(o) {
|
||||||
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
|
var ar = [];
|
||||||
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
|
return ar;
|
||||||
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __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 __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.isLinux = exports.isMacOS = exports.isWindows = exports.arch = exports.platform = void 0;
|
||||||
|
exports.getDetails = getDetails;
|
||||||
|
const os_1 = __importDefault(require("os"));
|
||||||
|
const exec = __importStar(require("@actions/exec"));
|
||||||
|
const getWindowsInfo = () => __awaiter(void 0, void 0, void 0, function* () {
|
||||||
|
const { stdout: version } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', undefined, {
|
||||||
|
silent: true
|
||||||
|
});
|
||||||
|
const { stdout: name } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"', undefined, {
|
||||||
|
silent: true
|
||||||
|
});
|
||||||
|
return {
|
||||||
|
name: name.trim(),
|
||||||
|
version: version.trim()
|
||||||
|
};
|
||||||
|
});
|
||||||
|
const getMacOsInfo = () => __awaiter(void 0, void 0, void 0, function* () {
|
||||||
|
var _a, _b, _c, _d;
|
||||||
|
const { stdout } = yield exec.getExecOutput('sw_vers', undefined, {
|
||||||
|
silent: true
|
||||||
|
});
|
||||||
|
const version = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : '';
|
||||||
|
const name = (_d = (_c = stdout.match(/ProductName:\s*(.+)/)) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : '';
|
||||||
|
return {
|
||||||
|
name,
|
||||||
|
version
|
||||||
|
};
|
||||||
|
});
|
||||||
|
const getLinuxInfo = () => __awaiter(void 0, void 0, void 0, function* () {
|
||||||
|
const { stdout } = yield exec.getExecOutput('lsb_release', ['-i', '-r', '-s'], {
|
||||||
|
silent: true
|
||||||
|
});
|
||||||
|
const [name, version] = stdout.trim().split('\n');
|
||||||
|
return {
|
||||||
|
name,
|
||||||
|
version
|
||||||
|
};
|
||||||
|
});
|
||||||
|
exports.platform = os_1.default.platform();
|
||||||
|
exports.arch = os_1.default.arch();
|
||||||
|
exports.isWindows = exports.platform === 'win32';
|
||||||
|
exports.isMacOS = exports.platform === 'darwin';
|
||||||
|
exports.isLinux = exports.platform === 'linux';
|
||||||
|
function getDetails() {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
return Object.assign(Object.assign({}, (yield (exports.isWindows
|
||||||
|
? getWindowsInfo()
|
||||||
|
: exports.isMacOS
|
||||||
|
? getMacOsInfo()
|
||||||
|
: getLinuxInfo()))), { platform: exports.platform,
|
||||||
|
arch: exports.arch,
|
||||||
|
isWindows: exports.isWindows,
|
||||||
|
isMacOS: exports.isMacOS,
|
||||||
|
isLinux: exports.isLinux });
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=platform.js.map
|
||||||
1
node_modules/@actions/core/lib/platform.js.map
generated
vendored
Normal file
1
node_modules/@actions/core/lib/platform.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"platform.js","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiEA,gCAqBC;AAtFD,4CAAmB;AACnB,oDAAqC;AAErC,MAAM,cAAc,GAAG,GAAmD,EAAE;IAC1E,MAAM,EAAC,MAAM,EAAE,OAAO,EAAC,GAAG,MAAM,IAAI,CAAC,aAAa,CAChD,kFAAkF,EAClF,SAAS,EACT;QACE,MAAM,EAAE,IAAI;KACb,CACF,CAAA;IAED,MAAM,EAAC,MAAM,EAAE,IAAI,EAAC,GAAG,MAAM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QAAA,OAAO,GAAG,gBAAQ,KAAK,QAAQ,CAAA;AAC/B,QAAA,OAAO,GAAG,gBAAQ,KAAK,OAAO,CAAA;AAE3C,SAAsB,UAAU;;QAS9B,uCACK,CAAC,MAAM,CAAC,iBAAS;YAClB,CAAC,CAAC,cAAc,EAAE;YAClB,CAAC,CAAC,eAAO;gBACP,CAAC,CAAC,YAAY,EAAE;gBAChB,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC,KACtB,QAAQ,EAAR,gBAAQ;YACR,IAAI,EAAJ,YAAI;YACJ,SAAS,EAAT,iBAAS;YACT,OAAO,EAAP,eAAO;YACP,OAAO,EAAP,eAAO,IACR;IACH,CAAC;CAAA"}
|
||||||
2
node_modules/@actions/core/lib/summary.d.ts
generated
vendored
2
node_modules/@actions/core/lib/summary.d.ts
generated
vendored
@@ -1,6 +1,6 @@
|
|||||||
export declare const SUMMARY_ENV_VAR = "GITHUB_STEP_SUMMARY";
|
export declare const SUMMARY_ENV_VAR = "GITHUB_STEP_SUMMARY";
|
||||||
export declare const SUMMARY_DOCS_URL = "https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";
|
export declare const SUMMARY_DOCS_URL = "https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";
|
||||||
export declare type SummaryTableRow = (SummaryTableCell | string)[];
|
export type SummaryTableRow = (SummaryTableCell | string)[];
|
||||||
export interface SummaryTableCell {
|
export interface SummaryTableCell {
|
||||||
/**
|
/**
|
||||||
* Cell content
|
* Cell content
|
||||||
|
|||||||
2
node_modules/@actions/core/lib/summary.js.map
generated
vendored
2
node_modules/@actions/core/lib/summary.js.map
generated
vendored
File diff suppressed because one or more lines are too long
5
node_modules/@actions/core/lib/utils.js
generated
vendored
5
node_modules/@actions/core/lib/utils.js
generated
vendored
@@ -2,7 +2,8 @@
|
|||||||
// We use any as a valid input type
|
// We use any as a valid input type
|
||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.toCommandProperties = exports.toCommandValue = void 0;
|
exports.toCommandValue = toCommandValue;
|
||||||
|
exports.toCommandProperties = toCommandProperties;
|
||||||
/**
|
/**
|
||||||
* Sanitizes an input into a string so it can be passed into issueCommand safely
|
* Sanitizes an input into a string so it can be passed into issueCommand safely
|
||||||
* @param input input to sanitize into a string
|
* @param input input to sanitize into a string
|
||||||
@@ -16,7 +17,6 @@ function toCommandValue(input) {
|
|||||||
}
|
}
|
||||||
return JSON.stringify(input);
|
return JSON.stringify(input);
|
||||||
}
|
}
|
||||||
exports.toCommandValue = toCommandValue;
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param annotationProperties
|
* @param annotationProperties
|
||||||
@@ -36,5 +36,4 @@ function toCommandProperties(annotationProperties) {
|
|||||||
endColumn: annotationProperties.endColumn
|
endColumn: annotationProperties.endColumn
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
exports.toCommandProperties = toCommandProperties;
|
|
||||||
//# sourceMappingURL=utils.js.map
|
//# sourceMappingURL=utils.js.map
|
||||||
2
node_modules/@actions/core/lib/utils.js.map
generated
vendored
2
node_modules/@actions/core/lib/utils.js.map
generated
vendored
@@ -1 +1 @@
|
|||||||
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA,mCAAmC;AACnC,uDAAuD;;;AAKvD;;;GAGG;AACH,SAAgB,cAAc,CAAC,KAAU;IACvC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;QACzC,OAAO,EAAE,CAAA;KACV;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,YAAY,MAAM,EAAE;QAC/D,OAAO,KAAe,CAAA;KACvB;IACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;AAC9B,C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ACrC,GAAG,EAAE,oBAAoB,CAAC,WAAW;QACrC,SAAS,EAAE,oBAAoB,CAAC,SAAS;KAC1C,CAAA;AACH,CAAC"}
|
||||||
9
node_modules/@actions/core/package.json
generated
vendored
9
node_modules/@actions/core/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@actions/core",
|
"name": "@actions/core",
|
||||||
"version": "1.10.1",
|
"version": "2.0.2",
|
||||||
"description": "Actions core lib",
|
"description": "Actions core lib",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"github",
|
"github",
|
||||||
@@ -36,11 +36,10 @@
|
|||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/http-client": "^2.0.1",
|
"@actions/exec": "^2.0.0",
|
||||||
"uuid": "^8.3.2"
|
"@actions/http-client": "^3.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^12.0.2",
|
"@types/node": "^16.18.112"
|
||||||
"@types/uuid": "^8.3.4"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
37
node_modules/@actions/exec/lib/exec.js
generated
vendored
37
node_modules/@actions/exec/lib/exec.js
generated
vendored
@@ -1,7 +1,11 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||||
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||||
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||||
|
}
|
||||||
|
Object.defineProperty(o, k2, desc);
|
||||||
}) : (function(o, m, k, k2) {
|
}) : (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
o[k2] = m[k];
|
o[k2] = m[k];
|
||||||
@@ -11,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
return new (P || (P = Promise))(function (resolve, reject) {
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
@@ -28,7 +42,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.getExecOutput = exports.exec = void 0;
|
exports.exec = exec;
|
||||||
|
exports.getExecOutput = getExecOutput;
|
||||||
const string_decoder_1 = require("string_decoder");
|
const string_decoder_1 = require("string_decoder");
|
||||||
const tr = __importStar(require("./toolrunner"));
|
const tr = __importStar(require("./toolrunner"));
|
||||||
/**
|
/**
|
||||||
@@ -54,7 +69,6 @@ function exec(commandLine, args, options) {
|
|||||||
return runner.exec();
|
return runner.exec();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.exec = exec;
|
|
||||||
/**
|
/**
|
||||||
* Exec a command and get the output.
|
* Exec a command and get the output.
|
||||||
* Output will be streamed to the live console.
|
* Output will be streamed to the live console.
|
||||||
@@ -66,8 +80,8 @@ exports.exec = exec;
|
|||||||
* @returns Promise<ExecOutput> exit code, stdout, and stderr
|
* @returns Promise<ExecOutput> exit code, stdout, and stderr
|
||||||
*/
|
*/
|
||||||
function getExecOutput(commandLine, args, options) {
|
function getExecOutput(commandLine, args, options) {
|
||||||
var _a, _b;
|
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
var _a, _b;
|
||||||
let stdout = '';
|
let stdout = '';
|
||||||
let stderr = '';
|
let stderr = '';
|
||||||
//Using string decoder covers the case where a mult-byte character is split
|
//Using string decoder covers the case where a mult-byte character is split
|
||||||
@@ -99,5 +113,4 @@ function getExecOutput(commandLine, args, options) {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.getExecOutput = getExecOutput;
|
|
||||||
//# sourceMappingURL=exec.js.map
|
//# sourceMappingURL=exec.js.map
|
||||||
2
node_modules/@actions/exec/lib/exec.js.map
generated
vendored
2
node_modules/@actions/exec/lib/exec.js.map
generated
vendored
@@ -1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ACH,CAAC,CAAA;QAED,MAAM,SAAS,mCACV,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,KACrB,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,cAAc,GACvB,CAAA;QAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,EAAE,IAAI,kCAAM,OAAO,KAAE,SAAS,IAAE,CAAA;QAEvE,gCAAgC;QAChC,MAAM,IAAI,aAAa,CAAC,GAAG,EAAE,CAAA;QAC7B,MAAM,IAAI,aAAa,CAAC,GAAG,EAAE,CAAA;QAE7B,OAAO;YACL,QAAQ;YACR,MAAM;YACN,MAAM;SACP,CAAA;IACH,CAAC;CAAA"}
|
||||||
1
node_modules/@actions/exec/lib/interfaces.d.ts
generated
vendored
1
node_modules/@actions/exec/lib/interfaces.d.ts
generated
vendored
@@ -1,4 +1,3 @@
|
|||||||
/// <reference types="node" />
|
|
||||||
import * as stream from 'stream';
|
import * as stream from 'stream';
|
||||||
/**
|
/**
|
||||||
* Interface for exec options
|
* Interface for exec options
|
||||||
|
|||||||
1
node_modules/@actions/exec/lib/toolrunner.d.ts
generated
vendored
1
node_modules/@actions/exec/lib/toolrunner.d.ts
generated
vendored
@@ -1,4 +1,3 @@
|
|||||||
/// <reference types="node" />
|
|
||||||
import * as events from 'events';
|
import * as events from 'events';
|
||||||
import * as im from './interfaces';
|
import * as im from './interfaces';
|
||||||
export declare class ToolRunner extends events.EventEmitter {
|
export declare class ToolRunner extends events.EventEmitter {
|
||||||
|
|||||||
49
node_modules/@actions/exec/lib/toolrunner.js
generated
vendored
49
node_modules/@actions/exec/lib/toolrunner.js
generated
vendored
@@ -1,7 +1,11 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||||
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||||
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||||
|
}
|
||||||
|
Object.defineProperty(o, k2, desc);
|
||||||
}) : (function(o, m, k, k2) {
|
}) : (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
o[k2] = m[k];
|
o[k2] = m[k];
|
||||||
@@ -11,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
return new (P || (P = Promise))(function (resolve, reject) {
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
@@ -28,7 +42,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.argStringToArray = exports.ToolRunner = void 0;
|
exports.ToolRunner = void 0;
|
||||||
|
exports.argStringToArray = argStringToArray;
|
||||||
const os = __importStar(require("os"));
|
const os = __importStar(require("os"));
|
||||||
const events = __importStar(require("events"));
|
const events = __importStar(require("events"));
|
||||||
const child = __importStar(require("child_process"));
|
const child = __importStar(require("child_process"));
|
||||||
@@ -260,10 +275,7 @@ class ToolRunner extends events.EventEmitter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
reverse += '"';
|
reverse += '"';
|
||||||
return reverse
|
return reverse.split('').reverse().join('');
|
||||||
.split('')
|
|
||||||
.reverse()
|
|
||||||
.join('');
|
|
||||||
}
|
}
|
||||||
_uvQuoteCmdArg(arg) {
|
_uvQuoteCmdArg(arg) {
|
||||||
// Tool runner wraps child_process.spawn() and needs to apply the same quoting as
|
// Tool runner wraps child_process.spawn() and needs to apply the same quoting as
|
||||||
@@ -339,10 +351,7 @@ class ToolRunner extends events.EventEmitter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
reverse += '"';
|
reverse += '"';
|
||||||
return reverse
|
return reverse.split('').reverse().join('');
|
||||||
.split('')
|
|
||||||
.reverse()
|
|
||||||
.join('');
|
|
||||||
}
|
}
|
||||||
_cloneExecOptions(options) {
|
_cloneExecOptions(options) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
@@ -546,7 +555,6 @@ function argStringToArray(argString) {
|
|||||||
}
|
}
|
||||||
return args;
|
return args;
|
||||||
}
|
}
|
||||||
exports.argStringToArray = argStringToArray;
|
|
||||||
class ExecState extends events.EventEmitter {
|
class ExecState extends events.EventEmitter {
|
||||||
constructor(options, toolPath) {
|
constructor(options, toolPath) {
|
||||||
super();
|
super();
|
||||||
@@ -575,7 +583,7 @@ class ExecState extends events.EventEmitter {
|
|||||||
this._setResult();
|
this._setResult();
|
||||||
}
|
}
|
||||||
else if (this.processExited) {
|
else if (this.processExited) {
|
||||||
this.timeout = timers_1.setTimeout(ExecState.HandleTimeout, this.delay, this);
|
this.timeout = (0, timers_1.setTimeout)(ExecState.HandleTimeout, this.delay, this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_debug(message) {
|
_debug(message) {
|
||||||
@@ -608,8 +616,7 @@ class ExecState extends events.EventEmitter {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!state.processClosed && state.processExited) {
|
if (!state.processClosed && state.processExited) {
|
||||||
const message = `The STDIO streams did not close within ${state.delay /
|
const message = `The STDIO streams did not close within ${state.delay / 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;
|
||||||
1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;
|
|
||||||
state._debug(message);
|
state._debug(message);
|
||||||
}
|
}
|
||||||
state._setResult();
|
state._setResult();
|
||||||
|
|||||||
2
node_modules/@actions/exec/lib/toolrunner.js.map
generated
vendored
2
node_modules/@actions/exec/lib/toolrunner.js.map
generated
vendored
File diff suppressed because one or more lines are too long
4
node_modules/@actions/exec/package.json
generated
vendored
4
node_modules/@actions/exec/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@actions/exec",
|
"name": "@actions/exec",
|
||||||
"version": "1.1.1",
|
"version": "2.0.0",
|
||||||
"description": "Actions exec lib",
|
"description": "Actions exec lib",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"github",
|
"github",
|
||||||
@@ -36,6 +36,6 @@
|
|||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/io": "^1.0.1"
|
"@actions/io": "^2.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
4
node_modules/@actions/http-client/README.md
generated
vendored
4
node_modules/@actions/http-client/README.md
generated
vendored
@@ -7,7 +7,7 @@ A lightweight HTTP client optimized for building actions.
|
|||||||
- HTTP client with TypeScript generics and async/await/Promises
|
- HTTP client with TypeScript generics and async/await/Promises
|
||||||
- Typings included!
|
- Typings included!
|
||||||
- [Proxy support](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/about-self-hosted-runners#using-a-proxy-server-with-self-hosted-runners) just works with actions and the runner
|
- [Proxy support](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/about-self-hosted-runners#using-a-proxy-server-with-self-hosted-runners) just works with actions and the runner
|
||||||
- Targets ES2019 (runner runs actions with node 12+). Only supported on node 12+.
|
- Targets ES2019 (runner runs actions with node 24+). Only supported on node 20+.
|
||||||
- Basic, Bearer and PAT Support out of the box. Extensible handlers for others.
|
- Basic, Bearer and PAT Support out of the box. Extensible handlers for others.
|
||||||
- Redirects supported
|
- Redirects supported
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ export NODE_DEBUG=http
|
|||||||
|
|
||||||
## Node support
|
## Node support
|
||||||
|
|
||||||
The http-client is built using the latest LTS version of Node 12. It may work on previous node LTS versions but it's tested and officially supported on Node12+.
|
The http-client is built using Node 24. It may work on previous node LTS versions but it's tested and officially supported on Node 20+.
|
||||||
|
|
||||||
## Support and Versioning
|
## Support and Versioning
|
||||||
|
|
||||||
|
|||||||
1
node_modules/@actions/http-client/lib/auth.d.ts
generated
vendored
1
node_modules/@actions/http-client/lib/auth.d.ts
generated
vendored
@@ -1,4 +1,3 @@
|
|||||||
/// <reference types="node" />
|
|
||||||
import * as http from 'http';
|
import * as http from 'http';
|
||||||
import * as ifm from './interfaces';
|
import * as ifm from './interfaces';
|
||||||
import { HttpClientResponse } from './index';
|
import { HttpClientResponse } from './index';
|
||||||
|
|||||||
2
node_modules/@actions/http-client/lib/auth.js.map
generated
vendored
2
node_modules/@actions/http-client/lib/auth.js.map
generated
vendored
@@ -1 +1 @@
|
|||||||
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,MAAa,sBAAsB;IAIjC,YAAY,QAAgB,EAAE,QAAgB;QAC5C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;IAC1B,CAAC;IAED,cAAc,CAAC,OAA4B;QACzC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YACpB,MAAM,KAAK,CAAC,4BAA4B,CAAC,CAAA;SAC1C;QACD,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,SAAS,MAAM,CAAC,IAAI,CACrD,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,EAAE,CACpC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAA;IACxB,CAAC;IAED,iCAAiC;IACjC,uBAAuB;QACrB,OAAO,KAAK,CAAA;IACd,CAAC;IAEK,oBAAoB;;YACxB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;QACpC,CAAC;KAAA;CACF;AA1BD,wDA0BC;AAED,MAAa,uBAAuB;IAGlC,YAAY,KAAa;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;IAED,yCAAyC;IACzC,sDAAsD;IACtD,cAAc,CAAC,OAA4B;QACzC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YACpB,MAAM,KAAK,CAAC,4BAA4B,CAAC,CAAA;SAC1C;QACD,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,U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AiC;IACjC,uBAAuB;QACrB,OAAO,KAAK,CAAA;IACd,CAAC;IAEK,oBAAoB;;YACxB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;QACpC,CAAC;KAAA;CACF;AA5BD,oFA4BC"}
|
||||||
19
node_modules/@actions/http-client/lib/index.d.ts
generated
vendored
19
node_modules/@actions/http-client/lib/index.d.ts
generated
vendored
@@ -1,6 +1,3 @@
|
|||||||
/// <reference types="node" />
|
|
||||||
/// <reference types="node" />
|
|
||||||
/// <reference types="node" />
|
|
||||||
import * as http from 'http';
|
import * as http from 'http';
|
||||||
import * as ifm from './interfaces';
|
import * as ifm from './interfaces';
|
||||||
import { ProxyAgent } from 'undici';
|
import { ProxyAgent } from 'undici';
|
||||||
@@ -122,9 +119,25 @@ export declare class HttpClient {
|
|||||||
getAgentDispatcher(serverUrl: string): ProxyAgent | undefined;
|
getAgentDispatcher(serverUrl: string): ProxyAgent | undefined;
|
||||||
private _prepareRequest;
|
private _prepareRequest;
|
||||||
private _mergeHeaders;
|
private _mergeHeaders;
|
||||||
|
/**
|
||||||
|
* Gets an existing header value or returns a default.
|
||||||
|
* Handles converting number header values to strings since HTTP headers must be strings.
|
||||||
|
* Note: This returns string | string[] since some headers can have multiple values.
|
||||||
|
* For headers that must always be a single string (like Content-Type), use the
|
||||||
|
* specialized _getExistingOrDefaultContentTypeHeader method instead.
|
||||||
|
*/
|
||||||
private _getExistingOrDefaultHeader;
|
private _getExistingOrDefaultHeader;
|
||||||
|
/**
|
||||||
|
* Specialized version of _getExistingOrDefaultHeader for Content-Type header.
|
||||||
|
* Always returns a single string (not an array) since Content-Type should be a single value.
|
||||||
|
* Converts arrays to comma-separated strings and numbers to strings to ensure type safety.
|
||||||
|
* This was split from _getExistingOrDefaultHeader to provide stricter typing for callers
|
||||||
|
* that assign the result to places expecting a string (e.g., additionalHeaders[Headers.ContentType]).
|
||||||
|
*/
|
||||||
|
private _getExistingOrDefaultContentTypeHeader;
|
||||||
private _getAgent;
|
private _getAgent;
|
||||||
private _getProxyAgentDispatcher;
|
private _getProxyAgentDispatcher;
|
||||||
|
private _getUserAgentWithOrchestrationId;
|
||||||
private _performExponentialBackoff;
|
private _performExponentialBackoff;
|
||||||
private _processResponse;
|
private _processResponse;
|
||||||
}
|
}
|
||||||
|
|||||||
145
node_modules/@actions/http-client/lib/index.js
generated
vendored
145
node_modules/@actions/http-client/lib/index.js
generated
vendored
@@ -16,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
return new (P || (P = Promise))(function (resolve, reject) {
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
@@ -33,7 +43,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0;
|
exports.HttpClient = exports.HttpClientResponse = exports.HttpClientError = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0;
|
||||||
|
exports.getProxyUrl = getProxyUrl;
|
||||||
|
exports.isHttps = isHttps;
|
||||||
const http = __importStar(require("http"));
|
const http = __importStar(require("http"));
|
||||||
const https = __importStar(require("https"));
|
const https = __importStar(require("https"));
|
||||||
const pm = __importStar(require("./proxy"));
|
const pm = __importStar(require("./proxy"));
|
||||||
@@ -86,7 +98,6 @@ function getProxyUrl(serverUrl) {
|
|||||||
const proxyUrl = pm.getProxyUrl(new URL(serverUrl));
|
const proxyUrl = pm.getProxyUrl(new URL(serverUrl));
|
||||||
return proxyUrl ? proxyUrl.href : '';
|
return proxyUrl ? proxyUrl.href : '';
|
||||||
}
|
}
|
||||||
exports.getProxyUrl = getProxyUrl;
|
|
||||||
const HttpRedirectCodes = [
|
const HttpRedirectCodes = [
|
||||||
HttpCodes.MovedPermanently,
|
HttpCodes.MovedPermanently,
|
||||||
HttpCodes.ResourceMoved,
|
HttpCodes.ResourceMoved,
|
||||||
@@ -147,7 +158,6 @@ function isHttps(requestUrl) {
|
|||||||
const parsedUrl = new URL(requestUrl);
|
const parsedUrl = new URL(requestUrl);
|
||||||
return parsedUrl.protocol === 'https:';
|
return parsedUrl.protocol === 'https:';
|
||||||
}
|
}
|
||||||
exports.isHttps = isHttps;
|
|
||||||
class HttpClient {
|
class HttpClient {
|
||||||
constructor(userAgent, handlers, requestOptions) {
|
constructor(userAgent, handlers, requestOptions) {
|
||||||
this._ignoreSslError = false;
|
this._ignoreSslError = false;
|
||||||
@@ -158,7 +168,7 @@ class HttpClient {
|
|||||||
this._maxRetries = 1;
|
this._maxRetries = 1;
|
||||||
this._keepAlive = false;
|
this._keepAlive = false;
|
||||||
this._disposed = false;
|
this._disposed = false;
|
||||||
this.userAgent = userAgent;
|
this.userAgent = this._getUserAgentWithOrchestrationId(userAgent);
|
||||||
this.handlers = handlers || [];
|
this.handlers = handlers || [];
|
||||||
this.requestOptions = requestOptions;
|
this.requestOptions = requestOptions;
|
||||||
if (requestOptions) {
|
if (requestOptions) {
|
||||||
@@ -230,36 +240,39 @@ class HttpClient {
|
|||||||
* Gets a typed object from an endpoint
|
* Gets a typed object from an endpoint
|
||||||
* Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
|
* Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
|
||||||
*/
|
*/
|
||||||
getJson(requestUrl, additionalHeaders = {}) {
|
getJson(requestUrl_1) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, arguments, void 0, function* (requestUrl, additionalHeaders = {}) {
|
||||||
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
|
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
|
||||||
const res = yield this.get(requestUrl, additionalHeaders);
|
const res = yield this.get(requestUrl, additionalHeaders);
|
||||||
return this._processResponse(res, this.requestOptions);
|
return this._processResponse(res, this.requestOptions);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
postJson(requestUrl, obj, additionalHeaders = {}) {
|
postJson(requestUrl_1, obj_1) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) {
|
||||||
const data = JSON.stringify(obj, null, 2);
|
const data = JSON.stringify(obj, null, 2);
|
||||||
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
|
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
|
||||||
additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
|
additionalHeaders[Headers.ContentType] =
|
||||||
|
this._getExistingOrDefaultContentTypeHeader(additionalHeaders, MediaTypes.ApplicationJson);
|
||||||
const res = yield this.post(requestUrl, data, additionalHeaders);
|
const res = yield this.post(requestUrl, data, additionalHeaders);
|
||||||
return this._processResponse(res, this.requestOptions);
|
return this._processResponse(res, this.requestOptions);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
putJson(requestUrl, obj, additionalHeaders = {}) {
|
putJson(requestUrl_1, obj_1) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) {
|
||||||
const data = JSON.stringify(obj, null, 2);
|
const data = JSON.stringify(obj, null, 2);
|
||||||
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
|
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
|
||||||
additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
|
additionalHeaders[Headers.ContentType] =
|
||||||
|
this._getExistingOrDefaultContentTypeHeader(additionalHeaders, MediaTypes.ApplicationJson);
|
||||||
const res = yield this.put(requestUrl, data, additionalHeaders);
|
const res = yield this.put(requestUrl, data, additionalHeaders);
|
||||||
return this._processResponse(res, this.requestOptions);
|
return this._processResponse(res, this.requestOptions);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
patchJson(requestUrl, obj, additionalHeaders = {}) {
|
patchJson(requestUrl_1, obj_1) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) {
|
||||||
const data = JSON.stringify(obj, null, 2);
|
const data = JSON.stringify(obj, null, 2);
|
||||||
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
|
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
|
||||||
additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
|
additionalHeaders[Headers.ContentType] =
|
||||||
|
this._getExistingOrDefaultContentTypeHeader(additionalHeaders, MediaTypes.ApplicationJson);
|
||||||
const res = yield this.patch(requestUrl, data, additionalHeaders);
|
const res = yield this.patch(requestUrl, data, additionalHeaders);
|
||||||
return this._processResponse(res, this.requestOptions);
|
return this._processResponse(res, this.requestOptions);
|
||||||
});
|
});
|
||||||
@@ -488,12 +501,73 @@ class HttpClient {
|
|||||||
}
|
}
|
||||||
return lowercaseKeys(headers || {});
|
return lowercaseKeys(headers || {});
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Gets an existing header value or returns a default.
|
||||||
|
* Handles converting number header values to strings since HTTP headers must be strings.
|
||||||
|
* Note: This returns string | string[] since some headers can have multiple values.
|
||||||
|
* For headers that must always be a single string (like Content-Type), use the
|
||||||
|
* specialized _getExistingOrDefaultContentTypeHeader method instead.
|
||||||
|
*/
|
||||||
_getExistingOrDefaultHeader(additionalHeaders, header, _default) {
|
_getExistingOrDefaultHeader(additionalHeaders, header, _default) {
|
||||||
let clientHeader;
|
let clientHeader;
|
||||||
if (this.requestOptions && this.requestOptions.headers) {
|
if (this.requestOptions && this.requestOptions.headers) {
|
||||||
clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
|
const headerValue = lowercaseKeys(this.requestOptions.headers)[header];
|
||||||
|
if (headerValue) {
|
||||||
|
clientHeader =
|
||||||
|
typeof headerValue === 'number' ? headerValue.toString() : headerValue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return additionalHeaders[header] || clientHeader || _default;
|
const additionalValue = additionalHeaders[header];
|
||||||
|
if (additionalValue !== undefined) {
|
||||||
|
return typeof additionalValue === 'number'
|
||||||
|
? additionalValue.toString()
|
||||||
|
: additionalValue;
|
||||||
|
}
|
||||||
|
if (clientHeader !== undefined) {
|
||||||
|
return clientHeader;
|
||||||
|
}
|
||||||
|
return _default;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Specialized version of _getExistingOrDefaultHeader for Content-Type header.
|
||||||
|
* Always returns a single string (not an array) since Content-Type should be a single value.
|
||||||
|
* Converts arrays to comma-separated strings and numbers to strings to ensure type safety.
|
||||||
|
* This was split from _getExistingOrDefaultHeader to provide stricter typing for callers
|
||||||
|
* that assign the result to places expecting a string (e.g., additionalHeaders[Headers.ContentType]).
|
||||||
|
*/
|
||||||
|
_getExistingOrDefaultContentTypeHeader(additionalHeaders, _default) {
|
||||||
|
let clientHeader;
|
||||||
|
if (this.requestOptions && this.requestOptions.headers) {
|
||||||
|
const headerValue = lowercaseKeys(this.requestOptions.headers)[Headers.ContentType];
|
||||||
|
if (headerValue) {
|
||||||
|
if (typeof headerValue === 'number') {
|
||||||
|
clientHeader = String(headerValue);
|
||||||
|
}
|
||||||
|
else if (Array.isArray(headerValue)) {
|
||||||
|
clientHeader = headerValue.join(', ');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
clientHeader = headerValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const additionalValue = additionalHeaders[Headers.ContentType];
|
||||||
|
// Return the first non-undefined value, converting numbers or arrays to strings if necessary
|
||||||
|
if (additionalValue !== undefined) {
|
||||||
|
if (typeof additionalValue === 'number') {
|
||||||
|
return String(additionalValue);
|
||||||
|
}
|
||||||
|
else if (Array.isArray(additionalValue)) {
|
||||||
|
return additionalValue.join(', ');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return additionalValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (clientHeader !== undefined) {
|
||||||
|
return clientHeader;
|
||||||
|
}
|
||||||
|
return _default;
|
||||||
}
|
}
|
||||||
_getAgent(parsedUrl) {
|
_getAgent(parsedUrl) {
|
||||||
let agent;
|
let agent;
|
||||||
@@ -502,7 +576,7 @@ class HttpClient {
|
|||||||
if (this._keepAlive && useProxy) {
|
if (this._keepAlive && useProxy) {
|
||||||
agent = this._proxyAgent;
|
agent = this._proxyAgent;
|
||||||
}
|
}
|
||||||
if (this._keepAlive && !useProxy) {
|
if (!useProxy) {
|
||||||
agent = this._agent;
|
agent = this._agent;
|
||||||
}
|
}
|
||||||
// if agent is already assigned use that agent.
|
// if agent is already assigned use that agent.
|
||||||
@@ -534,16 +608,12 @@ class HttpClient {
|
|||||||
agent = tunnelAgent(agentOptions);
|
agent = tunnelAgent(agentOptions);
|
||||||
this._proxyAgent = agent;
|
this._proxyAgent = agent;
|
||||||
}
|
}
|
||||||
// if reusing agent across request and tunneling agent isn't assigned create a new agent
|
// if tunneling agent isn't assigned create a new agent
|
||||||
if (this._keepAlive && !agent) {
|
if (!agent) {
|
||||||
const options = { keepAlive: this._keepAlive, maxSockets };
|
const options = { keepAlive: this._keepAlive, maxSockets };
|
||||||
agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
|
agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
|
||||||
this._agent = agent;
|
this._agent = agent;
|
||||||
}
|
}
|
||||||
// if not using private agent and tunnel agent isn't setup then use global agent
|
|
||||||
if (!agent) {
|
|
||||||
agent = usingSsl ? https.globalAgent : http.globalAgent;
|
|
||||||
}
|
|
||||||
if (usingSsl && this._ignoreSslError) {
|
if (usingSsl && this._ignoreSslError) {
|
||||||
// we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
|
// we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
|
||||||
// http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
|
// http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
|
||||||
@@ -565,7 +635,7 @@ class HttpClient {
|
|||||||
}
|
}
|
||||||
const usingSsl = parsedUrl.protocol === 'https:';
|
const usingSsl = parsedUrl.protocol === 'https:';
|
||||||
proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && {
|
proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && {
|
||||||
token: `${proxyUrl.username}:${proxyUrl.password}`
|
token: `Basic ${Buffer.from(`${proxyUrl.username}:${proxyUrl.password}`).toString('base64')}`
|
||||||
})));
|
})));
|
||||||
this._proxyAgentDispatcher = proxyAgent;
|
this._proxyAgentDispatcher = proxyAgent;
|
||||||
if (usingSsl && this._ignoreSslError) {
|
if (usingSsl && this._ignoreSslError) {
|
||||||
@@ -578,6 +648,17 @@ class HttpClient {
|
|||||||
}
|
}
|
||||||
return proxyAgent;
|
return proxyAgent;
|
||||||
}
|
}
|
||||||
|
_getUserAgentWithOrchestrationId(userAgent) {
|
||||||
|
const baseUserAgent = userAgent || 'actions/http-client';
|
||||||
|
const orchId = process.env['ACTIONS_ORCHESTRATION_ID'];
|
||||||
|
if (orchId) {
|
||||||
|
// Sanitize the orchestration ID to ensure it contains only valid characters
|
||||||
|
// Valid characters: 0-9, a-z, _, -, .
|
||||||
|
const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, '_');
|
||||||
|
return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`;
|
||||||
|
}
|
||||||
|
return baseUserAgent;
|
||||||
|
}
|
||||||
_performExponentialBackoff(retryNumber) {
|
_performExponentialBackoff(retryNumber) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
|
retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
|
||||||
|
|||||||
2
node_modules/@actions/http-client/lib/index.js.map
generated
vendored
2
node_modules/@actions/http-client/lib/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
3
node_modules/@actions/http-client/lib/interfaces.d.ts
generated
vendored
3
node_modules/@actions/http-client/lib/interfaces.d.ts
generated
vendored
@@ -1,6 +1,3 @@
|
|||||||
/// <reference types="node" />
|
|
||||||
/// <reference types="node" />
|
|
||||||
/// <reference types="node" />
|
|
||||||
import * as http from 'http';
|
import * as http from 'http';
|
||||||
import * as https from 'https';
|
import * as https from 'https';
|
||||||
import { HttpClientResponse } from './index';
|
import { HttpClientResponse } from './index';
|
||||||
|
|||||||
22
node_modules/@actions/http-client/lib/proxy.js
generated
vendored
22
node_modules/@actions/http-client/lib/proxy.js
generated
vendored
@@ -1,6 +1,7 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.checkBypass = exports.getProxyUrl = void 0;
|
exports.getProxyUrl = getProxyUrl;
|
||||||
|
exports.checkBypass = checkBypass;
|
||||||
function getProxyUrl(reqUrl) {
|
function getProxyUrl(reqUrl) {
|
||||||
const usingSsl = reqUrl.protocol === 'https:';
|
const usingSsl = reqUrl.protocol === 'https:';
|
||||||
if (checkBypass(reqUrl)) {
|
if (checkBypass(reqUrl)) {
|
||||||
@@ -16,18 +17,17 @@ function getProxyUrl(reqUrl) {
|
|||||||
})();
|
})();
|
||||||
if (proxyVar) {
|
if (proxyVar) {
|
||||||
try {
|
try {
|
||||||
return new URL(proxyVar);
|
return new DecodedURL(proxyVar);
|
||||||
}
|
}
|
||||||
catch (_a) {
|
catch (_a) {
|
||||||
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
|
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
|
||||||
return new URL(`http://${proxyVar}`);
|
return new DecodedURL(`http://${proxyVar}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.getProxyUrl = getProxyUrl;
|
|
||||||
function checkBypass(reqUrl) {
|
function checkBypass(reqUrl) {
|
||||||
if (!reqUrl.hostname) {
|
if (!reqUrl.hostname) {
|
||||||
return false;
|
return false;
|
||||||
@@ -71,7 +71,6 @@ function checkBypass(reqUrl) {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
exports.checkBypass = checkBypass;
|
|
||||||
function isLoopbackAddress(host) {
|
function isLoopbackAddress(host) {
|
||||||
const hostLower = host.toLowerCase();
|
const hostLower = host.toLowerCase();
|
||||||
return (hostLower === 'localhost' ||
|
return (hostLower === 'localhost' ||
|
||||||
@@ -79,4 +78,17 @@ function isLoopbackAddress(host) {
|
|||||||
hostLower.startsWith('[::1]') ||
|
hostLower.startsWith('[::1]') ||
|
||||||
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
|
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
|
||||||
}
|
}
|
||||||
|
class DecodedURL extends URL {
|
||||||
|
constructor(url, base) {
|
||||||
|
super(url, base);
|
||||||
|
this._decodedUsername = decodeURIComponent(super.username);
|
||||||
|
this._decodedPassword = decodeURIComponent(super.password);
|
||||||
|
}
|
||||||
|
get username() {
|
||||||
|
return this._decodedUsername;
|
||||||
|
}
|
||||||
|
get password() {
|
||||||
|
return this._decodedPassword;
|
||||||
|
}
|
||||||
|
}
|
||||||
//# sourceMappingURL=proxy.js.map
|
//# sourceMappingURL=proxy.js.map
|
||||||
2
node_modules/@actions/http-client/lib/proxy.js.map
generated
vendored
2
node_modules/@actions/http-client/lib/proxy.js.map
generated
vendored
@@ -1 +1 @@
|
|||||||
{"version":3,"file":"proxy.js","sourceRoot":"","sources":["../src/proxy.ts"],"names":[],"mappings":";;;AAAA,SAAgB,WAAW,CAAC,MAAW;IACrC,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAA;IAE7C,IAAI,WAAW,CAAC,MAAM,CAAC,EAAE;QACvB,OAAO,SAAS,CAAA;KACjB;IAED,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE;QACrB,IAAI,QAAQ,EAAE;YACZ,OAAO,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;SAChE;aAAM;YACL,OAAO,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;SAC9D;IACH,CAAC,CAAC,EAAE,CAAA;IAEJ,IAAI,QAAQ,EAAE;QACZ,IAAI;YACF,OAAO,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAA;SACzB;QAAC,WAAM;YACN,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;gBACrE,OAAO,IAAI,GAAG,CAAC,UAAU,QAAQ,EAAE,CAAC,CAAA;SACvC;KACF;SAAM;QACL,OAAO,SAAS,CAAA;KACjB;AACH,CAAC;AAzBD,kCAyBC;AAED,SAAgB,WAAW,CAAC,MAAW;IACrC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;QACpB,OAAO,KAAK,CAAA;KACb;IAED,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAA;IAC/B,IAAI,iBAAiB,CAAC,OAAO,CAAC,EAAE;QAC9B,OAAO,IAAI,CAAA;KACZ;IAED,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CA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/@actions/http-client/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@actions/http-client",
|
"name": "@actions/http-client",
|
||||||
"version": "2.2.0",
|
"version": "3.0.1",
|
||||||
"description": "Actions Http Client",
|
"description": "Actions Http Client",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"github",
|
"github",
|
||||||
@@ -39,13 +39,16 @@
|
|||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "20.7.1",
|
"@types/node": "24.1.0",
|
||||||
"@types/tunnel": "0.0.3",
|
"@types/tunnel": "0.0.3",
|
||||||
"proxy": "^2.1.1",
|
"proxy": "^2.1.1",
|
||||||
"@types/proxy": "^1.0.1"
|
"@types/proxy": "^1.0.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tunnel": "^0.0.6",
|
"tunnel": "^0.0.6",
|
||||||
"undici": "^5.25.4"
|
"undici": "^5.28.5"
|
||||||
|
},
|
||||||
|
"overrides": {
|
||||||
|
"uri-js": "npm:uri-js-replace@^1.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
15
node_modules/@actions/io/lib/io-util.d.ts
generated
vendored
15
node_modules/@actions/io/lib/io-util.d.ts
generated
vendored
@@ -1,7 +1,18 @@
|
|||||||
/// <reference types="node" />
|
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
export declare const chmod: typeof fs.promises.chmod, copyFile: typeof fs.promises.copyFile, lstat: typeof fs.promises.lstat, mkdir: typeof fs.promises.mkdir, open: typeof fs.promises.open, readdir: typeof fs.promises.readdir, readlink: typeof fs.promises.readlink, rename: typeof fs.promises.rename, rm: typeof fs.promises.rm, rmdir: typeof fs.promises.rmdir, stat: typeof fs.promises.stat, symlink: typeof fs.promises.symlink, unlink: typeof fs.promises.unlink;
|
export declare const chmod: typeof fs.promises.chmod, copyFile: typeof fs.promises.copyFile, lstat: typeof fs.promises.lstat, mkdir: typeof fs.promises.mkdir, open: typeof fs.promises.open, readdir: typeof fs.promises.readdir, rename: typeof fs.promises.rename, rm: typeof fs.promises.rm, rmdir: typeof fs.promises.rmdir, stat: typeof fs.promises.stat, symlink: typeof fs.promises.symlink, unlink: typeof fs.promises.unlink;
|
||||||
export declare const IS_WINDOWS: boolean;
|
export declare const IS_WINDOWS: boolean;
|
||||||
|
/**
|
||||||
|
* Custom implementation of readlink to ensure Windows junctions
|
||||||
|
* maintain trailing backslash for backward compatibility with Node.js < 24
|
||||||
|
*
|
||||||
|
* In Node.js 20, Windows junctions (directory symlinks) always returned paths
|
||||||
|
* with trailing backslashes. Node.js 24 removed this behavior, which breaks
|
||||||
|
* code that relied on this format for path operations.
|
||||||
|
*
|
||||||
|
* This implementation restores the Node 20 behavior by adding a trailing
|
||||||
|
* backslash to all junction results on Windows.
|
||||||
|
*/
|
||||||
|
export declare function readlink(fsPath: string): Promise<string>;
|
||||||
export declare const UV_FS_O_EXLOCK = 268435456;
|
export declare const UV_FS_O_EXLOCK = 268435456;
|
||||||
export declare const READONLY: number;
|
export declare const READONLY: number;
|
||||||
export declare function exists(fsPath: string): Promise<boolean>;
|
export declare function exists(fsPath: string): Promise<boolean>;
|
||||||
|
|||||||
89
node_modules/@actions/io/lib/io-util.js
generated
vendored
89
node_modules/@actions/io/lib/io-util.js
generated
vendored
@@ -1,7 +1,11 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||||
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||||
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||||
|
}
|
||||||
|
Object.defineProperty(o, k2, desc);
|
||||||
}) : (function(o, m, k, k2) {
|
}) : (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
o[k2] = m[k];
|
o[k2] = m[k];
|
||||||
@@ -11,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
return new (P || (P = Promise))(function (resolve, reject) {
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
@@ -29,21 +43,49 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||||||
};
|
};
|
||||||
var _a;
|
var _a;
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readlink = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0;
|
exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0;
|
||||||
|
exports.readlink = readlink;
|
||||||
|
exports.exists = exists;
|
||||||
|
exports.isDirectory = isDirectory;
|
||||||
|
exports.isRooted = isRooted;
|
||||||
|
exports.tryGetExecutablePath = tryGetExecutablePath;
|
||||||
|
exports.getCmdPath = getCmdPath;
|
||||||
const fs = __importStar(require("fs"));
|
const fs = __importStar(require("fs"));
|
||||||
const path = __importStar(require("path"));
|
const path = __importStar(require("path"));
|
||||||
_a = fs.promises
|
_a = fs.promises
|
||||||
// export const {open} = 'fs'
|
// export const {open} = 'fs'
|
||||||
, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.open = _a.open, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rm = _a.rm, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink;
|
, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.open = _a.open, exports.readdir = _a.readdir, exports.rename = _a.rename, exports.rm = _a.rm, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink;
|
||||||
// export const {open} = 'fs'
|
// export const {open} = 'fs'
|
||||||
exports.IS_WINDOWS = process.platform === 'win32';
|
exports.IS_WINDOWS = process.platform === 'win32';
|
||||||
|
/**
|
||||||
|
* Custom implementation of readlink to ensure Windows junctions
|
||||||
|
* maintain trailing backslash for backward compatibility with Node.js < 24
|
||||||
|
*
|
||||||
|
* In Node.js 20, Windows junctions (directory symlinks) always returned paths
|
||||||
|
* with trailing backslashes. Node.js 24 removed this behavior, which breaks
|
||||||
|
* code that relied on this format for path operations.
|
||||||
|
*
|
||||||
|
* This implementation restores the Node 20 behavior by adding a trailing
|
||||||
|
* backslash to all junction results on Windows.
|
||||||
|
*/
|
||||||
|
function readlink(fsPath) {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
const result = yield fs.promises.readlink(fsPath);
|
||||||
|
// On Windows, restore Node 20 behavior: add trailing backslash to all results
|
||||||
|
// since junctions on Windows are always directory links
|
||||||
|
if (exports.IS_WINDOWS && !result.endsWith('\\')) {
|
||||||
|
return `${result}\\`;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
});
|
||||||
|
}
|
||||||
// See https://github.com/nodejs/node/blob/d0153aee367422d0858105abec186da4dff0a0c5/deps/uv/include/uv/win.h#L691
|
// See https://github.com/nodejs/node/blob/d0153aee367422d0858105abec186da4dff0a0c5/deps/uv/include/uv/win.h#L691
|
||||||
exports.UV_FS_O_EXLOCK = 0x10000000;
|
exports.UV_FS_O_EXLOCK = 0x10000000;
|
||||||
exports.READONLY = fs.constants.O_RDONLY;
|
exports.READONLY = fs.constants.O_RDONLY;
|
||||||
function exists(fsPath) {
|
function exists(fsPath) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
try {
|
try {
|
||||||
yield exports.stat(fsPath);
|
yield (0, exports.stat)(fsPath);
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
if (err.code === 'ENOENT') {
|
if (err.code === 'ENOENT') {
|
||||||
@@ -54,14 +96,12 @@ function exists(fsPath) {
|
|||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.exists = exists;
|
function isDirectory(fsPath_1) {
|
||||||
function isDirectory(fsPath, useStat = false) {
|
return __awaiter(this, arguments, void 0, function* (fsPath, useStat = false) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
const stats = useStat ? yield (0, exports.stat)(fsPath) : yield (0, exports.lstat)(fsPath);
|
||||||
const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath);
|
|
||||||
return stats.isDirectory();
|
return stats.isDirectory();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.isDirectory = isDirectory;
|
|
||||||
/**
|
/**
|
||||||
* On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:
|
* On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:
|
||||||
* \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases).
|
* \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases).
|
||||||
@@ -77,7 +117,6 @@ function isRooted(p) {
|
|||||||
}
|
}
|
||||||
return p.startsWith('/');
|
return p.startsWith('/');
|
||||||
}
|
}
|
||||||
exports.isRooted = isRooted;
|
|
||||||
/**
|
/**
|
||||||
* Best effort attempt to determine whether a file exists and is executable.
|
* Best effort attempt to determine whether a file exists and is executable.
|
||||||
* @param filePath file path to check
|
* @param filePath file path to check
|
||||||
@@ -89,7 +128,7 @@ function tryGetExecutablePath(filePath, extensions) {
|
|||||||
let stats = undefined;
|
let stats = undefined;
|
||||||
try {
|
try {
|
||||||
// test file exists
|
// test file exists
|
||||||
stats = yield exports.stat(filePath);
|
stats = yield (0, exports.stat)(filePath);
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
if (err.code !== 'ENOENT') {
|
if (err.code !== 'ENOENT') {
|
||||||
@@ -117,7 +156,7 @@ function tryGetExecutablePath(filePath, extensions) {
|
|||||||
filePath = originalFilePath + extension;
|
filePath = originalFilePath + extension;
|
||||||
stats = undefined;
|
stats = undefined;
|
||||||
try {
|
try {
|
||||||
stats = yield exports.stat(filePath);
|
stats = yield (0, exports.stat)(filePath);
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
if (err.code !== 'ENOENT') {
|
if (err.code !== 'ENOENT') {
|
||||||
@@ -131,7 +170,7 @@ function tryGetExecutablePath(filePath, extensions) {
|
|||||||
try {
|
try {
|
||||||
const directory = path.dirname(filePath);
|
const directory = path.dirname(filePath);
|
||||||
const upperName = path.basename(filePath).toUpperCase();
|
const upperName = path.basename(filePath).toUpperCase();
|
||||||
for (const actualName of yield exports.readdir(directory)) {
|
for (const actualName of yield (0, exports.readdir)(directory)) {
|
||||||
if (upperName === actualName.toUpperCase()) {
|
if (upperName === actualName.toUpperCase()) {
|
||||||
filePath = path.join(directory, actualName);
|
filePath = path.join(directory, actualName);
|
||||||
break;
|
break;
|
||||||
@@ -154,7 +193,6 @@ function tryGetExecutablePath(filePath, extensions) {
|
|||||||
return '';
|
return '';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.tryGetExecutablePath = tryGetExecutablePath;
|
|
||||||
function normalizeSeparators(p) {
|
function normalizeSeparators(p) {
|
||||||
p = p || '';
|
p = p || '';
|
||||||
if (exports.IS_WINDOWS) {
|
if (exports.IS_WINDOWS) {
|
||||||
@@ -171,13 +209,16 @@ function normalizeSeparators(p) {
|
|||||||
// 256 128 64 32 16 8 4 2 1
|
// 256 128 64 32 16 8 4 2 1
|
||||||
function isUnixExecutable(stats) {
|
function isUnixExecutable(stats) {
|
||||||
return ((stats.mode & 1) > 0 ||
|
return ((stats.mode & 1) > 0 ||
|
||||||
((stats.mode & 8) > 0 && stats.gid === process.getgid()) ||
|
((stats.mode & 8) > 0 &&
|
||||||
((stats.mode & 64) > 0 && stats.uid === process.getuid()));
|
process.getgid !== undefined &&
|
||||||
|
stats.gid === process.getgid()) ||
|
||||||
|
((stats.mode & 64) > 0 &&
|
||||||
|
process.getuid !== undefined &&
|
||||||
|
stats.uid === process.getuid()));
|
||||||
}
|
}
|
||||||
// Get the path of cmd.exe in windows
|
// Get the path of cmd.exe in windows
|
||||||
function getCmdPath() {
|
function getCmdPath() {
|
||||||
var _a;
|
var _a;
|
||||||
return (_a = process.env['COMSPEC']) !== null && _a !== void 0 ? _a : `cmd.exe`;
|
return (_a = process.env['COMSPEC']) !== null && _a !== void 0 ? _a : `cmd.exe`;
|
||||||
}
|
}
|
||||||
exports.getCmdPath = getCmdPath;
|
|
||||||
//# sourceMappingURL=io-util.js.map
|
//# sourceMappingURL=io-util.js.map
|
||||||
2
node_modules/@actions/io/lib/io-util.js.map
generated
vendored
2
node_modules/@actions/io/lib/io-util.js.map
generated
vendored
@@ -1 +1 @@
|
|||||||
{"version":3,"file":"io-util.js","sourceRoot":"","sources":["../src/io-util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwB;AACxB,2CAA4B;AAEf,KAcT,EAAE,CAAC,QAAQ;AACf,6BAA6B;EAd3B,aAAK,aACL,gBAAQ,gBACR,aAAK,aACL,aAAK,aACL,YAAI,YACJ,eAAO,eACP,gBAAQ,gBACR,cAAM,cACN,UAAE,UACF,aAAK,aACL,YAAI,YACJ,eAAO,eACP,cAAM,aACO;AACf,6BAA6B;AAChB,QAAA,UAAU,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAA;AACtD,iHAAiH;AACpG,QAAA,cAAc,GAAG,UAAU,CAAA;AAC3B,QAAA,QAAQ,GAAG,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAA;AAE7C,SAAsB,MAAM,CAAC,MAAc;;QACzC,IAAI;YACF,MAAM,YAAI,CAAC,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AK,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC;YACnB,OAAO,CAAC,MAAM,KAAK,SAAS;YAC5B,KAAK,CAAC,GAAG,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC;QACjC,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,GAAG,CAAC;YACpB,OAAO,CAAC,MAAM,KAAK,SAAS;YAC5B,KAAK,CAAC,GAAG,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAClC,CAAA;AACH,CAAC;AAED,qCAAqC;AACrC,SAAgB,UAAU;;IACxB,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,mCAAI,SAAS,CAAA;AAC5C,CAAC"}
|
||||||
53
node_modules/@actions/io/lib/io.js
generated
vendored
53
node_modules/@actions/io/lib/io.js
generated
vendored
@@ -1,7 +1,11 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||||
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||||
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||||
|
}
|
||||||
|
Object.defineProperty(o, k2, desc);
|
||||||
}) : (function(o, m, k, k2) {
|
}) : (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
o[k2] = m[k];
|
o[k2] = m[k];
|
||||||
@@ -11,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
return new (P || (P = Promise))(function (resolve, reject) {
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
@@ -28,7 +42,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.findInPath = exports.which = exports.mkdirP = exports.rmRF = exports.mv = exports.cp = void 0;
|
exports.cp = cp;
|
||||||
|
exports.mv = mv;
|
||||||
|
exports.rmRF = rmRF;
|
||||||
|
exports.mkdirP = mkdirP;
|
||||||
|
exports.which = which;
|
||||||
|
exports.findInPath = findInPath;
|
||||||
const assert_1 = require("assert");
|
const assert_1 = require("assert");
|
||||||
const path = __importStar(require("path"));
|
const path = __importStar(require("path"));
|
||||||
const ioUtil = __importStar(require("./io-util"));
|
const ioUtil = __importStar(require("./io-util"));
|
||||||
@@ -40,8 +59,8 @@ const ioUtil = __importStar(require("./io-util"));
|
|||||||
* @param dest destination path
|
* @param dest destination path
|
||||||
* @param options optional. See CopyOptions.
|
* @param options optional. See CopyOptions.
|
||||||
*/
|
*/
|
||||||
function cp(source, dest, options = {}) {
|
function cp(source_1, dest_1) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, arguments, void 0, function* (source, dest, options = {}) {
|
||||||
const { force, recursive, copySourceDirectory } = readCopyOptions(options);
|
const { force, recursive, copySourceDirectory } = readCopyOptions(options);
|
||||||
const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null;
|
const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null;
|
||||||
// Dest is an existing file, but not forcing
|
// Dest is an existing file, but not forcing
|
||||||
@@ -73,7 +92,6 @@ function cp(source, dest, options = {}) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.cp = cp;
|
|
||||||
/**
|
/**
|
||||||
* Moves a path.
|
* Moves a path.
|
||||||
*
|
*
|
||||||
@@ -81,8 +99,8 @@ exports.cp = cp;
|
|||||||
* @param dest destination path
|
* @param dest destination path
|
||||||
* @param options optional. See MoveOptions.
|
* @param options optional. See MoveOptions.
|
||||||
*/
|
*/
|
||||||
function mv(source, dest, options = {}) {
|
function mv(source_1, dest_1) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, arguments, void 0, function* (source, dest, options = {}) {
|
||||||
if (yield ioUtil.exists(dest)) {
|
if (yield ioUtil.exists(dest)) {
|
||||||
let destExists = true;
|
let destExists = true;
|
||||||
if (yield ioUtil.isDirectory(dest)) {
|
if (yield ioUtil.isDirectory(dest)) {
|
||||||
@@ -103,7 +121,6 @@ function mv(source, dest, options = {}) {
|
|||||||
yield ioUtil.rename(source, dest);
|
yield ioUtil.rename(source, dest);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.mv = mv;
|
|
||||||
/**
|
/**
|
||||||
* Remove a path recursively with force
|
* Remove a path recursively with force
|
||||||
*
|
*
|
||||||
@@ -132,7 +149,6 @@ function rmRF(inputPath) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.rmRF = rmRF;
|
|
||||||
/**
|
/**
|
||||||
* Make a directory. Creates the full path with folders in between
|
* Make a directory. Creates the full path with folders in between
|
||||||
* Will throw if it fails
|
* Will throw if it fails
|
||||||
@@ -142,11 +158,10 @@ exports.rmRF = rmRF;
|
|||||||
*/
|
*/
|
||||||
function mkdirP(fsPath) {
|
function mkdirP(fsPath) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
assert_1.ok(fsPath, 'a path argument must be provided');
|
(0, assert_1.ok)(fsPath, 'a path argument must be provided');
|
||||||
yield ioUtil.mkdir(fsPath, { recursive: true });
|
yield ioUtil.mkdir(fsPath, { recursive: true });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.mkdirP = mkdirP;
|
|
||||||
/**
|
/**
|
||||||
* Returns path of a tool had the tool actually been invoked. Resolves via paths.
|
* Returns path of a tool had the tool actually been invoked. Resolves via paths.
|
||||||
* If you check and the tool does not exist, it will throw.
|
* If you check and the tool does not exist, it will throw.
|
||||||
@@ -180,7 +195,6 @@ function which(tool, check) {
|
|||||||
return '';
|
return '';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.which = which;
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of all occurrences of the given tool on the system path.
|
* Returns a list of all occurrences of the given tool on the system path.
|
||||||
*
|
*
|
||||||
@@ -237,7 +251,6 @@ function findInPath(tool) {
|
|||||||
return matches;
|
return matches;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.findInPath = findInPath;
|
|
||||||
function readCopyOptions(options) {
|
function readCopyOptions(options) {
|
||||||
const force = options.force == null ? true : options.force;
|
const force = options.force == null ? true : options.force;
|
||||||
const recursive = Boolean(options.recursive);
|
const recursive = Boolean(options.recursive);
|
||||||
|
|||||||
2
node_modules/@actions/io/lib/io.js.map
generated
vendored
2
node_modules/@actions/io/lib/io.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/@actions/io/package.json
generated
vendored
2
node_modules/@actions/io/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@actions/io",
|
"name": "@actions/io",
|
||||||
"version": "1.1.3",
|
"version": "2.0.0",
|
||||||
"description": "Actions io lib",
|
"description": "Actions io lib",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"github",
|
"github",
|
||||||
|
|||||||
4
node_modules/@fastify/busboy/README.md
generated
vendored
4
node_modules/@fastify/busboy/README.md
generated
vendored
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[](https://github.com/fastify/busboy/actions)
|
[](https://github.com/fastify/busboy/actions)
|
||||||
[](https://coveralls.io/r/fastify/busboy?branch=master)
|
[](https://coveralls.io/r/fastify/busboy?branch=master)
|
||||||
[](https://standardjs.com/)
|
[](https://standardjs.com/)
|
||||||
[](https://github.com/nodejs/security-wg/blob/HEAD/processes/responsible_disclosure_template.md)
|
[](https://github.com/fastify/.github/blob/main/SECURITY.md)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
12
node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js
generated
vendored
12
node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js
generated
vendored
@@ -78,7 +78,7 @@ Dicer.prototype._write = function (data, encoding, cb) {
|
|||||||
if (this._headerFirst && this._isPreamble) {
|
if (this._headerFirst && this._isPreamble) {
|
||||||
if (!this._part) {
|
if (!this._part) {
|
||||||
this._part = new PartStream(this._partOpts)
|
this._part = new PartStream(this._partOpts)
|
||||||
if (this._events.preamble) { this.emit('preamble', this._part) } else { this._ignore() }
|
if (this.listenerCount('preamble') !== 0) { this.emit('preamble', this._part) } else { this._ignore() }
|
||||||
}
|
}
|
||||||
const r = this._hparser.push(data)
|
const r = this._hparser.push(data)
|
||||||
if (!this._inHeader && r !== undefined && r < data.length) { data = data.slice(r) } else { return cb() }
|
if (!this._inHeader && r !== undefined && r < data.length) { data = data.slice(r) } else { return cb() }
|
||||||
@@ -135,7 +135,7 @@ Dicer.prototype._oninfo = function (isMatch, data, start, end) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this._dashes === 2) {
|
if (this._dashes === 2) {
|
||||||
if ((start + i) < end && this._events.trailer) { this.emit('trailer', data.slice(start + i, end)) }
|
if ((start + i) < end && this.listenerCount('trailer') !== 0) { this.emit('trailer', data.slice(start + i, end)) }
|
||||||
this.reset()
|
this.reset()
|
||||||
this._finished = true
|
this._finished = true
|
||||||
// no more parts will be added
|
// no more parts will be added
|
||||||
@@ -153,7 +153,13 @@ Dicer.prototype._oninfo = function (isMatch, data, start, end) {
|
|||||||
this._part._read = function (n) {
|
this._part._read = function (n) {
|
||||||
self._unpause()
|
self._unpause()
|
||||||
}
|
}
|
||||||
if (this._isPreamble && this._events.preamble) { this.emit('preamble', this._part) } else if (this._isPreamble !== true && this._events.part) { this.emit('part', this._part) } else { this._ignore() }
|
if (this._isPreamble && this.listenerCount('preamble') !== 0) {
|
||||||
|
this.emit('preamble', this._part)
|
||||||
|
} else if (this._isPreamble !== true && this.listenerCount('part') !== 0) {
|
||||||
|
this.emit('part', this._part)
|
||||||
|
} else {
|
||||||
|
this._ignore()
|
||||||
|
}
|
||||||
if (!this._isPreamble) { this._inHeader = true }
|
if (!this._isPreamble) { this._inHeader = true }
|
||||||
}
|
}
|
||||||
if (data && start < end && !this._ignoreData) {
|
if (data && start < end && !this._ignoreData) {
|
||||||
|
|||||||
2
node_modules/@fastify/busboy/lib/types/multipart.js
generated
vendored
2
node_modules/@fastify/busboy/lib/types/multipart.js
generated
vendored
@@ -163,7 +163,7 @@ function Multipart (boy, cfg) {
|
|||||||
|
|
||||||
++nfiles
|
++nfiles
|
||||||
|
|
||||||
if (!boy._events.file) {
|
if (boy.listenerCount('file') === 0) {
|
||||||
self.parser._ignore()
|
self.parser._ignore()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
2
node_modules/@fastify/busboy/lib/utils/decodeText.js
generated
vendored
2
node_modules/@fastify/busboy/lib/utils/decodeText.js
generated
vendored
@@ -96,7 +96,7 @@ const decoders = {
|
|||||||
if (textDecoders.has(this.toString())) {
|
if (textDecoders.has(this.toString())) {
|
||||||
try {
|
try {
|
||||||
return textDecoders.get(this).decode(data)
|
return textDecoders.get(this).decode(data)
|
||||||
} catch (e) { }
|
} catch {}
|
||||||
}
|
}
|
||||||
return typeof data === 'string'
|
return typeof data === 'string'
|
||||||
? data
|
? data
|
||||||
|
|||||||
6
node_modules/@fastify/busboy/package.json
generated
vendored
6
node_modules/@fastify/busboy/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@fastify/busboy",
|
"name": "@fastify/busboy",
|
||||||
"version": "2.1.0",
|
"version": "2.1.1",
|
||||||
"private": false,
|
"private": false,
|
||||||
"author": "Brian White <mscdex@mscdex.net>",
|
"author": "Brian White <mscdex@mscdex.net>",
|
||||||
"contributors": [
|
"contributors": [
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
"standard": "^17.0.0",
|
"standard": "^17.0.0",
|
||||||
"tap": "^16.3.8",
|
"tap": "^16.3.8",
|
||||||
"tinybench": "^2.5.1",
|
"tinybench": "^2.5.1",
|
||||||
"tsd": "^0.29.0",
|
"tsd": "^0.30.0",
|
||||||
"typescript": "^5.0.2"
|
"typescript": "^5.0.2"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/fastify/busboy.git"
|
"url": "git+https://github.com/fastify/busboy.git"
|
||||||
},
|
},
|
||||||
"tsd": {
|
"tsd": {
|
||||||
"directory": "test/types",
|
"directory": "test/types",
|
||||||
|
|||||||
6
node_modules/tunnel/.idea/encodings.xml
generated
vendored
Normal file
6
node_modules/tunnel/.idea/encodings.xml
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Encoding">
|
||||||
|
<file url="PROJECT" charset="UTF-8" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
8
node_modules/tunnel/.idea/modules.xml
generated
vendored
Normal file
8
node_modules/tunnel/.idea/modules.xml
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/node-tunnel.iml" filepath="$PROJECT_DIR$/.idea/node-tunnel.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
12
node_modules/tunnel/.idea/node-tunnel.iml
generated
vendored
Normal file
12
node_modules/tunnel/.idea/node-tunnel.iml
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="WEB_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
6
node_modules/tunnel/.idea/vcs.xml
generated
vendored
Normal file
6
node_modules/tunnel/.idea/vcs.xml
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
797
node_modules/tunnel/.idea/workspace.xml
generated
vendored
Normal file
797
node_modules/tunnel/.idea/workspace.xml
generated
vendored
Normal file
@@ -0,0 +1,797 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ChangeListManager">
|
||||||
|
<list default="true" id="3caed8aa-31ae-4b3d-ad18-6f9796663516" name="Default" comment="">
|
||||||
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.travis.yml" afterPath="$PROJECT_DIR$/.travis.yml" />
|
||||||
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/CHANGELOG.md" afterPath="$PROJECT_DIR$/CHANGELOG.md" />
|
||||||
|
</list>
|
||||||
|
<ignored path="$PROJECT_DIR$/.tmp/" />
|
||||||
|
<ignored path="$PROJECT_DIR$/temp/" />
|
||||||
|
<ignored path="$PROJECT_DIR$/tmp/" />
|
||||||
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||||
|
<option name="TRACKING_ENABLED" value="true" />
|
||||||
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||||
|
</component>
|
||||||
|
<component name="FileEditorManager">
|
||||||
|
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
||||||
|
<file leaf-file-name="package.json" pinned="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/package.json">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="34">
|
||||||
|
<caret line="2" column="19" lean-forward="false" selection-start-line="2" selection-start-column="19" selection-end-line="2" selection-end-column="19" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="README.md" pinned="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/README.md">
|
||||||
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
||||||
|
<state split_layout="SPLIT">
|
||||||
|
<first_editor relative-caret-position="2312">
|
||||||
|
<caret line="136" column="67" lean-forward="false" selection-start-line="136" selection-start-column="67" selection-end-line="136" selection-end-column="67" />
|
||||||
|
<folding>
|
||||||
|
<marker date="1497272379133" expanded="true" signature="590:646" ph="{...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="601:644" ph="{"host": 'localhost'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="674:737" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="884:1330" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="964:1328" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1103:1192" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1290:1324" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1357:1419" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1514:2209" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1540:1623" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1842:2207" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1981:2070" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2168:2202" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2237:2300" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2395:3180" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2475:3178" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2615:2704" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2802:2836" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3207:3269" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3366:4398" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3392:3475" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3694:4396" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3834:3923" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="4021:4055" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="4426:4489" ph="{"host": 'example.com'...}" />
|
||||||
|
</folding>
|
||||||
|
</first_editor>
|
||||||
|
<second_editor />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name=".travis.yml" pinned="false" current-in-tab="true">
|
||||||
|
<entry file="file://$PROJECT_DIR$/.travis.yml">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="102">
|
||||||
|
<caret line="6" column="0" lean-forward="true" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="tunnel.js" pinned="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/lib/tunnel.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="697">
|
||||||
|
<caret line="41" column="19" lean-forward="false" selection-start-line="41" selection-start-column="19" selection-end-line="41" selection-end-column="19" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="http-over-http-error.js" pinned="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/http-over-http-error.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="935">
|
||||||
|
<caret line="55" column="26" lean-forward="true" selection-start-line="55" selection-start-column="26" selection-end-line="55" selection-end-column="26" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="http-over-http-error2.js" pinned="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/http-over-http-error2.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="1207">
|
||||||
|
<caret line="71" column="0" lean-forward="false" selection-start-line="71" selection-start-column="0" selection-end-line="71" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="https-over-http.js" pinned="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/https-over-http.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="1479">
|
||||||
|
<caret line="87" column="0" lean-forward="false" selection-start-line="87" selection-start-column="0" selection-end-line="87" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="https-over-https.js" pinned="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/https-over-https.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="0">
|
||||||
|
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="http-over-http.js" pinned="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/http-over-http.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="1088">
|
||||||
|
<caret line="64" column="26" lean-forward="true" selection-start-line="64" selection-start-column="26" selection-end-line="64" selection-end-column="26" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="CHANGELOG.md" pinned="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/CHANGELOG.md">
|
||||||
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
||||||
|
<state split_layout="SPLIT">
|
||||||
|
<first_editor relative-caret-position="102">
|
||||||
|
<caret line="6" column="0" lean-forward="false" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</first_editor>
|
||||||
|
<second_editor />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
</leaf>
|
||||||
|
</component>
|
||||||
|
<component name="FileTemplateManagerImpl">
|
||||||
|
<option name="RECENT_TEMPLATES">
|
||||||
|
<list>
|
||||||
|
<option value="JavaScript File" />
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="FindInProjectRecents">
|
||||||
|
<findStrings>
|
||||||
|
<find>max</find>
|
||||||
|
<find>onconne</find>
|
||||||
|
</findStrings>
|
||||||
|
</component>
|
||||||
|
<component name="Git.Settings">
|
||||||
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||||
|
</component>
|
||||||
|
<component name="IdeDocumentHistory">
|
||||||
|
<option name="CHANGED_PATHS">
|
||||||
|
<list>
|
||||||
|
<option value="$PROJECT_DIR$/test/http-over-http-error.js" />
|
||||||
|
<option value="$PROJECT_DIR$/README.md" />
|
||||||
|
<option value="$PROJECT_DIR$/package.json" />
|
||||||
|
<option value="$PROJECT_DIR$/test/http-over-http-error2.js" />
|
||||||
|
<option value="$PROJECT_DIR$/test/https-over-http-localaddress.js" />
|
||||||
|
<option value="$PROJECT_DIR$/test/https-over-http.js" />
|
||||||
|
<option value="$PROJECT_DIR$/lib/tunnel.js" />
|
||||||
|
<option value="$PROJECT_DIR$/CHANGELOG.md" />
|
||||||
|
<option value="$PROJECT_DIR$/.travis.yml" />
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
|
||||||
|
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER">
|
||||||
|
<package-json value="$PROJECT_DIR$/package.json" />
|
||||||
|
</component>
|
||||||
|
<component name="JsFlowSettings">
|
||||||
|
<service-enabled>false</service-enabled>
|
||||||
|
<exe-path />
|
||||||
|
<annotation-enable>false</annotation-enable>
|
||||||
|
<other-services-enabled>false</other-services-enabled>
|
||||||
|
<auto-save>true</auto-save>
|
||||||
|
</component>
|
||||||
|
<component name="JsGulpfileManager">
|
||||||
|
<detection-done>true</detection-done>
|
||||||
|
<sorting>DEFINITION_ORDER</sorting>
|
||||||
|
</component>
|
||||||
|
<component name="NodeModulesDirectoryManager">
|
||||||
|
<handled-path value="$PROJECT_DIR$/node_modules" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectFrameBounds">
|
||||||
|
<option name="x" value="785" />
|
||||||
|
<option name="y" value="40" />
|
||||||
|
<option name="width" value="1788" />
|
||||||
|
<option name="height" value="1407" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectView">
|
||||||
|
<navigator currentView="ProjectPane" proportions="" version="1">
|
||||||
|
<flattenPackages />
|
||||||
|
<showMembers />
|
||||||
|
<showModules />
|
||||||
|
<showLibraryContents />
|
||||||
|
<hideEmptyPackages />
|
||||||
|
<abbreviatePackageNames />
|
||||||
|
<autoscrollToSource />
|
||||||
|
<autoscrollFromSource ProjectPane="true" />
|
||||||
|
<sortByType />
|
||||||
|
<manualOrder />
|
||||||
|
<foldersAlwaysOnTop value="true" />
|
||||||
|
</navigator>
|
||||||
|
<panes>
|
||||||
|
<pane id="Scope" />
|
||||||
|
<pane id="Scratches" />
|
||||||
|
<pane id="ProjectPane">
|
||||||
|
<subPane>
|
||||||
|
<expand>
|
||||||
|
<path>
|
||||||
|
<item name="node-tunnel" type="b2602c69:ProjectViewProjectNode" />
|
||||||
|
<item name="node-tunnel" type="462c0819:PsiDirectoryNode" />
|
||||||
|
</path>
|
||||||
|
<path>
|
||||||
|
<item name="node-tunnel" type="b2602c69:ProjectViewProjectNode" />
|
||||||
|
<item name="node-tunnel" type="462c0819:PsiDirectoryNode" />
|
||||||
|
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
||||||
|
</path>
|
||||||
|
<path>
|
||||||
|
<item name="node-tunnel" type="b2602c69:ProjectViewProjectNode" />
|
||||||
|
<item name="node-tunnel" type="462c0819:PsiDirectoryNode" />
|
||||||
|
<item name="test" type="462c0819:PsiDirectoryNode" />
|
||||||
|
</path>
|
||||||
|
</expand>
|
||||||
|
<select />
|
||||||
|
</subPane>
|
||||||
|
</pane>
|
||||||
|
</panes>
|
||||||
|
</component>
|
||||||
|
<component name="PropertiesComponent">
|
||||||
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||||
|
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
||||||
|
<property name="HbShouldOpenHtmlAsHb" value="" />
|
||||||
|
<property name="nodejs_interpreter_path" value="$PROJECT_DIR$/../../nvmw/v6.10.3/node" />
|
||||||
|
</component>
|
||||||
|
<component name="RecentsManager">
|
||||||
|
<key name="CopyFile.RECENT_KEYS">
|
||||||
|
<recent name="C:\Users\koichik\git\koichik\node-tunnel\test" />
|
||||||
|
</key>
|
||||||
|
</component>
|
||||||
|
<component name="RunDashboard">
|
||||||
|
<option name="ruleStates">
|
||||||
|
<list>
|
||||||
|
<RuleState>
|
||||||
|
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
||||||
|
</RuleState>
|
||||||
|
<RuleState>
|
||||||
|
<option name="name" value="StatusDashboardGroupingRule" />
|
||||||
|
</RuleState>
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="RunManager">
|
||||||
|
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
||||||
|
<node-interpreter>project</node-interpreter>
|
||||||
|
<node-options />
|
||||||
|
<gulpfile />
|
||||||
|
<tasks />
|
||||||
|
<arguments />
|
||||||
|
<envs />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="true" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application">
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="true" type="DartTestRunConfigurationType" factoryName="Dart Test">
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="true" type="JavaScriptTestRunnerJest" factoryName="Jest">
|
||||||
|
<node-interpreter value="project" />
|
||||||
|
<working-dir value="" />
|
||||||
|
<envs />
|
||||||
|
<scope-kind value="ALL" />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="true" type="JavaScriptTestRunnerKarma" factoryName="Karma">
|
||||||
|
<config-file value="" />
|
||||||
|
<node-interpreter value="project" />
|
||||||
|
<envs />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="true" type="JavaScriptTestRunnerProtractor" factoryName="Protractor">
|
||||||
|
<config-file value="" />
|
||||||
|
<node-interpreter value="project" />
|
||||||
|
<envs />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" path-to-node="project" working-dir="">
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="true" type="cucumber.js" factoryName="Cucumber.js">
|
||||||
|
<option name="cucumberJsArguments" value="" />
|
||||||
|
<option name="executablePath" />
|
||||||
|
<option name="filePath" />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="true" type="js.build_tools.npm" factoryName="npm">
|
||||||
|
<command value="run" />
|
||||||
|
<scripts />
|
||||||
|
<node-interpreter value="project" />
|
||||||
|
<envs />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="true" type="mocha-javascript-test-runner" factoryName="Mocha">
|
||||||
|
<node-interpreter>project</node-interpreter>
|
||||||
|
<node-options />
|
||||||
|
<working-directory />
|
||||||
|
<pass-parent-env>true</pass-parent-env>
|
||||||
|
<envs />
|
||||||
|
<ui />
|
||||||
|
<extra-mocha-options />
|
||||||
|
<test-kind>DIRECTORY</test-kind>
|
||||||
|
<test-directory />
|
||||||
|
<recursive>false</recursive>
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
</component>
|
||||||
|
<component name="ShelveChangesManager" show_recycled="false">
|
||||||
|
<option name="remove_strategy" value="false" />
|
||||||
|
</component>
|
||||||
|
<component name="SvnConfiguration">
|
||||||
|
<configuration />
|
||||||
|
</component>
|
||||||
|
<component name="TaskManager">
|
||||||
|
<task active="true" id="Default" summary="Default task">
|
||||||
|
<changelist id="3caed8aa-31ae-4b3d-ad18-6f9796663516" name="Default" comment="" />
|
||||||
|
<created>1497256565348</created>
|
||||||
|
<option name="number" value="Default" />
|
||||||
|
<option name="presentableId" value="Default" />
|
||||||
|
<updated>1497256565348</updated>
|
||||||
|
<workItem from="1497256566573" duration="8794000" />
|
||||||
|
<workItem from="1497272051717" duration="2328000" />
|
||||||
|
<workItem from="1536577850117" duration="8708000" />
|
||||||
|
<workItem from="1536636907096" duration="739000" />
|
||||||
|
</task>
|
||||||
|
<servers />
|
||||||
|
</component>
|
||||||
|
<component name="TimeTrackingManager">
|
||||||
|
<option name="totallyTimeSpent" value="20569000" />
|
||||||
|
</component>
|
||||||
|
<component name="ToolWindowManager">
|
||||||
|
<frame x="785" y="40" width="1788" height="1407" extended-state="0" />
|
||||||
|
<editor active="true" />
|
||||||
|
<layout>
|
||||||
|
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
||||||
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="SvgViewer" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
||||||
|
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32967034" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="npm" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
||||||
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
||||||
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
||||||
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||||
|
</layout>
|
||||||
|
</component>
|
||||||
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
|
<option name="version" value="1" />
|
||||||
|
</component>
|
||||||
|
<component name="VcsContentAnnotationSettings">
|
||||||
|
<option name="myLimit" value="2678400000" />
|
||||||
|
</component>
|
||||||
|
<component name="XDebuggerManager">
|
||||||
|
<breakpoint-manager />
|
||||||
|
<watches-manager />
|
||||||
|
</component>
|
||||||
|
<component name="editorHistoryManager">
|
||||||
|
<entry file="file://$PROJECT_DIR$/package.json">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="34">
|
||||||
|
<caret line="2" column="19" lean-forward="false" selection-start-line="2" selection-start-column="19" selection-end-line="2" selection-end-column="19" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/README.md">
|
||||||
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
||||||
|
<state split_layout="SPLIT">
|
||||||
|
<first_editor relative-caret-position="2312">
|
||||||
|
<caret line="136" column="67" lean-forward="false" selection-start-line="136" selection-start-column="67" selection-end-line="136" selection-end-column="67" />
|
||||||
|
<folding>
|
||||||
|
<marker date="1497272379133" expanded="true" signature="590:646" ph="{...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="601:644" ph="{"host": 'localhost'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="674:737" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="884:1330" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="964:1328" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1103:1192" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1290:1324" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1357:1419" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1514:2209" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1540:1623" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1842:2207" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1981:2070" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2168:2202" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2237:2300" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2395:3180" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2475:3178" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2615:2704" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2802:2836" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3207:3269" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3366:4398" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3392:3475" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3694:4396" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3834:3923" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="4021:4055" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="4426:4489" ph="{"host": 'example.com'...}" />
|
||||||
|
</folding>
|
||||||
|
</first_editor>
|
||||||
|
<second_editor />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/.travis.yml">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="102">
|
||||||
|
<caret line="6" column="0" lean-forward="true" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/http-over-http-error.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="935">
|
||||||
|
<caret line="55" column="26" lean-forward="true" selection-start-line="55" selection-start-column="26" selection-end-line="55" selection-end-column="26" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/http-over-http-error2.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="1207">
|
||||||
|
<caret line="71" column="0" lean-forward="false" selection-start-line="71" selection-start-column="0" selection-end-line="71" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/https-over-http.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="1479">
|
||||||
|
<caret line="87" column="0" lean-forward="false" selection-start-line="87" selection-start-column="0" selection-end-line="87" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/https-over-https.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="0">
|
||||||
|
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/http-over-http.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="1088">
|
||||||
|
<caret line="64" column="26" lean-forward="true" selection-start-line="64" selection-start-column="26" selection-end-line="64" selection-end-column="26" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/lib/tunnel.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="697">
|
||||||
|
<caret line="41" column="19" lean-forward="false" selection-start-line="41" selection-start-column="19" selection-end-line="41" selection-end-column="19" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/package.json">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="34">
|
||||||
|
<caret line="2" column="19" lean-forward="false" selection-start-line="2" selection-start-column="19" selection-end-line="2" selection-end-column="19" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/README.md">
|
||||||
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
||||||
|
<state split_layout="SPLIT">
|
||||||
|
<first_editor relative-caret-position="2312">
|
||||||
|
<caret line="136" column="67" lean-forward="false" selection-start-line="136" selection-start-column="67" selection-end-line="136" selection-end-column="67" />
|
||||||
|
<folding>
|
||||||
|
<marker date="1497272379133" expanded="true" signature="590:646" ph="{...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="601:644" ph="{"host": 'localhost'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="674:737" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="884:1330" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="964:1328" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1103:1192" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1290:1324" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1357:1419" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1514:2209" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1540:1623" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1842:2207" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1981:2070" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2168:2202" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2237:2300" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2395:3180" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2475:3178" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2615:2704" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2802:2836" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3207:3269" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3366:4398" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3392:3475" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3694:4396" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3834:3923" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="4021:4055" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="4426:4489" ph="{"host": 'example.com'...}" />
|
||||||
|
</folding>
|
||||||
|
</first_editor>
|
||||||
|
<second_editor />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/lib/tunnel.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="2550">
|
||||||
|
<caret line="150" column="0" lean-forward="false" selection-start-line="150" selection-start-column="0" selection-end-line="150" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/CHANGELOG.md">
|
||||||
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
||||||
|
<state split_layout="SPLIT">
|
||||||
|
<first_editor relative-caret-position="51">
|
||||||
|
<caret line="3" column="21" lean-forward="false" selection-start-line="3" selection-start-column="21" selection-end-line="3" selection-end-column="21" />
|
||||||
|
<folding />
|
||||||
|
</first_editor>
|
||||||
|
<second_editor />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/.travis.yml">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="119">
|
||||||
|
<caret line="7" column="0" lean-forward="true" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/package.json">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="0">
|
||||||
|
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/README.md">
|
||||||
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
||||||
|
<state split_layout="SPLIT">
|
||||||
|
<first_editor relative-caret-position="0">
|
||||||
|
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
<folding>
|
||||||
|
<marker date="1497272379133" expanded="true" signature="590:646" ph="{...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="601:644" ph="{"host": 'localhost'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="674:737" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="884:1330" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="964:1328" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1103:1192" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1290:1324" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1357:1419" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1514:2209" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1540:1623" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1842:2207" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1981:2070" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2168:2202" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2237:2300" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2395:3180" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2475:3178" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2615:2704" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2802:2836" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3207:3269" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3366:4398" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3392:3475" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3694:4396" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3834:3923" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="4021:4055" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="4426:4489" ph="{"host": 'example.com'...}" />
|
||||||
|
</folding>
|
||||||
|
</first_editor>
|
||||||
|
<second_editor />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/.travis.yml">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="0">
|
||||||
|
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/lib/tunnel.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="2550">
|
||||||
|
<caret line="150" column="0" lean-forward="false" selection-start-line="150" selection-start-column="0" selection-end-line="150" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/https-over-https.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="0">
|
||||||
|
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/https-over-https-error.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="0">
|
||||||
|
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/http-over-http.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="136">
|
||||||
|
<caret line="8" column="0" lean-forward="false" selection-start-line="7" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/http-over-http-error.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="1309">
|
||||||
|
<caret line="77" column="0" lean-forward="false" selection-start-line="77" selection-start-column="0" selection-end-line="77" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/http-over-https.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="0">
|
||||||
|
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/http-over-https.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="0">
|
||||||
|
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/https-over-https-error.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="0">
|
||||||
|
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/README.md">
|
||||||
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
||||||
|
<state split_layout="SPLIT">
|
||||||
|
<first_editor relative-caret-position="2312">
|
||||||
|
<caret line="136" column="67" lean-forward="false" selection-start-line="136" selection-start-column="67" selection-end-line="136" selection-end-column="67" />
|
||||||
|
<folding>
|
||||||
|
<marker date="1497272379133" expanded="true" signature="590:646" ph="{...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="601:644" ph="{"host": 'localhost'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="674:737" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="884:1330" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="964:1328" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1103:1192" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1290:1324" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1357:1419" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1514:2209" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1540:1623" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1842:2207" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="1981:2070" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2168:2202" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2237:2300" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2395:3180" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2475:3178" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2615:2704" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="2802:2836" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3207:3269" ph="{"host": 'example.com'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3366:4398" ph="{"maxSockets": poolSize...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3392:3475" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3694:4396" ph="{"host": proxyHost...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="3834:3923" ph="//..." />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="4021:4055" ph="{"User-Agent": 'Node'...}" />
|
||||||
|
<marker date="1497272379133" expanded="true" signature="4426:4489" ph="{"host": 'example.com'...}" />
|
||||||
|
</folding>
|
||||||
|
</first_editor>
|
||||||
|
<second_editor />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/package.json">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="34">
|
||||||
|
<caret line="2" column="19" lean-forward="false" selection-start-line="2" selection-start-column="19" selection-end-line="2" selection-end-column="19" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/http-over-http-error.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="935">
|
||||||
|
<caret line="55" column="26" lean-forward="true" selection-start-line="55" selection-start-column="26" selection-end-line="55" selection-end-column="26" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/http-over-http-error2.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="1207">
|
||||||
|
<caret line="71" column="0" lean-forward="false" selection-start-line="71" selection-start-column="0" selection-end-line="71" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/https-over-http-localaddress.js" />
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/https-over-https.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="0">
|
||||||
|
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/http-over-http.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="1088">
|
||||||
|
<caret line="64" column="26" lean-forward="true" selection-start-line="64" selection-start-column="26" selection-end-line="64" selection-end-column="26" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/https-over-http.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="1479">
|
||||||
|
<caret line="87" column="0" lean-forward="false" selection-start-line="87" selection-start-column="0" selection-end-line="87" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/lib/tunnel.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="697">
|
||||||
|
<caret line="41" column="19" lean-forward="false" selection-start-line="41" selection-start-column="19" selection-end-line="41" selection-end-column="19" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/CHANGELOG.md">
|
||||||
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
||||||
|
<state split_layout="SPLIT">
|
||||||
|
<first_editor relative-caret-position="102">
|
||||||
|
<caret line="6" column="0" lean-forward="false" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</first_editor>
|
||||||
|
<second_editor />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/.travis.yml">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="102">
|
||||||
|
<caret line="6" column="0" lean-forward="true" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
7
node_modules/undici/lib/cookies/index.js
generated
vendored
7
node_modules/undici/lib/cookies/index.js
generated
vendored
@@ -1,7 +1,7 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const { parseSetCookie } = require('./parse')
|
const { parseSetCookie } = require('./parse')
|
||||||
const { stringify, getHeadersList } = require('./util')
|
const { stringify } = require('./util')
|
||||||
const { webidl } = require('../fetch/webidl')
|
const { webidl } = require('../fetch/webidl')
|
||||||
const { Headers } = require('../fetch/headers')
|
const { Headers } = require('../fetch/headers')
|
||||||
|
|
||||||
@@ -77,14 +77,13 @@ function getSetCookies (headers) {
|
|||||||
|
|
||||||
webidl.brandCheck(headers, Headers, { strict: false })
|
webidl.brandCheck(headers, Headers, { strict: false })
|
||||||
|
|
||||||
const cookies = getHeadersList(headers).cookies
|
const cookies = headers.getSetCookie()
|
||||||
|
|
||||||
if (!cookies) {
|
if (!cookies) {
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
||||||
// In older versions of undici, cookies is a list of name:value.
|
return cookies.map((pair) => parseSetCookie(pair))
|
||||||
return cookies.map((pair) => parseSetCookie(Array.isArray(pair) ? pair[1] : pair))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
35
node_modules/undici/lib/cookies/util.js
generated
vendored
35
node_modules/undici/lib/cookies/util.js
generated
vendored
@@ -1,8 +1,9 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const assert = require('assert')
|
/**
|
||||||
const { kHeadersList } = require('../core/symbols')
|
* @param {string} value
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
function isCTLExcludingHtab (value) {
|
function isCTLExcludingHtab (value) {
|
||||||
if (value.length === 0) {
|
if (value.length === 0) {
|
||||||
return false
|
return false
|
||||||
@@ -263,29 +264,11 @@ function stringify (cookie) {
|
|||||||
return out.join('; ')
|
return out.join('; ')
|
||||||
}
|
}
|
||||||
|
|
||||||
let kHeadersListNode
|
|
||||||
|
|
||||||
function getHeadersList (headers) {
|
|
||||||
if (headers[kHeadersList]) {
|
|
||||||
return headers[kHeadersList]
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!kHeadersListNode) {
|
|
||||||
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
|
|
||||||
(symbol) => symbol.description === 'headers list'
|
|
||||||
)
|
|
||||||
|
|
||||||
assert(kHeadersListNode, 'Headers cannot be parsed')
|
|
||||||
}
|
|
||||||
|
|
||||||
const headersList = headers[kHeadersListNode]
|
|
||||||
assert(headersList)
|
|
||||||
|
|
||||||
return headersList
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
isCTLExcludingHtab,
|
isCTLExcludingHtab,
|
||||||
stringify,
|
validateCookieName,
|
||||||
getHeadersList
|
validateCookiePath,
|
||||||
|
validateCookieValue,
|
||||||
|
toIMFDate,
|
||||||
|
stringify
|
||||||
}
|
}
|
||||||
|
|||||||
118
node_modules/undici/lib/core/constants.js
generated
vendored
Normal file
118
node_modules/undici/lib/core/constants.js
generated
vendored
Normal file
@@ -0,0 +1,118 @@
|
|||||||
|
'use strict'
|
||||||
|
|
||||||
|
/** @type {Record<string, string | undefined>} */
|
||||||
|
const headerNameLowerCasedRecord = {}
|
||||||
|
|
||||||
|
// https://developer.mozilla.org/docs/Web/HTTP/Headers
|
||||||
|
const wellknownHeaderNames = [
|
||||||
|
'Accept',
|
||||||
|
'Accept-Encoding',
|
||||||
|
'Accept-Language',
|
||||||
|
'Accept-Ranges',
|
||||||
|
'Access-Control-Allow-Credentials',
|
||||||
|
'Access-Control-Allow-Headers',
|
||||||
|
'Access-Control-Allow-Methods',
|
||||||
|
'Access-Control-Allow-Origin',
|
||||||
|
'Access-Control-Expose-Headers',
|
||||||
|
'Access-Control-Max-Age',
|
||||||
|
'Access-Control-Request-Headers',
|
||||||
|
'Access-Control-Request-Method',
|
||||||
|
'Age',
|
||||||
|
'Allow',
|
||||||
|
'Alt-Svc',
|
||||||
|
'Alt-Used',
|
||||||
|
'Authorization',
|
||||||
|
'Cache-Control',
|
||||||
|
'Clear-Site-Data',
|
||||||
|
'Connection',
|
||||||
|
'Content-Disposition',
|
||||||
|
'Content-Encoding',
|
||||||
|
'Content-Language',
|
||||||
|
'Content-Length',
|
||||||
|
'Content-Location',
|
||||||
|
'Content-Range',
|
||||||
|
'Content-Security-Policy',
|
||||||
|
'Content-Security-Policy-Report-Only',
|
||||||
|
'Content-Type',
|
||||||
|
'Cookie',
|
||||||
|
'Cross-Origin-Embedder-Policy',
|
||||||
|
'Cross-Origin-Opener-Policy',
|
||||||
|
'Cross-Origin-Resource-Policy',
|
||||||
|
'Date',
|
||||||
|
'Device-Memory',
|
||||||
|
'Downlink',
|
||||||
|
'ECT',
|
||||||
|
'ETag',
|
||||||
|
'Expect',
|
||||||
|
'Expect-CT',
|
||||||
|
'Expires',
|
||||||
|
'Forwarded',
|
||||||
|
'From',
|
||||||
|
'Host',
|
||||||
|
'If-Match',
|
||||||
|
'If-Modified-Since',
|
||||||
|
'If-None-Match',
|
||||||
|
'If-Range',
|
||||||
|
'If-Unmodified-Since',
|
||||||
|
'Keep-Alive',
|
||||||
|
'Last-Modified',
|
||||||
|
'Link',
|
||||||
|
'Location',
|
||||||
|
'Max-Forwards',
|
||||||
|
'Origin',
|
||||||
|
'Permissions-Policy',
|
||||||
|
'Pragma',
|
||||||
|
'Proxy-Authenticate',
|
||||||
|
'Proxy-Authorization',
|
||||||
|
'RTT',
|
||||||
|
'Range',
|
||||||
|
'Referer',
|
||||||
|
'Referrer-Policy',
|
||||||
|
'Refresh',
|
||||||
|
'Retry-After',
|
||||||
|
'Sec-WebSocket-Accept',
|
||||||
|
'Sec-WebSocket-Extensions',
|
||||||
|
'Sec-WebSocket-Key',
|
||||||
|
'Sec-WebSocket-Protocol',
|
||||||
|
'Sec-WebSocket-Version',
|
||||||
|
'Server',
|
||||||
|
'Server-Timing',
|
||||||
|
'Service-Worker-Allowed',
|
||||||
|
'Service-Worker-Navigation-Preload',
|
||||||
|
'Set-Cookie',
|
||||||
|
'SourceMap',
|
||||||
|
'Strict-Transport-Security',
|
||||||
|
'Supports-Loading-Mode',
|
||||||
|
'TE',
|
||||||
|
'Timing-Allow-Origin',
|
||||||
|
'Trailer',
|
||||||
|
'Transfer-Encoding',
|
||||||
|
'Upgrade',
|
||||||
|
'Upgrade-Insecure-Requests',
|
||||||
|
'User-Agent',
|
||||||
|
'Vary',
|
||||||
|
'Via',
|
||||||
|
'WWW-Authenticate',
|
||||||
|
'X-Content-Type-Options',
|
||||||
|
'X-DNS-Prefetch-Control',
|
||||||
|
'X-Frame-Options',
|
||||||
|
'X-Permitted-Cross-Domain-Policies',
|
||||||
|
'X-Powered-By',
|
||||||
|
'X-Requested-With',
|
||||||
|
'X-XSS-Protection'
|
||||||
|
]
|
||||||
|
|
||||||
|
for (let i = 0; i < wellknownHeaderNames.length; ++i) {
|
||||||
|
const key = wellknownHeaderNames[i]
|
||||||
|
const lowerCasedKey = key.toLowerCase()
|
||||||
|
headerNameLowerCasedRecord[key] = headerNameLowerCasedRecord[lowerCasedKey] =
|
||||||
|
lowerCasedKey
|
||||||
|
}
|
||||||
|
|
||||||
|
// Note: object prototypes should not be able to be referenced. e.g. `Object#hasOwnProperty`.
|
||||||
|
Object.setPrototypeOf(headerNameLowerCasedRecord, null)
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
wellknownHeaderNames,
|
||||||
|
headerNameLowerCasedRecord
|
||||||
|
}
|
||||||
11
node_modules/undici/lib/core/util.js
generated
vendored
11
node_modules/undici/lib/core/util.js
generated
vendored
@@ -9,6 +9,7 @@ const { InvalidArgumentError } = require('./errors')
|
|||||||
const { Blob } = require('buffer')
|
const { Blob } = require('buffer')
|
||||||
const nodeUtil = require('util')
|
const nodeUtil = require('util')
|
||||||
const { stringify } = require('querystring')
|
const { stringify } = require('querystring')
|
||||||
|
const { headerNameLowerCasedRecord } = require('./constants')
|
||||||
|
|
||||||
const [nodeMajor, nodeMinor] = process.versions.node.split('.').map(v => Number(v))
|
const [nodeMajor, nodeMinor] = process.versions.node.split('.').map(v => Number(v))
|
||||||
|
|
||||||
@@ -218,6 +219,15 @@ function parseKeepAliveTimeout (val) {
|
|||||||
return m ? parseInt(m[1], 10) * 1000 : null
|
return m ? parseInt(m[1], 10) * 1000 : null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves a header name and returns its lowercase value.
|
||||||
|
* @param {string | Buffer} value Header name
|
||||||
|
* @returns {string}
|
||||||
|
*/
|
||||||
|
function headerNameToString (value) {
|
||||||
|
return headerNameLowerCasedRecord[value] || value.toLowerCase()
|
||||||
|
}
|
||||||
|
|
||||||
function parseHeaders (headers, obj = {}) {
|
function parseHeaders (headers, obj = {}) {
|
||||||
// For H2 support
|
// For H2 support
|
||||||
if (!Array.isArray(headers)) return headers
|
if (!Array.isArray(headers)) return headers
|
||||||
@@ -489,6 +499,7 @@ module.exports = {
|
|||||||
isIterable,
|
isIterable,
|
||||||
isAsyncIterable,
|
isAsyncIterable,
|
||||||
isDestroyed,
|
isDestroyed,
|
||||||
|
headerNameToString,
|
||||||
parseRawHeaders,
|
parseRawHeaders,
|
||||||
parseHeaders,
|
parseHeaders,
|
||||||
parseKeepAliveTimeout,
|
parseKeepAliveTimeout,
|
||||||
|
|||||||
10
node_modules/undici/lib/fetch/body.js
generated
vendored
10
node_modules/undici/lib/fetch/body.js
generated
vendored
@@ -22,6 +22,14 @@ const { isUint8Array, isArrayBuffer } = require('util/types')
|
|||||||
const { File: UndiciFile } = require('./file')
|
const { File: UndiciFile } = require('./file')
|
||||||
const { parseMIMEType, serializeAMimeType } = require('./dataURL')
|
const { parseMIMEType, serializeAMimeType } = require('./dataURL')
|
||||||
|
|
||||||
|
let random
|
||||||
|
try {
|
||||||
|
const crypto = require('node:crypto')
|
||||||
|
random = (max) => crypto.randomInt(0, max)
|
||||||
|
} catch {
|
||||||
|
random = (max) => Math.floor(Math.random(max))
|
||||||
|
}
|
||||||
|
|
||||||
let ReadableStream = globalThis.ReadableStream
|
let ReadableStream = globalThis.ReadableStream
|
||||||
|
|
||||||
/** @type {globalThis['File']} */
|
/** @type {globalThis['File']} */
|
||||||
@@ -107,7 +115,7 @@ function extractBody (object, keepalive = false) {
|
|||||||
// Set source to a copy of the bytes held by object.
|
// Set source to a copy of the bytes held by object.
|
||||||
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
|
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
|
||||||
} else if (util.isFormDataLike(object)) {
|
} else if (util.isFormDataLike(object)) {
|
||||||
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
|
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
|
||||||
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
|
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
|
||||||
|
|
||||||
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
||||||
|
|||||||
4
node_modules/undici/lib/fetch/headers.js
generated
vendored
4
node_modules/undici/lib/fetch/headers.js
generated
vendored
@@ -10,6 +10,7 @@ const {
|
|||||||
isValidHeaderName,
|
isValidHeaderName,
|
||||||
isValidHeaderValue
|
isValidHeaderValue
|
||||||
} = require('./util')
|
} = require('./util')
|
||||||
|
const util = require('util')
|
||||||
const { webidl } = require('./webidl')
|
const { webidl } = require('./webidl')
|
||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
|
|
||||||
@@ -563,6 +564,9 @@ Object.defineProperties(Headers.prototype, {
|
|||||||
[Symbol.toStringTag]: {
|
[Symbol.toStringTag]: {
|
||||||
value: 'Headers',
|
value: 'Headers',
|
||||||
configurable: true
|
configurable: true
|
||||||
|
},
|
||||||
|
[util.inspect.custom]: {
|
||||||
|
enumerable: false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
3
node_modules/undici/lib/fetch/index.js
generated
vendored
3
node_modules/undici/lib/fetch/index.js
generated
vendored
@@ -1203,6 +1203,9 @@ function httpRedirectFetch (fetchParams, response) {
|
|||||||
// https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
|
// https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
|
||||||
request.headersList.delete('authorization')
|
request.headersList.delete('authorization')
|
||||||
|
|
||||||
|
// https://fetch.spec.whatwg.org/#authentication-entries
|
||||||
|
request.headersList.delete('proxy-authorization', true)
|
||||||
|
|
||||||
// "Cookie" and "Host" are forbidden request-headers, which undici doesn't implement.
|
// "Cookie" and "Host" are forbidden request-headers, which undici doesn't implement.
|
||||||
request.headersList.delete('cookie')
|
request.headersList.delete('cookie')
|
||||||
request.headersList.delete('host')
|
request.headersList.delete('host')
|
||||||
|
|||||||
143
node_modules/undici/lib/fetch/util.js
generated
vendored
143
node_modules/undici/lib/fetch/util.js
generated
vendored
@@ -7,14 +7,18 @@ const { isBlobLike, toUSVString, ReadableStreamFrom } = require('../core/util')
|
|||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
const { isUint8Array } = require('util/types')
|
const { isUint8Array } = require('util/types')
|
||||||
|
|
||||||
|
let supportedHashes = []
|
||||||
|
|
||||||
// https://nodejs.org/api/crypto.html#determining-if-crypto-support-is-unavailable
|
// https://nodejs.org/api/crypto.html#determining-if-crypto-support-is-unavailable
|
||||||
/** @type {import('crypto')|undefined} */
|
/** @type {import('crypto')|undefined} */
|
||||||
let crypto
|
let crypto
|
||||||
|
|
||||||
try {
|
try {
|
||||||
crypto = require('crypto')
|
crypto = require('crypto')
|
||||||
|
const possibleRelevantHashes = ['sha256', 'sha384', 'sha512']
|
||||||
|
supportedHashes = crypto.getHashes().filter((hash) => possibleRelevantHashes.includes(hash))
|
||||||
|
/* c8 ignore next 3 */
|
||||||
} catch {
|
} catch {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function responseURL (response) {
|
function responseURL (response) {
|
||||||
@@ -542,66 +546,56 @@ function bytesMatch (bytes, metadataList) {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
// 3. If parsedMetadata is the empty set, return true.
|
// 3. If response is not eligible for integrity validation, return false.
|
||||||
|
// TODO
|
||||||
|
|
||||||
|
// 4. If parsedMetadata is the empty set, return true.
|
||||||
if (parsedMetadata.length === 0) {
|
if (parsedMetadata.length === 0) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
// 4. Let metadata be the result of getting the strongest
|
// 5. Let metadata be the result of getting the strongest
|
||||||
// metadata from parsedMetadata.
|
// metadata from parsedMetadata.
|
||||||
const list = parsedMetadata.sort((c, d) => d.algo.localeCompare(c.algo))
|
const strongest = getStrongestMetadata(parsedMetadata)
|
||||||
// get the strongest algorithm
|
const metadata = filterMetadataListByAlgorithm(parsedMetadata, strongest)
|
||||||
const strongest = list[0].algo
|
|
||||||
// get all entries that use the strongest algorithm; ignore weaker
|
|
||||||
const metadata = list.filter((item) => item.algo === strongest)
|
|
||||||
|
|
||||||
// 5. For each item in metadata:
|
// 6. For each item in metadata:
|
||||||
for (const item of metadata) {
|
for (const item of metadata) {
|
||||||
// 1. Let algorithm be the alg component of item.
|
// 1. Let algorithm be the alg component of item.
|
||||||
const algorithm = item.algo
|
const algorithm = item.algo
|
||||||
|
|
||||||
// 2. Let expectedValue be the val component of item.
|
// 2. Let expectedValue be the val component of item.
|
||||||
let expectedValue = item.hash
|
const expectedValue = item.hash
|
||||||
|
|
||||||
// See https://github.com/web-platform-tests/wpt/commit/e4c5cc7a5e48093220528dfdd1c4012dc3837a0e
|
// See https://github.com/web-platform-tests/wpt/commit/e4c5cc7a5e48093220528dfdd1c4012dc3837a0e
|
||||||
// "be liberal with padding". This is annoying, and it's not even in the spec.
|
// "be liberal with padding". This is annoying, and it's not even in the spec.
|
||||||
|
|
||||||
if (expectedValue.endsWith('==')) {
|
|
||||||
expectedValue = expectedValue.slice(0, -2)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 3. Let actualValue be the result of applying algorithm to bytes.
|
// 3. Let actualValue be the result of applying algorithm to bytes.
|
||||||
let actualValue = crypto.createHash(algorithm).update(bytes).digest('base64')
|
let actualValue = crypto.createHash(algorithm).update(bytes).digest('base64')
|
||||||
|
|
||||||
if (actualValue.endsWith('==')) {
|
if (actualValue[actualValue.length - 1] === '=') {
|
||||||
actualValue = actualValue.slice(0, -2)
|
if (actualValue[actualValue.length - 2] === '=') {
|
||||||
|
actualValue = actualValue.slice(0, -2)
|
||||||
|
} else {
|
||||||
|
actualValue = actualValue.slice(0, -1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 4. If actualValue is a case-sensitive match for expectedValue,
|
// 4. If actualValue is a case-sensitive match for expectedValue,
|
||||||
// return true.
|
// return true.
|
||||||
if (actualValue === expectedValue) {
|
if (compareBase64Mixed(actualValue, expectedValue)) {
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
let actualBase64URL = crypto.createHash(algorithm).update(bytes).digest('base64url')
|
|
||||||
|
|
||||||
if (actualBase64URL.endsWith('==')) {
|
|
||||||
actualBase64URL = actualBase64URL.slice(0, -2)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (actualBase64URL === expectedValue) {
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 6. Return false.
|
// 7. Return false.
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://w3c.github.io/webappsec-subresource-integrity/#grammardef-hash-with-options
|
// https://w3c.github.io/webappsec-subresource-integrity/#grammardef-hash-with-options
|
||||||
// https://www.w3.org/TR/CSP2/#source-list-syntax
|
// https://www.w3.org/TR/CSP2/#source-list-syntax
|
||||||
// https://www.rfc-editor.org/rfc/rfc5234#appendix-B.1
|
// https://www.rfc-editor.org/rfc/rfc5234#appendix-B.1
|
||||||
const parseHashWithOptions = /((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i
|
const parseHashWithOptions = /(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see https://w3c.github.io/webappsec-subresource-integrity/#parse-metadata
|
* @see https://w3c.github.io/webappsec-subresource-integrity/#parse-metadata
|
||||||
@@ -615,8 +609,6 @@ function parseMetadata (metadata) {
|
|||||||
// 2. Let empty be equal to true.
|
// 2. Let empty be equal to true.
|
||||||
let empty = true
|
let empty = true
|
||||||
|
|
||||||
const supportedHashes = crypto.getHashes()
|
|
||||||
|
|
||||||
// 3. For each token returned by splitting metadata on spaces:
|
// 3. For each token returned by splitting metadata on spaces:
|
||||||
for (const token of metadata.split(' ')) {
|
for (const token of metadata.split(' ')) {
|
||||||
// 1. Set empty to false.
|
// 1. Set empty to false.
|
||||||
@@ -626,7 +618,11 @@ function parseMetadata (metadata) {
|
|||||||
const parsedToken = parseHashWithOptions.exec(token)
|
const parsedToken = parseHashWithOptions.exec(token)
|
||||||
|
|
||||||
// 3. If token does not parse, continue to the next token.
|
// 3. If token does not parse, continue to the next token.
|
||||||
if (parsedToken === null || parsedToken.groups === undefined) {
|
if (
|
||||||
|
parsedToken === null ||
|
||||||
|
parsedToken.groups === undefined ||
|
||||||
|
parsedToken.groups.algo === undefined
|
||||||
|
) {
|
||||||
// Note: Chromium blocks the request at this point, but Firefox
|
// Note: Chromium blocks the request at this point, but Firefox
|
||||||
// gives a warning that an invalid integrity was given. The
|
// gives a warning that an invalid integrity was given. The
|
||||||
// correct behavior is to ignore these, and subsequently not
|
// correct behavior is to ignore these, and subsequently not
|
||||||
@@ -635,11 +631,11 @@ function parseMetadata (metadata) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 4. Let algorithm be the hash-algo component of token.
|
// 4. Let algorithm be the hash-algo component of token.
|
||||||
const algorithm = parsedToken.groups.algo
|
const algorithm = parsedToken.groups.algo.toLowerCase()
|
||||||
|
|
||||||
// 5. If algorithm is a hash function recognized by the user
|
// 5. If algorithm is a hash function recognized by the user
|
||||||
// agent, add the parsed token to result.
|
// agent, add the parsed token to result.
|
||||||
if (supportedHashes.includes(algorithm.toLowerCase())) {
|
if (supportedHashes.includes(algorithm)) {
|
||||||
result.push(parsedToken.groups)
|
result.push(parsedToken.groups)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -652,6 +648,82 @@ function parseMetadata (metadata) {
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {{ algo: 'sha256' | 'sha384' | 'sha512' }[]} metadataList
|
||||||
|
*/
|
||||||
|
function getStrongestMetadata (metadataList) {
|
||||||
|
// Let algorithm be the algo component of the first item in metadataList.
|
||||||
|
// Can be sha256
|
||||||
|
let algorithm = metadataList[0].algo
|
||||||
|
// If the algorithm is sha512, then it is the strongest
|
||||||
|
// and we can return immediately
|
||||||
|
if (algorithm[3] === '5') {
|
||||||
|
return algorithm
|
||||||
|
}
|
||||||
|
|
||||||
|
for (let i = 1; i < metadataList.length; ++i) {
|
||||||
|
const metadata = metadataList[i]
|
||||||
|
// If the algorithm is sha512, then it is the strongest
|
||||||
|
// and we can break the loop immediately
|
||||||
|
if (metadata.algo[3] === '5') {
|
||||||
|
algorithm = 'sha512'
|
||||||
|
break
|
||||||
|
// If the algorithm is sha384, then a potential sha256 or sha384 is ignored
|
||||||
|
} else if (algorithm[3] === '3') {
|
||||||
|
continue
|
||||||
|
// algorithm is sha256, check if algorithm is sha384 and if so, set it as
|
||||||
|
// the strongest
|
||||||
|
} else if (metadata.algo[3] === '3') {
|
||||||
|
algorithm = 'sha384'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return algorithm
|
||||||
|
}
|
||||||
|
|
||||||
|
function filterMetadataListByAlgorithm (metadataList, algorithm) {
|
||||||
|
if (metadataList.length === 1) {
|
||||||
|
return metadataList
|
||||||
|
}
|
||||||
|
|
||||||
|
let pos = 0
|
||||||
|
for (let i = 0; i < metadataList.length; ++i) {
|
||||||
|
if (metadataList[i].algo === algorithm) {
|
||||||
|
metadataList[pos++] = metadataList[i]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
metadataList.length = pos
|
||||||
|
|
||||||
|
return metadataList
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compares two base64 strings, allowing for base64url
|
||||||
|
* in the second string.
|
||||||
|
*
|
||||||
|
* @param {string} actualValue always base64
|
||||||
|
* @param {string} expectedValue base64 or base64url
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
function compareBase64Mixed (actualValue, expectedValue) {
|
||||||
|
if (actualValue.length !== expectedValue.length) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
for (let i = 0; i < actualValue.length; ++i) {
|
||||||
|
if (actualValue[i] !== expectedValue[i]) {
|
||||||
|
if (
|
||||||
|
(actualValue[i] === '+' && expectedValue[i] === '-') ||
|
||||||
|
(actualValue[i] === '/' && expectedValue[i] === '_')
|
||||||
|
) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
// https://w3c.github.io/webappsec-upgrade-insecure-requests/#upgrade-request
|
// https://w3c.github.io/webappsec-upgrade-insecure-requests/#upgrade-request
|
||||||
function tryUpgradeRequestToAPotentiallyTrustworthyURL (request) {
|
function tryUpgradeRequestToAPotentiallyTrustworthyURL (request) {
|
||||||
// TODO
|
// TODO
|
||||||
@@ -1067,5 +1139,6 @@ module.exports = {
|
|||||||
urlHasHttpsScheme,
|
urlHasHttpsScheme,
|
||||||
urlIsHttpHttpsScheme,
|
urlIsHttpHttpsScheme,
|
||||||
readAllBytes,
|
readAllBytes,
|
||||||
normalizeMethodRecord
|
normalizeMethodRecord,
|
||||||
|
parseMetadata
|
||||||
}
|
}
|
||||||
|
|||||||
17
node_modules/undici/lib/handler/RedirectHandler.js
generated
vendored
17
node_modules/undici/lib/handler/RedirectHandler.js
generated
vendored
@@ -184,12 +184,17 @@ function parseLocation (statusCode, headers) {
|
|||||||
|
|
||||||
// https://tools.ietf.org/html/rfc7231#section-6.4.4
|
// https://tools.ietf.org/html/rfc7231#section-6.4.4
|
||||||
function shouldRemoveHeader (header, removeContent, unknownOrigin) {
|
function shouldRemoveHeader (header, removeContent, unknownOrigin) {
|
||||||
return (
|
if (header.length === 4) {
|
||||||
(header.length === 4 && header.toString().toLowerCase() === 'host') ||
|
return util.headerNameToString(header) === 'host'
|
||||||
(removeContent && header.toString().toLowerCase().indexOf('content-') === 0) ||
|
}
|
||||||
(unknownOrigin && header.length === 13 && header.toString().toLowerCase() === 'authorization') ||
|
if (removeContent && util.headerNameToString(header).startsWith('content-')) {
|
||||||
(unknownOrigin && header.length === 6 && header.toString().toLowerCase() === 'cookie')
|
return true
|
||||||
)
|
}
|
||||||
|
if (unknownOrigin && (header.length === 13 || header.length === 6 || header.length === 19)) {
|
||||||
|
const name = util.headerNameToString(header)
|
||||||
|
return name === 'authorization' || name === 'cookie' || name === 'proxy-authorization'
|
||||||
|
}
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://tools.ietf.org/html/rfc7231#section-6.4
|
// https://tools.ietf.org/html/rfc7231#section-6.4
|
||||||
|
|||||||
14
node_modules/undici/lib/pool.js
generated
vendored
14
node_modules/undici/lib/pool.js
generated
vendored
@@ -73,6 +73,20 @@ class Pool extends PoolBase {
|
|||||||
? { ...options.interceptors }
|
? { ...options.interceptors }
|
||||||
: undefined
|
: undefined
|
||||||
this[kFactory] = factory
|
this[kFactory] = factory
|
||||||
|
|
||||||
|
this.on('connectionError', (origin, targets, error) => {
|
||||||
|
// If a connection error occurs, we remove the client from the pool,
|
||||||
|
// and emit a connectionError event. They will not be re-used.
|
||||||
|
// Fixes https://github.com/nodejs/undici/issues/3895
|
||||||
|
for (const target of targets) {
|
||||||
|
// Do not use kRemoveClient here, as it will close the client,
|
||||||
|
// but the client cannot be closed in this state.
|
||||||
|
const idx = this[kClients].indexOf(target)
|
||||||
|
if (idx !== -1) {
|
||||||
|
this[kClients].splice(idx, 1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
[kGetDispatcher] () {
|
[kGetDispatcher] () {
|
||||||
|
|||||||
4
node_modules/undici/package.json
generated
vendored
4
node_modules/undici/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "undici",
|
"name": "undici",
|
||||||
"version": "5.28.2",
|
"version": "5.29.0",
|
||||||
"description": "An HTTP/1.1 client, written from scratch for Node.js",
|
"description": "An HTTP/1.1 client, written from scratch for Node.js",
|
||||||
"homepage": "https://undici.nodejs.org",
|
"homepage": "https://undici.nodejs.org",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
@@ -110,7 +110,7 @@
|
|||||||
"dns-packet": "^5.4.0",
|
"dns-packet": "^5.4.0",
|
||||||
"docsify-cli": "^4.4.3",
|
"docsify-cli": "^4.4.3",
|
||||||
"form-data": "^4.0.0",
|
"form-data": "^4.0.0",
|
||||||
"formdata-node": "^6.0.3",
|
"formdata-node": "^4.3.1",
|
||||||
"https-pem": "^3.0.0",
|
"https-pem": "^3.0.0",
|
||||||
"husky": "^8.0.1",
|
"husky": "^8.0.1",
|
||||||
"import-fresh": "^3.3.0",
|
"import-fresh": "^3.3.0",
|
||||||
|
|||||||
229
node_modules/uuid/CHANGELOG.md
generated
vendored
229
node_modules/uuid/CHANGELOG.md
generated
vendored
@@ -1,229 +0,0 @@
|
|||||||
# Changelog
|
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
||||||
|
|
||||||
### [8.3.2](https://github.com/uuidjs/uuid/compare/v8.3.1...v8.3.2) (2020-12-08)
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- lazy load getRandomValues ([#537](https://github.com/uuidjs/uuid/issues/537)) ([16c8f6d](https://github.com/uuidjs/uuid/commit/16c8f6df2f6b09b4d6235602d6a591188320a82e)), closes [#536](https://github.com/uuidjs/uuid/issues/536)
|
|
||||||
|
|
||||||
### [8.3.1](https://github.com/uuidjs/uuid/compare/v8.3.0...v8.3.1) (2020-10-04)
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- support expo>=39.0.0 ([#515](https://github.com/uuidjs/uuid/issues/515)) ([c65a0f3](https://github.com/uuidjs/uuid/commit/c65a0f3fa73b901959d638d1e3591dfacdbed867)), closes [#375](https://github.com/uuidjs/uuid/issues/375)
|
|
||||||
|
|
||||||
## [8.3.0](https://github.com/uuidjs/uuid/compare/v8.2.0...v8.3.0) (2020-07-27)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
- add parse/stringify/validate/version/NIL APIs ([#479](https://github.com/uuidjs/uuid/issues/479)) ([0e6c10b](https://github.com/uuidjs/uuid/commit/0e6c10ba1bf9517796ff23c052fc0468eedfd5f4)), closes [#475](https://github.com/uuidjs/uuid/issues/475) [#478](https://github.com/uuidjs/uuid/issues/478) [#480](https://github.com/uuidjs/uuid/issues/480) [#481](https://github.com/uuidjs/uuid/issues/481) [#180](https://github.com/uuidjs/uuid/issues/180)
|
|
||||||
|
|
||||||
## [8.2.0](https://github.com/uuidjs/uuid/compare/v8.1.0...v8.2.0) (2020-06-23)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
- improve performance of v1 string representation ([#453](https://github.com/uuidjs/uuid/issues/453)) ([0ee0b67](https://github.com/uuidjs/uuid/commit/0ee0b67c37846529c66089880414d29f3ae132d5))
|
|
||||||
- remove deprecated v4 string parameter ([#454](https://github.com/uuidjs/uuid/issues/454)) ([88ce3ca](https://github.com/uuidjs/uuid/commit/88ce3ca0ba046f60856de62c7ce03f7ba98ba46c)), closes [#437](https://github.com/uuidjs/uuid/issues/437)
|
|
||||||
- support jspm ([#473](https://github.com/uuidjs/uuid/issues/473)) ([e9f2587](https://github.com/uuidjs/uuid/commit/e9f2587a92575cac31bc1d4ae944e17c09756659))
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- prepare package exports for webpack 5 ([#468](https://github.com/uuidjs/uuid/issues/468)) ([8d6e6a5](https://github.com/uuidjs/uuid/commit/8d6e6a5f8965ca9575eb4d92e99a43435f4a58a8))
|
|
||||||
|
|
||||||
## [8.1.0](https://github.com/uuidjs/uuid/compare/v8.0.0...v8.1.0) (2020-05-20)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
- improve v4 performance by reusing random number array ([#435](https://github.com/uuidjs/uuid/issues/435)) ([bf4af0d](https://github.com/uuidjs/uuid/commit/bf4af0d711b4d2ed03d1f74fd12ad0baa87dc79d))
|
|
||||||
- optimize V8 performance of bytesToUuid ([#434](https://github.com/uuidjs/uuid/issues/434)) ([e156415](https://github.com/uuidjs/uuid/commit/e156415448ec1af2351fa0b6660cfb22581971f2))
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- export package.json required by react-native and bundlers ([#449](https://github.com/uuidjs/uuid/issues/449)) ([be1c8fe](https://github.com/uuidjs/uuid/commit/be1c8fe9a3206c358e0059b52fafd7213aa48a52)), closes [ai/nanoevents#44](https://github.com/ai/nanoevents/issues/44#issuecomment-602010343) [#444](https://github.com/uuidjs/uuid/issues/444)
|
|
||||||
|
|
||||||
## [8.0.0](https://github.com/uuidjs/uuid/compare/v7.0.3...v8.0.0) (2020-04-29)
|
|
||||||
|
|
||||||
### ⚠ BREAKING CHANGES
|
|
||||||
|
|
||||||
- For native ECMAScript Module (ESM) usage in Node.js only named exports are exposed, there is no more default export.
|
|
||||||
|
|
||||||
```diff
|
|
||||||
-import uuid from 'uuid';
|
|
||||||
-console.log(uuid.v4()); // -> 'cd6c3b08-0adc-4f4b-a6ef-36087a1c9869'
|
|
||||||
+import { v4 as uuidv4 } from 'uuid';
|
|
||||||
+uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'
|
|
||||||
```
|
|
||||||
|
|
||||||
- Deep requiring specific algorithms of this library like `require('uuid/v4')`, which has been deprecated in `uuid@7`, is no longer supported.
|
|
||||||
|
|
||||||
Instead use the named exports that this module exports.
|
|
||||||
|
|
||||||
For ECMAScript Modules (ESM):
|
|
||||||
|
|
||||||
```diff
|
|
||||||
-import uuidv4 from 'uuid/v4';
|
|
||||||
+import { v4 as uuidv4 } from 'uuid';
|
|
||||||
uuidv4();
|
|
||||||
```
|
|
||||||
|
|
||||||
For CommonJS:
|
|
||||||
|
|
||||||
```diff
|
|
||||||
-const uuidv4 = require('uuid/v4');
|
|
||||||
+const { v4: uuidv4 } = require('uuid');
|
|
||||||
uuidv4();
|
|
||||||
```
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
- native Node.js ES Modules (wrapper approach) ([#423](https://github.com/uuidjs/uuid/issues/423)) ([2d9f590](https://github.com/uuidjs/uuid/commit/2d9f590ad9701d692625c07ed62f0a0f91227991)), closes [#245](https://github.com/uuidjs/uuid/issues/245) [#419](https://github.com/uuidjs/uuid/issues/419) [#342](https://github.com/uuidjs/uuid/issues/342)
|
|
||||||
- remove deep requires ([#426](https://github.com/uuidjs/uuid/issues/426)) ([daf72b8](https://github.com/uuidjs/uuid/commit/daf72b84ceb20272a81bb5fbddb05dd95922cbba))
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- add CommonJS syntax example to README quickstart section ([#417](https://github.com/uuidjs/uuid/issues/417)) ([e0ec840](https://github.com/uuidjs/uuid/commit/e0ec8402c7ad44b7ef0453036c612f5db513fda0))
|
|
||||||
|
|
||||||
### [7.0.3](https://github.com/uuidjs/uuid/compare/v7.0.2...v7.0.3) (2020-03-31)
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- make deep require deprecation warning work in browsers ([#409](https://github.com/uuidjs/uuid/issues/409)) ([4b71107](https://github.com/uuidjs/uuid/commit/4b71107d8c0d2ef56861ede6403fc9dc35a1e6bf)), closes [#408](https://github.com/uuidjs/uuid/issues/408)
|
|
||||||
|
|
||||||
### [7.0.2](https://github.com/uuidjs/uuid/compare/v7.0.1...v7.0.2) (2020-03-04)
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- make access to msCrypto consistent ([#393](https://github.com/uuidjs/uuid/issues/393)) ([8bf2a20](https://github.com/uuidjs/uuid/commit/8bf2a20f3565df743da7215eebdbada9d2df118c))
|
|
||||||
- simplify link in deprecation warning ([#391](https://github.com/uuidjs/uuid/issues/391)) ([bb2c8e4](https://github.com/uuidjs/uuid/commit/bb2c8e4e9f4c5f9c1eaaf3ea59710c633cd90cb7))
|
|
||||||
- update links to match content in readme ([#386](https://github.com/uuidjs/uuid/issues/386)) ([44f2f86](https://github.com/uuidjs/uuid/commit/44f2f86e9d2bbf14ee5f0f00f72a3db1292666d4))
|
|
||||||
|
|
||||||
### [7.0.1](https://github.com/uuidjs/uuid/compare/v7.0.0...v7.0.1) (2020-02-25)
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- clean up esm builds for node and browser ([#383](https://github.com/uuidjs/uuid/issues/383)) ([59e6a49](https://github.com/uuidjs/uuid/commit/59e6a49e7ce7b3e8fb0f3ee52b9daae72af467dc))
|
|
||||||
- provide browser versions independent from module system ([#380](https://github.com/uuidjs/uuid/issues/380)) ([4344a22](https://github.com/uuidjs/uuid/commit/4344a22e7aed33be8627eeaaf05360f256a21753)), closes [#378](https://github.com/uuidjs/uuid/issues/378)
|
|
||||||
|
|
||||||
## [7.0.0](https://github.com/uuidjs/uuid/compare/v3.4.0...v7.0.0) (2020-02-24)
|
|
||||||
|
|
||||||
### ⚠ BREAKING CHANGES
|
|
||||||
|
|
||||||
- The default export, which used to be the v4() method but which was already discouraged in v3.x of this library, has been removed.
|
|
||||||
- Explicitly note that deep imports of the different uuid version functions are deprecated and no longer encouraged and that ECMAScript module named imports should be used instead. Emit a deprecation warning for people who deep-require the different algorithm variants.
|
|
||||||
- Remove builtin support for insecure random number generators in the browser. Users who want that will have to supply their own random number generator function.
|
|
||||||
- Remove support for generating v3 and v5 UUIDs in Node.js<4.x
|
|
||||||
- Convert code base to ECMAScript Modules (ESM) and release CommonJS build for node and ESM build for browser bundlers.
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
- add UMD build to npm package ([#357](https://github.com/uuidjs/uuid/issues/357)) ([4e75adf](https://github.com/uuidjs/uuid/commit/4e75adf435196f28e3fbbe0185d654b5ded7ca2c)), closes [#345](https://github.com/uuidjs/uuid/issues/345)
|
|
||||||
- add various es module and CommonJS examples ([b238510](https://github.com/uuidjs/uuid/commit/b238510bf352463521f74bab175a3af9b7a42555))
|
|
||||||
- ensure that docs are up-to-date in CI ([ee5e77d](https://github.com/uuidjs/uuid/commit/ee5e77db547474f5a8f23d6c857a6d399209986b))
|
|
||||||
- hybrid CommonJS & ECMAScript modules build ([a3f078f](https://github.com/uuidjs/uuid/commit/a3f078faa0baff69ab41aed08e041f8f9c8993d0))
|
|
||||||
- remove insecure fallback random number generator ([3a5842b](https://github.com/uuidjs/uuid/commit/3a5842b141a6e5de0ae338f391661e6b84b167c9)), closes [#173](https://github.com/uuidjs/uuid/issues/173)
|
|
||||||
- remove support for pre Node.js v4 Buffer API ([#356](https://github.com/uuidjs/uuid/issues/356)) ([b59b5c5](https://github.com/uuidjs/uuid/commit/b59b5c5ecad271c5453f1a156f011671f6d35627))
|
|
||||||
- rename repository to github:uuidjs/uuid ([#351](https://github.com/uuidjs/uuid/issues/351)) ([c37a518](https://github.com/uuidjs/uuid/commit/c37a518e367ac4b6d0aa62dba1bc6ce9e85020f7)), closes [#338](https://github.com/uuidjs/uuid/issues/338)
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- add deep-require proxies for local testing and adjust tests ([#365](https://github.com/uuidjs/uuid/issues/365)) ([7fedc79](https://github.com/uuidjs/uuid/commit/7fedc79ac8fda4bfd1c566c7f05ef4ac13b2db48))
|
|
||||||
- add note about removal of default export ([#372](https://github.com/uuidjs/uuid/issues/372)) ([12749b7](https://github.com/uuidjs/uuid/commit/12749b700eb49db8a9759fd306d8be05dbfbd58c)), closes [#370](https://github.com/uuidjs/uuid/issues/370)
|
|
||||||
- deprecated deep requiring of the different algorithm versions ([#361](https://github.com/uuidjs/uuid/issues/361)) ([c0bdf15](https://github.com/uuidjs/uuid/commit/c0bdf15e417639b1aeb0b247b2fb11f7a0a26b23))
|
|
||||||
|
|
||||||
## [3.4.0](https://github.com/uuidjs/uuid/compare/v3.3.3...v3.4.0) (2020-01-16)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
- rename repository to github:uuidjs/uuid ([#351](https://github.com/uuidjs/uuid/issues/351)) ([e2d7314](https://github.com/uuidjs/uuid/commit/e2d7314)), closes [#338](https://github.com/uuidjs/uuid/issues/338)
|
|
||||||
|
|
||||||
## [3.3.3](https://github.com/uuidjs/uuid/compare/v3.3.2...v3.3.3) (2019-08-19)
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- no longer run ci tests on node v4
|
|
||||||
- upgrade dependencies
|
|
||||||
|
|
||||||
## [3.3.2](https://github.com/uuidjs/uuid/compare/v3.3.1...v3.3.2) (2018-06-28)
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- typo ([305d877](https://github.com/uuidjs/uuid/commit/305d877))
|
|
||||||
|
|
||||||
## [3.3.1](https://github.com/uuidjs/uuid/compare/v3.3.0...v3.3.1) (2018-06-28)
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- fix [#284](https://github.com/uuidjs/uuid/issues/284) by setting function name in try-catch ([f2a60f2](https://github.com/uuidjs/uuid/commit/f2a60f2))
|
|
||||||
|
|
||||||
# [3.3.0](https://github.com/uuidjs/uuid/compare/v3.2.1...v3.3.0) (2018-06-22)
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- assignment to readonly property to allow running in strict mode ([#270](https://github.com/uuidjs/uuid/issues/270)) ([d062fdc](https://github.com/uuidjs/uuid/commit/d062fdc))
|
|
||||||
- fix [#229](https://github.com/uuidjs/uuid/issues/229) ([c9684d4](https://github.com/uuidjs/uuid/commit/c9684d4))
|
|
||||||
- Get correct version of IE11 crypto ([#274](https://github.com/uuidjs/uuid/issues/274)) ([153d331](https://github.com/uuidjs/uuid/commit/153d331))
|
|
||||||
- mem issue when generating uuid ([#267](https://github.com/uuidjs/uuid/issues/267)) ([c47702c](https://github.com/uuidjs/uuid/commit/c47702c))
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
- enforce Conventional Commit style commit messages ([#282](https://github.com/uuidjs/uuid/issues/282)) ([cc9a182](https://github.com/uuidjs/uuid/commit/cc9a182))
|
|
||||||
|
|
||||||
## [3.2.1](https://github.com/uuidjs/uuid/compare/v3.2.0...v3.2.1) (2018-01-16)
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- use msCrypto if available. Fixes [#241](https://github.com/uuidjs/uuid/issues/241) ([#247](https://github.com/uuidjs/uuid/issues/247)) ([1fef18b](https://github.com/uuidjs/uuid/commit/1fef18b))
|
|
||||||
|
|
||||||
# [3.2.0](https://github.com/uuidjs/uuid/compare/v3.1.0...v3.2.0) (2018-01-16)
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- remove mistakenly added typescript dependency, rollback version (standard-version will auto-increment) ([09fa824](https://github.com/uuidjs/uuid/commit/09fa824))
|
|
||||||
- use msCrypto if available. Fixes [#241](https://github.com/uuidjs/uuid/issues/241) ([#247](https://github.com/uuidjs/uuid/issues/247)) ([1fef18b](https://github.com/uuidjs/uuid/commit/1fef18b))
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
- Add v3 Support ([#217](https://github.com/uuidjs/uuid/issues/217)) ([d94f726](https://github.com/uuidjs/uuid/commit/d94f726))
|
|
||||||
|
|
||||||
# [3.1.0](https://github.com/uuidjs/uuid/compare/v3.1.0...v3.0.1) (2017-06-17)
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- (fix) Add .npmignore file to exclude test/ and other non-essential files from packing. (#183)
|
|
||||||
- Fix typo (#178)
|
|
||||||
- Simple typo fix (#165)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
- v5 support in CLI (#197)
|
|
||||||
- V5 support (#188)
|
|
||||||
|
|
||||||
# 3.0.1 (2016-11-28)
|
|
||||||
|
|
||||||
- split uuid versions into separate files
|
|
||||||
|
|
||||||
# 3.0.0 (2016-11-17)
|
|
||||||
|
|
||||||
- remove .parse and .unparse
|
|
||||||
|
|
||||||
# 2.0.0
|
|
||||||
|
|
||||||
- Removed uuid.BufferClass
|
|
||||||
|
|
||||||
# 1.4.0
|
|
||||||
|
|
||||||
- Improved module context detection
|
|
||||||
- Removed public RNG functions
|
|
||||||
|
|
||||||
# 1.3.2
|
|
||||||
|
|
||||||
- Improve tests and handling of v1() options (Issue #24)
|
|
||||||
- Expose RNG option to allow for perf testing with different generators
|
|
||||||
|
|
||||||
# 1.3.0
|
|
||||||
|
|
||||||
- Support for version 1 ids, thanks to [@ctavan](https://github.com/ctavan)!
|
|
||||||
- Support for node.js crypto API
|
|
||||||
- De-emphasizing performance in favor of a) cryptographic quality PRNGs where available and b) more manageable code
|
|
||||||
18
node_modules/uuid/CONTRIBUTING.md
generated
vendored
18
node_modules/uuid/CONTRIBUTING.md
generated
vendored
@@ -1,18 +0,0 @@
|
|||||||
# Contributing
|
|
||||||
|
|
||||||
Please feel free to file GitHub Issues or propose Pull Requests. We're always happy to discuss improvements to this library!
|
|
||||||
|
|
||||||
## Testing
|
|
||||||
|
|
||||||
```shell
|
|
||||||
npm test
|
|
||||||
```
|
|
||||||
|
|
||||||
## Releasing
|
|
||||||
|
|
||||||
Releases are supposed to be done from master, version bumping is automated through [`standard-version`](https://github.com/conventional-changelog/standard-version):
|
|
||||||
|
|
||||||
```shell
|
|
||||||
npm run release -- --dry-run # verify output manually
|
|
||||||
npm run release # follow the instructions from the output of this command
|
|
||||||
```
|
|
||||||
9
node_modules/uuid/LICENSE.md
generated
vendored
9
node_modules/uuid/LICENSE.md
generated
vendored
@@ -1,9 +0,0 @@
|
|||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2010-2020 Robert Kieffer and other contributors
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
505
node_modules/uuid/README.md
generated
vendored
505
node_modules/uuid/README.md
generated
vendored
@@ -1,505 +0,0 @@
|
|||||||
<!--
|
|
||||||
-- This file is auto-generated from README_js.md. Changes should be made there.
|
|
||||||
-->
|
|
||||||
|
|
||||||
# uuid [](https://github.com/uuidjs/uuid/actions?query=workflow%3ACI) [](https://github.com/uuidjs/uuid/actions?query=workflow%3ABrowser)
|
|
||||||
|
|
||||||
For the creation of [RFC4122](http://www.ietf.org/rfc/rfc4122.txt) UUIDs
|
|
||||||
|
|
||||||
- **Complete** - Support for RFC4122 version 1, 3, 4, and 5 UUIDs
|
|
||||||
- **Cross-platform** - Support for ...
|
|
||||||
- CommonJS, [ECMAScript Modules](#ecmascript-modules) and [CDN builds](#cdn-builds)
|
|
||||||
- Node 8, 10, 12, 14
|
|
||||||
- Chrome, Safari, Firefox, Edge, IE 11 browsers
|
|
||||||
- Webpack and rollup.js module bundlers
|
|
||||||
- [React Native / Expo](#react-native--expo)
|
|
||||||
- **Secure** - Cryptographically-strong random values
|
|
||||||
- **Small** - Zero-dependency, small footprint, plays nice with "tree shaking" packagers
|
|
||||||
- **CLI** - Includes the [`uuid` command line](#command-line) utility
|
|
||||||
|
|
||||||
**Upgrading from `uuid@3.x`?** Your code is probably okay, but check out [Upgrading From `uuid@3.x`](#upgrading-from-uuid3x) for details.
|
|
||||||
|
|
||||||
## Quickstart
|
|
||||||
|
|
||||||
To create a random UUID...
|
|
||||||
|
|
||||||
**1. Install**
|
|
||||||
|
|
||||||
```shell
|
|
||||||
npm install uuid
|
|
||||||
```
|
|
||||||
|
|
||||||
**2. Create a UUID** (ES6 module syntax)
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import { v4 as uuidv4 } from 'uuid';
|
|
||||||
uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'
|
|
||||||
```
|
|
||||||
|
|
||||||
... or using CommonJS syntax:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
const { v4: uuidv4 } = require('uuid');
|
|
||||||
uuidv4(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed'
|
|
||||||
```
|
|
||||||
|
|
||||||
For timestamp UUIDs, namespace UUIDs, and other options read on ...
|
|
||||||
|
|
||||||
## API Summary
|
|
||||||
|
|
||||||
| | | |
|
|
||||||
| --- | --- | --- |
|
|
||||||
| [`uuid.NIL`](#uuidnil) | The nil UUID string (all zeros) | New in `uuid@8.3` |
|
|
||||||
| [`uuid.parse()`](#uuidparsestr) | Convert UUID string to array of bytes | New in `uuid@8.3` |
|
|
||||||
| [`uuid.stringify()`](#uuidstringifyarr-offset) | Convert array of bytes to UUID string | New in `uuid@8.3` |
|
|
||||||
| [`uuid.v1()`](#uuidv1options-buffer-offset) | Create a version 1 (timestamp) UUID | |
|
|
||||||
| [`uuid.v3()`](#uuidv3name-namespace-buffer-offset) | Create a version 3 (namespace w/ MD5) UUID | |
|
|
||||||
| [`uuid.v4()`](#uuidv4options-buffer-offset) | Create a version 4 (random) UUID | |
|
|
||||||
| [`uuid.v5()`](#uuidv5name-namespace-buffer-offset) | Create a version 5 (namespace w/ SHA-1) UUID | |
|
|
||||||
| [`uuid.validate()`](#uuidvalidatestr) | Test a string to see if it is a valid UUID | New in `uuid@8.3` |
|
|
||||||
| [`uuid.version()`](#uuidversionstr) | Detect RFC version of a UUID | New in `uuid@8.3` |
|
|
||||||
|
|
||||||
## API
|
|
||||||
|
|
||||||
### uuid.NIL
|
|
||||||
|
|
||||||
The nil UUID string (all zeros).
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import { NIL as NIL_UUID } from 'uuid';
|
|
||||||
|
|
||||||
NIL_UUID; // ⇨ '00000000-0000-0000-0000-000000000000'
|
|
||||||
```
|
|
||||||
|
|
||||||
### uuid.parse(str)
|
|
||||||
|
|
||||||
Convert UUID string to array of bytes
|
|
||||||
|
|
||||||
| | |
|
|
||||||
| --------- | ---------------------------------------- |
|
|
||||||
| `str` | A valid UUID `String` |
|
|
||||||
| _returns_ | `Uint8Array[16]` |
|
|
||||||
| _throws_ | `TypeError` if `str` is not a valid UUID |
|
|
||||||
|
|
||||||
Note: Ordering of values in the byte arrays used by `parse()` and `stringify()` follows the left ↠ right order of hex-pairs in UUID strings. As shown in the example below.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import { parse as uuidParse } from 'uuid';
|
|
||||||
|
|
||||||
// Parse a UUID
|
|
||||||
const bytes = uuidParse('6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b');
|
|
||||||
|
|
||||||
// Convert to hex strings to show byte order (for documentation purposes)
|
|
||||||
[...bytes].map((v) => v.toString(16).padStart(2, '0')); // ⇨
|
|
||||||
// [
|
|
||||||
// '6e', 'c0', 'bd', '7f',
|
|
||||||
// '11', 'c0', '43', 'da',
|
|
||||||
// '97', '5e', '2a', '8a',
|
|
||||||
// 'd9', 'eb', 'ae', '0b'
|
|
||||||
// ]
|
|
||||||
```
|
|
||||||
|
|
||||||
### uuid.stringify(arr[, offset])
|
|
||||||
|
|
||||||
Convert array of bytes to UUID string
|
|
||||||
|
|
||||||
| | |
|
|
||||||
| -------------- | ---------------------------------------------------------------------------- |
|
|
||||||
| `arr` | `Array`-like collection of 16 values (starting from `offset`) between 0-255. |
|
|
||||||
| [`offset` = 0] | `Number` Starting index in the Array |
|
|
||||||
| _returns_ | `String` |
|
|
||||||
| _throws_ | `TypeError` if a valid UUID string cannot be generated |
|
|
||||||
|
|
||||||
Note: Ordering of values in the byte arrays used by `parse()` and `stringify()` follows the left ↠ right order of hex-pairs in UUID strings. As shown in the example below.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import { stringify as uuidStringify } from 'uuid';
|
|
||||||
|
|
||||||
const uuidBytes = [
|
|
||||||
0x6e,
|
|
||||||
0xc0,
|
|
||||||
0xbd,
|
|
||||||
0x7f,
|
|
||||||
0x11,
|
|
||||||
0xc0,
|
|
||||||
0x43,
|
|
||||||
0xda,
|
|
||||||
0x97,
|
|
||||||
0x5e,
|
|
||||||
0x2a,
|
|
||||||
0x8a,
|
|
||||||
0xd9,
|
|
||||||
0xeb,
|
|
||||||
0xae,
|
|
||||||
0x0b,
|
|
||||||
];
|
|
||||||
|
|
||||||
uuidStringify(uuidBytes); // ⇨ '6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'
|
|
||||||
```
|
|
||||||
|
|
||||||
### uuid.v1([options[, buffer[, offset]]])
|
|
||||||
|
|
||||||
Create an RFC version 1 (timestamp) UUID
|
|
||||||
|
|
||||||
| | |
|
|
||||||
| --- | --- |
|
|
||||||
| [`options`] | `Object` with one or more of the following properties: |
|
|
||||||
| [`options.node` ] | RFC "node" field as an `Array[6]` of byte values (per 4.1.6) |
|
|
||||||
| [`options.clockseq`] | RFC "clock sequence" as a `Number` between 0 - 0x3fff |
|
|
||||||
| [`options.msecs`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch) |
|
|
||||||
| [`options.nsecs`] | RFC "timestamp" field (`Number` of nanseconds to add to `msecs`, should be 0-10,000) |
|
|
||||||
| [`options.random`] | `Array` of 16 random bytes (0-255) |
|
|
||||||
| [`options.rng`] | Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) |
|
|
||||||
| [`buffer`] | `Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset` |
|
|
||||||
| [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` |
|
|
||||||
| _returns_ | UUID `String` if no `buffer` is specified, otherwise returns `buffer` |
|
|
||||||
| _throws_ | `Error` if more than 10M UUIDs/sec are requested |
|
|
||||||
|
|
||||||
Note: The default [node id](https://tools.ietf.org/html/rfc4122#section-4.1.6) (the last 12 digits in the UUID) is generated once, randomly, on process startup, and then remains unchanged for the duration of the process.
|
|
||||||
|
|
||||||
Note: `options.random` and `options.rng` are only meaningful on the very first call to `v1()`, where they may be passed to initialize the internal `node` and `clockseq` fields.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import { v1 as uuidv1 } from 'uuid';
|
|
||||||
|
|
||||||
uuidv1(); // ⇨ '2c5ea4c0-4067-11e9-8bad-9b1deb4d3b7d'
|
|
||||||
```
|
|
||||||
|
|
||||||
Example using `options`:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import { v1 as uuidv1 } from 'uuid';
|
|
||||||
|
|
||||||
const v1options = {
|
|
||||||
node: [0x01, 0x23, 0x45, 0x67, 0x89, 0xab],
|
|
||||||
clockseq: 0x1234,
|
|
||||||
msecs: new Date('2011-11-01').getTime(),
|
|
||||||
nsecs: 5678,
|
|
||||||
};
|
|
||||||
uuidv1(v1options); // ⇨ '710b962e-041c-11e1-9234-0123456789ab'
|
|
||||||
```
|
|
||||||
|
|
||||||
### uuid.v3(name, namespace[, buffer[, offset]])
|
|
||||||
|
|
||||||
Create an RFC version 3 (namespace w/ MD5) UUID
|
|
||||||
|
|
||||||
API is identical to `v5()`, but uses "v3" instead.
|
|
||||||
|
|
||||||
⚠️ Note: Per the RFC, "_If backward compatibility is not an issue, SHA-1 [Version 5] is preferred_."
|
|
||||||
|
|
||||||
### uuid.v4([options[, buffer[, offset]]])
|
|
||||||
|
|
||||||
Create an RFC version 4 (random) UUID
|
|
||||||
|
|
||||||
| | |
|
|
||||||
| --- | --- |
|
|
||||||
| [`options`] | `Object` with one or more of the following properties: |
|
|
||||||
| [`options.random`] | `Array` of 16 random bytes (0-255) |
|
|
||||||
| [`options.rng`] | Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) |
|
|
||||||
| [`buffer`] | `Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset` |
|
|
||||||
| [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` |
|
|
||||||
| _returns_ | UUID `String` if no `buffer` is specified, otherwise returns `buffer` |
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import { v4 as uuidv4 } from 'uuid';
|
|
||||||
|
|
||||||
uuidv4(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed'
|
|
||||||
```
|
|
||||||
|
|
||||||
Example using predefined `random` values:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import { v4 as uuidv4 } from 'uuid';
|
|
||||||
|
|
||||||
const v4options = {
|
|
||||||
random: [
|
|
||||||
0x10,
|
|
||||||
0x91,
|
|
||||||
0x56,
|
|
||||||
0xbe,
|
|
||||||
0xc4,
|
|
||||||
0xfb,
|
|
||||||
0xc1,
|
|
||||||
0xea,
|
|
||||||
0x71,
|
|
||||||
0xb4,
|
|
||||||
0xef,
|
|
||||||
0xe1,
|
|
||||||
0x67,
|
|
||||||
0x1c,
|
|
||||||
0x58,
|
|
||||||
0x36,
|
|
||||||
],
|
|
||||||
};
|
|
||||||
uuidv4(v4options); // ⇨ '109156be-c4fb-41ea-b1b4-efe1671c5836'
|
|
||||||
```
|
|
||||||
|
|
||||||
### uuid.v5(name, namespace[, buffer[, offset]])
|
|
||||||
|
|
||||||
Create an RFC version 5 (namespace w/ SHA-1) UUID
|
|
||||||
|
|
||||||
| | |
|
|
||||||
| --- | --- |
|
|
||||||
| `name` | `String \| Array` |
|
|
||||||
| `namespace` | `String \| Array[16]` Namespace UUID |
|
|
||||||
| [`buffer`] | `Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset` |
|
|
||||||
| [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` |
|
|
||||||
| _returns_ | UUID `String` if no `buffer` is specified, otherwise returns `buffer` |
|
|
||||||
|
|
||||||
Note: The RFC `DNS` and `URL` namespaces are available as `v5.DNS` and `v5.URL`.
|
|
||||||
|
|
||||||
Example with custom namespace:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import { v5 as uuidv5 } from 'uuid';
|
|
||||||
|
|
||||||
// Define a custom namespace. Readers, create your own using something like
|
|
||||||
// https://www.uuidgenerator.net/
|
|
||||||
const MY_NAMESPACE = '1b671a64-40d5-491e-99b0-da01ff1f3341';
|
|
||||||
|
|
||||||
uuidv5('Hello, World!', MY_NAMESPACE); // ⇨ '630eb68f-e0fa-5ecc-887a-7c7a62614681'
|
|
||||||
```
|
|
||||||
|
|
||||||
Example with RFC `URL` namespace:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import { v5 as uuidv5 } from 'uuid';
|
|
||||||
|
|
||||||
uuidv5('https://www.w3.org/', uuidv5.URL); // ⇨ 'c106a26a-21bb-5538-8bf2-57095d1976c1'
|
|
||||||
```
|
|
||||||
|
|
||||||
### uuid.validate(str)
|
|
||||||
|
|
||||||
Test a string to see if it is a valid UUID
|
|
||||||
|
|
||||||
| | |
|
|
||||||
| --------- | --------------------------------------------------- |
|
|
||||||
| `str` | `String` to validate |
|
|
||||||
| _returns_ | `true` if string is a valid UUID, `false` otherwise |
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import { validate as uuidValidate } from 'uuid';
|
|
||||||
|
|
||||||
uuidValidate('not a UUID'); // ⇨ false
|
|
||||||
uuidValidate('6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'); // ⇨ true
|
|
||||||
```
|
|
||||||
|
|
||||||
Using `validate` and `version` together it is possible to do per-version validation, e.g. validate for only v4 UUIds.
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import { version as uuidVersion } from 'uuid';
|
|
||||||
import { validate as uuidValidate } from 'uuid';
|
|
||||||
|
|
||||||
function uuidValidateV4(uuid) {
|
|
||||||
return uuidValidate(uuid) && uuidVersion(uuid) === 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
const v1Uuid = 'd9428888-122b-11e1-b85c-61cd3cbb3210';
|
|
||||||
const v4Uuid = '109156be-c4fb-41ea-b1b4-efe1671c5836';
|
|
||||||
|
|
||||||
uuidValidateV4(v4Uuid); // ⇨ true
|
|
||||||
uuidValidateV4(v1Uuid); // ⇨ false
|
|
||||||
```
|
|
||||||
|
|
||||||
### uuid.version(str)
|
|
||||||
|
|
||||||
Detect RFC version of a UUID
|
|
||||||
|
|
||||||
| | |
|
|
||||||
| --------- | ---------------------------------------- |
|
|
||||||
| `str` | A valid UUID `String` |
|
|
||||||
| _returns_ | `Number` The RFC version of the UUID |
|
|
||||||
| _throws_ | `TypeError` if `str` is not a valid UUID |
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import { version as uuidVersion } from 'uuid';
|
|
||||||
|
|
||||||
uuidVersion('45637ec4-c85f-11ea-87d0-0242ac130003'); // ⇨ 1
|
|
||||||
uuidVersion('6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'); // ⇨ 4
|
|
||||||
```
|
|
||||||
|
|
||||||
## Command Line
|
|
||||||
|
|
||||||
UUIDs can be generated from the command line using `uuid`.
|
|
||||||
|
|
||||||
```shell
|
|
||||||
$ uuid
|
|
||||||
ddeb27fb-d9a0-4624-be4d-4615062daed4
|
|
||||||
```
|
|
||||||
|
|
||||||
The default is to generate version 4 UUIDS, however the other versions are supported. Type `uuid --help` for details:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
$ uuid --help
|
|
||||||
|
|
||||||
Usage:
|
|
||||||
uuid
|
|
||||||
uuid v1
|
|
||||||
uuid v3 <name> <namespace uuid>
|
|
||||||
uuid v4
|
|
||||||
uuid v5 <name> <namespace uuid>
|
|
||||||
uuid --help
|
|
||||||
|
|
||||||
Note: <namespace uuid> may be "URL" or "DNS" to use the corresponding UUIDs
|
|
||||||
defined by RFC4122
|
|
||||||
```
|
|
||||||
|
|
||||||
## ECMAScript Modules
|
|
||||||
|
|
||||||
This library comes with [ECMAScript Modules](https://www.ecma-international.org/ecma-262/6.0/#sec-modules) (ESM) support for Node.js versions that support it ([example](./examples/node-esmodules/)) as well as bundlers like [rollup.js](https://rollupjs.org/guide/en/#tree-shaking) ([example](./examples/browser-rollup/)) and [webpack](https://webpack.js.org/guides/tree-shaking/) ([example](./examples/browser-webpack/)) (targeting both, Node.js and browser environments).
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import { v4 as uuidv4 } from 'uuid';
|
|
||||||
uuidv4(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed'
|
|
||||||
```
|
|
||||||
|
|
||||||
To run the examples you must first create a dist build of this library in the module root:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
npm run build
|
|
||||||
```
|
|
||||||
|
|
||||||
## CDN Builds
|
|
||||||
|
|
||||||
### ECMAScript Modules
|
|
||||||
|
|
||||||
To load this module directly into modern browsers that [support loading ECMAScript Modules](https://caniuse.com/#feat=es6-module) you can make use of [jspm](https://jspm.org/):
|
|
||||||
|
|
||||||
```html
|
|
||||||
<script type="module">
|
|
||||||
import { v4 as uuidv4 } from 'https://jspm.dev/uuid';
|
|
||||||
console.log(uuidv4()); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed'
|
|
||||||
</script>
|
|
||||||
```
|
|
||||||
|
|
||||||
### UMD
|
|
||||||
|
|
||||||
To load this module directly into older browsers you can use the [UMD (Universal Module Definition)](https://github.com/umdjs/umd) builds from any of the following CDNs:
|
|
||||||
|
|
||||||
**Using [UNPKG](https://unpkg.com/uuid@latest/dist/umd/)**:
|
|
||||||
|
|
||||||
```html
|
|
||||||
<script src="https://unpkg.com/uuid@latest/dist/umd/uuidv4.min.js"></script>
|
|
||||||
```
|
|
||||||
|
|
||||||
**Using [jsDelivr](https://cdn.jsdelivr.net/npm/uuid@latest/dist/umd/)**:
|
|
||||||
|
|
||||||
```html
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/uuid@latest/dist/umd/uuidv4.min.js"></script>
|
|
||||||
```
|
|
||||||
|
|
||||||
**Using [cdnjs](https://cdnjs.com/libraries/uuid)**:
|
|
||||||
|
|
||||||
```html
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/uuid/8.1.0/uuidv4.min.js"></script>
|
|
||||||
```
|
|
||||||
|
|
||||||
These CDNs all provide the same [`uuidv4()`](#uuidv4options-buffer-offset) method:
|
|
||||||
|
|
||||||
```html
|
|
||||||
<script>
|
|
||||||
uuidv4(); // ⇨ '55af1e37-0734-46d8-b070-a1e42e4fc392'
|
|
||||||
</script>
|
|
||||||
```
|
|
||||||
|
|
||||||
Methods for the other algorithms ([`uuidv1()`](#uuidv1options-buffer-offset), [`uuidv3()`](#uuidv3name-namespace-buffer-offset) and [`uuidv5()`](#uuidv5name-namespace-buffer-offset)) are available from the files `uuidv1.min.js`, `uuidv3.min.js` and `uuidv5.min.js` respectively.
|
|
||||||
|
|
||||||
## "getRandomValues() not supported"
|
|
||||||
|
|
||||||
This error occurs in environments where the standard [`crypto.getRandomValues()`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues) API is not supported. This issue can be resolved by adding an appropriate polyfill:
|
|
||||||
|
|
||||||
### React Native / Expo
|
|
||||||
|
|
||||||
1. Install [`react-native-get-random-values`](https://github.com/LinusU/react-native-get-random-values#readme)
|
|
||||||
1. Import it _before_ `uuid`. Since `uuid` might also appear as a transitive dependency of some other imports it's safest to just import `react-native-get-random-values` as the very first thing in your entry point:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import 'react-native-get-random-values';
|
|
||||||
import { v4 as uuidv4 } from 'uuid';
|
|
||||||
```
|
|
||||||
|
|
||||||
Note: If you are using Expo, you must be using at least `react-native-get-random-values@1.5.0` and `expo@39.0.0`.
|
|
||||||
|
|
||||||
### Web Workers / Service Workers (Edge <= 18)
|
|
||||||
|
|
||||||
[In Edge <= 18, Web Crypto is not supported in Web Workers or Service Workers](https://caniuse.com/#feat=cryptography) and we are not aware of a polyfill (let us know if you find one, please).
|
|
||||||
|
|
||||||
## Upgrading From `uuid@7.x`
|
|
||||||
|
|
||||||
### Only Named Exports Supported When Using with Node.js ESM
|
|
||||||
|
|
||||||
`uuid@7.x` did not come with native ECMAScript Module (ESM) support for Node.js. Importing it in Node.js ESM consequently imported the CommonJS source with a default export. This library now comes with true Node.js ESM support and only provides named exports.
|
|
||||||
|
|
||||||
Instead of doing:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import uuid from 'uuid';
|
|
||||||
uuid.v4();
|
|
||||||
```
|
|
||||||
|
|
||||||
you will now have to use the named exports:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import { v4 as uuidv4 } from 'uuid';
|
|
||||||
uuidv4();
|
|
||||||
```
|
|
||||||
|
|
||||||
### Deep Requires No Longer Supported
|
|
||||||
|
|
||||||
Deep requires like `require('uuid/v4')` [which have been deprecated in `uuid@7.x`](#deep-requires-now-deprecated) are no longer supported.
|
|
||||||
|
|
||||||
## Upgrading From `uuid@3.x`
|
|
||||||
|
|
||||||
"_Wait... what happened to `uuid@4.x` - `uuid@6.x`?!?_"
|
|
||||||
|
|
||||||
In order to avoid confusion with RFC [version 4](#uuidv4options-buffer-offset) and [version 5](#uuidv5name-namespace-buffer-offset) UUIDs, and a possible [version 6](http://gh.peabody.io/uuidv6/), releases 4 thru 6 of this module have been skipped.
|
|
||||||
|
|
||||||
### Deep Requires Now Deprecated
|
|
||||||
|
|
||||||
`uuid@3.x` encouraged the use of deep requires to minimize the bundle size of browser builds:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
const uuidv4 = require('uuid/v4'); // <== NOW DEPRECATED!
|
|
||||||
uuidv4();
|
|
||||||
```
|
|
||||||
|
|
||||||
As of `uuid@7.x` this library now provides ECMAScript modules builds, which allow packagers like Webpack and Rollup to do "tree-shaking" to remove dead code. Instead, use the `import` syntax:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import { v4 as uuidv4 } from 'uuid';
|
|
||||||
uuidv4();
|
|
||||||
```
|
|
||||||
|
|
||||||
... or for CommonJS:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
const { v4: uuidv4 } = require('uuid');
|
|
||||||
uuidv4();
|
|
||||||
```
|
|
||||||
|
|
||||||
### Default Export Removed
|
|
||||||
|
|
||||||
`uuid@3.x` was exporting the Version 4 UUID method as a default export:
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
const uuid = require('uuid'); // <== REMOVED!
|
|
||||||
```
|
|
||||||
|
|
||||||
This usage pattern was already discouraged in `uuid@3.x` and has been removed in `uuid@7.x`.
|
|
||||||
|
|
||||||
----
|
|
||||||
Markdown generated from [README_js.md](README_js.md) by [](https://github.com/broofa/runmd)
|
|
||||||
2
node_modules/uuid/dist/bin/uuid
generated
vendored
2
node_modules/uuid/dist/bin/uuid
generated
vendored
@@ -1,2 +0,0 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
require('../uuid-bin');
|
|
||||||
9
node_modules/uuid/dist/esm-browser/index.js
generated
vendored
9
node_modules/uuid/dist/esm-browser/index.js
generated
vendored
@@ -1,9 +0,0 @@
|
|||||||
export { default as v1 } from './v1.js';
|
|
||||||
export { default as v3 } from './v3.js';
|
|
||||||
export { default as v4 } from './v4.js';
|
|
||||||
export { default as v5 } from './v5.js';
|
|
||||||
export { default as NIL } from './nil.js';
|
|
||||||
export { default as version } from './version.js';
|
|
||||||
export { default as validate } from './validate.js';
|
|
||||||
export { default as stringify } from './stringify.js';
|
|
||||||
export { default as parse } from './parse.js';
|
|
||||||
215
node_modules/uuid/dist/esm-browser/md5.js
generated
vendored
215
node_modules/uuid/dist/esm-browser/md5.js
generated
vendored
@@ -1,215 +0,0 @@
|
|||||||
/*
|
|
||||||
* Browser-compatible JavaScript MD5
|
|
||||||
*
|
|
||||||
* Modification of JavaScript MD5
|
|
||||||
* https://github.com/blueimp/JavaScript-MD5
|
|
||||||
*
|
|
||||||
* Copyright 2011, Sebastian Tschan
|
|
||||||
* https://blueimp.net
|
|
||||||
*
|
|
||||||
* Licensed under the MIT license:
|
|
||||||
* https://opensource.org/licenses/MIT
|
|
||||||
*
|
|
||||||
* Based on
|
|
||||||
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
|
|
||||||
* Digest Algorithm, as defined in RFC 1321.
|
|
||||||
* Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
|
|
||||||
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
|
|
||||||
* Distributed under the BSD License
|
|
||||||
* See http://pajhome.org.uk/crypt/md5 for more info.
|
|
||||||
*/
|
|
||||||
function md5(bytes) {
|
|
||||||
if (typeof bytes === 'string') {
|
|
||||||
var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
||||||
|
|
||||||
bytes = new Uint8Array(msg.length);
|
|
||||||
|
|
||||||
for (var i = 0; i < msg.length; ++i) {
|
|
||||||
bytes[i] = msg.charCodeAt(i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
* Convert an array of little-endian words to an array of bytes
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
function md5ToHexEncodedArray(input) {
|
|
||||||
var output = [];
|
|
||||||
var length32 = input.length * 32;
|
|
||||||
var hexTab = '0123456789abcdef';
|
|
||||||
|
|
||||||
for (var i = 0; i < length32; i += 8) {
|
|
||||||
var x = input[i >> 5] >>> i % 32 & 0xff;
|
|
||||||
var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
|
|
||||||
output.push(hex);
|
|
||||||
}
|
|
||||||
|
|
||||||
return output;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Calculate output length with padding and bit length
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
function getOutputLength(inputLength8) {
|
|
||||||
return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
* Calculate the MD5 of an array of little-endian words, and a bit length.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
function wordsToMd5(x, len) {
|
|
||||||
/* append padding */
|
|
||||||
x[len >> 5] |= 0x80 << len % 32;
|
|
||||||
x[getOutputLength(len) - 1] = len;
|
|
||||||
var a = 1732584193;
|
|
||||||
var b = -271733879;
|
|
||||||
var c = -1732584194;
|
|
||||||
var d = 271733878;
|
|
||||||
|
|
||||||
for (var i = 0; i < x.length; i += 16) {
|
|
||||||
var olda = a;
|
|
||||||
var oldb = b;
|
|
||||||
var oldc = c;
|
|
||||||
var oldd = d;
|
|
||||||
a = md5ff(a, b, c, d, x[i], 7, -680876936);
|
|
||||||
d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
|
|
||||||
c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
|
|
||||||
b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
|
|
||||||
a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
|
|
||||||
d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
|
|
||||||
c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
|
|
||||||
b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
|
|
||||||
a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
|
|
||||||
d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
|
|
||||||
c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
|
|
||||||
b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
|
|
||||||
a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
|
|
||||||
d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
|
|
||||||
c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
|
|
||||||
b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
|
|
||||||
a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
|
|
||||||
d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
|
|
||||||
c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
|
|
||||||
b = md5gg(b, c, d, a, x[i], 20, -373897302);
|
|
||||||
a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
|
|
||||||
d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
|
|
||||||
c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
|
|
||||||
b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
|
|
||||||
a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
|
|
||||||
d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
|
|
||||||
c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
|
|
||||||
b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
|
|
||||||
a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
|
|
||||||
d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
|
|
||||||
c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
|
|
||||||
b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
|
|
||||||
a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
|
|
||||||
d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
|
|
||||||
c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
|
|
||||||
b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
|
|
||||||
a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
|
|
||||||
d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
|
|
||||||
c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
|
|
||||||
b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
|
|
||||||
a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
|
|
||||||
d = md5hh(d, a, b, c, x[i], 11, -358537222);
|
|
||||||
c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
|
|
||||||
b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
|
|
||||||
a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
|
|
||||||
d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
|
|
||||||
c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
|
|
||||||
b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
|
|
||||||
a = md5ii(a, b, c, d, x[i], 6, -198630844);
|
|
||||||
d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
|
|
||||||
c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
|
|
||||||
b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
|
|
||||||
a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
|
|
||||||
d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
|
|
||||||
c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
|
|
||||||
b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
|
|
||||||
a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
|
|
||||||
d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
|
|
||||||
c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
|
|
||||||
b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
|
|
||||||
a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
|
|
||||||
d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
|
|
||||||
c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
|
|
||||||
b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
|
|
||||||
a = safeAdd(a, olda);
|
|
||||||
b = safeAdd(b, oldb);
|
|
||||||
c = safeAdd(c, oldc);
|
|
||||||
d = safeAdd(d, oldd);
|
|
||||||
}
|
|
||||||
|
|
||||||
return [a, b, c, d];
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
* Convert an array bytes to an array of little-endian words
|
|
||||||
* Characters >255 have their high-byte silently ignored.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
function bytesToWords(input) {
|
|
||||||
if (input.length === 0) {
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
var length8 = input.length * 8;
|
|
||||||
var output = new Uint32Array(getOutputLength(length8));
|
|
||||||
|
|
||||||
for (var i = 0; i < length8; i += 8) {
|
|
||||||
output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
|
|
||||||
}
|
|
||||||
|
|
||||||
return output;
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
|
|
||||||
* to work around bugs in some JS interpreters.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
function safeAdd(x, y) {
|
|
||||||
var lsw = (x & 0xffff) + (y & 0xffff);
|
|
||||||
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
|
||||||
return msw << 16 | lsw & 0xffff;
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
* Bitwise rotate a 32-bit number to the left.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
function bitRotateLeft(num, cnt) {
|
|
||||||
return num << cnt | num >>> 32 - cnt;
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
* These functions implement the four basic operations the algorithm uses.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
function md5cmn(q, a, b, x, s, t) {
|
|
||||||
return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
|
|
||||||
}
|
|
||||||
|
|
||||||
function md5ff(a, b, c, d, x, s, t) {
|
|
||||||
return md5cmn(b & c | ~b & d, a, b, x, s, t);
|
|
||||||
}
|
|
||||||
|
|
||||||
function md5gg(a, b, c, d, x, s, t) {
|
|
||||||
return md5cmn(b & d | c & ~d, a, b, x, s, t);
|
|
||||||
}
|
|
||||||
|
|
||||||
function md5hh(a, b, c, d, x, s, t) {
|
|
||||||
return md5cmn(b ^ c ^ d, a, b, x, s, t);
|
|
||||||
}
|
|
||||||
|
|
||||||
function md5ii(a, b, c, d, x, s, t) {
|
|
||||||
return md5cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default md5;
|
|
||||||
1
node_modules/uuid/dist/esm-browser/nil.js
generated
vendored
1
node_modules/uuid/dist/esm-browser/nil.js
generated
vendored
@@ -1 +0,0 @@
|
|||||||
export default '00000000-0000-0000-0000-000000000000';
|
|
||||||
35
node_modules/uuid/dist/esm-browser/parse.js
generated
vendored
35
node_modules/uuid/dist/esm-browser/parse.js
generated
vendored
@@ -1,35 +0,0 @@
|
|||||||
import validate from './validate.js';
|
|
||||||
|
|
||||||
function parse(uuid) {
|
|
||||||
if (!validate(uuid)) {
|
|
||||||
throw TypeError('Invalid UUID');
|
|
||||||
}
|
|
||||||
|
|
||||||
var v;
|
|
||||||
var arr = new Uint8Array(16); // Parse ########-....-....-....-............
|
|
||||||
|
|
||||||
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
|
||||||
arr[1] = v >>> 16 & 0xff;
|
|
||||||
arr[2] = v >>> 8 & 0xff;
|
|
||||||
arr[3] = v & 0xff; // Parse ........-####-....-....-............
|
|
||||||
|
|
||||||
arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
|
|
||||||
arr[5] = v & 0xff; // Parse ........-....-####-....-............
|
|
||||||
|
|
||||||
arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
|
|
||||||
arr[7] = v & 0xff; // Parse ........-....-....-####-............
|
|
||||||
|
|
||||||
arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
|
|
||||||
arr[9] = v & 0xff; // Parse ........-....-....-....-############
|
|
||||||
// (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
|
|
||||||
|
|
||||||
arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
|
|
||||||
arr[11] = v / 0x100000000 & 0xff;
|
|
||||||
arr[12] = v >>> 24 & 0xff;
|
|
||||||
arr[13] = v >>> 16 & 0xff;
|
|
||||||
arr[14] = v >>> 8 & 0xff;
|
|
||||||
arr[15] = v & 0xff;
|
|
||||||
return arr;
|
|
||||||
}
|
|
||||||
|
|
||||||
export default parse;
|
|
||||||
1
node_modules/uuid/dist/esm-browser/regex.js
generated
vendored
1
node_modules/uuid/dist/esm-browser/regex.js
generated
vendored
@@ -1 +0,0 @@
|
|||||||
export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
||||||
19
node_modules/uuid/dist/esm-browser/rng.js
generated
vendored
19
node_modules/uuid/dist/esm-browser/rng.js
generated
vendored
@@ -1,19 +0,0 @@
|
|||||||
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
||||||
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
||||||
// generators (like Math.random()).
|
|
||||||
var getRandomValues;
|
|
||||||
var rnds8 = new Uint8Array(16);
|
|
||||||
export default function rng() {
|
|
||||||
// lazy load so that environments that need to polyfill have a chance to do so
|
|
||||||
if (!getRandomValues) {
|
|
||||||
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
|
|
||||||
// find the complete implementation of crypto (msCrypto) on IE11.
|
|
||||||
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
||||||
|
|
||||||
if (!getRandomValues) {
|
|
||||||
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return getRandomValues(rnds8);
|
|
||||||
}
|
|
||||||
96
node_modules/uuid/dist/esm-browser/sha1.js
generated
vendored
96
node_modules/uuid/dist/esm-browser/sha1.js
generated
vendored
@@ -1,96 +0,0 @@
|
|||||||
// Adapted from Chris Veness' SHA1 code at
|
|
||||||
// http://www.movable-type.co.uk/scripts/sha1.html
|
|
||||||
function f(s, x, y, z) {
|
|
||||||
switch (s) {
|
|
||||||
case 0:
|
|
||||||
return x & y ^ ~x & z;
|
|
||||||
|
|
||||||
case 1:
|
|
||||||
return x ^ y ^ z;
|
|
||||||
|
|
||||||
case 2:
|
|
||||||
return x & y ^ x & z ^ y & z;
|
|
||||||
|
|
||||||
case 3:
|
|
||||||
return x ^ y ^ z;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function ROTL(x, n) {
|
|
||||||
return x << n | x >>> 32 - n;
|
|
||||||
}
|
|
||||||
|
|
||||||
function sha1(bytes) {
|
|
||||||
var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
|
|
||||||
var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
|
|
||||||
|
|
||||||
if (typeof bytes === 'string') {
|
|
||||||
var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
||||||
|
|
||||||
bytes = [];
|
|
||||||
|
|
||||||
for (var i = 0; i < msg.length; ++i) {
|
|
||||||
bytes.push(msg.charCodeAt(i));
|
|
||||||
}
|
|
||||||
} else if (!Array.isArray(bytes)) {
|
|
||||||
// Convert Array-like to Array
|
|
||||||
bytes = Array.prototype.slice.call(bytes);
|
|
||||||
}
|
|
||||||
|
|
||||||
bytes.push(0x80);
|
|
||||||
var l = bytes.length / 4 + 2;
|
|
||||||
var N = Math.ceil(l / 16);
|
|
||||||
var M = new Array(N);
|
|
||||||
|
|
||||||
for (var _i = 0; _i < N; ++_i) {
|
|
||||||
var arr = new Uint32Array(16);
|
|
||||||
|
|
||||||
for (var j = 0; j < 16; ++j) {
|
|
||||||
arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3];
|
|
||||||
}
|
|
||||||
|
|
||||||
M[_i] = arr;
|
|
||||||
}
|
|
||||||
|
|
||||||
M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
|
|
||||||
M[N - 1][14] = Math.floor(M[N - 1][14]);
|
|
||||||
M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
|
|
||||||
|
|
||||||
for (var _i2 = 0; _i2 < N; ++_i2) {
|
|
||||||
var W = new Uint32Array(80);
|
|
||||||
|
|
||||||
for (var t = 0; t < 16; ++t) {
|
|
||||||
W[t] = M[_i2][t];
|
|
||||||
}
|
|
||||||
|
|
||||||
for (var _t = 16; _t < 80; ++_t) {
|
|
||||||
W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
var a = H[0];
|
|
||||||
var b = H[1];
|
|
||||||
var c = H[2];
|
|
||||||
var d = H[3];
|
|
||||||
var e = H[4];
|
|
||||||
|
|
||||||
for (var _t2 = 0; _t2 < 80; ++_t2) {
|
|
||||||
var s = Math.floor(_t2 / 20);
|
|
||||||
var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0;
|
|
||||||
e = d;
|
|
||||||
d = c;
|
|
||||||
c = ROTL(b, 30) >>> 0;
|
|
||||||
b = a;
|
|
||||||
a = T;
|
|
||||||
}
|
|
||||||
|
|
||||||
H[0] = H[0] + a >>> 0;
|
|
||||||
H[1] = H[1] + b >>> 0;
|
|
||||||
H[2] = H[2] + c >>> 0;
|
|
||||||
H[3] = H[3] + d >>> 0;
|
|
||||||
H[4] = H[4] + e >>> 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff];
|
|
||||||
}
|
|
||||||
|
|
||||||
export default sha1;
|
|
||||||
30
node_modules/uuid/dist/esm-browser/stringify.js
generated
vendored
30
node_modules/uuid/dist/esm-browser/stringify.js
generated
vendored
@@ -1,30 +0,0 @@
|
|||||||
import validate from './validate.js';
|
|
||||||
/**
|
|
||||||
* Convert array of 16 byte values to UUID string format of the form:
|
|
||||||
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
||||||
*/
|
|
||||||
|
|
||||||
var byteToHex = [];
|
|
||||||
|
|
||||||
for (var i = 0; i < 256; ++i) {
|
|
||||||
byteToHex.push((i + 0x100).toString(16).substr(1));
|
|
||||||
}
|
|
||||||
|
|
||||||
function stringify(arr) {
|
|
||||||
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
||||||
// Note: Be careful editing this code! It's been tuned for performance
|
|
||||||
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
||||||
var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
|
|
||||||
// of the following:
|
|
||||||
// - One or more input array values don't map to a hex octet (leading to
|
|
||||||
// "undefined" in the uuid)
|
|
||||||
// - Invalid input values for the RFC `version` or `variant` fields
|
|
||||||
|
|
||||||
if (!validate(uuid)) {
|
|
||||||
throw TypeError('Stringified UUID is invalid');
|
|
||||||
}
|
|
||||||
|
|
||||||
return uuid;
|
|
||||||
}
|
|
||||||
|
|
||||||
export default stringify;
|
|
||||||
95
node_modules/uuid/dist/esm-browser/v1.js
generated
vendored
95
node_modules/uuid/dist/esm-browser/v1.js
generated
vendored
@@ -1,95 +0,0 @@
|
|||||||
import rng from './rng.js';
|
|
||||||
import stringify from './stringify.js'; // **`v1()` - Generate time-based UUID**
|
|
||||||
//
|
|
||||||
// Inspired by https://github.com/LiosK/UUID.js
|
|
||||||
// and http://docs.python.org/library/uuid.html
|
|
||||||
|
|
||||||
var _nodeId;
|
|
||||||
|
|
||||||
var _clockseq; // Previous uuid creation time
|
|
||||||
|
|
||||||
|
|
||||||
var _lastMSecs = 0;
|
|
||||||
var _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
|
|
||||||
|
|
||||||
function v1(options, buf, offset) {
|
|
||||||
var i = buf && offset || 0;
|
|
||||||
var b = buf || new Array(16);
|
|
||||||
options = options || {};
|
|
||||||
var node = options.node || _nodeId;
|
|
||||||
var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
|
|
||||||
// specified. We do this lazily to minimize issues related to insufficient
|
|
||||||
// system entropy. See #189
|
|
||||||
|
|
||||||
if (node == null || clockseq == null) {
|
|
||||||
var seedBytes = options.random || (options.rng || rng)();
|
|
||||||
|
|
||||||
if (node == null) {
|
|
||||||
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
|
|
||||||
node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (clockseq == null) {
|
|
||||||
// Per 4.2.2, randomize (14 bit) clockseq
|
|
||||||
clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
|
|
||||||
}
|
|
||||||
} // UUID timestamps are 100 nano-second units since the Gregorian epoch,
|
|
||||||
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
|
|
||||||
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
|
|
||||||
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
|
||||||
|
|
||||||
|
|
||||||
var msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
|
|
||||||
// cycle to simulate higher resolution clock
|
|
||||||
|
|
||||||
var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
|
|
||||||
|
|
||||||
var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
|
|
||||||
|
|
||||||
if (dt < 0 && options.clockseq === undefined) {
|
|
||||||
clockseq = clockseq + 1 & 0x3fff;
|
|
||||||
} // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
|
|
||||||
// time interval
|
|
||||||
|
|
||||||
|
|
||||||
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
|
|
||||||
nsecs = 0;
|
|
||||||
} // Per 4.2.1.2 Throw error if too many uuids are requested
|
|
||||||
|
|
||||||
|
|
||||||
if (nsecs >= 10000) {
|
|
||||||
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
|
||||||
}
|
|
||||||
|
|
||||||
_lastMSecs = msecs;
|
|
||||||
_lastNSecs = nsecs;
|
|
||||||
_clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
|
|
||||||
|
|
||||||
msecs += 12219292800000; // `time_low`
|
|
||||||
|
|
||||||
var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
|
||||||
b[i++] = tl >>> 24 & 0xff;
|
|
||||||
b[i++] = tl >>> 16 & 0xff;
|
|
||||||
b[i++] = tl >>> 8 & 0xff;
|
|
||||||
b[i++] = tl & 0xff; // `time_mid`
|
|
||||||
|
|
||||||
var tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
|
|
||||||
b[i++] = tmh >>> 8 & 0xff;
|
|
||||||
b[i++] = tmh & 0xff; // `time_high_and_version`
|
|
||||||
|
|
||||||
b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
|
|
||||||
|
|
||||||
b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
|
|
||||||
|
|
||||||
b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
|
|
||||||
|
|
||||||
b[i++] = clockseq & 0xff; // `node`
|
|
||||||
|
|
||||||
for (var n = 0; n < 6; ++n) {
|
|
||||||
b[i + n] = node[n];
|
|
||||||
}
|
|
||||||
|
|
||||||
return buf || stringify(b);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default v1;
|
|
||||||
4
node_modules/uuid/dist/esm-browser/v3.js
generated
vendored
4
node_modules/uuid/dist/esm-browser/v3.js
generated
vendored
@@ -1,4 +0,0 @@
|
|||||||
import v35 from './v35.js';
|
|
||||||
import md5 from './md5.js';
|
|
||||||
var v3 = v35('v3', 0x30, md5);
|
|
||||||
export default v3;
|
|
||||||
64
node_modules/uuid/dist/esm-browser/v35.js
generated
vendored
64
node_modules/uuid/dist/esm-browser/v35.js
generated
vendored
@@ -1,64 +0,0 @@
|
|||||||
import stringify from './stringify.js';
|
|
||||||
import parse from './parse.js';
|
|
||||||
|
|
||||||
function stringToBytes(str) {
|
|
||||||
str = unescape(encodeURIComponent(str)); // UTF8 escape
|
|
||||||
|
|
||||||
var bytes = [];
|
|
||||||
|
|
||||||
for (var i = 0; i < str.length; ++i) {
|
|
||||||
bytes.push(str.charCodeAt(i));
|
|
||||||
}
|
|
||||||
|
|
||||||
return bytes;
|
|
||||||
}
|
|
||||||
|
|
||||||
export var DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
||||||
export var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
||||||
export default function (name, version, hashfunc) {
|
|
||||||
function generateUUID(value, namespace, buf, offset) {
|
|
||||||
if (typeof value === 'string') {
|
|
||||||
value = stringToBytes(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof namespace === 'string') {
|
|
||||||
namespace = parse(namespace);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (namespace.length !== 16) {
|
|
||||||
throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
|
|
||||||
} // Compute hash of namespace and value, Per 4.3
|
|
||||||
// Future: Use spread syntax when supported on all platforms, e.g. `bytes =
|
|
||||||
// hashfunc([...namespace, ... value])`
|
|
||||||
|
|
||||||
|
|
||||||
var bytes = new Uint8Array(16 + value.length);
|
|
||||||
bytes.set(namespace);
|
|
||||||
bytes.set(value, namespace.length);
|
|
||||||
bytes = hashfunc(bytes);
|
|
||||||
bytes[6] = bytes[6] & 0x0f | version;
|
|
||||||
bytes[8] = bytes[8] & 0x3f | 0x80;
|
|
||||||
|
|
||||||
if (buf) {
|
|
||||||
offset = offset || 0;
|
|
||||||
|
|
||||||
for (var i = 0; i < 16; ++i) {
|
|
||||||
buf[offset + i] = bytes[i];
|
|
||||||
}
|
|
||||||
|
|
||||||
return buf;
|
|
||||||
}
|
|
||||||
|
|
||||||
return stringify(bytes);
|
|
||||||
} // Function#name is not settable on some platforms (#270)
|
|
||||||
|
|
||||||
|
|
||||||
try {
|
|
||||||
generateUUID.name = name; // eslint-disable-next-line no-empty
|
|
||||||
} catch (err) {} // For CommonJS default export support
|
|
||||||
|
|
||||||
|
|
||||||
generateUUID.DNS = DNS;
|
|
||||||
generateUUID.URL = URL;
|
|
||||||
return generateUUID;
|
|
||||||
}
|
|
||||||
24
node_modules/uuid/dist/esm-browser/v4.js
generated
vendored
24
node_modules/uuid/dist/esm-browser/v4.js
generated
vendored
@@ -1,24 +0,0 @@
|
|||||||
import rng from './rng.js';
|
|
||||||
import stringify from './stringify.js';
|
|
||||||
|
|
||||||
function v4(options, buf, offset) {
|
|
||||||
options = options || {};
|
|
||||||
var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
||||||
|
|
||||||
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
||||||
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
||||||
|
|
||||||
if (buf) {
|
|
||||||
offset = offset || 0;
|
|
||||||
|
|
||||||
for (var i = 0; i < 16; ++i) {
|
|
||||||
buf[offset + i] = rnds[i];
|
|
||||||
}
|
|
||||||
|
|
||||||
return buf;
|
|
||||||
}
|
|
||||||
|
|
||||||
return stringify(rnds);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default v4;
|
|
||||||
4
node_modules/uuid/dist/esm-browser/v5.js
generated
vendored
4
node_modules/uuid/dist/esm-browser/v5.js
generated
vendored
@@ -1,4 +0,0 @@
|
|||||||
import v35 from './v35.js';
|
|
||||||
import sha1 from './sha1.js';
|
|
||||||
var v5 = v35('v5', 0x50, sha1);
|
|
||||||
export default v5;
|
|
||||||
7
node_modules/uuid/dist/esm-browser/validate.js
generated
vendored
7
node_modules/uuid/dist/esm-browser/validate.js
generated
vendored
@@ -1,7 +0,0 @@
|
|||||||
import REGEX from './regex.js';
|
|
||||||
|
|
||||||
function validate(uuid) {
|
|
||||||
return typeof uuid === 'string' && REGEX.test(uuid);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default validate;
|
|
||||||
11
node_modules/uuid/dist/esm-browser/version.js
generated
vendored
11
node_modules/uuid/dist/esm-browser/version.js
generated
vendored
@@ -1,11 +0,0 @@
|
|||||||
import validate from './validate.js';
|
|
||||||
|
|
||||||
function version(uuid) {
|
|
||||||
if (!validate(uuid)) {
|
|
||||||
throw TypeError('Invalid UUID');
|
|
||||||
}
|
|
||||||
|
|
||||||
return parseInt(uuid.substr(14, 1), 16);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default version;
|
|
||||||
9
node_modules/uuid/dist/esm-node/index.js
generated
vendored
9
node_modules/uuid/dist/esm-node/index.js
generated
vendored
@@ -1,9 +0,0 @@
|
|||||||
export { default as v1 } from './v1.js';
|
|
||||||
export { default as v3 } from './v3.js';
|
|
||||||
export { default as v4 } from './v4.js';
|
|
||||||
export { default as v5 } from './v5.js';
|
|
||||||
export { default as NIL } from './nil.js';
|
|
||||||
export { default as version } from './version.js';
|
|
||||||
export { default as validate } from './validate.js';
|
|
||||||
export { default as stringify } from './stringify.js';
|
|
||||||
export { default as parse } from './parse.js';
|
|
||||||
13
node_modules/uuid/dist/esm-node/md5.js
generated
vendored
13
node_modules/uuid/dist/esm-node/md5.js
generated
vendored
@@ -1,13 +0,0 @@
|
|||||||
import crypto from 'crypto';
|
|
||||||
|
|
||||||
function md5(bytes) {
|
|
||||||
if (Array.isArray(bytes)) {
|
|
||||||
bytes = Buffer.from(bytes);
|
|
||||||
} else if (typeof bytes === 'string') {
|
|
||||||
bytes = Buffer.from(bytes, 'utf8');
|
|
||||||
}
|
|
||||||
|
|
||||||
return crypto.createHash('md5').update(bytes).digest();
|
|
||||||
}
|
|
||||||
|
|
||||||
export default md5;
|
|
||||||
1
node_modules/uuid/dist/esm-node/nil.js
generated
vendored
1
node_modules/uuid/dist/esm-node/nil.js
generated
vendored
@@ -1 +0,0 @@
|
|||||||
export default '00000000-0000-0000-0000-000000000000';
|
|
||||||
35
node_modules/uuid/dist/esm-node/parse.js
generated
vendored
35
node_modules/uuid/dist/esm-node/parse.js
generated
vendored
@@ -1,35 +0,0 @@
|
|||||||
import validate from './validate.js';
|
|
||||||
|
|
||||||
function parse(uuid) {
|
|
||||||
if (!validate(uuid)) {
|
|
||||||
throw TypeError('Invalid UUID');
|
|
||||||
}
|
|
||||||
|
|
||||||
let v;
|
|
||||||
const arr = new Uint8Array(16); // Parse ########-....-....-....-............
|
|
||||||
|
|
||||||
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
|
||||||
arr[1] = v >>> 16 & 0xff;
|
|
||||||
arr[2] = v >>> 8 & 0xff;
|
|
||||||
arr[3] = v & 0xff; // Parse ........-####-....-....-............
|
|
||||||
|
|
||||||
arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
|
|
||||||
arr[5] = v & 0xff; // Parse ........-....-####-....-............
|
|
||||||
|
|
||||||
arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
|
|
||||||
arr[7] = v & 0xff; // Parse ........-....-....-####-............
|
|
||||||
|
|
||||||
arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
|
|
||||||
arr[9] = v & 0xff; // Parse ........-....-....-....-############
|
|
||||||
// (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
|
|
||||||
|
|
||||||
arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
|
|
||||||
arr[11] = v / 0x100000000 & 0xff;
|
|
||||||
arr[12] = v >>> 24 & 0xff;
|
|
||||||
arr[13] = v >>> 16 & 0xff;
|
|
||||||
arr[14] = v >>> 8 & 0xff;
|
|
||||||
arr[15] = v & 0xff;
|
|
||||||
return arr;
|
|
||||||
}
|
|
||||||
|
|
||||||
export default parse;
|
|
||||||
1
node_modules/uuid/dist/esm-node/regex.js
generated
vendored
1
node_modules/uuid/dist/esm-node/regex.js
generated
vendored
@@ -1 +0,0 @@
|
|||||||
export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
||||||
12
node_modules/uuid/dist/esm-node/rng.js
generated
vendored
12
node_modules/uuid/dist/esm-node/rng.js
generated
vendored
@@ -1,12 +0,0 @@
|
|||||||
import crypto from 'crypto';
|
|
||||||
const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
|
|
||||||
|
|
||||||
let poolPtr = rnds8Pool.length;
|
|
||||||
export default function rng() {
|
|
||||||
if (poolPtr > rnds8Pool.length - 16) {
|
|
||||||
crypto.randomFillSync(rnds8Pool);
|
|
||||||
poolPtr = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
||||||
}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user