├── .github ├── dependabot.yml └── workflows │ └── test.yml ├── .gitignore ├── CODEOWNERS ├── LICENSE ├── NOTICE ├── README.md ├── action.yml ├── index.js ├── node_modules ├── .bin │ └── uuid ├── .package-lock.json ├── @actions │ ├── core │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── lib │ │ │ ├── command.d.ts │ │ │ ├── command.js │ │ │ ├── command.js.map │ │ │ ├── core.d.ts │ │ │ ├── core.js │ │ │ ├── core.js.map │ │ │ ├── file-command.d.ts │ │ │ ├── file-command.js │ │ │ ├── file-command.js.map │ │ │ ├── oidc-utils.d.ts │ │ │ ├── oidc-utils.js │ │ │ ├── oidc-utils.js.map │ │ │ ├── path-utils.d.ts │ │ │ ├── path-utils.js │ │ │ ├── path-utils.js.map │ │ │ ├── summary.d.ts │ │ │ ├── summary.js │ │ │ ├── summary.js.map │ │ │ ├── utils.d.ts │ │ │ ├── utils.js │ │ │ └── utils.js.map │ │ └── package.json │ └── http-client │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lib │ │ ├── auth.d.ts │ │ ├── auth.js │ │ ├── auth.js.map │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── index.js.map │ │ ├── interfaces.d.ts │ │ ├── interfaces.js │ │ ├── interfaces.js.map │ │ ├── proxy.d.ts │ │ ├── proxy.js │ │ └── proxy.js.map │ │ └── package.json ├── tunnel │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── lib │ │ └── tunnel.js │ └── package.json └── uuid │ ├── CHANGELOG.md │ ├── CONTRIBUTING.md │ ├── LICENSE.md │ ├── README.md │ ├── dist │ ├── bin │ │ └── uuid │ ├── esm-browser │ │ ├── index.js │ │ ├── md5.js │ │ ├── nil.js │ │ ├── parse.js │ │ ├── regex.js │ │ ├── rng.js │ │ ├── sha1.js │ │ ├── stringify.js │ │ ├── v1.js │ │ ├── v3.js │ │ ├── v35.js │ │ ├── v4.js │ │ ├── v5.js │ │ ├── validate.js │ │ └── version.js │ ├── esm-node │ │ ├── index.js │ │ ├── md5.js │ │ ├── nil.js │ │ ├── parse.js │ │ ├── regex.js │ │ ├── rng.js │ │ ├── sha1.js │ │ ├── stringify.js │ │ ├── v1.js │ │ ├── v3.js │ │ ├── v35.js │ │ ├── v4.js │ │ ├── v5.js │ │ ├── validate.js │ │ └── version.js │ ├── index.js │ ├── md5-browser.js │ ├── md5.js │ ├── nil.js │ ├── parse.js │ ├── regex.js │ ├── rng-browser.js │ ├── rng.js │ ├── sha1-browser.js │ ├── sha1.js │ ├── stringify.js │ ├── umd │ │ ├── uuid.min.js │ │ ├── uuidNIL.min.js │ │ ├── uuidParse.min.js │ │ ├── uuidStringify.min.js │ │ ├── uuidValidate.min.js │ │ ├── uuidVersion.min.js │ │ ├── uuidv1.min.js │ │ ├── uuidv3.min.js │ │ ├── uuidv4.min.js │ │ └── uuidv5.min.js │ ├── uuid-bin.js │ ├── v1.js │ ├── v3.js │ ├── v35.js │ ├── v4.js │ ├── v5.js │ ├── validate.js │ └── version.js │ ├── package.json │ └── wrapper.mjs ├── package-lock.json └── package.json /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 2 | 3 | version: 2 4 | updates: 5 | - package-ecosystem: "npm" 6 | directory: "/" 7 | schedule: 8 | interval: "weekly" 9 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | # docs: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions 2 | 3 | name: "test" 4 | 5 | on: 6 | workflow_dispatch: 7 | pull_request: 8 | push: 9 | branches: 10 | - master 11 | 12 | concurrency: 13 | group: ${{ github.workflow }}-${{ github.ref }} 14 | cancel-in-progress: true 15 | 16 | jobs: 17 | # unit tests 18 | # units: 19 | # name: unit tests 20 | # runs-on: ubuntu-latest 21 | # steps: 22 | # - uses: actions/checkout@v3 23 | # - run: npm ci 24 | # - run: npm test 25 | 26 | # test action works running from the graph 27 | dogfooding: 28 | name: dogfooding ${{ matrix.outputFormat }} 29 | runs-on: ubuntu-latest 30 | strategy: 31 | matrix: 32 | outputFormat: [json, xml] 33 | steps: 34 | - uses: actions/checkout@v3 35 | - uses: actions/setup-node@v3 36 | with: 37 | node-version: '16' 38 | - run : npm ci 39 | - name: dogfooding 40 | uses: ./ 41 | with: 42 | output: ./bom.${{ matrix.outputFormat }} 43 | - name: artifact dogfooding results 44 | if: ${{ ! cancelled() }} 45 | # see https://github.com/actions/upload-artifact 46 | uses: actions/upload-artifact@v3 47 | with: 48 | name: dogfooding-${{ matrix.outputFormat }} 49 | path: ./bom.${{ matrix.outputFormat }} -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /bom.xml 2 | /bom.json -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- 1 | # see https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners 2 | 3 | 4 | # all maintainers are default-reviewers of new pull requests. 5 | # see https://github.com/orgs/CycloneDX/teams/javascript-maintainers 6 | * @CycloneDX/javascript-maintainers -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | CycloneDX GitHub Action for Node.js 2 | Copyright (c) Patrick Dwyer 3 | 4 | This product includes software developed by the 5 | CycloneDX community (https://cyclonedx.org/). 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | > [!NOTE] 2 | > This GitHub Action is considered deprecated. 3 | > Instead, you may use one of the following tools in your github workflow: 4 | > 5 | > - for NPM projects: [`@yclonedx/cyclonedx-npm`](https://www.npmjs.com/package/%40cyclonedx/cyclonedx-npm) 6 | > ```yaml 7 | > - name: Create SBOM step 8 | > # see for usage: https://www.npmjs.com/package/%40cyclonedx/cyclonedx-npm 9 | > run: npx @cyclonedx/cyclonedx-npm --help 10 | > ``` 11 | > - for YARN projects: [`@cyclonedx/yarn-plugin-cyclonedx`](https://www.npmjs.com/package/%40cyclonedx/yarn-plugin-cyclonedx) 12 | > ```yaml 13 | > - name: Create SBOM step 14 | > # see for usage: https://www.npmjs.com/package/%40cyclonedx/yarn-plugin-cyclonedx 15 | > run: yarn dlx -q @cyclonedx/yarn-plugin-cyclonedx --help 16 | > ``` 17 | > - for PNPM projects: *to be announced* 18 | 19 | For other Node.js related CycloneDX SBOM generators, see also: 20 | 21 | ---- 22 | 23 | [![Website](https://img.shields.io/badge/https://-cyclonedx.org-blue.svg)](https://cyclonedx.org/) 24 | [![Slack Invite](https://img.shields.io/badge/Slack-Join-blue?logo=slack&labelColor=393939)](https://cyclonedx.org/slack/invite) 25 | [![Group Discussion](https://img.shields.io/badge/discussion-groups.io-blue.svg)](https://groups.io/g/CycloneDX) 26 | [![Twitter](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&label=Follow)](https://twitter.com/CycloneDX_Spec) 27 | 28 | # GitHub action to generate a CycloneDX SBOM for Node.js 29 | 30 | This GitHub action will create a a valid CycloneDX Software Bill-of-Materials (SBOM) containing an aggregate of all project dependencies. CycloneDX is a lightweight SBOM specification that is easily created, human and machine readable, and simple to parse. 31 | 32 | This GitHub action requires a node_modules directory so this action will typically need to run after an npm build. 33 | 34 | ## Inputs 35 | 36 | ### `path` 37 | 38 | The path to a Node.js project, default is "./" 39 | 40 | Be sure to quote paths with spaces. 41 | 42 | ### `output` 43 | 44 | Output filename, default is "./bom.xml" 45 | 46 | Be sure to quote paths with spaces. 47 | 48 | ## Example simple usage 49 | 50 | ```yaml 51 | uses: CycloneDX/gh-node-module-generatebom@v1 52 | ``` 53 | 54 | ## Example step that defines the output and path (both are optional) 55 | 56 | ```yaml 57 | - name: Create SBOM step 58 | uses: CycloneDX/gh-node-module-generatebom@v1 59 | with: 60 | path: './node_project/' 61 | output: './bom_directory/test.app.bom.xml' 62 | ``` 63 | 64 | ## Complete Action with npm build and SBOM creation 65 | 66 | ```yaml 67 | name: Build javascript project 68 | on: push 69 | jobs: 70 | build: 71 | runs-on: ubuntu-latest 72 | name: Install and build javascript 73 | steps: 74 | - uses: actions/checkout@v3 75 | - uses: actions/setup-node@v3 76 | with: 77 | node-version: '16' 78 | - run: npm install 79 | - name: Create SBOM with CycloneDX 80 | uses: CycloneDX/gh-node-module-generatebom@v1 81 | with: 82 | output: './test.app.bom.xml' 83 | ``` 84 | 85 | ## Internals 86 | 87 | This action uses `@cyclonedx/bom@<4`. See [`@cyclonedx/bom` in NPMjs](https://www.npmjs.com/package/@cyclonedx/bom). 88 | -------------------------------------------------------------------------------- /action.yml: -------------------------------------------------------------------------------- 1 | name: 'CycloneDX Node.js Generate SBOM' 2 | author: Patrick Dwyer 3 | description: 'Github action to generate a CycloneDX BOM for Node.js projects' 4 | inputs: 5 | path: 6 | description: 'The path to a Node.js project' 7 | default: ./ 8 | required: false 9 | output: 10 | description: 'Output filename' 11 | default: ./bom.xml 12 | required: false 13 | runs: 14 | using: 'node16' 15 | main: 'index.js' 16 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | // This file is part of CycloneDX GitHub Action for Node.js 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the “License”); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an “AS IS” BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | // 15 | // SPDX-License-Identifier: Apache-2.0 16 | // Copyright (c) Patrick Dwyer. All Rights Reserved. 17 | 18 | const fs = require('fs'); 19 | const core = require('@actions/core'); 20 | const execSync = require('child_process').execSync; 21 | 22 | try { 23 | // check if CycloneDX is installed 24 | try { 25 | execSync('cyclonedx-bom --help'); 26 | } catch (error) { 27 | console.log('Installing CycloneDX...'); 28 | let output = execSync("npm install -g '@cyclonedx/bom@<4'", { encoding: 'utf-8' }); 29 | console.log(output); 30 | } 31 | 32 | const path = core.getInput('path'); 33 | const out = core.getInput('output'); 34 | 35 | console.log('Options:'); 36 | console.log(` path: ${path}`); 37 | console.log(` output: ${out}`); 38 | 39 | let command = `cyclonedx-bom --output=${out} ${path}` 40 | 41 | console.log(`Running: ${command}`); 42 | 43 | output = execSync(command, { encoding: 'utf-8' }); 44 | console.log(output); 45 | 46 | console.log('BOM Contents:'); 47 | let bomContents = fs.readFileSync(`${out}`).toString('utf8'); 48 | console.log(bomContents); 49 | } catch (error) { 50 | core.setFailed(error.message); 51 | } -------------------------------------------------------------------------------- /node_modules/.bin/uuid: -------------------------------------------------------------------------------- 1 | ../uuid/dist/bin/uuid -------------------------------------------------------------------------------- /node_modules/.package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "gh-node-module-generatebom", 3 | "lockfileVersion": 2, 4 | "requires": true, 5 | "packages": { 6 | "node_modules/@actions/core": { 7 | "version": "1.10.0", 8 | "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz", 9 | "integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==", 10 | "dependencies": { 11 | "@actions/http-client": "^2.0.1", 12 | "uuid": "^8.3.2" 13 | } 14 | }, 15 | "node_modules/@actions/http-client": { 16 | "version": "2.1.0", 17 | "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.1.0.tgz", 18 | "integrity": "sha512-BonhODnXr3amchh4qkmjPMUO8mFi/zLaaCeCAJZqch8iQqyDnVIkySjB38VHAC8IJ+bnlgfOqlhpyCUZHlQsqw==", 19 | "dependencies": { 20 | "tunnel": "^0.0.6" 21 | } 22 | }, 23 | "node_modules/tunnel": { 24 | "version": "0.0.6", 25 | "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", 26 | "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", 27 | "engines": { 28 | "node": ">=0.6.11 <=0.7.0 || >=0.7.3" 29 | } 30 | }, 31 | "node_modules/uuid": { 32 | "version": "8.3.2", 33 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", 34 | "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", 35 | "bin": { 36 | "uuid": "dist/bin/uuid" 37 | } 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /node_modules/@actions/core/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright 2019 GitHub 4 | 5 | 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: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | 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. -------------------------------------------------------------------------------- /node_modules/@actions/core/README.md: -------------------------------------------------------------------------------- 1 | # `@actions/core` 2 | 3 | > Core functions for setting results, logging, registering secrets and exporting variables across actions 4 | 5 | ## Usage 6 | 7 | ### Import the package 8 | 9 | ```js 10 | // javascript 11 | const core = require('@actions/core'); 12 | 13 | // typescript 14 | import * as core from '@actions/core'; 15 | ``` 16 | 17 | #### Inputs/Outputs 18 | 19 | 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`. 20 | 21 | Outputs can be set with `setOutput` which makes them available to be mapped into inputs of other actions to ensure they are decoupled. 22 | 23 | ```js 24 | const myInput = core.getInput('inputName', { required: true }); 25 | const myBooleanInput = core.getBooleanInput('booleanInputName', { required: true }); 26 | const myMultilineInput = core.getMultilineInput('multilineInputName', { required: true }); 27 | core.setOutput('outputKey', 'outputVal'); 28 | ``` 29 | 30 | #### Exporting variables 31 | 32 | Since each step runs in a separate process, you can use `exportVariable` to add it to this step and future steps environment blocks. 33 | 34 | ```js 35 | core.exportVariable('envVar', 'Val'); 36 | ``` 37 | 38 | #### Setting a secret 39 | 40 | Setting a secret registers the secret with the runner to ensure it is masked in logs. 41 | 42 | ```js 43 | core.setSecret('myPassword'); 44 | ``` 45 | 46 | #### PATH Manipulation 47 | 48 | To make a tool's path available in the path for the remainder of the job (without altering the machine or containers state), use `addPath`. The runner will prepend the path given to the jobs PATH. 49 | 50 | ```js 51 | core.addPath('/path/to/mytool'); 52 | ``` 53 | 54 | #### Exit codes 55 | 56 | You should use this library to set the failing exit code for your action. If status is not set and the script runs to completion, that will lead to a success. 57 | 58 | ```js 59 | const core = require('@actions/core'); 60 | 61 | try { 62 | // Do stuff 63 | } 64 | catch (err) { 65 | // setFailed logs the message and sets a failing exit code 66 | core.setFailed(`Action failed with error ${err}`); 67 | } 68 | ``` 69 | 70 | Note that `setNeutral` is not yet implemented in actions V2 but equivalent functionality is being planned. 71 | 72 | #### Logging 73 | 74 | Finally, this library provides some utilities for logging. Note that debug logging is hidden from the logs by default. This behavior can be toggled by enabling the [Step Debug Logs](../../docs/action-debugging.md#step-debug-logs). 75 | 76 | ```js 77 | const core = require('@actions/core'); 78 | 79 | const myInput = core.getInput('input'); 80 | try { 81 | core.debug('Inside try block'); 82 | 83 | if (!myInput) { 84 | core.warning('myInput was not set'); 85 | } 86 | 87 | if (core.isDebug()) { 88 | // curl -v https://github.com 89 | } else { 90 | // curl https://github.com 91 | } 92 | 93 | // Do stuff 94 | core.info('Output to the actions build log') 95 | 96 | core.notice('This is a message that will also emit an annotation') 97 | } 98 | catch (err) { 99 | core.error(`Error ${err}, action may still succeed though`); 100 | } 101 | ``` 102 | 103 | This library can also wrap chunks of output in foldable groups. 104 | 105 | ```js 106 | const core = require('@actions/core') 107 | 108 | // Manually wrap output 109 | core.startGroup('Do some function') 110 | doSomeFunction() 111 | core.endGroup() 112 | 113 | // Wrap an asynchronous function call 114 | const result = await core.group('Do something async', async () => { 115 | const response = await doSomeHTTPRequest() 116 | return response 117 | }) 118 | ``` 119 | 120 | #### Annotations 121 | 122 | This library has 3 methods that will produce [annotations](https://docs.github.com/en/rest/reference/checks#create-a-check-run). 123 | ```js 124 | core.error('This is a bad error. This will also fail the build.') 125 | 126 | core.warning('Something went wrong, but it\'s not bad enough to fail the build.') 127 | 128 | core.notice('Something happened that you might want to know about.') 129 | ``` 130 | 131 | These will surface to the UI in the Actions page and on Pull Requests. They look something like this: 132 | 133 | ![Annotations Image](../../docs/assets/annotations.png) 134 | 135 | These annotations can also be attached to particular lines and columns of your source files to show exactly where a problem is occuring. 136 | 137 | These options are: 138 | ```typescript 139 | export interface AnnotationProperties { 140 | /** 141 | * A title for the annotation. 142 | */ 143 | title?: string 144 | 145 | /** 146 | * The name of the file for which the annotation should be created. 147 | */ 148 | file?: string 149 | 150 | /** 151 | * The start line for the annotation. 152 | */ 153 | startLine?: number 154 | 155 | /** 156 | * The end line for the annotation. Defaults to `startLine` when `startLine` is provided. 157 | */ 158 | endLine?: number 159 | 160 | /** 161 | * The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values. 162 | */ 163 | startColumn?: number 164 | 165 | /** 166 | * The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values. 167 | * Defaults to `startColumn` when `startColumn` is provided. 168 | */ 169 | endColumn?: number 170 | } 171 | ``` 172 | 173 | #### Styling output 174 | 175 | Colored output is supported in the Action logs via standard [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code). 3/4 bit, 8 bit and 24 bit colors are all supported. 176 | 177 | Foreground colors: 178 | 179 | ```js 180 | // 3/4 bit 181 | core.info('\u001b[35mThis foreground will be magenta') 182 | 183 | // 8 bit 184 | core.info('\u001b[38;5;6mThis foreground will be cyan') 185 | 186 | // 24 bit 187 | core.info('\u001b[38;2;255;0;0mThis foreground will be bright red') 188 | ``` 189 | 190 | Background colors: 191 | 192 | ```js 193 | // 3/4 bit 194 | core.info('\u001b[43mThis background will be yellow'); 195 | 196 | // 8 bit 197 | core.info('\u001b[48;5;6mThis background will be cyan') 198 | 199 | // 24 bit 200 | core.info('\u001b[48;2;255;0;0mThis background will be bright red') 201 | ``` 202 | 203 | Special styles: 204 | 205 | ```js 206 | core.info('\u001b[1mBold text') 207 | core.info('\u001b[3mItalic text') 208 | core.info('\u001b[4mUnderlined text') 209 | ``` 210 | 211 | ANSI escape codes can be combined with one another: 212 | 213 | ```js 214 | core.info('\u001b[31;46mRed foreground with a cyan background and \u001b[1mbold text at the end'); 215 | ``` 216 | 217 | > Note: Escape codes reset at the start of each line 218 | 219 | ```js 220 | core.info('\u001b[35mThis foreground will be magenta') 221 | core.info('This foreground will reset to the default') 222 | ``` 223 | 224 | Manually typing escape codes can be a little difficult, but you can use third party modules such as [ansi-styles](https://github.com/chalk/ansi-styles). 225 | 226 | ```js 227 | const style = require('ansi-styles'); 228 | core.info(style.color.ansi16m.hex('#abcdef') + 'Hello world!') 229 | ``` 230 | 231 | #### Action state 232 | 233 | You can use this library to save state and get state for sharing information between a given wrapper action: 234 | 235 | **action.yml**: 236 | 237 | ```yaml 238 | name: 'Wrapper action sample' 239 | inputs: 240 | name: 241 | default: 'GitHub' 242 | runs: 243 | using: 'node12' 244 | main: 'main.js' 245 | post: 'cleanup.js' 246 | ``` 247 | 248 | In action's `main.js`: 249 | 250 | ```js 251 | const core = require('@actions/core'); 252 | 253 | core.saveState("pidToKill", 12345); 254 | ``` 255 | 256 | In action's `cleanup.js`: 257 | 258 | ```js 259 | const core = require('@actions/core'); 260 | 261 | var pid = core.getState("pidToKill"); 262 | 263 | process.kill(pid); 264 | ``` 265 | 266 | #### OIDC Token 267 | 268 | You can use these methods to interact with the GitHub OIDC provider and get a JWT ID token which would help to get access token from third party cloud providers. 269 | 270 | **Method Name**: getIDToken() 271 | 272 | **Inputs** 273 | 274 | audience : optional 275 | 276 | **Outputs** 277 | 278 | A [JWT](https://jwt.io/) ID Token 279 | 280 | In action's `main.ts`: 281 | ```js 282 | const core = require('@actions/core'); 283 | async function getIDTokenAction(): Promise { 284 | 285 | const audience = core.getInput('audience', {required: false}) 286 | 287 | const id_token1 = await core.getIDToken() // ID Token with default audience 288 | const id_token2 = await core.getIDToken(audience) // ID token with custom audience 289 | 290 | // this id_token can be used to get access token from third party cloud providers 291 | } 292 | getIDTokenAction() 293 | ``` 294 | 295 | In action's `actions.yml`: 296 | 297 | ```yaml 298 | name: 'GetIDToken' 299 | description: 'Get ID token from Github OIDC provider' 300 | inputs: 301 | audience: 302 | description: 'Audience for which the ID token is intended for' 303 | required: false 304 | outputs: 305 | id_token1: 306 | description: 'ID token obtained from OIDC provider' 307 | id_token2: 308 | description: 'ID token obtained from OIDC provider' 309 | runs: 310 | using: 'node12' 311 | main: 'dist/index.js' 312 | ``` 313 | 314 | #### Filesystem path helpers 315 | 316 | You can use these methods to manipulate file paths across operating systems. 317 | 318 | The `toPosixPath` function converts input paths to Posix-style (Linux) paths. 319 | The `toWin32Path` function converts input paths to Windows-style paths. These 320 | functions work independently of the underlying runner operating system. 321 | 322 | ```js 323 | toPosixPath('\\foo\\bar') // => /foo/bar 324 | toWin32Path('/foo/bar') // => \foo\bar 325 | ``` 326 | 327 | The `toPlatformPath` function converts input paths to the expected value on the runner's operating system. 328 | 329 | ```js 330 | // On a Windows runner. 331 | toPlatformPath('/foo/bar') // => \foo\bar 332 | 333 | // On a Linux runner. 334 | toPlatformPath('\\foo\\bar') // => /foo/bar 335 | ``` 336 | -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/command.d.ts: -------------------------------------------------------------------------------- 1 | export interface CommandProperties { 2 | [key: string]: any; 3 | } 4 | /** 5 | * Commands 6 | * 7 | * Command Format: 8 | * ::name key=value,key=value::message 9 | * 10 | * Examples: 11 | * ::warning::This is the message 12 | * ::set-env name=MY_VAR::some value 13 | */ 14 | export declare function issueCommand(command: string, properties: CommandProperties, message: any): void; 15 | export declare function issue(name: string, message?: string): void; 16 | -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/command.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { 10 | Object.defineProperty(o, "default", { enumerable: true, value: v }); 11 | }) : function(o, v) { 12 | o["default"] = v; 13 | }); 14 | var __importStar = (this && this.__importStar) || function (mod) { 15 | if (mod && mod.__esModule) return mod; 16 | var result = {}; 17 | if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); 18 | __setModuleDefault(result, mod); 19 | return result; 20 | }; 21 | Object.defineProperty(exports, "__esModule", { value: true }); 22 | exports.issue = exports.issueCommand = void 0; 23 | const os = __importStar(require("os")); 24 | const utils_1 = require("./utils"); 25 | /** 26 | * Commands 27 | * 28 | * Command Format: 29 | * ::name key=value,key=value::message 30 | * 31 | * Examples: 32 | * ::warning::This is the message 33 | * ::set-env name=MY_VAR::some value 34 | */ 35 | function issueCommand(command, properties, message) { 36 | const cmd = new Command(command, properties, message); 37 | process.stdout.write(cmd.toString() + os.EOL); 38 | } 39 | exports.issueCommand = issueCommand; 40 | function issue(name, message = '') { 41 | issueCommand(name, {}, message); 42 | } 43 | exports.issue = issue; 44 | const CMD_STRING = '::'; 45 | class Command { 46 | constructor(command, properties, message) { 47 | if (!command) { 48 | command = 'missing.command'; 49 | } 50 | this.command = command; 51 | this.properties = properties; 52 | this.message = message; 53 | } 54 | toString() { 55 | let cmdStr = CMD_STRING + this.command; 56 | if (this.properties && Object.keys(this.properties).length > 0) { 57 | cmdStr += ' '; 58 | let first = true; 59 | for (const key in this.properties) { 60 | if (this.properties.hasOwnProperty(key)) { 61 | const val = this.properties[key]; 62 | if (val) { 63 | if (first) { 64 | first = false; 65 | } 66 | else { 67 | cmdStr += ','; 68 | } 69 | cmdStr += `${key}=${escapeProperty(val)}`; 70 | } 71 | } 72 | } 73 | } 74 | cmdStr += `${CMD_STRING}${escapeData(this.message)}`; 75 | return cmdStr; 76 | } 77 | } 78 | function escapeData(s) { 79 | return utils_1.toCommandValue(s) 80 | .replace(/%/g, '%25') 81 | .replace(/\r/g, '%0D') 82 | .replace(/\n/g, '%0A'); 83 | } 84 | function escapeProperty(s) { 85 | return utils_1.toCommandValue(s) 86 | .replace(/%/g, '%25') 87 | .replace(/\r/g, '%0D') 88 | .replace(/\n/g, '%0A') 89 | .replace(/:/g, '%3A') 90 | .replace(/,/g, '%2C'); 91 | } 92 | //# sourceMappingURL=command.js.map -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/command.js.map: -------------------------------------------------------------------------------- 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,IAAI,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,GAAG,CAAA;YACb,IAAI,KAAK,GAAG,IAAI,CAAA;YAChB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE;gBACjC,IAAI,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACvC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;oBAChC,IAAI,GAAG,EAAE;wBACP,IAAI,KAAK,EAAE;4BACT,KAAK,GAAG,KAAK,CAAA;yBACd;6BAAM;4BACL,MAAM,IAAI,GAAG,CAAA;yBACd;wBAED,MAAM,IAAI,GAAG,GAAG,IAAI,cAAc,CAAC,GAAG,CAAC,EAAE,CAAA;qBAC1C;iBACF;aACF;SACF;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,sBAAc,CAAC,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,sBAAc,CAAC,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"} -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/core.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Interface for getInput options 3 | */ 4 | export interface InputOptions { 5 | /** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */ 6 | required?: boolean; 7 | /** Optional. Whether leading/trailing whitespace will be trimmed for the input. Defaults to true */ 8 | trimWhitespace?: boolean; 9 | } 10 | /** 11 | * The code to exit an action 12 | */ 13 | export declare enum ExitCode { 14 | /** 15 | * A code indicating that the action was successful 16 | */ 17 | Success = 0, 18 | /** 19 | * A code indicating that the action was a failure 20 | */ 21 | Failure = 1 22 | } 23 | /** 24 | * Optional properties that can be sent with annotatation commands (notice, error, and warning) 25 | * See: https://docs.github.com/en/rest/reference/checks#create-a-check-run for more information about annotations. 26 | */ 27 | export interface AnnotationProperties { 28 | /** 29 | * A title for the annotation. 30 | */ 31 | title?: string; 32 | /** 33 | * The path of the file for which the annotation should be created. 34 | */ 35 | file?: string; 36 | /** 37 | * The start line for the annotation. 38 | */ 39 | startLine?: number; 40 | /** 41 | * The end line for the annotation. Defaults to `startLine` when `startLine` is provided. 42 | */ 43 | endLine?: number; 44 | /** 45 | * The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values. 46 | */ 47 | startColumn?: number; 48 | /** 49 | * The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values. 50 | * Defaults to `startColumn` when `startColumn` is provided. 51 | */ 52 | endColumn?: number; 53 | } 54 | /** 55 | * Sets env variable for this action and future actions in the job 56 | * @param name the name of the variable to set 57 | * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify 58 | */ 59 | export declare function exportVariable(name: string, val: any): void; 60 | /** 61 | * Registers a secret which will get masked from logs 62 | * @param secret value of the secret 63 | */ 64 | export declare function setSecret(secret: string): void; 65 | /** 66 | * Prepends inputPath to the PATH (for this action and future actions) 67 | * @param inputPath 68 | */ 69 | export declare function addPath(inputPath: string): void; 70 | /** 71 | * Gets the value of an input. 72 | * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed. 73 | * Returns an empty string if the value is not defined. 74 | * 75 | * @param name name of the input to get 76 | * @param options optional. See InputOptions. 77 | * @returns string 78 | */ 79 | export declare function getInput(name: string, options?: InputOptions): string; 80 | /** 81 | * Gets the values of an multiline input. Each value is also trimmed. 82 | * 83 | * @param name name of the input to get 84 | * @param options optional. See InputOptions. 85 | * @returns string[] 86 | * 87 | */ 88 | export declare function getMultilineInput(name: string, options?: InputOptions): string[]; 89 | /** 90 | * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification. 91 | * Support boolean input list: `true | True | TRUE | false | False | FALSE` . 92 | * The return value is also in boolean type. 93 | * ref: https://yaml.org/spec/1.2/spec.html#id2804923 94 | * 95 | * @param name name of the input to get 96 | * @param options optional. See InputOptions. 97 | * @returns boolean 98 | */ 99 | export declare function getBooleanInput(name: string, options?: InputOptions): boolean; 100 | /** 101 | * Sets the value of an output. 102 | * 103 | * @param name name of the output to set 104 | * @param value value to store. Non-string values will be converted to a string via JSON.stringify 105 | */ 106 | export declare function setOutput(name: string, value: any): void; 107 | /** 108 | * Enables or disables the echoing of commands into stdout for the rest of the step. 109 | * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set. 110 | * 111 | */ 112 | export declare function setCommandEcho(enabled: boolean): void; 113 | /** 114 | * Sets the action status to failed. 115 | * When the action exits it will be with an exit code of 1 116 | * @param message add error issue message 117 | */ 118 | export declare function setFailed(message: string | Error): void; 119 | /** 120 | * Gets whether Actions Step Debug is on or not 121 | */ 122 | export declare function isDebug(): boolean; 123 | /** 124 | * Writes debug message to user log 125 | * @param message debug message 126 | */ 127 | export declare function debug(message: string): void; 128 | /** 129 | * Adds an error issue 130 | * @param message error issue message. Errors will be converted to string via toString() 131 | * @param properties optional properties to add to the annotation. 132 | */ 133 | export declare function error(message: string | Error, properties?: AnnotationProperties): void; 134 | /** 135 | * Adds a warning issue 136 | * @param message warning issue message. Errors will be converted to string via toString() 137 | * @param properties optional properties to add to the annotation. 138 | */ 139 | export declare function warning(message: string | Error, properties?: AnnotationProperties): void; 140 | /** 141 | * Adds a notice issue 142 | * @param message notice issue message. Errors will be converted to string via toString() 143 | * @param properties optional properties to add to the annotation. 144 | */ 145 | export declare function notice(message: string | Error, properties?: AnnotationProperties): void; 146 | /** 147 | * Writes info to log with console.log. 148 | * @param message info message 149 | */ 150 | export declare function info(message: string): void; 151 | /** 152 | * Begin an output group. 153 | * 154 | * Output until the next `groupEnd` will be foldable in this group 155 | * 156 | * @param name The name of the output group 157 | */ 158 | export declare function startGroup(name: string): void; 159 | /** 160 | * End an output group. 161 | */ 162 | export declare function endGroup(): void; 163 | /** 164 | * Wrap an asynchronous function call in a group. 165 | * 166 | * Returns the same type as the function itself. 167 | * 168 | * @param name The name of the group 169 | * @param fn The function to wrap in the group 170 | */ 171 | export declare function group(name: string, fn: () => Promise): Promise; 172 | /** 173 | * Saves state for current action, the state can only be retrieved by this action's post job execution. 174 | * 175 | * @param name name of the state to store 176 | * @param value value to store. Non-string values will be converted to a string via JSON.stringify 177 | */ 178 | export declare function saveState(name: string, value: any): void; 179 | /** 180 | * Gets the value of an state set by this action's main execution. 181 | * 182 | * @param name name of the state to get 183 | * @returns string 184 | */ 185 | export declare function getState(name: string): string; 186 | export declare function getIDToken(aud?: string): Promise; 187 | /** 188 | * Summary exports 189 | */ 190 | export { summary } from './summary'; 191 | /** 192 | * @deprecated use core.summary 193 | */ 194 | export { markdownSummary } from './summary'; 195 | /** 196 | * Path exports 197 | */ 198 | export { toPosixPath, toWin32Path, toPlatformPath } from './path-utils'; 199 | -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/core.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"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"} -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/file-command.d.ts: -------------------------------------------------------------------------------- 1 | export declare function issueFileCommand(command: string, message: any): void; 2 | export declare function prepareKeyValueMessage(key: string, value: any): string; 3 | -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/file-command.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // For internal use, subject to change. 3 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 4 | if (k2 === undefined) k2 = k; 5 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 6 | }) : (function(o, m, k, k2) { 7 | if (k2 === undefined) k2 = k; 8 | o[k2] = m[k]; 9 | })); 10 | var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { 11 | Object.defineProperty(o, "default", { enumerable: true, value: v }); 12 | }) : function(o, v) { 13 | o["default"] = v; 14 | }); 15 | var __importStar = (this && this.__importStar) || function (mod) { 16 | if (mod && mod.__esModule) return mod; 17 | var result = {}; 18 | if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); 19 | __setModuleDefault(result, mod); 20 | return result; 21 | }; 22 | Object.defineProperty(exports, "__esModule", { value: true }); 23 | exports.prepareKeyValueMessage = exports.issueFileCommand = void 0; 24 | // We use any as a valid input type 25 | /* eslint-disable @typescript-eslint/no-explicit-any */ 26 | const fs = __importStar(require("fs")); 27 | const os = __importStar(require("os")); 28 | const uuid_1 = require("uuid"); 29 | const utils_1 = require("./utils"); 30 | function issueFileCommand(command, message) { 31 | const filePath = process.env[`GITHUB_${command}`]; 32 | if (!filePath) { 33 | throw new Error(`Unable to find environment variable for file command ${command}`); 34 | } 35 | if (!fs.existsSync(filePath)) { 36 | throw new Error(`Missing file at path: ${filePath}`); 37 | } 38 | fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, { 39 | encoding: 'utf8' 40 | }); 41 | } 42 | exports.issueFileCommand = issueFileCommand; 43 | function prepareKeyValueMessage(key, value) { 44 | const delimiter = `ghadelimiter_${uuid_1.v4()}`; 45 | const convertedValue = utils_1.toCommandValue(value); 46 | // These should realistically never happen, but just in case someone finds a 47 | // way to exploit uuid generation let's not allow keys or values that contain 48 | // the delimiter. 49 | if (key.includes(delimiter)) { 50 | throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`); 51 | } 52 | if (convertedValue.includes(delimiter)) { 53 | throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`); 54 | } 55 | return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`; 56 | } 57 | exports.prepareKeyValueMessage = prepareKeyValueMessage; 58 | //# sourceMappingURL=file-command.js.map -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/file-command.js.map: -------------------------------------------------------------------------------- 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,GAAG,CAC1E,CAAA;KACF;IAED,OAAO,GAAG,GAAG,KAAK,SAAS,GAAG,EAAE,CAAC,GAAG,GAAG,cAAc,GAAG,EAAE,CAAC,GAAG,GAAG,SAAS,EAAE,CAAA;AAC9E,CAAC;AApBD,wDAoBC"} -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/oidc-utils.d.ts: -------------------------------------------------------------------------------- 1 | export declare class OidcClient { 2 | private static createHttpClient; 3 | private static getRequestToken; 4 | private static getIDTokenUrl; 5 | private static getCall; 6 | static getIDToken(audience?: string): Promise; 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/oidc-utils.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { 3 | function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } 4 | return new (P || (P = Promise))(function (resolve, reject) { 5 | function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } 6 | function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } 7 | function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } 8 | step((generator = generator.apply(thisArg, _arguments || [])).next()); 9 | }); 10 | }; 11 | Object.defineProperty(exports, "__esModule", { value: true }); 12 | exports.OidcClient = void 0; 13 | const http_client_1 = require("@actions/http-client"); 14 | const auth_1 = require("@actions/http-client/lib/auth"); 15 | const core_1 = require("./core"); 16 | class OidcClient { 17 | static createHttpClient(allowRetry = true, maxRetry = 10) { 18 | const requestOptions = { 19 | allowRetries: allowRetry, 20 | maxRetries: maxRetry 21 | }; 22 | return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions); 23 | } 24 | static getRequestToken() { 25 | const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN']; 26 | if (!token) { 27 | throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable'); 28 | } 29 | return token; 30 | } 31 | static getIDTokenUrl() { 32 | const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL']; 33 | if (!runtimeUrl) { 34 | throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable'); 35 | } 36 | return runtimeUrl; 37 | } 38 | static getCall(id_token_url) { 39 | var _a; 40 | return __awaiter(this, void 0, void 0, function* () { 41 | const httpclient = OidcClient.createHttpClient(); 42 | const res = yield httpclient 43 | .getJson(id_token_url) 44 | .catch(error => { 45 | throw new Error(`Failed to get ID Token. \n 46 | Error Code : ${error.statusCode}\n 47 | Error Message: ${error.result.message}`); 48 | }); 49 | const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; 50 | if (!id_token) { 51 | throw new Error('Response json body do not have ID Token field'); 52 | } 53 | return id_token; 54 | }); 55 | } 56 | static getIDToken(audience) { 57 | return __awaiter(this, void 0, void 0, function* () { 58 | try { 59 | // New ID Token is requested from action service 60 | let id_token_url = OidcClient.getIDTokenUrl(); 61 | if (audience) { 62 | const encodedAudience = encodeURIComponent(audience); 63 | id_token_url = `${id_token_url}&audience=${encodedAudience}`; 64 | } 65 | core_1.debug(`ID token url is ${id_token_url}`); 66 | const id_token = yield OidcClient.getCall(id_token_url); 67 | core_1.setSecret(id_token); 68 | return id_token; 69 | } 70 | catch (error) { 71 | throw new Error(`Error message: ${error.message}`); 72 | } 73 | }); 74 | } 75 | } 76 | exports.OidcClient = OidcClient; 77 | //# sourceMappingURL=oidc-utils.js.map -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/oidc-utils.js.map: -------------------------------------------------------------------------------- 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,KAAK,CAAC,UAAU;yBACd,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CACtC,CAAA;YACH,CAAC,CAAC,CAAA;YAEJ,MAAM,QAAQ,SAAG,GAAG,CAAC,MAAM,0CAAE,KAAK,CAAA;YAClC,IAAI,CAAC,QAAQ,EAAE;gBACb,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAA;aACjE;YACD,OAAO,QAAQ,CAAA;;KAChB;IAED,MAAM,CAAO,UAAU,CAAC,QAAiB;;YACvC,IAAI;gBACF,gDAAgD;gBAChD,IAAI,YAAY,GAAW,UAAU,CAAC,aAAa,EAAE,CAAA;gBACrD,IAAI,QAAQ,EAAE;oBACZ,MAAM,eAAe,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAA;oBACpD,YAAY,GAAG,GAAG,YAAY,aAAa,eAAe,EAAE,CAAA;iBAC7D;gBAED,YAAK,CAAC,mBAAmB,YAAY,EAAE,CAAC,CAAA;gBAExC,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;gBACvD,gBAAS,CAAC,QAAQ,CAAC,CAAA;gBACnB,OAAO,QAAQ,CAAA;aAChB;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,IAAI,KAAK,CAAC,kBAAkB,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;aACnD;QACH,CAAC;KAAA;CACF;AAzED,gCAyEC"} -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/path-utils.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * toPosixPath converts the given path to the posix form. On Windows, \\ will be 3 | * replaced with /. 4 | * 5 | * @param pth. Path to transform. 6 | * @return string Posix path. 7 | */ 8 | export declare function toPosixPath(pth: string): string; 9 | /** 10 | * toWin32Path converts the given path to the win32 form. On Linux, / will be 11 | * replaced with \\. 12 | * 13 | * @param pth. Path to transform. 14 | * @return string Win32 path. 15 | */ 16 | export declare function toWin32Path(pth: string): string; 17 | /** 18 | * toPlatformPath converts the given path to a platform-specific path. It does 19 | * this by replacing instances of / and \ with the platform-specific path 20 | * separator. 21 | * 22 | * @param pth The path to platformize. 23 | * @return string The platform-specific path. 24 | */ 25 | export declare function toPlatformPath(pth: string): string; 26 | -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/path-utils.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { 10 | Object.defineProperty(o, "default", { enumerable: true, value: v }); 11 | }) : function(o, v) { 12 | o["default"] = v; 13 | }); 14 | var __importStar = (this && this.__importStar) || function (mod) { 15 | if (mod && mod.__esModule) return mod; 16 | var result = {}; 17 | if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); 18 | __setModuleDefault(result, mod); 19 | return result; 20 | }; 21 | Object.defineProperty(exports, "__esModule", { value: true }); 22 | exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0; 23 | const path = __importStar(require("path")); 24 | /** 25 | * toPosixPath converts the given path to the posix form. On Windows, \\ will be 26 | * replaced with /. 27 | * 28 | * @param pth. Path to transform. 29 | * @return string Posix path. 30 | */ 31 | function toPosixPath(pth) { 32 | return pth.replace(/[\\]/g, '/'); 33 | } 34 | exports.toPosixPath = toPosixPath; 35 | /** 36 | * toWin32Path converts the given path to the win32 form. On Linux, / will be 37 | * replaced with \\. 38 | * 39 | * @param pth. Path to transform. 40 | * @return string Win32 path. 41 | */ 42 | function toWin32Path(pth) { 43 | return pth.replace(/[/]/g, '\\'); 44 | } 45 | exports.toWin32Path = toWin32Path; 46 | /** 47 | * toPlatformPath converts the given path to a platform-specific path. It does 48 | * this by replacing instances of / and \ with the platform-specific path 49 | * separator. 50 | * 51 | * @param pth The path to platformize. 52 | * @return string The platform-specific path. 53 | */ 54 | function toPlatformPath(pth) { 55 | return pth.replace(/[/\\]/g, path.sep); 56 | } 57 | exports.toPlatformPath = toPlatformPath; 58 | //# sourceMappingURL=path-utils.js.map -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/path-utils.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/summary.d.ts: -------------------------------------------------------------------------------- 1 | export declare const SUMMARY_ENV_VAR = "GITHUB_STEP_SUMMARY"; 2 | export declare const SUMMARY_DOCS_URL = "https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary"; 3 | export declare type SummaryTableRow = (SummaryTableCell | string)[]; 4 | export interface SummaryTableCell { 5 | /** 6 | * Cell content 7 | */ 8 | data: string; 9 | /** 10 | * Render cell as header 11 | * (optional) default: false 12 | */ 13 | header?: boolean; 14 | /** 15 | * Number of columns the cell extends 16 | * (optional) default: '1' 17 | */ 18 | colspan?: string; 19 | /** 20 | * Number of rows the cell extends 21 | * (optional) default: '1' 22 | */ 23 | rowspan?: string; 24 | } 25 | export interface SummaryImageOptions { 26 | /** 27 | * The width of the image in pixels. Must be an integer without a unit. 28 | * (optional) 29 | */ 30 | width?: string; 31 | /** 32 | * The height of the image in pixels. Must be an integer without a unit. 33 | * (optional) 34 | */ 35 | height?: string; 36 | } 37 | export interface SummaryWriteOptions { 38 | /** 39 | * Replace all existing content in summary file with buffer contents 40 | * (optional) default: false 41 | */ 42 | overwrite?: boolean; 43 | } 44 | declare class Summary { 45 | private _buffer; 46 | private _filePath?; 47 | constructor(); 48 | /** 49 | * Finds the summary file path from the environment, rejects if env var is not found or file does not exist 50 | * Also checks r/w permissions. 51 | * 52 | * @returns step summary file path 53 | */ 54 | private filePath; 55 | /** 56 | * Wraps content in an HTML tag, adding any HTML attributes 57 | * 58 | * @param {string} tag HTML tag to wrap 59 | * @param {string | null} content content within the tag 60 | * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add 61 | * 62 | * @returns {string} content wrapped in HTML element 63 | */ 64 | private wrap; 65 | /** 66 | * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default. 67 | * 68 | * @param {SummaryWriteOptions} [options] (optional) options for write operation 69 | * 70 | * @returns {Promise} summary instance 71 | */ 72 | write(options?: SummaryWriteOptions): Promise; 73 | /** 74 | * Clears the summary buffer and wipes the summary file 75 | * 76 | * @returns {Summary} summary instance 77 | */ 78 | clear(): Promise; 79 | /** 80 | * Returns the current summary buffer as a string 81 | * 82 | * @returns {string} string of summary buffer 83 | */ 84 | stringify(): string; 85 | /** 86 | * If the summary buffer is empty 87 | * 88 | * @returns {boolen} true if the buffer is empty 89 | */ 90 | isEmptyBuffer(): boolean; 91 | /** 92 | * Resets the summary buffer without writing to summary file 93 | * 94 | * @returns {Summary} summary instance 95 | */ 96 | emptyBuffer(): Summary; 97 | /** 98 | * Adds raw text to the summary buffer 99 | * 100 | * @param {string} text content to add 101 | * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false) 102 | * 103 | * @returns {Summary} summary instance 104 | */ 105 | addRaw(text: string, addEOL?: boolean): Summary; 106 | /** 107 | * Adds the operating system-specific end-of-line marker to the buffer 108 | * 109 | * @returns {Summary} summary instance 110 | */ 111 | addEOL(): Summary; 112 | /** 113 | * Adds an HTML codeblock to the summary buffer 114 | * 115 | * @param {string} code content to render within fenced code block 116 | * @param {string} lang (optional) language to syntax highlight code 117 | * 118 | * @returns {Summary} summary instance 119 | */ 120 | addCodeBlock(code: string, lang?: string): Summary; 121 | /** 122 | * Adds an HTML list to the summary buffer 123 | * 124 | * @param {string[]} items list of items to render 125 | * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false) 126 | * 127 | * @returns {Summary} summary instance 128 | */ 129 | addList(items: string[], ordered?: boolean): Summary; 130 | /** 131 | * Adds an HTML table to the summary buffer 132 | * 133 | * @param {SummaryTableCell[]} rows table rows 134 | * 135 | * @returns {Summary} summary instance 136 | */ 137 | addTable(rows: SummaryTableRow[]): Summary; 138 | /** 139 | * Adds a collapsable HTML details element to the summary buffer 140 | * 141 | * @param {string} label text for the closed state 142 | * @param {string} content collapsable content 143 | * 144 | * @returns {Summary} summary instance 145 | */ 146 | addDetails(label: string, content: string): Summary; 147 | /** 148 | * Adds an HTML image tag to the summary buffer 149 | * 150 | * @param {string} src path to the image you to embed 151 | * @param {string} alt text description of the image 152 | * @param {SummaryImageOptions} options (optional) addition image attributes 153 | * 154 | * @returns {Summary} summary instance 155 | */ 156 | addImage(src: string, alt: string, options?: SummaryImageOptions): Summary; 157 | /** 158 | * Adds an HTML section heading element 159 | * 160 | * @param {string} text heading text 161 | * @param {number | string} [level=1] (optional) the heading level, default: 1 162 | * 163 | * @returns {Summary} summary instance 164 | */ 165 | addHeading(text: string, level?: number | string): Summary; 166 | /** 167 | * Adds an HTML thematic break (
) to the summary buffer 168 | * 169 | * @returns {Summary} summary instance 170 | */ 171 | addSeparator(): Summary; 172 | /** 173 | * Adds an HTML line break (
) to the summary buffer 174 | * 175 | * @returns {Summary} summary instance 176 | */ 177 | addBreak(): Summary; 178 | /** 179 | * Adds an HTML blockquote to the summary buffer 180 | * 181 | * @param {string} text quote text 182 | * @param {string} cite (optional) citation url 183 | * 184 | * @returns {Summary} summary instance 185 | */ 186 | addQuote(text: string, cite?: string): Summary; 187 | /** 188 | * Adds an HTML anchor tag to the summary buffer 189 | * 190 | * @param {string} text link text/content 191 | * @param {string} href hyperlink 192 | * 193 | * @returns {Summary} summary instance 194 | */ 195 | addLink(text: string, href: string): Summary; 196 | } 197 | /** 198 | * @deprecated use `core.summary` 199 | */ 200 | export declare const markdownSummary: Summary; 201 | export declare const summary: Summary; 202 | export {}; 203 | -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/summary.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"summary.js","sourceRoot":"","sources":["../src/summary.ts"],"names":[],"mappings":"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"} -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/utils.d.ts: -------------------------------------------------------------------------------- 1 | import { AnnotationProperties } from './core'; 2 | import { CommandProperties } from './command'; 3 | /** 4 | * Sanitizes an input into a string so it can be passed into issueCommand safely 5 | * @param input input to sanitize into a string 6 | */ 7 | export declare function toCommandValue(input: any): string; 8 | /** 9 | * 10 | * @param annotationProperties 11 | * @returns The command properties to send with the actual annotation command 12 | * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646 13 | */ 14 | export declare function toCommandProperties(annotationProperties: AnnotationProperties): CommandProperties; 15 | -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/utils.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // We use any as a valid input type 3 | /* eslint-disable @typescript-eslint/no-explicit-any */ 4 | Object.defineProperty(exports, "__esModule", { value: true }); 5 | exports.toCommandProperties = exports.toCommandValue = void 0; 6 | /** 7 | * Sanitizes an input into a string so it can be passed into issueCommand safely 8 | * @param input input to sanitize into a string 9 | */ 10 | function toCommandValue(input) { 11 | if (input === null || input === undefined) { 12 | return ''; 13 | } 14 | else if (typeof input === 'string' || input instanceof String) { 15 | return input; 16 | } 17 | return JSON.stringify(input); 18 | } 19 | exports.toCommandValue = toCommandValue; 20 | /** 21 | * 22 | * @param annotationProperties 23 | * @returns The command properties to send with the actual annotation command 24 | * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646 25 | */ 26 | function toCommandProperties(annotationProperties) { 27 | if (!Object.keys(annotationProperties).length) { 28 | return {}; 29 | } 30 | return { 31 | title: annotationProperties.title, 32 | file: annotationProperties.file, 33 | line: annotationProperties.startLine, 34 | endLine: annotationProperties.endLine, 35 | col: annotationProperties.startColumn, 36 | endColumn: annotationProperties.endColumn 37 | }; 38 | } 39 | exports.toCommandProperties = toCommandProperties; 40 | //# sourceMappingURL=utils.js.map -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/utils.js.map: -------------------------------------------------------------------------------- 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,CAAC;AAPD,wCAOC;AAED;;;;;GAKG;AACH,SAAgB,mBAAmB,CACjC,oBAA0C;IAE1C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,MAAM,EAAE;QAC7C,OAAO,EAAE,CAAA;KACV;IAED,OAAO;QACL,KAAK,EAAE,oBAAoB,CAAC,KAAK;QACjC,IAAI,EAAE,oBAAoB,CAAC,IAAI;QAC/B,IAAI,EAAE,oBAAoB,CAAC,SAAS;QACpC,OAAO,EAAE,oBAAoB,CAAC,OAAO;QACrC,GAAG,EAAE,oBAAoB,CAAC,WAAW;QACrC,SAAS,EAAE,oBAAoB,CAAC,SAAS;KAC1C,CAAA;AACH,CAAC;AAfD,kDAeC"} -------------------------------------------------------------------------------- /node_modules/@actions/core/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@actions/core", 3 | "version": "1.10.0", 4 | "description": "Actions core lib", 5 | "keywords": [ 6 | "github", 7 | "actions", 8 | "core" 9 | ], 10 | "homepage": "https://github.com/actions/toolkit/tree/main/packages/core", 11 | "license": "MIT", 12 | "main": "lib/core.js", 13 | "types": "lib/core.d.ts", 14 | "directories": { 15 | "lib": "lib", 16 | "test": "__tests__" 17 | }, 18 | "files": [ 19 | "lib", 20 | "!.DS_Store" 21 | ], 22 | "publishConfig": { 23 | "access": "public" 24 | }, 25 | "repository": { 26 | "type": "git", 27 | "url": "git+https://github.com/actions/toolkit.git", 28 | "directory": "packages/core" 29 | }, 30 | "scripts": { 31 | "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", 32 | "test": "echo \"Error: run tests from root\" && exit 1", 33 | "tsc": "tsc" 34 | }, 35 | "bugs": { 36 | "url": "https://github.com/actions/toolkit/issues" 37 | }, 38 | "dependencies": { 39 | "@actions/http-client": "^2.0.1", 40 | "uuid": "^8.3.2" 41 | }, 42 | "devDependencies": { 43 | "@types/node": "^12.0.2", 44 | "@types/uuid": "^8.3.4" 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /node_modules/@actions/http-client/LICENSE: -------------------------------------------------------------------------------- 1 | Actions Http Client for Node.js 2 | 3 | Copyright (c) GitHub, Inc. 4 | 5 | All rights reserved. 6 | 7 | MIT License 8 | 9 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 10 | associated documentation files (the "Software"), to deal in the Software without restriction, 11 | including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, 12 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, 13 | subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 18 | LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN 19 | NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 21 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/@actions/http-client/README.md: -------------------------------------------------------------------------------- 1 | # `@actions/http-client` 2 | 3 | A lightweight HTTP client optimized for building actions. 4 | 5 | ## Features 6 | 7 | - HTTP client with TypeScript generics and async/await/Promises 8 | - Typings included! 9 | - [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 10 | - Targets ES2019 (runner runs actions with node 12+). Only supported on node 12+. 11 | - Basic, Bearer and PAT Support out of the box. Extensible handlers for others. 12 | - Redirects supported 13 | 14 | Features and releases [here](./RELEASES.md) 15 | 16 | ## Install 17 | 18 | ``` 19 | npm install @actions/http-client --save 20 | ``` 21 | 22 | ## Samples 23 | 24 | See the [tests](./__tests__) for detailed examples. 25 | 26 | ## Errors 27 | 28 | ### HTTP 29 | 30 | The HTTP client does not throw unless truly exceptional. 31 | 32 | * A request that successfully executes resulting in a 404, 500 etc... will return a response object with a status code and a body. 33 | * Redirects (3xx) will be followed by default. 34 | 35 | See the [tests](./__tests__) for detailed examples. 36 | 37 | ## Debugging 38 | 39 | To enable detailed console logging of all HTTP requests and responses, set the NODE_DEBUG environment varible: 40 | 41 | ```shell 42 | export NODE_DEBUG=http 43 | ``` 44 | 45 | ## Node support 46 | 47 | 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+. 48 | 49 | ## Support and Versioning 50 | 51 | We follow semver and will hold compatibility between major versions and increment the minor version with new features and capabilities (while holding compat). 52 | 53 | ## Contributing 54 | 55 | We welcome PRs. Please create an issue and if applicable, a design before proceeding with code. 56 | 57 | once: 58 | 59 | ``` 60 | npm install 61 | ``` 62 | 63 | To build: 64 | 65 | ``` 66 | npm run build 67 | ``` 68 | 69 | To run all tests: 70 | 71 | ``` 72 | npm test 73 | ``` 74 | -------------------------------------------------------------------------------- /node_modules/@actions/http-client/lib/auth.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import * as http from 'http'; 3 | import * as ifm from './interfaces'; 4 | import { HttpClientResponse } from './index'; 5 | export declare class BasicCredentialHandler implements ifm.RequestHandler { 6 | username: string; 7 | password: string; 8 | constructor(username: string, password: string); 9 | prepareRequest(options: http.RequestOptions): void; 10 | canHandleAuthentication(): boolean; 11 | handleAuthentication(): Promise; 12 | } 13 | export declare class BearerCredentialHandler implements ifm.RequestHandler { 14 | token: string; 15 | constructor(token: string); 16 | prepareRequest(options: http.RequestOptions): void; 17 | canHandleAuthentication(): boolean; 18 | handleAuthentication(): Promise; 19 | } 20 | export declare class PersonalAccessTokenCredentialHandler implements ifm.RequestHandler { 21 | token: string; 22 | constructor(token: string); 23 | prepareRequest(options: http.RequestOptions): void; 24 | canHandleAuthentication(): boolean; 25 | handleAuthentication(): Promise; 26 | } 27 | -------------------------------------------------------------------------------- /node_modules/@actions/http-client/lib/auth.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { 3 | function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } 4 | return new (P || (P = Promise))(function (resolve, reject) { 5 | function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } 6 | function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } 7 | function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } 8 | step((generator = generator.apply(thisArg, _arguments || [])).next()); 9 | }); 10 | }; 11 | Object.defineProperty(exports, "__esModule", { value: true }); 12 | exports.PersonalAccessTokenCredentialHandler = exports.BearerCredentialHandler = exports.BasicCredentialHandler = void 0; 13 | class BasicCredentialHandler { 14 | constructor(username, password) { 15 | this.username = username; 16 | this.password = password; 17 | } 18 | prepareRequest(options) { 19 | if (!options.headers) { 20 | throw Error('The request has no headers'); 21 | } 22 | options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`; 23 | } 24 | // This handler cannot handle 401 25 | canHandleAuthentication() { 26 | return false; 27 | } 28 | handleAuthentication() { 29 | return __awaiter(this, void 0, void 0, function* () { 30 | throw new Error('not implemented'); 31 | }); 32 | } 33 | } 34 | exports.BasicCredentialHandler = BasicCredentialHandler; 35 | class BearerCredentialHandler { 36 | constructor(token) { 37 | this.token = token; 38 | } 39 | // currently implements pre-authorization 40 | // TODO: support preAuth = false where it hooks on 401 41 | prepareRequest(options) { 42 | if (!options.headers) { 43 | throw Error('The request has no headers'); 44 | } 45 | options.headers['Authorization'] = `Bearer ${this.token}`; 46 | } 47 | // This handler cannot handle 401 48 | canHandleAuthentication() { 49 | return false; 50 | } 51 | handleAuthentication() { 52 | return __awaiter(this, void 0, void 0, function* () { 53 | throw new Error('not implemented'); 54 | }); 55 | } 56 | } 57 | exports.BearerCredentialHandler = BearerCredentialHandler; 58 | class PersonalAccessTokenCredentialHandler { 59 | constructor(token) { 60 | this.token = token; 61 | } 62 | // currently implements pre-authorization 63 | // TODO: support preAuth = false where it hooks on 401 64 | prepareRequest(options) { 65 | if (!options.headers) { 66 | throw Error('The request has no headers'); 67 | } 68 | options.headers['Authorization'] = `Basic ${Buffer.from(`PAT:${this.token}`).toString('base64')}`; 69 | } 70 | // This handler cannot handle 401 71 | canHandleAuthentication() { 72 | return false; 73 | } 74 | handleAuthentication() { 75 | return __awaiter(this, void 0, void 0, function* () { 76 | throw new Error('not implemented'); 77 | }); 78 | } 79 | } 80 | exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; 81 | //# sourceMappingURL=auth.js.map -------------------------------------------------------------------------------- /node_modules/@actions/http-client/lib/auth.js.map: -------------------------------------------------------------------------------- 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,UAAU,IAAI,CAAC,KAAK,EAAE,CAAA;IAC3D,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;AAxBD,0DAwBC;AAED,MAAa,oCAAoC;IAI/C,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,SAAS,MAAM,CAAC,IAAI,CACrD,OAAO,IAAI,CAAC,KAAK,EAAE,CACpB,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;AA3BD,oFA2BC"} -------------------------------------------------------------------------------- /node_modules/@actions/http-client/lib/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import * as http from 'http'; 3 | import * as ifm from './interfaces'; 4 | export declare enum HttpCodes { 5 | OK = 200, 6 | MultipleChoices = 300, 7 | MovedPermanently = 301, 8 | ResourceMoved = 302, 9 | SeeOther = 303, 10 | NotModified = 304, 11 | UseProxy = 305, 12 | SwitchProxy = 306, 13 | TemporaryRedirect = 307, 14 | PermanentRedirect = 308, 15 | BadRequest = 400, 16 | Unauthorized = 401, 17 | PaymentRequired = 402, 18 | Forbidden = 403, 19 | NotFound = 404, 20 | MethodNotAllowed = 405, 21 | NotAcceptable = 406, 22 | ProxyAuthenticationRequired = 407, 23 | RequestTimeout = 408, 24 | Conflict = 409, 25 | Gone = 410, 26 | TooManyRequests = 429, 27 | InternalServerError = 500, 28 | NotImplemented = 501, 29 | BadGateway = 502, 30 | ServiceUnavailable = 503, 31 | GatewayTimeout = 504 32 | } 33 | export declare enum Headers { 34 | Accept = "accept", 35 | ContentType = "content-type" 36 | } 37 | export declare enum MediaTypes { 38 | ApplicationJson = "application/json" 39 | } 40 | /** 41 | * Returns the proxy URL, depending upon the supplied url and proxy environment variables. 42 | * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com 43 | */ 44 | export declare function getProxyUrl(serverUrl: string): string; 45 | export declare class HttpClientError extends Error { 46 | constructor(message: string, statusCode: number); 47 | statusCode: number; 48 | result?: any; 49 | } 50 | export declare class HttpClientResponse { 51 | constructor(message: http.IncomingMessage); 52 | message: http.IncomingMessage; 53 | readBody(): Promise; 54 | } 55 | export declare function isHttps(requestUrl: string): boolean; 56 | export declare class HttpClient { 57 | userAgent: string | undefined; 58 | handlers: ifm.RequestHandler[]; 59 | requestOptions: ifm.RequestOptions | undefined; 60 | private _ignoreSslError; 61 | private _socketTimeout; 62 | private _allowRedirects; 63 | private _allowRedirectDowngrade; 64 | private _maxRedirects; 65 | private _allowRetries; 66 | private _maxRetries; 67 | private _agent; 68 | private _proxyAgent; 69 | private _keepAlive; 70 | private _disposed; 71 | constructor(userAgent?: string, handlers?: ifm.RequestHandler[], requestOptions?: ifm.RequestOptions); 72 | options(requestUrl: string, additionalHeaders?: http.OutgoingHttpHeaders): Promise; 73 | get(requestUrl: string, additionalHeaders?: http.OutgoingHttpHeaders): Promise; 74 | del(requestUrl: string, additionalHeaders?: http.OutgoingHttpHeaders): Promise; 75 | post(requestUrl: string, data: string, additionalHeaders?: http.OutgoingHttpHeaders): Promise; 76 | patch(requestUrl: string, data: string, additionalHeaders?: http.OutgoingHttpHeaders): Promise; 77 | put(requestUrl: string, data: string, additionalHeaders?: http.OutgoingHttpHeaders): Promise; 78 | head(requestUrl: string, additionalHeaders?: http.OutgoingHttpHeaders): Promise; 79 | sendStream(verb: string, requestUrl: string, stream: NodeJS.ReadableStream, additionalHeaders?: http.OutgoingHttpHeaders): Promise; 80 | /** 81 | * Gets a typed object from an endpoint 82 | * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise 83 | */ 84 | getJson(requestUrl: string, additionalHeaders?: http.OutgoingHttpHeaders): Promise>; 85 | postJson(requestUrl: string, obj: any, additionalHeaders?: http.OutgoingHttpHeaders): Promise>; 86 | putJson(requestUrl: string, obj: any, additionalHeaders?: http.OutgoingHttpHeaders): Promise>; 87 | patchJson(requestUrl: string, obj: any, additionalHeaders?: http.OutgoingHttpHeaders): Promise>; 88 | /** 89 | * Makes a raw http request. 90 | * All other methods such as get, post, patch, and request ultimately call this. 91 | * Prefer get, del, post and patch 92 | */ 93 | request(verb: string, requestUrl: string, data: string | NodeJS.ReadableStream | null, headers?: http.OutgoingHttpHeaders): Promise; 94 | /** 95 | * Needs to be called if keepAlive is set to true in request options. 96 | */ 97 | dispose(): void; 98 | /** 99 | * Raw request. 100 | * @param info 101 | * @param data 102 | */ 103 | requestRaw(info: ifm.RequestInfo, data: string | NodeJS.ReadableStream | null): Promise; 104 | /** 105 | * Raw request with callback. 106 | * @param info 107 | * @param data 108 | * @param onResult 109 | */ 110 | requestRawWithCallback(info: ifm.RequestInfo, data: string | NodeJS.ReadableStream | null, onResult: (err?: Error, res?: HttpClientResponse) => void): void; 111 | /** 112 | * Gets an http agent. This function is useful when you need an http agent that handles 113 | * routing through a proxy server - depending upon the url and proxy environment variables. 114 | * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com 115 | */ 116 | getAgent(serverUrl: string): http.Agent; 117 | private _prepareRequest; 118 | private _mergeHeaders; 119 | private _getExistingOrDefaultHeader; 120 | private _getAgent; 121 | private _performExponentialBackoff; 122 | private _processResponse; 123 | } 124 | -------------------------------------------------------------------------------- /node_modules/@actions/http-client/lib/interfaces.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import * as http from 'http'; 3 | import * as https from 'https'; 4 | import { HttpClientResponse } from './index'; 5 | export interface HttpClient { 6 | options(requestUrl: string, additionalHeaders?: http.OutgoingHttpHeaders): Promise; 7 | get(requestUrl: string, additionalHeaders?: http.OutgoingHttpHeaders): Promise; 8 | del(requestUrl: string, additionalHeaders?: http.OutgoingHttpHeaders): Promise; 9 | post(requestUrl: string, data: string, additionalHeaders?: http.OutgoingHttpHeaders): Promise; 10 | patch(requestUrl: string, data: string, additionalHeaders?: http.OutgoingHttpHeaders): Promise; 11 | put(requestUrl: string, data: string, additionalHeaders?: http.OutgoingHttpHeaders): Promise; 12 | sendStream(verb: string, requestUrl: string, stream: NodeJS.ReadableStream, additionalHeaders?: http.OutgoingHttpHeaders): Promise; 13 | request(verb: string, requestUrl: string, data: string | NodeJS.ReadableStream, headers: http.OutgoingHttpHeaders): Promise; 14 | requestRaw(info: RequestInfo, data: string | NodeJS.ReadableStream): Promise; 15 | requestRawWithCallback(info: RequestInfo, data: string | NodeJS.ReadableStream, onResult: (err?: Error, res?: HttpClientResponse) => void): void; 16 | } 17 | export interface RequestHandler { 18 | prepareRequest(options: http.RequestOptions): void; 19 | canHandleAuthentication(response: HttpClientResponse): boolean; 20 | handleAuthentication(httpClient: HttpClient, requestInfo: RequestInfo, data: string | NodeJS.ReadableStream | null): Promise; 21 | } 22 | export interface RequestInfo { 23 | options: http.RequestOptions; 24 | parsedUrl: URL; 25 | httpModule: typeof http | typeof https; 26 | } 27 | export interface RequestOptions { 28 | headers?: http.OutgoingHttpHeaders; 29 | socketTimeout?: number; 30 | ignoreSslError?: boolean; 31 | allowRedirects?: boolean; 32 | allowRedirectDowngrade?: boolean; 33 | maxRedirects?: number; 34 | maxSockets?: number; 35 | keepAlive?: boolean; 36 | deserializeDates?: boolean; 37 | allowRetries?: boolean; 38 | maxRetries?: number; 39 | } 40 | export interface TypedResponse { 41 | statusCode: number; 42 | result: T | null; 43 | headers: http.IncomingHttpHeaders; 44 | } 45 | -------------------------------------------------------------------------------- /node_modules/@actions/http-client/lib/interfaces.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | //# sourceMappingURL=interfaces.js.map -------------------------------------------------------------------------------- /node_modules/@actions/http-client/lib/interfaces.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /node_modules/@actions/http-client/lib/proxy.d.ts: -------------------------------------------------------------------------------- 1 | export declare function getProxyUrl(reqUrl: URL): URL | undefined; 2 | export declare function checkBypass(reqUrl: URL): boolean; 3 | -------------------------------------------------------------------------------- /node_modules/@actions/http-client/lib/proxy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.checkBypass = exports.getProxyUrl = void 0; 4 | function getProxyUrl(reqUrl) { 5 | const usingSsl = reqUrl.protocol === 'https:'; 6 | if (checkBypass(reqUrl)) { 7 | return undefined; 8 | } 9 | const proxyVar = (() => { 10 | if (usingSsl) { 11 | return process.env['https_proxy'] || process.env['HTTPS_PROXY']; 12 | } 13 | else { 14 | return process.env['http_proxy'] || process.env['HTTP_PROXY']; 15 | } 16 | })(); 17 | if (proxyVar) { 18 | return new URL(proxyVar); 19 | } 20 | else { 21 | return undefined; 22 | } 23 | } 24 | exports.getProxyUrl = getProxyUrl; 25 | function checkBypass(reqUrl) { 26 | if (!reqUrl.hostname) { 27 | return false; 28 | } 29 | const reqHost = reqUrl.hostname; 30 | if (isLoopbackAddress(reqHost)) { 31 | return true; 32 | } 33 | const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || ''; 34 | if (!noProxy) { 35 | return false; 36 | } 37 | // Determine the request port 38 | let reqPort; 39 | if (reqUrl.port) { 40 | reqPort = Number(reqUrl.port); 41 | } 42 | else if (reqUrl.protocol === 'http:') { 43 | reqPort = 80; 44 | } 45 | else if (reqUrl.protocol === 'https:') { 46 | reqPort = 443; 47 | } 48 | // Format the request hostname and hostname with port 49 | const upperReqHosts = [reqUrl.hostname.toUpperCase()]; 50 | if (typeof reqPort === 'number') { 51 | upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); 52 | } 53 | // Compare request host against noproxy 54 | for (const upperNoProxyItem of noProxy 55 | .split(',') 56 | .map(x => x.trim().toUpperCase()) 57 | .filter(x => x)) { 58 | if (upperNoProxyItem === '*' || 59 | upperReqHosts.some(x => x === upperNoProxyItem || 60 | x.endsWith(`.${upperNoProxyItem}`) || 61 | (upperNoProxyItem.startsWith('.') && 62 | x.endsWith(`${upperNoProxyItem}`)))) { 63 | return true; 64 | } 65 | } 66 | return false; 67 | } 68 | exports.checkBypass = checkBypass; 69 | function isLoopbackAddress(host) { 70 | const hostLower = host.toLowerCase(); 71 | return (hostLower === 'localhost' || 72 | hostLower.startsWith('127.') || 73 | hostLower.startsWith('[::1]') || 74 | hostLower.startsWith('[0:0:0:0:0:0:0:1]')); 75 | } 76 | //# sourceMappingURL=proxy.js.map -------------------------------------------------------------------------------- /node_modules/@actions/http-client/lib/proxy.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"proxy.js","sourceRoot":"","sources":["../src/proxy.ts"],"names":[],"mappings":"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"} -------------------------------------------------------------------------------- /node_modules/@actions/http-client/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@actions/http-client", 3 | "version": "2.1.0", 4 | "description": "Actions Http Client", 5 | "keywords": [ 6 | "github", 7 | "actions", 8 | "http" 9 | ], 10 | "homepage": "https://github.com/actions/toolkit/tree/main/packages/http-client", 11 | "license": "MIT", 12 | "main": "lib/index.js", 13 | "types": "lib/index.d.ts", 14 | "directories": { 15 | "lib": "lib", 16 | "test": "__tests__" 17 | }, 18 | "files": [ 19 | "lib", 20 | "!.DS_Store" 21 | ], 22 | "publishConfig": { 23 | "access": "public" 24 | }, 25 | "repository": { 26 | "type": "git", 27 | "url": "git+https://github.com/actions/toolkit.git", 28 | "directory": "packages/http-client" 29 | }, 30 | "scripts": { 31 | "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", 32 | "test": "echo \"Error: run tests from root\" && exit 1", 33 | "build": "tsc", 34 | "format": "prettier --write **/*.ts", 35 | "format-check": "prettier --check **/*.ts", 36 | "tsc": "tsc" 37 | }, 38 | "bugs": { 39 | "url": "https://github.com/actions/toolkit/issues" 40 | }, 41 | "devDependencies": { 42 | "@types/tunnel": "0.0.3", 43 | "proxy": "^1.0.1" 44 | }, 45 | "dependencies": { 46 | "tunnel": "^0.0.6" 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /node_modules/tunnel/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "4" 4 | - "6" 5 | - "8" 6 | - "10" 7 | -------------------------------------------------------------------------------- /node_modules/tunnel/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | - 0.0.6 (2018/09/11) 4 | - Fix `localAddress` not working (#25) 5 | - Fix `Host:` header for CONNECT method by @tmurakam (#29, #30) 6 | - Fix default port for https (#32) 7 | - Fix error handling when the proxy send illegal response body (#33) 8 | 9 | - 0.0.5 (2017/06/12) 10 | - Fix socket leak. 11 | 12 | - 0.0.4 (2016/01/23) 13 | - supported Node v0.12 or later. 14 | 15 | - 0.0.3 (2014/01/20) 16 | - fixed package.json 17 | 18 | - 0.0.1 (2012/02/18) 19 | - supported Node v0.6.x (0.6.11 or later). 20 | 21 | - 0.0.0 (2012/02/11) 22 | - first release. 23 | -------------------------------------------------------------------------------- /node_modules/tunnel/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2012 Koichi Kobayashi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/tunnel/README.md: -------------------------------------------------------------------------------- 1 | # node-tunnel - HTTP/HTTPS Agents for tunneling proxies 2 | 3 | [![Build Status](https://img.shields.io/travis/koichik/node-tunnel.svg?style=flat)](https://travis-ci.org/koichik/node-tunnel) 4 | [![Dependency Status](http://img.shields.io/david/koichik/node-tunnel.svg?style=flat)](https://david-dm.org/koichik/node-tunnel#info=dependencies) 5 | [![DevDependency Status](http://img.shields.io/david/dev/koichik/node-tunnel.svg?style=flat)](https://david-dm.org/koichik/node-tunnel#info=devDependencies) 6 | 7 | ## Example 8 | 9 | ```javascript 10 | var tunnel = require('tunnel'); 11 | 12 | var tunnelingAgent = tunnel.httpsOverHttp({ 13 | proxy: { 14 | host: 'localhost', 15 | port: 3128 16 | } 17 | }); 18 | 19 | var req = https.request({ 20 | host: 'example.com', 21 | port: 443, 22 | agent: tunnelingAgent 23 | }); 24 | ``` 25 | 26 | ## Installation 27 | 28 | $ npm install tunnel 29 | 30 | ## Usages 31 | 32 | ### HTTP over HTTP tunneling 33 | 34 | ```javascript 35 | var tunnelingAgent = tunnel.httpOverHttp({ 36 | maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets 37 | 38 | proxy: { // Proxy settings 39 | host: proxyHost, // Defaults to 'localhost' 40 | port: proxyPort, // Defaults to 80 41 | localAddress: localAddress, // Local interface if necessary 42 | 43 | // Basic authorization for proxy server if necessary 44 | proxyAuth: 'user:password', 45 | 46 | // Header fields for proxy server if necessary 47 | headers: { 48 | 'User-Agent': 'Node' 49 | } 50 | } 51 | }); 52 | 53 | var req = http.request({ 54 | host: 'example.com', 55 | port: 80, 56 | agent: tunnelingAgent 57 | }); 58 | ``` 59 | 60 | ### HTTPS over HTTP tunneling 61 | 62 | ```javascript 63 | var tunnelingAgent = tunnel.httpsOverHttp({ 64 | maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets 65 | 66 | // CA for origin server if necessary 67 | ca: [ fs.readFileSync('origin-server-ca.pem')], 68 | 69 | // Client certification for origin server if necessary 70 | key: fs.readFileSync('origin-server-key.pem'), 71 | cert: fs.readFileSync('origin-server-cert.pem'), 72 | 73 | proxy: { // Proxy settings 74 | host: proxyHost, // Defaults to 'localhost' 75 | port: proxyPort, // Defaults to 80 76 | localAddress: localAddress, // Local interface if necessary 77 | 78 | // Basic authorization for proxy server if necessary 79 | proxyAuth: 'user:password', 80 | 81 | // Header fields for proxy server if necessary 82 | headers: { 83 | 'User-Agent': 'Node' 84 | }, 85 | } 86 | }); 87 | 88 | var req = https.request({ 89 | host: 'example.com', 90 | port: 443, 91 | agent: tunnelingAgent 92 | }); 93 | ``` 94 | 95 | ### HTTP over HTTPS tunneling 96 | 97 | ```javascript 98 | var tunnelingAgent = tunnel.httpOverHttps({ 99 | maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets 100 | 101 | proxy: { // Proxy settings 102 | host: proxyHost, // Defaults to 'localhost' 103 | port: proxyPort, // Defaults to 443 104 | localAddress: localAddress, // Local interface if necessary 105 | 106 | // Basic authorization for proxy server if necessary 107 | proxyAuth: 'user:password', 108 | 109 | // Header fields for proxy server if necessary 110 | headers: { 111 | 'User-Agent': 'Node' 112 | }, 113 | 114 | // CA for proxy server if necessary 115 | ca: [ fs.readFileSync('origin-server-ca.pem')], 116 | 117 | // Server name for verification if necessary 118 | servername: 'example.com', 119 | 120 | // Client certification for proxy server if necessary 121 | key: fs.readFileSync('origin-server-key.pem'), 122 | cert: fs.readFileSync('origin-server-cert.pem'), 123 | } 124 | }); 125 | 126 | var req = http.request({ 127 | host: 'example.com', 128 | port: 80, 129 | agent: tunnelingAgent 130 | }); 131 | ``` 132 | 133 | ### HTTPS over HTTPS tunneling 134 | 135 | ```javascript 136 | var tunnelingAgent = tunnel.httpsOverHttps({ 137 | maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets 138 | 139 | // CA for origin server if necessary 140 | ca: [ fs.readFileSync('origin-server-ca.pem')], 141 | 142 | // Client certification for origin server if necessary 143 | key: fs.readFileSync('origin-server-key.pem'), 144 | cert: fs.readFileSync('origin-server-cert.pem'), 145 | 146 | proxy: { // Proxy settings 147 | host: proxyHost, // Defaults to 'localhost' 148 | port: proxyPort, // Defaults to 443 149 | localAddress: localAddress, // Local interface if necessary 150 | 151 | // Basic authorization for proxy server if necessary 152 | proxyAuth: 'user:password', 153 | 154 | // Header fields for proxy server if necessary 155 | headers: { 156 | 'User-Agent': 'Node' 157 | } 158 | 159 | // CA for proxy server if necessary 160 | ca: [ fs.readFileSync('origin-server-ca.pem')], 161 | 162 | // Server name for verification if necessary 163 | servername: 'example.com', 164 | 165 | // Client certification for proxy server if necessary 166 | key: fs.readFileSync('origin-server-key.pem'), 167 | cert: fs.readFileSync('origin-server-cert.pem'), 168 | } 169 | }); 170 | 171 | var req = https.request({ 172 | host: 'example.com', 173 | port: 443, 174 | agent: tunnelingAgent 175 | }); 176 | ``` 177 | 178 | ## CONTRIBUTORS 179 | * [Aleksis Brezas (abresas)](https://github.com/abresas) 180 | * [Jackson Tian (JacksonTian)](https://github.com/JacksonTian) 181 | * [Dmitry Sorin (1999)](https://github.com/1999) 182 | 183 | ## License 184 | 185 | Licensed under the [MIT](https://github.com/koichik/node-tunnel/blob/master/LICENSE) license. 186 | -------------------------------------------------------------------------------- /node_modules/tunnel/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/tunnel'); 2 | -------------------------------------------------------------------------------- /node_modules/tunnel/lib/tunnel.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var net = require('net'); 4 | var tls = require('tls'); 5 | var http = require('http'); 6 | var https = require('https'); 7 | var events = require('events'); 8 | var assert = require('assert'); 9 | var util = require('util'); 10 | 11 | 12 | exports.httpOverHttp = httpOverHttp; 13 | exports.httpsOverHttp = httpsOverHttp; 14 | exports.httpOverHttps = httpOverHttps; 15 | exports.httpsOverHttps = httpsOverHttps; 16 | 17 | 18 | function httpOverHttp(options) { 19 | var agent = new TunnelingAgent(options); 20 | agent.request = http.request; 21 | return agent; 22 | } 23 | 24 | function httpsOverHttp(options) { 25 | var agent = new TunnelingAgent(options); 26 | agent.request = http.request; 27 | agent.createSocket = createSecureSocket; 28 | agent.defaultPort = 443; 29 | return agent; 30 | } 31 | 32 | function httpOverHttps(options) { 33 | var agent = new TunnelingAgent(options); 34 | agent.request = https.request; 35 | return agent; 36 | } 37 | 38 | function httpsOverHttps(options) { 39 | var agent = new TunnelingAgent(options); 40 | agent.request = https.request; 41 | agent.createSocket = createSecureSocket; 42 | agent.defaultPort = 443; 43 | return agent; 44 | } 45 | 46 | 47 | function TunnelingAgent(options) { 48 | var self = this; 49 | self.options = options || {}; 50 | self.proxyOptions = self.options.proxy || {}; 51 | self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets; 52 | self.requests = []; 53 | self.sockets = []; 54 | 55 | self.on('free', function onFree(socket, host, port, localAddress) { 56 | var options = toOptions(host, port, localAddress); 57 | for (var i = 0, len = self.requests.length; i < len; ++i) { 58 | var pending = self.requests[i]; 59 | if (pending.host === options.host && pending.port === options.port) { 60 | // Detect the request to connect same origin server, 61 | // reuse the connection. 62 | self.requests.splice(i, 1); 63 | pending.request.onSocket(socket); 64 | return; 65 | } 66 | } 67 | socket.destroy(); 68 | self.removeSocket(socket); 69 | }); 70 | } 71 | util.inherits(TunnelingAgent, events.EventEmitter); 72 | 73 | TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) { 74 | var self = this; 75 | var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress)); 76 | 77 | if (self.sockets.length >= this.maxSockets) { 78 | // We are over limit so we'll add it to the queue. 79 | self.requests.push(options); 80 | return; 81 | } 82 | 83 | // If we are under maxSockets create a new one. 84 | self.createSocket(options, function(socket) { 85 | socket.on('free', onFree); 86 | socket.on('close', onCloseOrRemove); 87 | socket.on('agentRemove', onCloseOrRemove); 88 | req.onSocket(socket); 89 | 90 | function onFree() { 91 | self.emit('free', socket, options); 92 | } 93 | 94 | function onCloseOrRemove(err) { 95 | self.removeSocket(socket); 96 | socket.removeListener('free', onFree); 97 | socket.removeListener('close', onCloseOrRemove); 98 | socket.removeListener('agentRemove', onCloseOrRemove); 99 | } 100 | }); 101 | }; 102 | 103 | TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { 104 | var self = this; 105 | var placeholder = {}; 106 | self.sockets.push(placeholder); 107 | 108 | var connectOptions = mergeOptions({}, self.proxyOptions, { 109 | method: 'CONNECT', 110 | path: options.host + ':' + options.port, 111 | agent: false, 112 | headers: { 113 | host: options.host + ':' + options.port 114 | } 115 | }); 116 | if (options.localAddress) { 117 | connectOptions.localAddress = options.localAddress; 118 | } 119 | if (connectOptions.proxyAuth) { 120 | connectOptions.headers = connectOptions.headers || {}; 121 | connectOptions.headers['Proxy-Authorization'] = 'Basic ' + 122 | new Buffer(connectOptions.proxyAuth).toString('base64'); 123 | } 124 | 125 | debug('making CONNECT request'); 126 | var connectReq = self.request(connectOptions); 127 | connectReq.useChunkedEncodingByDefault = false; // for v0.6 128 | connectReq.once('response', onResponse); // for v0.6 129 | connectReq.once('upgrade', onUpgrade); // for v0.6 130 | connectReq.once('connect', onConnect); // for v0.7 or later 131 | connectReq.once('error', onError); 132 | connectReq.end(); 133 | 134 | function onResponse(res) { 135 | // Very hacky. This is necessary to avoid http-parser leaks. 136 | res.upgrade = true; 137 | } 138 | 139 | function onUpgrade(res, socket, head) { 140 | // Hacky. 141 | process.nextTick(function() { 142 | onConnect(res, socket, head); 143 | }); 144 | } 145 | 146 | function onConnect(res, socket, head) { 147 | connectReq.removeAllListeners(); 148 | socket.removeAllListeners(); 149 | 150 | if (res.statusCode !== 200) { 151 | debug('tunneling socket could not be established, statusCode=%d', 152 | res.statusCode); 153 | socket.destroy(); 154 | var error = new Error('tunneling socket could not be established, ' + 155 | 'statusCode=' + res.statusCode); 156 | error.code = 'ECONNRESET'; 157 | options.request.emit('error', error); 158 | self.removeSocket(placeholder); 159 | return; 160 | } 161 | if (head.length > 0) { 162 | debug('got illegal response body from proxy'); 163 | socket.destroy(); 164 | var error = new Error('got illegal response body from proxy'); 165 | error.code = 'ECONNRESET'; 166 | options.request.emit('error', error); 167 | self.removeSocket(placeholder); 168 | return; 169 | } 170 | debug('tunneling connection has established'); 171 | self.sockets[self.sockets.indexOf(placeholder)] = socket; 172 | return cb(socket); 173 | } 174 | 175 | function onError(cause) { 176 | connectReq.removeAllListeners(); 177 | 178 | debug('tunneling socket could not be established, cause=%s\n', 179 | cause.message, cause.stack); 180 | var error = new Error('tunneling socket could not be established, ' + 181 | 'cause=' + cause.message); 182 | error.code = 'ECONNRESET'; 183 | options.request.emit('error', error); 184 | self.removeSocket(placeholder); 185 | } 186 | }; 187 | 188 | TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { 189 | var pos = this.sockets.indexOf(socket) 190 | if (pos === -1) { 191 | return; 192 | } 193 | this.sockets.splice(pos, 1); 194 | 195 | var pending = this.requests.shift(); 196 | if (pending) { 197 | // If we have pending requests and a socket gets closed a new one 198 | // needs to be created to take over in the pool for the one that closed. 199 | this.createSocket(pending, function(socket) { 200 | pending.request.onSocket(socket); 201 | }); 202 | } 203 | }; 204 | 205 | function createSecureSocket(options, cb) { 206 | var self = this; 207 | TunnelingAgent.prototype.createSocket.call(self, options, function(socket) { 208 | var hostHeader = options.request.getHeader('host'); 209 | var tlsOptions = mergeOptions({}, self.options, { 210 | socket: socket, 211 | servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host 212 | }); 213 | 214 | // 0 is dummy port for v0.6 215 | var secureSocket = tls.connect(0, tlsOptions); 216 | self.sockets[self.sockets.indexOf(socket)] = secureSocket; 217 | cb(secureSocket); 218 | }); 219 | } 220 | 221 | 222 | function toOptions(host, port, localAddress) { 223 | if (typeof host === 'string') { // since v0.10 224 | return { 225 | host: host, 226 | port: port, 227 | localAddress: localAddress 228 | }; 229 | } 230 | return host; // for v0.11 or later 231 | } 232 | 233 | function mergeOptions(target) { 234 | for (var i = 1, len = arguments.length; i < len; ++i) { 235 | var overrides = arguments[i]; 236 | if (typeof overrides === 'object') { 237 | var keys = Object.keys(overrides); 238 | for (var j = 0, keyLen = keys.length; j < keyLen; ++j) { 239 | var k = keys[j]; 240 | if (overrides[k] !== undefined) { 241 | target[k] = overrides[k]; 242 | } 243 | } 244 | } 245 | } 246 | return target; 247 | } 248 | 249 | 250 | var debug; 251 | if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { 252 | debug = function() { 253 | var args = Array.prototype.slice.call(arguments); 254 | if (typeof args[0] === 'string') { 255 | args[0] = 'TUNNEL: ' + args[0]; 256 | } else { 257 | args.unshift('TUNNEL:'); 258 | } 259 | console.error.apply(console, args); 260 | } 261 | } else { 262 | debug = function() {}; 263 | } 264 | exports.debug = debug; // for test 265 | -------------------------------------------------------------------------------- /node_modules/tunnel/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tunnel", 3 | "version": "0.0.6", 4 | "description": "Node HTTP/HTTPS Agents for tunneling proxies", 5 | "keywords": [ 6 | "http", 7 | "https", 8 | "agent", 9 | "proxy", 10 | "tunnel" 11 | ], 12 | "homepage": "https://github.com/koichik/node-tunnel/", 13 | "bugs": "https://github.com/koichik/node-tunnel/issues", 14 | "license": "MIT", 15 | "author": "Koichi Kobayashi ", 16 | "main": "./index.js", 17 | "directories": { 18 | "lib": "./lib" 19 | }, 20 | "repository": { 21 | "type": "git", 22 | "url": "https://github.com/koichik/node-tunnel.git" 23 | }, 24 | "scripts": { 25 | "test": "mocha" 26 | }, 27 | "devDependencies": { 28 | "mocha": "^5.2.0", 29 | "should": "^13.2.3" 30 | }, 31 | "engines": { 32 | "node": ">=0.6.11 <=0.7.0 || >=0.7.3" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /node_modules/uuid/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | Please feel free to file GitHub Issues or propose Pull Requests. We're always happy to discuss improvements to this library! 4 | 5 | ## Testing 6 | 7 | ```shell 8 | npm test 9 | ``` 10 | 11 | ## Releasing 12 | 13 | Releases are supposed to be done from master, version bumping is automated through [`standard-version`](https://github.com/conventional-changelog/standard-version): 14 | 15 | ```shell 16 | npm run release -- --dry-run # verify output manually 17 | npm run release # follow the instructions from the output of this command 18 | ``` 19 | -------------------------------------------------------------------------------- /node_modules/uuid/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2010-2020 Robert Kieffer and other contributors 4 | 5 | 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: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | 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. 10 | -------------------------------------------------------------------------------- /node_modules/uuid/dist/bin/uuid: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../uuid-bin'); 3 | -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-browser/index.js: -------------------------------------------------------------------------------- 1 | export { default as v1 } from './v1.js'; 2 | export { default as v3 } from './v3.js'; 3 | export { default as v4 } from './v4.js'; 4 | export { default as v5 } from './v5.js'; 5 | export { default as NIL } from './nil.js'; 6 | export { default as version } from './version.js'; 7 | export { default as validate } from './validate.js'; 8 | export { default as stringify } from './stringify.js'; 9 | export { default as parse } from './parse.js'; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-browser/md5.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Browser-compatible JavaScript MD5 3 | * 4 | * Modification of JavaScript MD5 5 | * https://github.com/blueimp/JavaScript-MD5 6 | * 7 | * Copyright 2011, Sebastian Tschan 8 | * https://blueimp.net 9 | * 10 | * Licensed under the MIT license: 11 | * https://opensource.org/licenses/MIT 12 | * 13 | * Based on 14 | * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message 15 | * Digest Algorithm, as defined in RFC 1321. 16 | * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 17 | * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet 18 | * Distributed under the BSD License 19 | * See http://pajhome.org.uk/crypt/md5 for more info. 20 | */ 21 | function md5(bytes) { 22 | if (typeof bytes === 'string') { 23 | var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape 24 | 25 | bytes = new Uint8Array(msg.length); 26 | 27 | for (var i = 0; i < msg.length; ++i) { 28 | bytes[i] = msg.charCodeAt(i); 29 | } 30 | } 31 | 32 | return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8)); 33 | } 34 | /* 35 | * Convert an array of little-endian words to an array of bytes 36 | */ 37 | 38 | 39 | function md5ToHexEncodedArray(input) { 40 | var output = []; 41 | var length32 = input.length * 32; 42 | var hexTab = '0123456789abcdef'; 43 | 44 | for (var i = 0; i < length32; i += 8) { 45 | var x = input[i >> 5] >>> i % 32 & 0xff; 46 | var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16); 47 | output.push(hex); 48 | } 49 | 50 | return output; 51 | } 52 | /** 53 | * Calculate output length with padding and bit length 54 | */ 55 | 56 | 57 | function getOutputLength(inputLength8) { 58 | return (inputLength8 + 64 >>> 9 << 4) + 14 + 1; 59 | } 60 | /* 61 | * Calculate the MD5 of an array of little-endian words, and a bit length. 62 | */ 63 | 64 | 65 | function wordsToMd5(x, len) { 66 | /* append padding */ 67 | x[len >> 5] |= 0x80 << len % 32; 68 | x[getOutputLength(len) - 1] = len; 69 | var a = 1732584193; 70 | var b = -271733879; 71 | var c = -1732584194; 72 | var d = 271733878; 73 | 74 | for (var i = 0; i < x.length; i += 16) { 75 | var olda = a; 76 | var oldb = b; 77 | var oldc = c; 78 | var oldd = d; 79 | a = md5ff(a, b, c, d, x[i], 7, -680876936); 80 | d = md5ff(d, a, b, c, x[i + 1], 12, -389564586); 81 | c = md5ff(c, d, a, b, x[i + 2], 17, 606105819); 82 | b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330); 83 | a = md5ff(a, b, c, d, x[i + 4], 7, -176418897); 84 | d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426); 85 | c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341); 86 | b = md5ff(b, c, d, a, x[i + 7], 22, -45705983); 87 | a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416); 88 | d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417); 89 | c = md5ff(c, d, a, b, x[i + 10], 17, -42063); 90 | b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162); 91 | a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682); 92 | d = md5ff(d, a, b, c, x[i + 13], 12, -40341101); 93 | c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290); 94 | b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329); 95 | a = md5gg(a, b, c, d, x[i + 1], 5, -165796510); 96 | d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632); 97 | c = md5gg(c, d, a, b, x[i + 11], 14, 643717713); 98 | b = md5gg(b, c, d, a, x[i], 20, -373897302); 99 | a = md5gg(a, b, c, d, x[i + 5], 5, -701558691); 100 | d = md5gg(d, a, b, c, x[i + 10], 9, 38016083); 101 | c = md5gg(c, d, a, b, x[i + 15], 14, -660478335); 102 | b = md5gg(b, c, d, a, x[i + 4], 20, -405537848); 103 | a = md5gg(a, b, c, d, x[i + 9], 5, 568446438); 104 | d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690); 105 | c = md5gg(c, d, a, b, x[i + 3], 14, -187363961); 106 | b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501); 107 | a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467); 108 | d = md5gg(d, a, b, c, x[i + 2], 9, -51403784); 109 | c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473); 110 | b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734); 111 | a = md5hh(a, b, c, d, x[i + 5], 4, -378558); 112 | d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463); 113 | c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562); 114 | b = md5hh(b, c, d, a, x[i + 14], 23, -35309556); 115 | a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060); 116 | d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353); 117 | c = md5hh(c, d, a, b, x[i + 7], 16, -155497632); 118 | b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640); 119 | a = md5hh(a, b, c, d, x[i + 13], 4, 681279174); 120 | d = md5hh(d, a, b, c, x[i], 11, -358537222); 121 | c = md5hh(c, d, a, b, x[i + 3], 16, -722521979); 122 | b = md5hh(b, c, d, a, x[i + 6], 23, 76029189); 123 | a = md5hh(a, b, c, d, x[i + 9], 4, -640364487); 124 | d = md5hh(d, a, b, c, x[i + 12], 11, -421815835); 125 | c = md5hh(c, d, a, b, x[i + 15], 16, 530742520); 126 | b = md5hh(b, c, d, a, x[i + 2], 23, -995338651); 127 | a = md5ii(a, b, c, d, x[i], 6, -198630844); 128 | d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415); 129 | c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905); 130 | b = md5ii(b, c, d, a, x[i + 5], 21, -57434055); 131 | a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571); 132 | d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606); 133 | c = md5ii(c, d, a, b, x[i + 10], 15, -1051523); 134 | b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799); 135 | a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359); 136 | d = md5ii(d, a, b, c, x[i + 15], 10, -30611744); 137 | c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380); 138 | b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649); 139 | a = md5ii(a, b, c, d, x[i + 4], 6, -145523070); 140 | d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379); 141 | c = md5ii(c, d, a, b, x[i + 2], 15, 718787259); 142 | b = md5ii(b, c, d, a, x[i + 9], 21, -343485551); 143 | a = safeAdd(a, olda); 144 | b = safeAdd(b, oldb); 145 | c = safeAdd(c, oldc); 146 | d = safeAdd(d, oldd); 147 | } 148 | 149 | return [a, b, c, d]; 150 | } 151 | /* 152 | * Convert an array bytes to an array of little-endian words 153 | * Characters >255 have their high-byte silently ignored. 154 | */ 155 | 156 | 157 | function bytesToWords(input) { 158 | if (input.length === 0) { 159 | return []; 160 | } 161 | 162 | var length8 = input.length * 8; 163 | var output = new Uint32Array(getOutputLength(length8)); 164 | 165 | for (var i = 0; i < length8; i += 8) { 166 | output[i >> 5] |= (input[i / 8] & 0xff) << i % 32; 167 | } 168 | 169 | return output; 170 | } 171 | /* 172 | * Add integers, wrapping at 2^32. This uses 16-bit operations internally 173 | * to work around bugs in some JS interpreters. 174 | */ 175 | 176 | 177 | function safeAdd(x, y) { 178 | var lsw = (x & 0xffff) + (y & 0xffff); 179 | var msw = (x >> 16) + (y >> 16) + (lsw >> 16); 180 | return msw << 16 | lsw & 0xffff; 181 | } 182 | /* 183 | * Bitwise rotate a 32-bit number to the left. 184 | */ 185 | 186 | 187 | function bitRotateLeft(num, cnt) { 188 | return num << cnt | num >>> 32 - cnt; 189 | } 190 | /* 191 | * These functions implement the four basic operations the algorithm uses. 192 | */ 193 | 194 | 195 | function md5cmn(q, a, b, x, s, t) { 196 | return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b); 197 | } 198 | 199 | function md5ff(a, b, c, d, x, s, t) { 200 | return md5cmn(b & c | ~b & d, a, b, x, s, t); 201 | } 202 | 203 | function md5gg(a, b, c, d, x, s, t) { 204 | return md5cmn(b & d | c & ~d, a, b, x, s, t); 205 | } 206 | 207 | function md5hh(a, b, c, d, x, s, t) { 208 | return md5cmn(b ^ c ^ d, a, b, x, s, t); 209 | } 210 | 211 | function md5ii(a, b, c, d, x, s, t) { 212 | return md5cmn(c ^ (b | ~d), a, b, x, s, t); 213 | } 214 | 215 | export default md5; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-browser/nil.js: -------------------------------------------------------------------------------- 1 | export default '00000000-0000-0000-0000-000000000000'; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-browser/parse.js: -------------------------------------------------------------------------------- 1 | import validate from './validate.js'; 2 | 3 | function parse(uuid) { 4 | if (!validate(uuid)) { 5 | throw TypeError('Invalid UUID'); 6 | } 7 | 8 | var v; 9 | var arr = new Uint8Array(16); // Parse ########-....-....-....-............ 10 | 11 | arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; 12 | arr[1] = v >>> 16 & 0xff; 13 | arr[2] = v >>> 8 & 0xff; 14 | arr[3] = v & 0xff; // Parse ........-####-....-....-............ 15 | 16 | arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; 17 | arr[5] = v & 0xff; // Parse ........-....-####-....-............ 18 | 19 | arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; 20 | arr[7] = v & 0xff; // Parse ........-....-....-####-............ 21 | 22 | arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; 23 | arr[9] = v & 0xff; // Parse ........-....-....-....-############ 24 | // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) 25 | 26 | arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; 27 | arr[11] = v / 0x100000000 & 0xff; 28 | arr[12] = v >>> 24 & 0xff; 29 | arr[13] = v >>> 16 & 0xff; 30 | arr[14] = v >>> 8 & 0xff; 31 | arr[15] = v & 0xff; 32 | return arr; 33 | } 34 | 35 | export default parse; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-browser/regex.js: -------------------------------------------------------------------------------- 1 | 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; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-browser/rng.js: -------------------------------------------------------------------------------- 1 | // Unique ID creation requires a high quality random # generator. In the browser we therefore 2 | // require the crypto API and do not support built-in fallback to lower quality random number 3 | // generators (like Math.random()). 4 | var getRandomValues; 5 | var rnds8 = new Uint8Array(16); 6 | export default function rng() { 7 | // lazy load so that environments that need to polyfill have a chance to do so 8 | if (!getRandomValues) { 9 | // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also, 10 | // find the complete implementation of crypto (msCrypto) on IE11. 11 | getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto); 12 | 13 | if (!getRandomValues) { 14 | throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); 15 | } 16 | } 17 | 18 | return getRandomValues(rnds8); 19 | } -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-browser/sha1.js: -------------------------------------------------------------------------------- 1 | // Adapted from Chris Veness' SHA1 code at 2 | // http://www.movable-type.co.uk/scripts/sha1.html 3 | function f(s, x, y, z) { 4 | switch (s) { 5 | case 0: 6 | return x & y ^ ~x & z; 7 | 8 | case 1: 9 | return x ^ y ^ z; 10 | 11 | case 2: 12 | return x & y ^ x & z ^ y & z; 13 | 14 | case 3: 15 | return x ^ y ^ z; 16 | } 17 | } 18 | 19 | function ROTL(x, n) { 20 | return x << n | x >>> 32 - n; 21 | } 22 | 23 | function sha1(bytes) { 24 | var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6]; 25 | var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; 26 | 27 | if (typeof bytes === 'string') { 28 | var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape 29 | 30 | bytes = []; 31 | 32 | for (var i = 0; i < msg.length; ++i) { 33 | bytes.push(msg.charCodeAt(i)); 34 | } 35 | } else if (!Array.isArray(bytes)) { 36 | // Convert Array-like to Array 37 | bytes = Array.prototype.slice.call(bytes); 38 | } 39 | 40 | bytes.push(0x80); 41 | var l = bytes.length / 4 + 2; 42 | var N = Math.ceil(l / 16); 43 | var M = new Array(N); 44 | 45 | for (var _i = 0; _i < N; ++_i) { 46 | var arr = new Uint32Array(16); 47 | 48 | for (var j = 0; j < 16; ++j) { 49 | 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]; 50 | } 51 | 52 | M[_i] = arr; 53 | } 54 | 55 | M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32); 56 | M[N - 1][14] = Math.floor(M[N - 1][14]); 57 | M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff; 58 | 59 | for (var _i2 = 0; _i2 < N; ++_i2) { 60 | var W = new Uint32Array(80); 61 | 62 | for (var t = 0; t < 16; ++t) { 63 | W[t] = M[_i2][t]; 64 | } 65 | 66 | for (var _t = 16; _t < 80; ++_t) { 67 | W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1); 68 | } 69 | 70 | var a = H[0]; 71 | var b = H[1]; 72 | var c = H[2]; 73 | var d = H[3]; 74 | var e = H[4]; 75 | 76 | for (var _t2 = 0; _t2 < 80; ++_t2) { 77 | var s = Math.floor(_t2 / 20); 78 | var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0; 79 | e = d; 80 | d = c; 81 | c = ROTL(b, 30) >>> 0; 82 | b = a; 83 | a = T; 84 | } 85 | 86 | H[0] = H[0] + a >>> 0; 87 | H[1] = H[1] + b >>> 0; 88 | H[2] = H[2] + c >>> 0; 89 | H[3] = H[3] + d >>> 0; 90 | H[4] = H[4] + e >>> 0; 91 | } 92 | 93 | 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]; 94 | } 95 | 96 | export default sha1; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-browser/stringify.js: -------------------------------------------------------------------------------- 1 | import validate from './validate.js'; 2 | /** 3 | * Convert array of 16 byte values to UUID string format of the form: 4 | * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX 5 | */ 6 | 7 | var byteToHex = []; 8 | 9 | for (var i = 0; i < 256; ++i) { 10 | byteToHex.push((i + 0x100).toString(16).substr(1)); 11 | } 12 | 13 | function stringify(arr) { 14 | var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; 15 | // Note: Be careful editing this code! It's been tuned for performance 16 | // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 17 | 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 18 | // of the following: 19 | // - One or more input array values don't map to a hex octet (leading to 20 | // "undefined" in the uuid) 21 | // - Invalid input values for the RFC `version` or `variant` fields 22 | 23 | if (!validate(uuid)) { 24 | throw TypeError('Stringified UUID is invalid'); 25 | } 26 | 27 | return uuid; 28 | } 29 | 30 | export default stringify; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-browser/v1.js: -------------------------------------------------------------------------------- 1 | import rng from './rng.js'; 2 | import stringify from './stringify.js'; // **`v1()` - Generate time-based UUID** 3 | // 4 | // Inspired by https://github.com/LiosK/UUID.js 5 | // and http://docs.python.org/library/uuid.html 6 | 7 | var _nodeId; 8 | 9 | var _clockseq; // Previous uuid creation time 10 | 11 | 12 | var _lastMSecs = 0; 13 | var _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details 14 | 15 | function v1(options, buf, offset) { 16 | var i = buf && offset || 0; 17 | var b = buf || new Array(16); 18 | options = options || {}; 19 | var node = options.node || _nodeId; 20 | var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not 21 | // specified. We do this lazily to minimize issues related to insufficient 22 | // system entropy. See #189 23 | 24 | if (node == null || clockseq == null) { 25 | var seedBytes = options.random || (options.rng || rng)(); 26 | 27 | if (node == null) { 28 | // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) 29 | node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; 30 | } 31 | 32 | if (clockseq == null) { 33 | // Per 4.2.2, randomize (14 bit) clockseq 34 | clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; 35 | } 36 | } // UUID timestamps are 100 nano-second units since the Gregorian epoch, 37 | // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so 38 | // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' 39 | // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. 40 | 41 | 42 | var msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock 43 | // cycle to simulate higher resolution clock 44 | 45 | var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) 46 | 47 | var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression 48 | 49 | if (dt < 0 && options.clockseq === undefined) { 50 | clockseq = clockseq + 1 & 0x3fff; 51 | } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new 52 | // time interval 53 | 54 | 55 | if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { 56 | nsecs = 0; 57 | } // Per 4.2.1.2 Throw error if too many uuids are requested 58 | 59 | 60 | if (nsecs >= 10000) { 61 | throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); 62 | } 63 | 64 | _lastMSecs = msecs; 65 | _lastNSecs = nsecs; 66 | _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch 67 | 68 | msecs += 12219292800000; // `time_low` 69 | 70 | var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; 71 | b[i++] = tl >>> 24 & 0xff; 72 | b[i++] = tl >>> 16 & 0xff; 73 | b[i++] = tl >>> 8 & 0xff; 74 | b[i++] = tl & 0xff; // `time_mid` 75 | 76 | var tmh = msecs / 0x100000000 * 10000 & 0xfffffff; 77 | b[i++] = tmh >>> 8 & 0xff; 78 | b[i++] = tmh & 0xff; // `time_high_and_version` 79 | 80 | b[i++] = tmh >>> 24 & 0xf | 0x10; // include version 81 | 82 | b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) 83 | 84 | b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` 85 | 86 | b[i++] = clockseq & 0xff; // `node` 87 | 88 | for (var n = 0; n < 6; ++n) { 89 | b[i + n] = node[n]; 90 | } 91 | 92 | return buf || stringify(b); 93 | } 94 | 95 | export default v1; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-browser/v3.js: -------------------------------------------------------------------------------- 1 | import v35 from './v35.js'; 2 | import md5 from './md5.js'; 3 | var v3 = v35('v3', 0x30, md5); 4 | export default v3; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-browser/v35.js: -------------------------------------------------------------------------------- 1 | import stringify from './stringify.js'; 2 | import parse from './parse.js'; 3 | 4 | function stringToBytes(str) { 5 | str = unescape(encodeURIComponent(str)); // UTF8 escape 6 | 7 | var bytes = []; 8 | 9 | for (var i = 0; i < str.length; ++i) { 10 | bytes.push(str.charCodeAt(i)); 11 | } 12 | 13 | return bytes; 14 | } 15 | 16 | export var DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; 17 | export var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; 18 | export default function (name, version, hashfunc) { 19 | function generateUUID(value, namespace, buf, offset) { 20 | if (typeof value === 'string') { 21 | value = stringToBytes(value); 22 | } 23 | 24 | if (typeof namespace === 'string') { 25 | namespace = parse(namespace); 26 | } 27 | 28 | if (namespace.length !== 16) { 29 | throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); 30 | } // Compute hash of namespace and value, Per 4.3 31 | // Future: Use spread syntax when supported on all platforms, e.g. `bytes = 32 | // hashfunc([...namespace, ... value])` 33 | 34 | 35 | var bytes = new Uint8Array(16 + value.length); 36 | bytes.set(namespace); 37 | bytes.set(value, namespace.length); 38 | bytes = hashfunc(bytes); 39 | bytes[6] = bytes[6] & 0x0f | version; 40 | bytes[8] = bytes[8] & 0x3f | 0x80; 41 | 42 | if (buf) { 43 | offset = offset || 0; 44 | 45 | for (var i = 0; i < 16; ++i) { 46 | buf[offset + i] = bytes[i]; 47 | } 48 | 49 | return buf; 50 | } 51 | 52 | return stringify(bytes); 53 | } // Function#name is not settable on some platforms (#270) 54 | 55 | 56 | try { 57 | generateUUID.name = name; // eslint-disable-next-line no-empty 58 | } catch (err) {} // For CommonJS default export support 59 | 60 | 61 | generateUUID.DNS = DNS; 62 | generateUUID.URL = URL; 63 | return generateUUID; 64 | } -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-browser/v4.js: -------------------------------------------------------------------------------- 1 | import rng from './rng.js'; 2 | import stringify from './stringify.js'; 3 | 4 | function v4(options, buf, offset) { 5 | options = options || {}; 6 | var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` 7 | 8 | rnds[6] = rnds[6] & 0x0f | 0x40; 9 | rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided 10 | 11 | if (buf) { 12 | offset = offset || 0; 13 | 14 | for (var i = 0; i < 16; ++i) { 15 | buf[offset + i] = rnds[i]; 16 | } 17 | 18 | return buf; 19 | } 20 | 21 | return stringify(rnds); 22 | } 23 | 24 | export default v4; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-browser/v5.js: -------------------------------------------------------------------------------- 1 | import v35 from './v35.js'; 2 | import sha1 from './sha1.js'; 3 | var v5 = v35('v5', 0x50, sha1); 4 | export default v5; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-browser/validate.js: -------------------------------------------------------------------------------- 1 | import REGEX from './regex.js'; 2 | 3 | function validate(uuid) { 4 | return typeof uuid === 'string' && REGEX.test(uuid); 5 | } 6 | 7 | export default validate; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-browser/version.js: -------------------------------------------------------------------------------- 1 | import validate from './validate.js'; 2 | 3 | function version(uuid) { 4 | if (!validate(uuid)) { 5 | throw TypeError('Invalid UUID'); 6 | } 7 | 8 | return parseInt(uuid.substr(14, 1), 16); 9 | } 10 | 11 | export default version; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-node/index.js: -------------------------------------------------------------------------------- 1 | export { default as v1 } from './v1.js'; 2 | export { default as v3 } from './v3.js'; 3 | export { default as v4 } from './v4.js'; 4 | export { default as v5 } from './v5.js'; 5 | export { default as NIL } from './nil.js'; 6 | export { default as version } from './version.js'; 7 | export { default as validate } from './validate.js'; 8 | export { default as stringify } from './stringify.js'; 9 | export { default as parse } from './parse.js'; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-node/md5.js: -------------------------------------------------------------------------------- 1 | import crypto from 'crypto'; 2 | 3 | function md5(bytes) { 4 | if (Array.isArray(bytes)) { 5 | bytes = Buffer.from(bytes); 6 | } else if (typeof bytes === 'string') { 7 | bytes = Buffer.from(bytes, 'utf8'); 8 | } 9 | 10 | return crypto.createHash('md5').update(bytes).digest(); 11 | } 12 | 13 | export default md5; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-node/nil.js: -------------------------------------------------------------------------------- 1 | export default '00000000-0000-0000-0000-000000000000'; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-node/parse.js: -------------------------------------------------------------------------------- 1 | import validate from './validate.js'; 2 | 3 | function parse(uuid) { 4 | if (!validate(uuid)) { 5 | throw TypeError('Invalid UUID'); 6 | } 7 | 8 | let v; 9 | const arr = new Uint8Array(16); // Parse ########-....-....-....-............ 10 | 11 | arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; 12 | arr[1] = v >>> 16 & 0xff; 13 | arr[2] = v >>> 8 & 0xff; 14 | arr[3] = v & 0xff; // Parse ........-####-....-....-............ 15 | 16 | arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; 17 | arr[5] = v & 0xff; // Parse ........-....-####-....-............ 18 | 19 | arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; 20 | arr[7] = v & 0xff; // Parse ........-....-....-####-............ 21 | 22 | arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; 23 | arr[9] = v & 0xff; // Parse ........-....-....-....-############ 24 | // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) 25 | 26 | arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; 27 | arr[11] = v / 0x100000000 & 0xff; 28 | arr[12] = v >>> 24 & 0xff; 29 | arr[13] = v >>> 16 & 0xff; 30 | arr[14] = v >>> 8 & 0xff; 31 | arr[15] = v & 0xff; 32 | return arr; 33 | } 34 | 35 | export default parse; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-node/regex.js: -------------------------------------------------------------------------------- 1 | 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; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-node/rng.js: -------------------------------------------------------------------------------- 1 | import crypto from 'crypto'; 2 | const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate 3 | 4 | let poolPtr = rnds8Pool.length; 5 | export default function rng() { 6 | if (poolPtr > rnds8Pool.length - 16) { 7 | crypto.randomFillSync(rnds8Pool); 8 | poolPtr = 0; 9 | } 10 | 11 | return rnds8Pool.slice(poolPtr, poolPtr += 16); 12 | } -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-node/sha1.js: -------------------------------------------------------------------------------- 1 | import crypto from 'crypto'; 2 | 3 | function sha1(bytes) { 4 | if (Array.isArray(bytes)) { 5 | bytes = Buffer.from(bytes); 6 | } else if (typeof bytes === 'string') { 7 | bytes = Buffer.from(bytes, 'utf8'); 8 | } 9 | 10 | return crypto.createHash('sha1').update(bytes).digest(); 11 | } 12 | 13 | export default sha1; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-node/stringify.js: -------------------------------------------------------------------------------- 1 | import validate from './validate.js'; 2 | /** 3 | * Convert array of 16 byte values to UUID string format of the form: 4 | * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX 5 | */ 6 | 7 | const byteToHex = []; 8 | 9 | for (let i = 0; i < 256; ++i) { 10 | byteToHex.push((i + 0x100).toString(16).substr(1)); 11 | } 12 | 13 | function stringify(arr, offset = 0) { 14 | // Note: Be careful editing this code! It's been tuned for performance 15 | // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 16 | const 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 17 | // of the following: 18 | // - One or more input array values don't map to a hex octet (leading to 19 | // "undefined" in the uuid) 20 | // - Invalid input values for the RFC `version` or `variant` fields 21 | 22 | if (!validate(uuid)) { 23 | throw TypeError('Stringified UUID is invalid'); 24 | } 25 | 26 | return uuid; 27 | } 28 | 29 | export default stringify; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-node/v1.js: -------------------------------------------------------------------------------- 1 | import rng from './rng.js'; 2 | import stringify from './stringify.js'; // **`v1()` - Generate time-based UUID** 3 | // 4 | // Inspired by https://github.com/LiosK/UUID.js 5 | // and http://docs.python.org/library/uuid.html 6 | 7 | let _nodeId; 8 | 9 | let _clockseq; // Previous uuid creation time 10 | 11 | 12 | let _lastMSecs = 0; 13 | let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details 14 | 15 | function v1(options, buf, offset) { 16 | let i = buf && offset || 0; 17 | const b = buf || new Array(16); 18 | options = options || {}; 19 | let node = options.node || _nodeId; 20 | let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not 21 | // specified. We do this lazily to minimize issues related to insufficient 22 | // system entropy. See #189 23 | 24 | if (node == null || clockseq == null) { 25 | const seedBytes = options.random || (options.rng || rng)(); 26 | 27 | if (node == null) { 28 | // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) 29 | node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; 30 | } 31 | 32 | if (clockseq == null) { 33 | // Per 4.2.2, randomize (14 bit) clockseq 34 | clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; 35 | } 36 | } // UUID timestamps are 100 nano-second units since the Gregorian epoch, 37 | // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so 38 | // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' 39 | // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. 40 | 41 | 42 | let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock 43 | // cycle to simulate higher resolution clock 44 | 45 | let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) 46 | 47 | const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression 48 | 49 | if (dt < 0 && options.clockseq === undefined) { 50 | clockseq = clockseq + 1 & 0x3fff; 51 | } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new 52 | // time interval 53 | 54 | 55 | if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { 56 | nsecs = 0; 57 | } // Per 4.2.1.2 Throw error if too many uuids are requested 58 | 59 | 60 | if (nsecs >= 10000) { 61 | throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); 62 | } 63 | 64 | _lastMSecs = msecs; 65 | _lastNSecs = nsecs; 66 | _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch 67 | 68 | msecs += 12219292800000; // `time_low` 69 | 70 | const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; 71 | b[i++] = tl >>> 24 & 0xff; 72 | b[i++] = tl >>> 16 & 0xff; 73 | b[i++] = tl >>> 8 & 0xff; 74 | b[i++] = tl & 0xff; // `time_mid` 75 | 76 | const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; 77 | b[i++] = tmh >>> 8 & 0xff; 78 | b[i++] = tmh & 0xff; // `time_high_and_version` 79 | 80 | b[i++] = tmh >>> 24 & 0xf | 0x10; // include version 81 | 82 | b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) 83 | 84 | b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` 85 | 86 | b[i++] = clockseq & 0xff; // `node` 87 | 88 | for (let n = 0; n < 6; ++n) { 89 | b[i + n] = node[n]; 90 | } 91 | 92 | return buf || stringify(b); 93 | } 94 | 95 | export default v1; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-node/v3.js: -------------------------------------------------------------------------------- 1 | import v35 from './v35.js'; 2 | import md5 from './md5.js'; 3 | const v3 = v35('v3', 0x30, md5); 4 | export default v3; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-node/v35.js: -------------------------------------------------------------------------------- 1 | import stringify from './stringify.js'; 2 | import parse from './parse.js'; 3 | 4 | function stringToBytes(str) { 5 | str = unescape(encodeURIComponent(str)); // UTF8 escape 6 | 7 | const bytes = []; 8 | 9 | for (let i = 0; i < str.length; ++i) { 10 | bytes.push(str.charCodeAt(i)); 11 | } 12 | 13 | return bytes; 14 | } 15 | 16 | export const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; 17 | export const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; 18 | export default function (name, version, hashfunc) { 19 | function generateUUID(value, namespace, buf, offset) { 20 | if (typeof value === 'string') { 21 | value = stringToBytes(value); 22 | } 23 | 24 | if (typeof namespace === 'string') { 25 | namespace = parse(namespace); 26 | } 27 | 28 | if (namespace.length !== 16) { 29 | throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); 30 | } // Compute hash of namespace and value, Per 4.3 31 | // Future: Use spread syntax when supported on all platforms, e.g. `bytes = 32 | // hashfunc([...namespace, ... value])` 33 | 34 | 35 | let bytes = new Uint8Array(16 + value.length); 36 | bytes.set(namespace); 37 | bytes.set(value, namespace.length); 38 | bytes = hashfunc(bytes); 39 | bytes[6] = bytes[6] & 0x0f | version; 40 | bytes[8] = bytes[8] & 0x3f | 0x80; 41 | 42 | if (buf) { 43 | offset = offset || 0; 44 | 45 | for (let i = 0; i < 16; ++i) { 46 | buf[offset + i] = bytes[i]; 47 | } 48 | 49 | return buf; 50 | } 51 | 52 | return stringify(bytes); 53 | } // Function#name is not settable on some platforms (#270) 54 | 55 | 56 | try { 57 | generateUUID.name = name; // eslint-disable-next-line no-empty 58 | } catch (err) {} // For CommonJS default export support 59 | 60 | 61 | generateUUID.DNS = DNS; 62 | generateUUID.URL = URL; 63 | return generateUUID; 64 | } -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-node/v4.js: -------------------------------------------------------------------------------- 1 | import rng from './rng.js'; 2 | import stringify from './stringify.js'; 3 | 4 | function v4(options, buf, offset) { 5 | options = options || {}; 6 | const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` 7 | 8 | rnds[6] = rnds[6] & 0x0f | 0x40; 9 | rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided 10 | 11 | if (buf) { 12 | offset = offset || 0; 13 | 14 | for (let i = 0; i < 16; ++i) { 15 | buf[offset + i] = rnds[i]; 16 | } 17 | 18 | return buf; 19 | } 20 | 21 | return stringify(rnds); 22 | } 23 | 24 | export default v4; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-node/v5.js: -------------------------------------------------------------------------------- 1 | import v35 from './v35.js'; 2 | import sha1 from './sha1.js'; 3 | const v5 = v35('v5', 0x50, sha1); 4 | export default v5; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-node/validate.js: -------------------------------------------------------------------------------- 1 | import REGEX from './regex.js'; 2 | 3 | function validate(uuid) { 4 | return typeof uuid === 'string' && REGEX.test(uuid); 5 | } 6 | 7 | export default validate; -------------------------------------------------------------------------------- /node_modules/uuid/dist/esm-node/version.js: -------------------------------------------------------------------------------- 1 | import validate from './validate.js'; 2 | 3 | function version(uuid) { 4 | if (!validate(uuid)) { 5 | throw TypeError('Invalid UUID'); 6 | } 7 | 8 | return parseInt(uuid.substr(14, 1), 16); 9 | } 10 | 11 | export default version; -------------------------------------------------------------------------------- /node_modules/uuid/dist/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | Object.defineProperty(exports, "v1", { 7 | enumerable: true, 8 | get: function () { 9 | return _v.default; 10 | } 11 | }); 12 | Object.defineProperty(exports, "v3", { 13 | enumerable: true, 14 | get: function () { 15 | return _v2.default; 16 | } 17 | }); 18 | Object.defineProperty(exports, "v4", { 19 | enumerable: true, 20 | get: function () { 21 | return _v3.default; 22 | } 23 | }); 24 | Object.defineProperty(exports, "v5", { 25 | enumerable: true, 26 | get: function () { 27 | return _v4.default; 28 | } 29 | }); 30 | Object.defineProperty(exports, "NIL", { 31 | enumerable: true, 32 | get: function () { 33 | return _nil.default; 34 | } 35 | }); 36 | Object.defineProperty(exports, "version", { 37 | enumerable: true, 38 | get: function () { 39 | return _version.default; 40 | } 41 | }); 42 | Object.defineProperty(exports, "validate", { 43 | enumerable: true, 44 | get: function () { 45 | return _validate.default; 46 | } 47 | }); 48 | Object.defineProperty(exports, "stringify", { 49 | enumerable: true, 50 | get: function () { 51 | return _stringify.default; 52 | } 53 | }); 54 | Object.defineProperty(exports, "parse", { 55 | enumerable: true, 56 | get: function () { 57 | return _parse.default; 58 | } 59 | }); 60 | 61 | var _v = _interopRequireDefault(require("./v1.js")); 62 | 63 | var _v2 = _interopRequireDefault(require("./v3.js")); 64 | 65 | var _v3 = _interopRequireDefault(require("./v4.js")); 66 | 67 | var _v4 = _interopRequireDefault(require("./v5.js")); 68 | 69 | var _nil = _interopRequireDefault(require("./nil.js")); 70 | 71 | var _version = _interopRequireDefault(require("./version.js")); 72 | 73 | var _validate = _interopRequireDefault(require("./validate.js")); 74 | 75 | var _stringify = _interopRequireDefault(require("./stringify.js")); 76 | 77 | var _parse = _interopRequireDefault(require("./parse.js")); 78 | 79 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -------------------------------------------------------------------------------- /node_modules/uuid/dist/md5-browser.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | 8 | /* 9 | * Browser-compatible JavaScript MD5 10 | * 11 | * Modification of JavaScript MD5 12 | * https://github.com/blueimp/JavaScript-MD5 13 | * 14 | * Copyright 2011, Sebastian Tschan 15 | * https://blueimp.net 16 | * 17 | * Licensed under the MIT license: 18 | * https://opensource.org/licenses/MIT 19 | * 20 | * Based on 21 | * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message 22 | * Digest Algorithm, as defined in RFC 1321. 23 | * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 24 | * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet 25 | * Distributed under the BSD License 26 | * See http://pajhome.org.uk/crypt/md5 for more info. 27 | */ 28 | function md5(bytes) { 29 | if (typeof bytes === 'string') { 30 | const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape 31 | 32 | bytes = new Uint8Array(msg.length); 33 | 34 | for (let i = 0; i < msg.length; ++i) { 35 | bytes[i] = msg.charCodeAt(i); 36 | } 37 | } 38 | 39 | return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8)); 40 | } 41 | /* 42 | * Convert an array of little-endian words to an array of bytes 43 | */ 44 | 45 | 46 | function md5ToHexEncodedArray(input) { 47 | const output = []; 48 | const length32 = input.length * 32; 49 | const hexTab = '0123456789abcdef'; 50 | 51 | for (let i = 0; i < length32; i += 8) { 52 | const x = input[i >> 5] >>> i % 32 & 0xff; 53 | const hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16); 54 | output.push(hex); 55 | } 56 | 57 | return output; 58 | } 59 | /** 60 | * Calculate output length with padding and bit length 61 | */ 62 | 63 | 64 | function getOutputLength(inputLength8) { 65 | return (inputLength8 + 64 >>> 9 << 4) + 14 + 1; 66 | } 67 | /* 68 | * Calculate the MD5 of an array of little-endian words, and a bit length. 69 | */ 70 | 71 | 72 | function wordsToMd5(x, len) { 73 | /* append padding */ 74 | x[len >> 5] |= 0x80 << len % 32; 75 | x[getOutputLength(len) - 1] = len; 76 | let a = 1732584193; 77 | let b = -271733879; 78 | let c = -1732584194; 79 | let d = 271733878; 80 | 81 | for (let i = 0; i < x.length; i += 16) { 82 | const olda = a; 83 | const oldb = b; 84 | const oldc = c; 85 | const oldd = d; 86 | a = md5ff(a, b, c, d, x[i], 7, -680876936); 87 | d = md5ff(d, a, b, c, x[i + 1], 12, -389564586); 88 | c = md5ff(c, d, a, b, x[i + 2], 17, 606105819); 89 | b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330); 90 | a = md5ff(a, b, c, d, x[i + 4], 7, -176418897); 91 | d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426); 92 | c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341); 93 | b = md5ff(b, c, d, a, x[i + 7], 22, -45705983); 94 | a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416); 95 | d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417); 96 | c = md5ff(c, d, a, b, x[i + 10], 17, -42063); 97 | b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162); 98 | a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682); 99 | d = md5ff(d, a, b, c, x[i + 13], 12, -40341101); 100 | c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290); 101 | b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329); 102 | a = md5gg(a, b, c, d, x[i + 1], 5, -165796510); 103 | d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632); 104 | c = md5gg(c, d, a, b, x[i + 11], 14, 643717713); 105 | b = md5gg(b, c, d, a, x[i], 20, -373897302); 106 | a = md5gg(a, b, c, d, x[i + 5], 5, -701558691); 107 | d = md5gg(d, a, b, c, x[i + 10], 9, 38016083); 108 | c = md5gg(c, d, a, b, x[i + 15], 14, -660478335); 109 | b = md5gg(b, c, d, a, x[i + 4], 20, -405537848); 110 | a = md5gg(a, b, c, d, x[i + 9], 5, 568446438); 111 | d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690); 112 | c = md5gg(c, d, a, b, x[i + 3], 14, -187363961); 113 | b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501); 114 | a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467); 115 | d = md5gg(d, a, b, c, x[i + 2], 9, -51403784); 116 | c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473); 117 | b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734); 118 | a = md5hh(a, b, c, d, x[i + 5], 4, -378558); 119 | d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463); 120 | c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562); 121 | b = md5hh(b, c, d, a, x[i + 14], 23, -35309556); 122 | a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060); 123 | d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353); 124 | c = md5hh(c, d, a, b, x[i + 7], 16, -155497632); 125 | b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640); 126 | a = md5hh(a, b, c, d, x[i + 13], 4, 681279174); 127 | d = md5hh(d, a, b, c, x[i], 11, -358537222); 128 | c = md5hh(c, d, a, b, x[i + 3], 16, -722521979); 129 | b = md5hh(b, c, d, a, x[i + 6], 23, 76029189); 130 | a = md5hh(a, b, c, d, x[i + 9], 4, -640364487); 131 | d = md5hh(d, a, b, c, x[i + 12], 11, -421815835); 132 | c = md5hh(c, d, a, b, x[i + 15], 16, 530742520); 133 | b = md5hh(b, c, d, a, x[i + 2], 23, -995338651); 134 | a = md5ii(a, b, c, d, x[i], 6, -198630844); 135 | d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415); 136 | c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905); 137 | b = md5ii(b, c, d, a, x[i + 5], 21, -57434055); 138 | a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571); 139 | d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606); 140 | c = md5ii(c, d, a, b, x[i + 10], 15, -1051523); 141 | b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799); 142 | a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359); 143 | d = md5ii(d, a, b, c, x[i + 15], 10, -30611744); 144 | c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380); 145 | b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649); 146 | a = md5ii(a, b, c, d, x[i + 4], 6, -145523070); 147 | d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379); 148 | c = md5ii(c, d, a, b, x[i + 2], 15, 718787259); 149 | b = md5ii(b, c, d, a, x[i + 9], 21, -343485551); 150 | a = safeAdd(a, olda); 151 | b = safeAdd(b, oldb); 152 | c = safeAdd(c, oldc); 153 | d = safeAdd(d, oldd); 154 | } 155 | 156 | return [a, b, c, d]; 157 | } 158 | /* 159 | * Convert an array bytes to an array of little-endian words 160 | * Characters >255 have their high-byte silently ignored. 161 | */ 162 | 163 | 164 | function bytesToWords(input) { 165 | if (input.length === 0) { 166 | return []; 167 | } 168 | 169 | const length8 = input.length * 8; 170 | const output = new Uint32Array(getOutputLength(length8)); 171 | 172 | for (let i = 0; i < length8; i += 8) { 173 | output[i >> 5] |= (input[i / 8] & 0xff) << i % 32; 174 | } 175 | 176 | return output; 177 | } 178 | /* 179 | * Add integers, wrapping at 2^32. This uses 16-bit operations internally 180 | * to work around bugs in some JS interpreters. 181 | */ 182 | 183 | 184 | function safeAdd(x, y) { 185 | const lsw = (x & 0xffff) + (y & 0xffff); 186 | const msw = (x >> 16) + (y >> 16) + (lsw >> 16); 187 | return msw << 16 | lsw & 0xffff; 188 | } 189 | /* 190 | * Bitwise rotate a 32-bit number to the left. 191 | */ 192 | 193 | 194 | function bitRotateLeft(num, cnt) { 195 | return num << cnt | num >>> 32 - cnt; 196 | } 197 | /* 198 | * These functions implement the four basic operations the algorithm uses. 199 | */ 200 | 201 | 202 | function md5cmn(q, a, b, x, s, t) { 203 | return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b); 204 | } 205 | 206 | function md5ff(a, b, c, d, x, s, t) { 207 | return md5cmn(b & c | ~b & d, a, b, x, s, t); 208 | } 209 | 210 | function md5gg(a, b, c, d, x, s, t) { 211 | return md5cmn(b & d | c & ~d, a, b, x, s, t); 212 | } 213 | 214 | function md5hh(a, b, c, d, x, s, t) { 215 | return md5cmn(b ^ c ^ d, a, b, x, s, t); 216 | } 217 | 218 | function md5ii(a, b, c, d, x, s, t) { 219 | return md5cmn(c ^ (b | ~d), a, b, x, s, t); 220 | } 221 | 222 | var _default = md5; 223 | exports.default = _default; -------------------------------------------------------------------------------- /node_modules/uuid/dist/md5.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | 8 | var _crypto = _interopRequireDefault(require("crypto")); 9 | 10 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 11 | 12 | function md5(bytes) { 13 | if (Array.isArray(bytes)) { 14 | bytes = Buffer.from(bytes); 15 | } else if (typeof bytes === 'string') { 16 | bytes = Buffer.from(bytes, 'utf8'); 17 | } 18 | 19 | return _crypto.default.createHash('md5').update(bytes).digest(); 20 | } 21 | 22 | var _default = md5; 23 | exports.default = _default; -------------------------------------------------------------------------------- /node_modules/uuid/dist/nil.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | var _default = '00000000-0000-0000-0000-000000000000'; 8 | exports.default = _default; -------------------------------------------------------------------------------- /node_modules/uuid/dist/parse.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | 8 | var _validate = _interopRequireDefault(require("./validate.js")); 9 | 10 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 11 | 12 | function parse(uuid) { 13 | if (!(0, _validate.default)(uuid)) { 14 | throw TypeError('Invalid UUID'); 15 | } 16 | 17 | let v; 18 | const arr = new Uint8Array(16); // Parse ########-....-....-....-............ 19 | 20 | arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; 21 | arr[1] = v >>> 16 & 0xff; 22 | arr[2] = v >>> 8 & 0xff; 23 | arr[3] = v & 0xff; // Parse ........-####-....-....-............ 24 | 25 | arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; 26 | arr[5] = v & 0xff; // Parse ........-....-####-....-............ 27 | 28 | arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; 29 | arr[7] = v & 0xff; // Parse ........-....-....-####-............ 30 | 31 | arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; 32 | arr[9] = v & 0xff; // Parse ........-....-....-....-############ 33 | // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) 34 | 35 | arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; 36 | arr[11] = v / 0x100000000 & 0xff; 37 | arr[12] = v >>> 24 & 0xff; 38 | arr[13] = v >>> 16 & 0xff; 39 | arr[14] = v >>> 8 & 0xff; 40 | arr[15] = v & 0xff; 41 | return arr; 42 | } 43 | 44 | var _default = parse; 45 | exports.default = _default; -------------------------------------------------------------------------------- /node_modules/uuid/dist/regex.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | var _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; 8 | exports.default = _default; -------------------------------------------------------------------------------- /node_modules/uuid/dist/rng-browser.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = rng; 7 | // Unique ID creation requires a high quality random # generator. In the browser we therefore 8 | // require the crypto API and do not support built-in fallback to lower quality random number 9 | // generators (like Math.random()). 10 | let getRandomValues; 11 | const rnds8 = new Uint8Array(16); 12 | 13 | function rng() { 14 | // lazy load so that environments that need to polyfill have a chance to do so 15 | if (!getRandomValues) { 16 | // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also, 17 | // find the complete implementation of crypto (msCrypto) on IE11. 18 | getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto); 19 | 20 | if (!getRandomValues) { 21 | throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); 22 | } 23 | } 24 | 25 | return getRandomValues(rnds8); 26 | } -------------------------------------------------------------------------------- /node_modules/uuid/dist/rng.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = rng; 7 | 8 | var _crypto = _interopRequireDefault(require("crypto")); 9 | 10 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 11 | 12 | const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate 13 | 14 | let poolPtr = rnds8Pool.length; 15 | 16 | function rng() { 17 | if (poolPtr > rnds8Pool.length - 16) { 18 | _crypto.default.randomFillSync(rnds8Pool); 19 | 20 | poolPtr = 0; 21 | } 22 | 23 | return rnds8Pool.slice(poolPtr, poolPtr += 16); 24 | } -------------------------------------------------------------------------------- /node_modules/uuid/dist/sha1-browser.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | 8 | // Adapted from Chris Veness' SHA1 code at 9 | // http://www.movable-type.co.uk/scripts/sha1.html 10 | function f(s, x, y, z) { 11 | switch (s) { 12 | case 0: 13 | return x & y ^ ~x & z; 14 | 15 | case 1: 16 | return x ^ y ^ z; 17 | 18 | case 2: 19 | return x & y ^ x & z ^ y & z; 20 | 21 | case 3: 22 | return x ^ y ^ z; 23 | } 24 | } 25 | 26 | function ROTL(x, n) { 27 | return x << n | x >>> 32 - n; 28 | } 29 | 30 | function sha1(bytes) { 31 | const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6]; 32 | const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; 33 | 34 | if (typeof bytes === 'string') { 35 | const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape 36 | 37 | bytes = []; 38 | 39 | for (let i = 0; i < msg.length; ++i) { 40 | bytes.push(msg.charCodeAt(i)); 41 | } 42 | } else if (!Array.isArray(bytes)) { 43 | // Convert Array-like to Array 44 | bytes = Array.prototype.slice.call(bytes); 45 | } 46 | 47 | bytes.push(0x80); 48 | const l = bytes.length / 4 + 2; 49 | const N = Math.ceil(l / 16); 50 | const M = new Array(N); 51 | 52 | for (let i = 0; i < N; ++i) { 53 | const arr = new Uint32Array(16); 54 | 55 | for (let j = 0; j < 16; ++j) { 56 | 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]; 57 | } 58 | 59 | M[i] = arr; 60 | } 61 | 62 | M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32); 63 | M[N - 1][14] = Math.floor(M[N - 1][14]); 64 | M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff; 65 | 66 | for (let i = 0; i < N; ++i) { 67 | const W = new Uint32Array(80); 68 | 69 | for (let t = 0; t < 16; ++t) { 70 | W[t] = M[i][t]; 71 | } 72 | 73 | for (let t = 16; t < 80; ++t) { 74 | W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1); 75 | } 76 | 77 | let a = H[0]; 78 | let b = H[1]; 79 | let c = H[2]; 80 | let d = H[3]; 81 | let e = H[4]; 82 | 83 | for (let t = 0; t < 80; ++t) { 84 | const s = Math.floor(t / 20); 85 | const T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0; 86 | e = d; 87 | d = c; 88 | c = ROTL(b, 30) >>> 0; 89 | b = a; 90 | a = T; 91 | } 92 | 93 | H[0] = H[0] + a >>> 0; 94 | H[1] = H[1] + b >>> 0; 95 | H[2] = H[2] + c >>> 0; 96 | H[3] = H[3] + d >>> 0; 97 | H[4] = H[4] + e >>> 0; 98 | } 99 | 100 | 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]; 101 | } 102 | 103 | var _default = sha1; 104 | exports.default = _default; -------------------------------------------------------------------------------- /node_modules/uuid/dist/sha1.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | 8 | var _crypto = _interopRequireDefault(require("crypto")); 9 | 10 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 11 | 12 | function sha1(bytes) { 13 | if (Array.isArray(bytes)) { 14 | bytes = Buffer.from(bytes); 15 | } else if (typeof bytes === 'string') { 16 | bytes = Buffer.from(bytes, 'utf8'); 17 | } 18 | 19 | return _crypto.default.createHash('sha1').update(bytes).digest(); 20 | } 21 | 22 | var _default = sha1; 23 | exports.default = _default; -------------------------------------------------------------------------------- /node_modules/uuid/dist/stringify.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | 8 | var _validate = _interopRequireDefault(require("./validate.js")); 9 | 10 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 11 | 12 | /** 13 | * Convert array of 16 byte values to UUID string format of the form: 14 | * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX 15 | */ 16 | const byteToHex = []; 17 | 18 | for (let i = 0; i < 256; ++i) { 19 | byteToHex.push((i + 0x100).toString(16).substr(1)); 20 | } 21 | 22 | function stringify(arr, offset = 0) { 23 | // Note: Be careful editing this code! It's been tuned for performance 24 | // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 25 | const 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 26 | // of the following: 27 | // - One or more input array values don't map to a hex octet (leading to 28 | // "undefined" in the uuid) 29 | // - Invalid input values for the RFC `version` or `variant` fields 30 | 31 | if (!(0, _validate.default)(uuid)) { 32 | throw TypeError('Stringified UUID is invalid'); 33 | } 34 | 35 | return uuid; 36 | } 37 | 38 | var _default = stringify; 39 | exports.default = _default; -------------------------------------------------------------------------------- /node_modules/uuid/dist/umd/uuid.min.js: -------------------------------------------------------------------------------- 1 | !function(r,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((r="undefined"!=typeof globalThis?globalThis:r||self).uuid={})}(this,(function(r){"use strict";var e,n=new Uint8Array(16);function t(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(n)}var o=/^(?:[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;function a(r){return"string"==typeof r&&o.test(r)}for(var i,u,f=[],s=0;s<256;++s)f.push((s+256).toString(16).substr(1));function c(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(f[r[e+0]]+f[r[e+1]]+f[r[e+2]]+f[r[e+3]]+"-"+f[r[e+4]]+f[r[e+5]]+"-"+f[r[e+6]]+f[r[e+7]]+"-"+f[r[e+8]]+f[r[e+9]]+"-"+f[r[e+10]]+f[r[e+11]]+f[r[e+12]]+f[r[e+13]]+f[r[e+14]]+f[r[e+15]]).toLowerCase();if(!a(n))throw TypeError("Stringified UUID is invalid");return n}var l=0,d=0;function v(r){if(!a(r))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(r.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(r.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(r.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(r.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n}function p(r,e,n){function t(r,t,o,a){if("string"==typeof r&&(r=function(r){r=unescape(encodeURIComponent(r));for(var e=[],n=0;n>>9<<4)+1}function y(r,e){var n=(65535&r)+(65535&e);return(r>>16)+(e>>16)+(n>>16)<<16|65535&n}function g(r,e,n,t,o,a){return y((i=y(y(e,r),y(t,a)))<<(u=o)|i>>>32-u,n);var i,u}function m(r,e,n,t,o,a,i){return g(e&n|~e&t,r,e,o,a,i)}function w(r,e,n,t,o,a,i){return g(e&t|n&~t,r,e,o,a,i)}function b(r,e,n,t,o,a,i){return g(e^n^t,r,e,o,a,i)}function A(r,e,n,t,o,a,i){return g(n^(e|~t),r,e,o,a,i)}var U=p("v3",48,(function(r){if("string"==typeof r){var e=unescape(encodeURIComponent(r));r=new Uint8Array(e.length);for(var n=0;n>5]>>>o%32&255,i=parseInt(t.charAt(a>>>4&15)+t.charAt(15&a),16);e.push(i)}return e}(function(r,e){r[e>>5]|=128<>5]|=(255&r[t/8])<>>32-e}var R=p("v5",80,(function(r){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){var t=unescape(encodeURIComponent(r));r=[];for(var o=0;o>>0;w=m,m=g,g=C(y,30)>>>0,y=h,h=U}n[0]=n[0]+h>>>0,n[1]=n[1]+y>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+m>>>0,n[4]=n[4]+w>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));r.NIL="00000000-0000-0000-0000-000000000000",r.parse=v,r.stringify=c,r.v1=function(r,e,n){var o=e&&n||0,a=e||new Array(16),f=(r=r||{}).node||i,s=void 0!==r.clockseq?r.clockseq:u;if(null==f||null==s){var v=r.random||(r.rng||t)();null==f&&(f=i=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),null==s&&(s=u=16383&(v[6]<<8|v[7]))}var p=void 0!==r.msecs?r.msecs:Date.now(),h=void 0!==r.nsecs?r.nsecs:d+1,y=p-l+(h-d)/1e4;if(y<0&&void 0===r.clockseq&&(s=s+1&16383),(y<0||p>l)&&void 0===r.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=p,d=h,u=s;var g=(1e4*(268435455&(p+=122192928e5))+h)%4294967296;a[o++]=g>>>24&255,a[o++]=g>>>16&255,a[o++]=g>>>8&255,a[o++]=255&g;var m=p/4294967296*1e4&268435455;a[o++]=m>>>8&255,a[o++]=255&m,a[o++]=m>>>24&15|16,a[o++]=m>>>16&255,a[o++]=s>>>8|128,a[o++]=255&s;for(var w=0;w<6;++w)a[o+w]=f[w];return e||c(a)},r.v3=U,r.v4=function(r,e,n){var o=(r=r||{}).random||(r.rng||t)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){n=n||0;for(var a=0;a<16;++a)e[n+a]=o[a];return e}return c(o)},r.v5=R,r.validate=a,r.version=function(r){if(!a(r))throw TypeError("Invalid UUID");return parseInt(r.substr(14,1),16)},Object.defineProperty(r,"__esModule",{value:!0})})); -------------------------------------------------------------------------------- /node_modules/uuid/dist/umd/uuidNIL.min.js: -------------------------------------------------------------------------------- 1 | !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidNIL=n()}(this,(function(){"use strict";return"00000000-0000-0000-0000-000000000000"})); -------------------------------------------------------------------------------- /node_modules/uuid/dist/umd/uuidParse.min.js: -------------------------------------------------------------------------------- 1 | !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidParse=n()}(this,(function(){"use strict";var e=/^(?:[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;return function(n){if(!function(n){return"string"==typeof n&&e.test(n)}(n))throw TypeError("Invalid UUID");var t,i=new Uint8Array(16);return i[0]=(t=parseInt(n.slice(0,8),16))>>>24,i[1]=t>>>16&255,i[2]=t>>>8&255,i[3]=255&t,i[4]=(t=parseInt(n.slice(9,13),16))>>>8,i[5]=255&t,i[6]=(t=parseInt(n.slice(14,18),16))>>>8,i[7]=255&t,i[8]=(t=parseInt(n.slice(19,23),16))>>>8,i[9]=255&t,i[10]=(t=parseInt(n.slice(24,36),16))/1099511627776&255,i[11]=t/4294967296&255,i[12]=t>>>24&255,i[13]=t>>>16&255,i[14]=t>>>8&255,i[15]=255&t,i}})); -------------------------------------------------------------------------------- /node_modules/uuid/dist/umd/uuidStringify.min.js: -------------------------------------------------------------------------------- 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidStringify=t()}(this,(function(){"use strict";var e=/^(?:[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;function t(t){return"string"==typeof t&&e.test(t)}for(var i=[],n=0;n<256;++n)i.push((n+256).toString(16).substr(1));return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,f=(i[e[n+0]]+i[e[n+1]]+i[e[n+2]]+i[e[n+3]]+"-"+i[e[n+4]]+i[e[n+5]]+"-"+i[e[n+6]]+i[e[n+7]]+"-"+i[e[n+8]]+i[e[n+9]]+"-"+i[e[n+10]]+i[e[n+11]]+i[e[n+12]]+i[e[n+13]]+i[e[n+14]]+i[e[n+15]]).toLowerCase();if(!t(f))throw TypeError("Stringified UUID is invalid");return f}})); -------------------------------------------------------------------------------- /node_modules/uuid/dist/umd/uuidValidate.min.js: -------------------------------------------------------------------------------- 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidValidate=t()}(this,(function(){"use strict";var e=/^(?:[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;return function(t){return"string"==typeof t&&e.test(t)}})); -------------------------------------------------------------------------------- /node_modules/uuid/dist/umd/uuidVersion.min.js: -------------------------------------------------------------------------------- 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidVersion=t()}(this,(function(){"use strict";var e=/^(?:[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;return function(t){if(!function(t){return"string"==typeof t&&e.test(t)}(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}})); -------------------------------------------------------------------------------- /node_modules/uuid/dist/umd/uuidv1.min.js: -------------------------------------------------------------------------------- 1 | !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidv1=o()}(this,(function(){"use strict";var e,o=new Uint8Array(16);function t(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(o)}var n=/^(?:[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;function r(e){return"string"==typeof e&&n.test(e)}for(var i,u,s=[],a=0;a<256;++a)s.push((a+256).toString(16).substr(1));var d=0,f=0;return function(e,o,n){var a=o&&n||0,c=o||new Array(16),l=(e=e||{}).node||i,p=void 0!==e.clockseq?e.clockseq:u;if(null==l||null==p){var v=e.random||(e.rng||t)();null==l&&(l=i=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),null==p&&(p=u=16383&(v[6]<<8|v[7]))}var y=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:f+1,g=y-d+(m-f)/1e4;if(g<0&&void 0===e.clockseq&&(p=p+1&16383),(g<0||y>d)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=y,f=m,u=p;var h=(1e4*(268435455&(y+=122192928e5))+m)%4294967296;c[a++]=h>>>24&255,c[a++]=h>>>16&255,c[a++]=h>>>8&255,c[a++]=255&h;var w=y/4294967296*1e4&268435455;c[a++]=w>>>8&255,c[a++]=255&w,c[a++]=w>>>24&15|16,c[a++]=w>>>16&255,c[a++]=p>>>8|128,c[a++]=255&p;for(var b=0;b<6;++b)c[a+b]=l[b];return o||function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(s[e[o+0]]+s[e[o+1]]+s[e[o+2]]+s[e[o+3]]+"-"+s[e[o+4]]+s[e[o+5]]+"-"+s[e[o+6]]+s[e[o+7]]+"-"+s[e[o+8]]+s[e[o+9]]+"-"+s[e[o+10]]+s[e[o+11]]+s[e[o+12]]+s[e[o+13]]+s[e[o+14]]+s[e[o+15]]).toLowerCase();if(!r(t))throw TypeError("Stringified UUID is invalid");return t}(c)}})); -------------------------------------------------------------------------------- /node_modules/uuid/dist/umd/uuidv3.min.js: -------------------------------------------------------------------------------- 1 | !function(n,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(n="undefined"!=typeof globalThis?globalThis:n||self).uuidv3=r()}(this,(function(){"use strict";var n=/^(?:[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;function r(r){return"string"==typeof r&&n.test(r)}for(var e=[],t=0;t<256;++t)e.push((t+256).toString(16).substr(1));function i(n){return 14+(n+64>>>9<<4)+1}function o(n,r){var e=(65535&n)+(65535&r);return(n>>16)+(r>>16)+(e>>16)<<16|65535&e}function a(n,r,e,t,i,a){return o((f=o(o(r,n),o(t,a)))<<(u=i)|f>>>32-u,e);var f,u}function f(n,r,e,t,i,o,f){return a(r&e|~r&t,n,r,i,o,f)}function u(n,r,e,t,i,o,f){return a(r&t|e&~t,n,r,i,o,f)}function c(n,r,e,t,i,o,f){return a(r^e^t,n,r,i,o,f)}function s(n,r,e,t,i,o,f){return a(e^(r|~t),n,r,i,o,f)}return function(n,t,i){function o(n,o,a,f){if("string"==typeof n&&(n=function(n){n=unescape(encodeURIComponent(n));for(var r=[],e=0;e>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=255&e,t[4]=(e=parseInt(n.slice(9,13),16))>>>8,t[5]=255&e,t[6]=(e=parseInt(n.slice(14,18),16))>>>8,t[7]=255&e,t[8]=(e=parseInt(n.slice(19,23),16))>>>8,t[9]=255&e,t[10]=(e=parseInt(n.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=255&e,t}(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+n.length);if(u.set(o),u.set(n,o.length),(u=i(u))[6]=15&u[6]|t,u[8]=63&u[8]|128,a){f=f||0;for(var c=0;c<16;++c)a[f+c]=u[c];return a}return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(e[n[t+0]]+e[n[t+1]]+e[n[t+2]]+e[n[t+3]]+"-"+e[n[t+4]]+e[n[t+5]]+"-"+e[n[t+6]]+e[n[t+7]]+"-"+e[n[t+8]]+e[n[t+9]]+"-"+e[n[t+10]]+e[n[t+11]]+e[n[t+12]]+e[n[t+13]]+e[n[t+14]]+e[n[t+15]]).toLowerCase();if(!r(i))throw TypeError("Stringified UUID is invalid");return i}(u)}try{o.name=n}catch(n){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}("v3",48,(function(n){if("string"==typeof n){var r=unescape(encodeURIComponent(n));n=new Uint8Array(r.length);for(var e=0;e>5]>>>i%32&255,a=parseInt(t.charAt(o>>>4&15)+t.charAt(15&o),16);r.push(a)}return r}(function(n,r){n[r>>5]|=128<>5]|=(255&n[t/8])<1&&void 0!==arguments[1]?arguments[1]:0,o=(i[t[e+0]]+i[t[e+1]]+i[t[e+2]]+i[t[e+3]]+"-"+i[t[e+4]]+i[t[e+5]]+"-"+i[t[e+6]]+i[t[e+7]]+"-"+i[t[e+8]]+i[t[e+9]]+"-"+i[t[e+10]]+i[t[e+11]]+i[t[e+12]]+i[t[e+13]]+i[t[e+14]]+i[t[e+15]]).toLowerCase();if(!r(o))throw TypeError("Stringified UUID is invalid");return o}(u)}})); -------------------------------------------------------------------------------- /node_modules/uuid/dist/umd/uuidv5.min.js: -------------------------------------------------------------------------------- 1 | !function(r,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(r="undefined"!=typeof globalThis?globalThis:r||self).uuidv5=e()}(this,(function(){"use strict";var r=/^(?:[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;function e(e){return"string"==typeof e&&r.test(e)}for(var t=[],n=0;n<256;++n)t.push((n+256).toString(16).substr(1));function a(r,e,t,n){switch(r){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function o(r,e){return r<>>32-e}return function(r,n,a){function o(r,o,i,f){if("string"==typeof r&&(r=function(r){r=unescape(encodeURIComponent(r));for(var e=[],t=0;t>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(r.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(r.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(r.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(r.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+r.length);if(s.set(o),s.set(r,o.length),(s=a(s))[6]=15&s[6]|n,s[8]=63&s[8]|128,i){f=f||0;for(var u=0;u<16;++u)i[f+u]=s[u];return i}return function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(t[r[n+0]]+t[r[n+1]]+t[r[n+2]]+t[r[n+3]]+"-"+t[r[n+4]]+t[r[n+5]]+"-"+t[r[n+6]]+t[r[n+7]]+"-"+t[r[n+8]]+t[r[n+9]]+"-"+t[r[n+10]]+t[r[n+11]]+t[r[n+12]]+t[r[n+13]]+t[r[n+14]]+t[r[n+15]]).toLowerCase();if(!e(a))throw TypeError("Stringified UUID is invalid");return a}(s)}try{o.name=r}catch(r){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}("v5",80,(function(r){var e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){var n=unescape(encodeURIComponent(r));r=[];for(var i=0;i>>0;A=U,U=w,w=o(b,30)>>>0,b=g,g=C}t[0]=t[0]+g>>>0,t[1]=t[1]+b>>>0,t[2]=t[2]+w>>>0,t[3]=t[3]+U>>>0,t[4]=t[4]+A>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,255&t[0],t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,255&t[1],t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,255&t[2],t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,255&t[3],t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,255&t[4]]}))})); -------------------------------------------------------------------------------- /node_modules/uuid/dist/uuid-bin.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _assert = _interopRequireDefault(require("assert")); 4 | 5 | var _v = _interopRequireDefault(require("./v1.js")); 6 | 7 | var _v2 = _interopRequireDefault(require("./v3.js")); 8 | 9 | var _v3 = _interopRequireDefault(require("./v4.js")); 10 | 11 | var _v4 = _interopRequireDefault(require("./v5.js")); 12 | 13 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 14 | 15 | function usage() { 16 | console.log('Usage:'); 17 | console.log(' uuid'); 18 | console.log(' uuid v1'); 19 | console.log(' uuid v3 '); 20 | console.log(' uuid v4'); 21 | console.log(' uuid v5 '); 22 | console.log(' uuid --help'); 23 | console.log('\nNote: may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC4122'); 24 | } 25 | 26 | const args = process.argv.slice(2); 27 | 28 | if (args.indexOf('--help') >= 0) { 29 | usage(); 30 | process.exit(0); 31 | } 32 | 33 | const version = args.shift() || 'v4'; 34 | 35 | switch (version) { 36 | case 'v1': 37 | console.log((0, _v.default)()); 38 | break; 39 | 40 | case 'v3': 41 | { 42 | const name = args.shift(); 43 | let namespace = args.shift(); 44 | (0, _assert.default)(name != null, 'v3 name not specified'); 45 | (0, _assert.default)(namespace != null, 'v3 namespace not specified'); 46 | 47 | if (namespace === 'URL') { 48 | namespace = _v2.default.URL; 49 | } 50 | 51 | if (namespace === 'DNS') { 52 | namespace = _v2.default.DNS; 53 | } 54 | 55 | console.log((0, _v2.default)(name, namespace)); 56 | break; 57 | } 58 | 59 | case 'v4': 60 | console.log((0, _v3.default)()); 61 | break; 62 | 63 | case 'v5': 64 | { 65 | const name = args.shift(); 66 | let namespace = args.shift(); 67 | (0, _assert.default)(name != null, 'v5 name not specified'); 68 | (0, _assert.default)(namespace != null, 'v5 namespace not specified'); 69 | 70 | if (namespace === 'URL') { 71 | namespace = _v4.default.URL; 72 | } 73 | 74 | if (namespace === 'DNS') { 75 | namespace = _v4.default.DNS; 76 | } 77 | 78 | console.log((0, _v4.default)(name, namespace)); 79 | break; 80 | } 81 | 82 | default: 83 | usage(); 84 | process.exit(1); 85 | } -------------------------------------------------------------------------------- /node_modules/uuid/dist/v1.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | 8 | var _rng = _interopRequireDefault(require("./rng.js")); 9 | 10 | var _stringify = _interopRequireDefault(require("./stringify.js")); 11 | 12 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 13 | 14 | // **`v1()` - Generate time-based UUID** 15 | // 16 | // Inspired by https://github.com/LiosK/UUID.js 17 | // and http://docs.python.org/library/uuid.html 18 | let _nodeId; 19 | 20 | let _clockseq; // Previous uuid creation time 21 | 22 | 23 | let _lastMSecs = 0; 24 | let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details 25 | 26 | function v1(options, buf, offset) { 27 | let i = buf && offset || 0; 28 | const b = buf || new Array(16); 29 | options = options || {}; 30 | let node = options.node || _nodeId; 31 | let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not 32 | // specified. We do this lazily to minimize issues related to insufficient 33 | // system entropy. See #189 34 | 35 | if (node == null || clockseq == null) { 36 | const seedBytes = options.random || (options.rng || _rng.default)(); 37 | 38 | if (node == null) { 39 | // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) 40 | node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; 41 | } 42 | 43 | if (clockseq == null) { 44 | // Per 4.2.2, randomize (14 bit) clockseq 45 | clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; 46 | } 47 | } // UUID timestamps are 100 nano-second units since the Gregorian epoch, 48 | // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so 49 | // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' 50 | // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. 51 | 52 | 53 | let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock 54 | // cycle to simulate higher resolution clock 55 | 56 | let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) 57 | 58 | const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression 59 | 60 | if (dt < 0 && options.clockseq === undefined) { 61 | clockseq = clockseq + 1 & 0x3fff; 62 | } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new 63 | // time interval 64 | 65 | 66 | if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { 67 | nsecs = 0; 68 | } // Per 4.2.1.2 Throw error if too many uuids are requested 69 | 70 | 71 | if (nsecs >= 10000) { 72 | throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); 73 | } 74 | 75 | _lastMSecs = msecs; 76 | _lastNSecs = nsecs; 77 | _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch 78 | 79 | msecs += 12219292800000; // `time_low` 80 | 81 | const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; 82 | b[i++] = tl >>> 24 & 0xff; 83 | b[i++] = tl >>> 16 & 0xff; 84 | b[i++] = tl >>> 8 & 0xff; 85 | b[i++] = tl & 0xff; // `time_mid` 86 | 87 | const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; 88 | b[i++] = tmh >>> 8 & 0xff; 89 | b[i++] = tmh & 0xff; // `time_high_and_version` 90 | 91 | b[i++] = tmh >>> 24 & 0xf | 0x10; // include version 92 | 93 | b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) 94 | 95 | b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` 96 | 97 | b[i++] = clockseq & 0xff; // `node` 98 | 99 | for (let n = 0; n < 6; ++n) { 100 | b[i + n] = node[n]; 101 | } 102 | 103 | return buf || (0, _stringify.default)(b); 104 | } 105 | 106 | var _default = v1; 107 | exports.default = _default; -------------------------------------------------------------------------------- /node_modules/uuid/dist/v3.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | 8 | var _v = _interopRequireDefault(require("./v35.js")); 9 | 10 | var _md = _interopRequireDefault(require("./md5.js")); 11 | 12 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 13 | 14 | const v3 = (0, _v.default)('v3', 0x30, _md.default); 15 | var _default = v3; 16 | exports.default = _default; -------------------------------------------------------------------------------- /node_modules/uuid/dist/v35.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = _default; 7 | exports.URL = exports.DNS = void 0; 8 | 9 | var _stringify = _interopRequireDefault(require("./stringify.js")); 10 | 11 | var _parse = _interopRequireDefault(require("./parse.js")); 12 | 13 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 14 | 15 | function stringToBytes(str) { 16 | str = unescape(encodeURIComponent(str)); // UTF8 escape 17 | 18 | const bytes = []; 19 | 20 | for (let i = 0; i < str.length; ++i) { 21 | bytes.push(str.charCodeAt(i)); 22 | } 23 | 24 | return bytes; 25 | } 26 | 27 | const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; 28 | exports.DNS = DNS; 29 | const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; 30 | exports.URL = URL; 31 | 32 | function _default(name, version, hashfunc) { 33 | function generateUUID(value, namespace, buf, offset) { 34 | if (typeof value === 'string') { 35 | value = stringToBytes(value); 36 | } 37 | 38 | if (typeof namespace === 'string') { 39 | namespace = (0, _parse.default)(namespace); 40 | } 41 | 42 | if (namespace.length !== 16) { 43 | throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); 44 | } // Compute hash of namespace and value, Per 4.3 45 | // Future: Use spread syntax when supported on all platforms, e.g. `bytes = 46 | // hashfunc([...namespace, ... value])` 47 | 48 | 49 | let bytes = new Uint8Array(16 + value.length); 50 | bytes.set(namespace); 51 | bytes.set(value, namespace.length); 52 | bytes = hashfunc(bytes); 53 | bytes[6] = bytes[6] & 0x0f | version; 54 | bytes[8] = bytes[8] & 0x3f | 0x80; 55 | 56 | if (buf) { 57 | offset = offset || 0; 58 | 59 | for (let i = 0; i < 16; ++i) { 60 | buf[offset + i] = bytes[i]; 61 | } 62 | 63 | return buf; 64 | } 65 | 66 | return (0, _stringify.default)(bytes); 67 | } // Function#name is not settable on some platforms (#270) 68 | 69 | 70 | try { 71 | generateUUID.name = name; // eslint-disable-next-line no-empty 72 | } catch (err) {} // For CommonJS default export support 73 | 74 | 75 | generateUUID.DNS = DNS; 76 | generateUUID.URL = URL; 77 | return generateUUID; 78 | } -------------------------------------------------------------------------------- /node_modules/uuid/dist/v4.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | 8 | var _rng = _interopRequireDefault(require("./rng.js")); 9 | 10 | var _stringify = _interopRequireDefault(require("./stringify.js")); 11 | 12 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 13 | 14 | function v4(options, buf, offset) { 15 | options = options || {}; 16 | 17 | const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` 18 | 19 | 20 | rnds[6] = rnds[6] & 0x0f | 0x40; 21 | rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided 22 | 23 | if (buf) { 24 | offset = offset || 0; 25 | 26 | for (let i = 0; i < 16; ++i) { 27 | buf[offset + i] = rnds[i]; 28 | } 29 | 30 | return buf; 31 | } 32 | 33 | return (0, _stringify.default)(rnds); 34 | } 35 | 36 | var _default = v4; 37 | exports.default = _default; -------------------------------------------------------------------------------- /node_modules/uuid/dist/v5.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | 8 | var _v = _interopRequireDefault(require("./v35.js")); 9 | 10 | var _sha = _interopRequireDefault(require("./sha1.js")); 11 | 12 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 13 | 14 | const v5 = (0, _v.default)('v5', 0x50, _sha.default); 15 | var _default = v5; 16 | exports.default = _default; -------------------------------------------------------------------------------- /node_modules/uuid/dist/validate.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | 8 | var _regex = _interopRequireDefault(require("./regex.js")); 9 | 10 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 11 | 12 | function validate(uuid) { 13 | return typeof uuid === 'string' && _regex.default.test(uuid); 14 | } 15 | 16 | var _default = validate; 17 | exports.default = _default; -------------------------------------------------------------------------------- /node_modules/uuid/dist/version.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | 8 | var _validate = _interopRequireDefault(require("./validate.js")); 9 | 10 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 11 | 12 | function version(uuid) { 13 | if (!(0, _validate.default)(uuid)) { 14 | throw TypeError('Invalid UUID'); 15 | } 16 | 17 | return parseInt(uuid.substr(14, 1), 16); 18 | } 19 | 20 | var _default = version; 21 | exports.default = _default; -------------------------------------------------------------------------------- /node_modules/uuid/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "uuid", 3 | "version": "8.3.2", 4 | "description": "RFC4122 (v1, v4, and v5) UUIDs", 5 | "commitlint": { 6 | "extends": [ 7 | "@commitlint/config-conventional" 8 | ] 9 | }, 10 | "keywords": [ 11 | "uuid", 12 | "guid", 13 | "rfc4122" 14 | ], 15 | "license": "MIT", 16 | "bin": { 17 | "uuid": "./dist/bin/uuid" 18 | }, 19 | "sideEffects": false, 20 | "main": "./dist/index.js", 21 | "exports": { 22 | ".": { 23 | "node": { 24 | "module": "./dist/esm-node/index.js", 25 | "require": "./dist/index.js", 26 | "import": "./wrapper.mjs" 27 | }, 28 | "default": "./dist/esm-browser/index.js" 29 | }, 30 | "./package.json": "./package.json" 31 | }, 32 | "module": "./dist/esm-node/index.js", 33 | "browser": { 34 | "./dist/md5.js": "./dist/md5-browser.js", 35 | "./dist/rng.js": "./dist/rng-browser.js", 36 | "./dist/sha1.js": "./dist/sha1-browser.js", 37 | "./dist/esm-node/index.js": "./dist/esm-browser/index.js" 38 | }, 39 | "files": [ 40 | "CHANGELOG.md", 41 | "CONTRIBUTING.md", 42 | "LICENSE.md", 43 | "README.md", 44 | "dist", 45 | "wrapper.mjs" 46 | ], 47 | "devDependencies": { 48 | "@babel/cli": "7.11.6", 49 | "@babel/core": "7.11.6", 50 | "@babel/preset-env": "7.11.5", 51 | "@commitlint/cli": "11.0.0", 52 | "@commitlint/config-conventional": "11.0.0", 53 | "@rollup/plugin-node-resolve": "9.0.0", 54 | "babel-eslint": "10.1.0", 55 | "bundlewatch": "0.3.1", 56 | "eslint": "7.10.0", 57 | "eslint-config-prettier": "6.12.0", 58 | "eslint-config-standard": "14.1.1", 59 | "eslint-plugin-import": "2.22.1", 60 | "eslint-plugin-node": "11.1.0", 61 | "eslint-plugin-prettier": "3.1.4", 62 | "eslint-plugin-promise": "4.2.1", 63 | "eslint-plugin-standard": "4.0.1", 64 | "husky": "4.3.0", 65 | "jest": "25.5.4", 66 | "lint-staged": "10.4.0", 67 | "npm-run-all": "4.1.5", 68 | "optional-dev-dependency": "2.0.1", 69 | "prettier": "2.1.2", 70 | "random-seed": "0.3.0", 71 | "rollup": "2.28.2", 72 | "rollup-plugin-terser": "7.0.2", 73 | "runmd": "1.3.2", 74 | "standard-version": "9.0.0" 75 | }, 76 | "optionalDevDependencies": { 77 | "@wdio/browserstack-service": "6.4.0", 78 | "@wdio/cli": "6.4.0", 79 | "@wdio/jasmine-framework": "6.4.0", 80 | "@wdio/local-runner": "6.4.0", 81 | "@wdio/spec-reporter": "6.4.0", 82 | "@wdio/static-server-service": "6.4.0", 83 | "@wdio/sync": "6.4.0" 84 | }, 85 | "scripts": { 86 | "examples:browser:webpack:build": "cd examples/browser-webpack && npm install && npm run build", 87 | "examples:browser:rollup:build": "cd examples/browser-rollup && npm install && npm run build", 88 | "examples:node:commonjs:test": "cd examples/node-commonjs && npm install && npm test", 89 | "examples:node:esmodules:test": "cd examples/node-esmodules && npm install && npm test", 90 | "lint": "npm run eslint:check && npm run prettier:check", 91 | "eslint:check": "eslint src/ test/ examples/ *.js", 92 | "eslint:fix": "eslint --fix src/ test/ examples/ *.js", 93 | "pretest": "[ -n $CI ] || npm run build", 94 | "test": "BABEL_ENV=commonjs node --throw-deprecation node_modules/.bin/jest test/unit/", 95 | "pretest:browser": "optional-dev-dependency && npm run build && npm-run-all --parallel examples:browser:**", 96 | "test:browser": "wdio run ./wdio.conf.js", 97 | "pretest:node": "npm run build", 98 | "test:node": "npm-run-all --parallel examples:node:**", 99 | "test:pack": "./scripts/testpack.sh", 100 | "pretest:benchmark": "npm run build", 101 | "test:benchmark": "cd examples/benchmark && npm install && npm test", 102 | "prettier:check": "prettier --ignore-path .prettierignore --check '**/*.{js,jsx,json,md}'", 103 | "prettier:fix": "prettier --ignore-path .prettierignore --write '**/*.{js,jsx,json,md}'", 104 | "bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json", 105 | "md": "runmd --watch --output=README.md README_js.md", 106 | "docs": "( node --version | grep -q 'v12' ) && ( npm run build && runmd --output=README.md README_js.md )", 107 | "docs:diff": "npm run docs && git diff --quiet README.md", 108 | "build": "./scripts/build.sh", 109 | "prepack": "npm run build", 110 | "release": "standard-version --no-verify" 111 | }, 112 | "repository": { 113 | "type": "git", 114 | "url": "https://github.com/uuidjs/uuid.git" 115 | }, 116 | "husky": { 117 | "hooks": { 118 | "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", 119 | "pre-commit": "lint-staged" 120 | } 121 | }, 122 | "lint-staged": { 123 | "*.{js,jsx,json,md}": [ 124 | "prettier --write" 125 | ], 126 | "*.{js,jsx}": [ 127 | "eslint --fix" 128 | ] 129 | }, 130 | "standard-version": { 131 | "scripts": { 132 | "postchangelog": "prettier --write CHANGELOG.md" 133 | } 134 | } 135 | } 136 | -------------------------------------------------------------------------------- /node_modules/uuid/wrapper.mjs: -------------------------------------------------------------------------------- 1 | import uuid from './dist/index.js'; 2 | export const v1 = uuid.v1; 3 | export const v3 = uuid.v3; 4 | export const v4 = uuid.v4; 5 | export const v5 = uuid.v5; 6 | export const NIL = uuid.NIL; 7 | export const version = uuid.version; 8 | export const validate = uuid.validate; 9 | export const stringify = uuid.stringify; 10 | export const parse = uuid.parse; 11 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "gh-node-module-generatebom", 3 | "lockfileVersion": 2, 4 | "requires": true, 5 | "packages": { 6 | "": { 7 | "name": "gh-node-module-generatebom", 8 | "license": "Apache-2.0", 9 | "dependencies": { 10 | "@actions/core": "^1.10.0" 11 | }, 12 | "engines": { 13 | "node": ">=16" 14 | } 15 | }, 16 | "node_modules/@actions/core": { 17 | "version": "1.10.0", 18 | "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz", 19 | "integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==", 20 | "dependencies": { 21 | "@actions/http-client": "^2.0.1", 22 | "uuid": "^8.3.2" 23 | } 24 | }, 25 | "node_modules/@actions/http-client": { 26 | "version": "2.1.0", 27 | "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.1.0.tgz", 28 | "integrity": "sha512-BonhODnXr3amchh4qkmjPMUO8mFi/zLaaCeCAJZqch8iQqyDnVIkySjB38VHAC8IJ+bnlgfOqlhpyCUZHlQsqw==", 29 | "dependencies": { 30 | "tunnel": "^0.0.6" 31 | } 32 | }, 33 | "node_modules/tunnel": { 34 | "version": "0.0.6", 35 | "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", 36 | "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", 37 | "engines": { 38 | "node": ">=0.6.11 <=0.7.0 || >=0.7.3" 39 | } 40 | }, 41 | "node_modules/uuid": { 42 | "version": "8.3.2", 43 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", 44 | "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", 45 | "bin": { 46 | "uuid": "dist/bin/uuid" 47 | } 48 | } 49 | }, 50 | "dependencies": { 51 | "@actions/core": { 52 | "version": "1.10.0", 53 | "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz", 54 | "integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==", 55 | "requires": { 56 | "@actions/http-client": "^2.0.1", 57 | "uuid": "^8.3.2" 58 | } 59 | }, 60 | "@actions/http-client": { 61 | "version": "2.1.0", 62 | "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.1.0.tgz", 63 | "integrity": "sha512-BonhODnXr3amchh4qkmjPMUO8mFi/zLaaCeCAJZqch8iQqyDnVIkySjB38VHAC8IJ+bnlgfOqlhpyCUZHlQsqw==", 64 | "requires": { 65 | "tunnel": "^0.0.6" 66 | } 67 | }, 68 | "tunnel": { 69 | "version": "0.0.6", 70 | "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", 71 | "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==" 72 | }, 73 | "uuid": { 74 | "version": "8.3.2", 75 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", 76 | "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" 77 | } 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "gh-node-module-generatebom", 4 | "license": "Apache-2.0", 5 | "homepage": "https://github.com/CycloneDX/gh-node-module-generatebom#readme", 6 | "type": "commonjs", 7 | "main": "index.js", 8 | "engines": { 9 | "node": ">=16" 10 | }, 11 | "dependencies": { 12 | "@actions/core": "^1.10.0" 13 | } 14 | } 15 | --------------------------------------------------------------------------------