├── .prettierignore ├── .gitattributes ├── .eslintignore ├── screenshot.png ├── jest.config.js ├── .prettierrc.json ├── .github ├── workflows │ └── build.yml └── dependabot.yml ├── src ├── markdown.ts └── main.ts ├── tsconfig.json ├── LICENSE ├── __tests__ └── markdown.test.ts ├── package.json ├── .gitignore ├── action.yml ├── .eslintrc.json ├── README.md └── dist ├── sourcemap-register.js └── licenses.txt /.prettierignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | lib/ 3 | node_modules/ -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | dist/** -diff linguist-generated=true -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | lib/ 3 | node_modules/ 4 | jest.config.js 5 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gavv/pull-request-artifacts/HEAD/screenshot.png -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | clearMocks: true, 3 | moduleFileExtensions: ['js', 'ts'], 4 | testMatch: ['**/*.test.ts'], 5 | transform: { 6 | '^.+\\.ts$': 'ts-jest' 7 | }, 8 | verbose: true 9 | } -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 80, 3 | "tabWidth": 2, 4 | "useTabs": false, 5 | "semi": false, 6 | "singleQuote": true, 7 | "trailingComma": "none", 8 | "bracketSpacing": false, 9 | "arrowParens": "avoid" 10 | } 11 | -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: 'build' 2 | on: 3 | pull_request: 4 | push: 5 | branches: 6 | - main 7 | - 'releases/*' 8 | 9 | jobs: 10 | build: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: actions/checkout@v3 14 | - run: npm install 15 | - run: npm run all 16 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | # Enable version updates for npm 4 | - package-ecosystem: 'npm' 5 | # Look for `package.json` and `lock` files in the `root` directory 6 | directory: '/' 7 | # Check the npm registry for updates every day (weekdays) 8 | schedule: 9 | interval: 'monthly' 10 | -------------------------------------------------------------------------------- /src/markdown.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * creates a markdown representation for the file. In case of an image, it will 3 | * render an image tag. For all other type of files, it will render a link. 4 | * 5 | * @param filename name of the file 6 | * @param link link to the file 7 | * @returns markdown for either a link or an image 8 | */ 9 | export function toMarkdown(filename: string, link: string): string { 10 | let isImage = false 11 | if ( 12 | filename.endsWith('.png') || 13 | filename.endsWith('.jpeg') || 14 | filename.endsWith('.jpg') || 15 | filename.endsWith('.svg') 16 | ) { 17 | isImage = true 18 | } 19 | 20 | return `${isImage ? '!' : ''}[\`${filename}\`](${link})` 21 | } 22 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ 4 | "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ 5 | "outDir": "./lib", /* Redirect output structure to the directory. */ 6 | "rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ 7 | "strict": true, /* Enable all strict type-checking options. */ 8 | "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ 9 | "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ 10 | }, 11 | "exclude": ["node_modules", "**/*.test.ts"] 12 | } 13 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | The MIT License (MIT) 3 | 4 | Copyright (c) Victor Gaydov 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. -------------------------------------------------------------------------------- /__tests__/markdown.test.ts: -------------------------------------------------------------------------------- 1 | import {toMarkdown} from '../src/markdown' 2 | import {expect, test} from '@jest/globals' 3 | 4 | const testcases = [ 5 | { 6 | name: 'text file should result in link', 7 | filename: 'test.txt', 8 | link: 'https://google.com', 9 | expectImage: false 10 | }, 11 | { 12 | name: 'file with no extension should result in link', 13 | filename: 'test', 14 | link: 'https://google.com', 15 | expectImage: false 16 | }, 17 | { 18 | name: 'png file should result in image', 19 | filename: 'test.png', 20 | link: 'https://google.com', 21 | expectImage: true 22 | }, 23 | { 24 | name: 'jpeg file should result in image', 25 | filename: 'test.jpeg', 26 | link: 'https://google.com', 27 | expectImage: true 28 | }, 29 | { 30 | name: 'jpg file should result in image', 31 | filename: 'test.jpg', 32 | link: 'https://google.com', 33 | expectImage: true 34 | }, 35 | { 36 | name: 'svg file should result in image', 37 | filename: 'test.svg', 38 | link: 'https://google.com', 39 | expectImage: true 40 | } 41 | ] 42 | 43 | testcases.forEach(testcase => { 44 | test(testcase.name, () => { 45 | const result = toMarkdown(testcase.filename, testcase.link) 46 | expect(result).toEqual( 47 | `${testcase.expectImage ? '!' : ''}[\`${testcase.filename}\`](${ 48 | testcase.link 49 | })` 50 | ) 51 | }) 52 | }) 53 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "typescript-action", 3 | "version": "0.0.0", 4 | "private": true, 5 | "description": "TypeScript template action", 6 | "main": "lib/main.js", 7 | "scripts": { 8 | "build": "tsc", 9 | "format": "prettier --write **/*.ts", 10 | "format-check": "prettier --check **/*.ts", 11 | "lint": "eslint src/**/*.ts", 12 | "package": "ncc build --source-map --license licenses.txt", 13 | "test": "jest", 14 | "all": "npm run build && npm run format && npm run lint && npm run package && npm test" 15 | }, 16 | "repository": { 17 | "type": "git", 18 | "url": "git+https://github.com/actions/typescript-action.git" 19 | }, 20 | "keywords": [ 21 | "actions", 22 | "node", 23 | "setup" 24 | ], 25 | "author": "", 26 | "license": "MIT", 27 | "dependencies": { 28 | "@actions/core": "^1.10.1", 29 | "@actions/github": "^5.0.0", 30 | "@octokit/core": "^5.0.1", 31 | "@octokit/plugin-rest-endpoint-methods": "^10.2.0", 32 | "@octokit/rest": "^20.0.2" 33 | }, 34 | "devDependencies": { 35 | "@types/node": "^20.2.5", 36 | "@typescript-eslint/parser": "^5.62.0", 37 | "@vercel/ncc": "^0.38.1", 38 | "eslint": "^8.56.0", 39 | "eslint-plugin-github": "^4.6.0", 40 | "eslint-plugin-jest": "^27.6.0", 41 | "jest": "27.0.0", 42 | "js-yaml": "^4.1.0", 43 | "prettier": "2.8.8", 44 | "ts-jest": "^27.0.3", 45 | "typescript": "^4.1.3" 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Dependency directory 2 | node_modules 3 | 4 | # Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore 5 | # Logs 6 | logs 7 | *.log 8 | npm-debug.log* 9 | yarn-debug.log* 10 | yarn-error.log* 11 | lerna-debug.log* 12 | 13 | # Diagnostic reports (https://nodejs.org/api/report.html) 14 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 15 | 16 | # Runtime data 17 | pids 18 | *.pid 19 | *.seed 20 | *.pid.lock 21 | 22 | # Directory for instrumented libs generated by jscoverage/JSCover 23 | lib-cov 24 | 25 | # Coverage directory used by tools like istanbul 26 | coverage 27 | *.lcov 28 | 29 | # nyc test coverage 30 | .nyc_output 31 | 32 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 33 | .grunt 34 | 35 | # Bower dependency directory (https://bower.io/) 36 | bower_components 37 | 38 | # node-waf configuration 39 | .lock-wscript 40 | 41 | # Compiled binary addons (https://nodejs.org/api/addons.html) 42 | build/Release 43 | 44 | # Dependency directories 45 | jspm_packages/ 46 | 47 | # TypeScript v1 declaration files 48 | typings/ 49 | 50 | # TypeScript cache 51 | *.tsbuildinfo 52 | 53 | # Optional npm cache directory 54 | .npm 55 | 56 | # Optional eslint cache 57 | .eslintcache 58 | 59 | # Optional REPL history 60 | .node_repl_history 61 | 62 | # Output of 'npm pack' 63 | *.tgz 64 | 65 | # Yarn Integrity file 66 | .yarn-integrity 67 | 68 | # dotenv environment variables file 69 | .env 70 | .env.test 71 | 72 | # parcel-bundler cache (https://parceljs.org/) 73 | .cache 74 | 75 | # next.js build output 76 | .next 77 | 78 | # nuxt.js build output 79 | .nuxt 80 | 81 | # vuepress build output 82 | .vuepress/dist 83 | 84 | # Serverless directories 85 | .serverless/ 86 | 87 | # FuseBox cache 88 | .fusebox/ 89 | 90 | # DynamoDB Local files 91 | .dynamodb/ 92 | 93 | # OS metadata 94 | .DS_Store 95 | Thumbs.db 96 | 97 | # Ignore built ts files 98 | __tests__/runner/* 99 | lib/**/* -------------------------------------------------------------------------------- /action.yml: -------------------------------------------------------------------------------- 1 | name: 'Pull Request Artifact' 2 | description: 'Post build artifacts in comments to pull request' 3 | author: 'Victor Gaydov & contributors' 4 | branding: 5 | icon: 'git-pull-request' 6 | color: 'blue' 7 | inputs: 8 | commit: 9 | description: 'Commit hash that triggered PR' 10 | required: true 11 | repo-token: 12 | description: 'Token for current repo (used to post PR comment)' 13 | required: true 14 | artifacts: 15 | description: 'Space-separated list of files to upload' 16 | required: true 17 | artifacts-token: 18 | description: 'Token for artifacts repo (if it differs from current repo)' 19 | required: false 20 | artifacts-repo: 21 | description: 'Repo where to upload artifacts (defaults to current repo)' 22 | required: false 23 | artifacts-branch: 24 | description: 'Branch where to upload artifacts (defaults to default branch)' 25 | required: false 26 | artifacts-dir: 27 | deprecationMessage: 'This option is deprecated. Please use `artifacts-prefix` instead.' 28 | description: 'Directory for ulpaded artifacts path' 29 | required: false 30 | artifacts-prefix: 31 | description: 'Prefix for uploaded artifact path (may contain slashes to specify directory; defaults to pr{NNN}-, where {NNN} is PR number)' 32 | default: '-' 33 | required: false 34 | preserve-path: 35 | description: 'Whether to preserve artifact path, otherwise use only basename' 36 | default: false 37 | required: false 38 | inter-link: 39 | description: 'Whether to link the original PR when committing artifacts' 40 | default: true 41 | required: false 42 | post-comment: 43 | description: 'Whether to post a comment with links to artifacts' 44 | default: true 45 | required: false 46 | comment-title: 47 | description: 'Header to add to comment in the PR' 48 | default: '🤖 Pull request artifacts' 49 | required: false 50 | comment-message: 51 | description: 'Message to add to comment in the PR. Will be visible before the artifacts' 52 | default: 'empty string' 53 | required: false 54 | comment-style: 55 | description: 'How to format comment (can be `table` or `list`)' 56 | default: 'table' 57 | required: false 58 | runs: 59 | using: 'node20' 60 | main: 'dist/index.js' 61 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["jest", "@typescript-eslint"], 3 | "extends": ["plugin:github/recommended"], 4 | "parser": "@typescript-eslint/parser", 5 | "parserOptions": { 6 | "ecmaVersion": 9, 7 | "sourceType": "module", 8 | "project": "./tsconfig.json" 9 | }, 10 | "rules": { 11 | "i18n-text/no-en": "off", 12 | "eslint-comments/no-use": "off", 13 | "import/no-namespace": "off", 14 | "no-unused-vars": "off", 15 | "@typescript-eslint/no-unused-vars": "error", 16 | "@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}], 17 | "@typescript-eslint/no-require-imports": "error", 18 | "@typescript-eslint/array-type": "error", 19 | "@typescript-eslint/await-thenable": "error", 20 | "@typescript-eslint/ban-ts-comment": "error", 21 | "camelcase": "off", 22 | "@typescript-eslint/consistent-type-assertions": "error", 23 | "@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}], 24 | "@typescript-eslint/func-call-spacing": ["error", "never"], 25 | "@typescript-eslint/no-array-constructor": "error", 26 | "@typescript-eslint/no-empty-interface": "error", 27 | "@typescript-eslint/no-explicit-any": "error", 28 | "@typescript-eslint/no-extraneous-class": "error", 29 | "@typescript-eslint/no-for-in-array": "error", 30 | "@typescript-eslint/no-inferrable-types": "error", 31 | "@typescript-eslint/no-misused-new": "error", 32 | "@typescript-eslint/no-namespace": "error", 33 | "@typescript-eslint/no-non-null-assertion": "warn", 34 | "@typescript-eslint/no-unnecessary-qualifier": "error", 35 | "@typescript-eslint/no-unnecessary-type-assertion": "error", 36 | "@typescript-eslint/no-useless-constructor": "error", 37 | "@typescript-eslint/no-var-requires": "error", 38 | "@typescript-eslint/prefer-for-of": "warn", 39 | "@typescript-eslint/prefer-function-type": "warn", 40 | "@typescript-eslint/prefer-includes": "error", 41 | "@typescript-eslint/prefer-string-starts-ends-with": "error", 42 | "@typescript-eslint/promise-function-async": "error", 43 | "@typescript-eslint/require-array-sort-compare": "error", 44 | "@typescript-eslint/restrict-plus-operands": "error", 45 | "semi": "off", 46 | "@typescript-eslint/semi": ["error", "never"], 47 | "@typescript-eslint/type-annotation-spacing": "error", 48 | "@typescript-eslint/unbound-method": "error" 49 | }, 50 | "env": { 51 | "node": true, 52 | "es6": true, 53 | "jest/globals": true 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

PROJECT ARCHIVED

2 | 3 | This project is now archived due to lack of development and maintenance. Please reach out to me via victor@enise.org if you are interested in establishing a new home for it. 4 | 5 | ---- 6 | 7 | # pull-request-artifacts [![build](https://github.com/gavv/pull-request-artifacts/actions/workflows/build.yml/badge.svg)](https://github.com/gavv/pull-request-artifacts/actions/workflows/build.yml) 8 | 9 | This GitHub Action uploads specified build artifacts (arbitrary files) from a PR to given repo and posts a PR comment with links to the uploaded artifacts. 10 | 11 | For example, you can use it to automatically upload APK or App Bundle to make it easy to test the PR during review. 12 | 13 | ![](screenshot.png) 14 | 15 | ## Parameters 16 | 17 | | parameter | required | default | description | 18 | | --------- | -------- | ------- | ----------- | 19 | | `commit` | **required** | - | Commit hash that triggered PR | 20 | | `repo-token` | **required** | - | Token for current repo (used to post PR comment) | 21 | | `artifacts` | **required** | - | Whitespace-separated list of files to upload | 22 | | `artifacts-token` | optional | same as `repo-token` | Token for artifacts repo | 23 | | `artifacts-repo` | optional | current repo | Repo where to upload artifacts | 24 | | `artifacts-branch` | optional | default branch | Branch where to upload artifacts | 25 | | `artifacts-prefix` | optional | `pr{NNN}-` (NNN is PR number) | Prefix for uploaded artifact path (may contain slashes to specify directory) | 26 | | `preserve-path` | optional | false | Whether to preserve artifact path, otherwise use only basename | 27 | | `inter-link` | optional | true | Whether to link the original PR when committing artifacts | 28 | | `post-comment` | optional | true | Whether to post a comment with links to artifacts | 29 | | `comment-title` | optional | "🤖 Pull request artifacts" | Header to add to comment in the PR | 30 | | `comment-message` | optional | empty string | Message to add to comment in the PR (will be visible before the artifacts) | 31 | | `comment-style` | optional | `table` | How to format comment (can be `table` or `list`) | 32 | 33 | ## Example usage 34 | 35 | Create a new workflow file `.github/workflows/pull-request-artifacts.yml` with the 36 | contents below. Alternatively you can copy the job below and put it into your 37 | existing workflow. 38 | 39 | ```yaml 40 | name: Generate attachments 41 | 42 | on: 43 | # This workflow is started only on PRs 44 | pull_request: 45 | # Your branch, usually "main" or "master" 46 | branches: [ "main" ] 47 | 48 | jobs: 49 | # Main job 50 | build: 51 | permissions: 52 | # Required to upload/save artifact, otherwise you'll get 53 | # "Error: Resource not accessible by integration" 54 | contents: write 55 | # Required to post comment, otherwise you'll get 56 | # "Error: Resource not accessible by integration" 57 | pull-requests: write 58 | 59 | runs-on: ubuntu-latest 60 | steps: 61 | # Put your steps here to generate the files to upload. 62 | # Usually configure Node.js, build, etc. 63 | # Finally, upload the artifacts and post comment: 64 | - name: Pull request artifacts 65 | uses: gavv/pull-request-artifacts@v2 66 | with: 67 | # Commit hash that triggered PR 68 | commit: ${{ github.event.pull_request.head.sha }} 69 | 70 | # Token for current repo (used to post PR comment) 71 | repo-token: ${{ secrets.GITHUB_TOKEN }} 72 | 73 | # Optional, uncomment to upload to another repository 74 | #artifacts-token: ${{ secrets.ANOTHER_TOKEN_WITH_PUSH_ACCESS }} 75 | #artifacts-repo: some/repository_name 76 | 77 | # Optional, uncomment to upload artifacts to specific branch, otherwise 78 | # the default branch is used. 79 | # Note that usually the main branch is protected by rules, so it's not 80 | # possible to upload there. 81 | # Perhaps, the best solution is to create an empty unprotected branch 82 | # dedicated for artifacts. 83 | # See README for details. 84 | #artifacts-branch: some_branch 85 | 86 | # Optional, uncomment to preserve artifacts path and add prefix. 87 | # By default artifacts are uploaded to "pr-". 88 | # With options below, artifacts will be uploaded to "my_prs//". 89 | #artifacts-prefix: "my_prs/${{ github.event.number }}/" 90 | #preserve-path: true 91 | 92 | # Optional, uncomment to use non-default title and style. 93 | #comment-title: "My artifacts" 94 | #comment-message: "My message" 95 | #comment-style: list 96 | 97 | # Whitespace-separated list of files to upload 98 | artifacts: | 99 | some/file.apk 100 | another/file.ipa 101 | ``` 102 | 103 | ## Protected branches 104 | 105 | Please keep in mind that your branch where the PR goes to may be protected, which is usually true. For example, you may have some required checks and tests before PR can be merged. 106 | 107 | **This action can not upload artifacts to protected branches.** 108 | 109 | In this case you need to specify the `artifacts-branch` parameter that points to some unprotected branch 110 | used for uploading artifacts. For example, you can create an empty branch called `artifacts` for that. 111 | To create such empty branch using the following commands: 112 | 113 | ```console 114 | $ git switch --orphan artifacts 115 | $ git commit --allow-empty -m "Initial commit on orphan branch" 116 | $ git push -u origin artifacts 117 | ``` 118 | 119 | Now you have an empty branch that can be used to store artifacts. 120 | -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- 1 | import * as fs from 'fs' 2 | import * as core from '@actions/core' 3 | import {context} from '@actions/github' 4 | import {Octokit} from '@octokit/rest' 5 | import path from 'path' 6 | import {toMarkdown} from './markdown' 7 | 8 | async function run(): Promise { 9 | try { 10 | const commit_sha = core.getInput('commit', {required: true}) 11 | const local_token = core.getInput('repo-token', {required: true}) 12 | const artifact_list = core.getInput('artifacts', {required: true}) 13 | let artifacts_token = core.getInput('artifacts-token', {required: false}) 14 | const artifacts_owner_and_repo = core.getInput('artifacts-repo', { 15 | required: false 16 | }) 17 | let artifacts_branch = core.getInput('artifacts-branch', {required: false}) 18 | const artifacts_dir = core.getInput('artifacts-dir', {required: false}) 19 | const artifacts_prefix = core.getInput('artifacts-prefix', { 20 | required: false 21 | }) 22 | const preserve_path = 23 | core.getInput('preserve-path', {required: false}) === 'true' 24 | const inter_link = core.getInput('inter-link', {required: false}) === 'true' 25 | const post_comment = 26 | core.getInput('post-comment', {required: false}) === 'true' 27 | const comment_title = core.getInput('comment-title', {required: false}) 28 | const comment_message = core.getInput('comment-message', {required: false}) 29 | const comment_style = core.getInput('comment-style', {required: false}) 30 | 31 | if (!artifacts_token) { 32 | artifacts_token = local_token 33 | } 34 | 35 | let artifacts_owner = context.repo.owner 36 | let artifacts_repo = context.repo.repo 37 | if (artifacts_owner_and_repo) { 38 | ;[artifacts_owner, artifacts_repo] = artifacts_owner_and_repo.split( 39 | '/', 40 | 2 41 | ) 42 | } 43 | 44 | const local_octokit = new Octokit({ 45 | auth: local_token, 46 | log: { 47 | debug: core.debug, 48 | info: core.info, 49 | warn: core.warning, 50 | error: core.error 51 | } 52 | }) 53 | 54 | const artifacts_octokit = new Octokit({ 55 | auth: artifacts_token, 56 | log: { 57 | debug: core.debug, 58 | info: core.info, 59 | warn: core.warning, 60 | error: core.error 61 | } 62 | }) 63 | 64 | if (!artifacts_branch) { 65 | const repo = await artifacts_octokit.rest.repos.get({ 66 | owner: artifacts_owner, 67 | repo: artifacts_repo 68 | }) 69 | artifacts_branch = repo.data.default_branch 70 | } 71 | 72 | core.info(`Artifacts repo: ${artifacts_owner}/${artifacts_repo}`) 73 | core.info(`Artifacts branch: ${artifacts_branch}`) 74 | 75 | const findComment = async (body: string): Promise => { 76 | const comments = await local_octokit.rest.issues.listComments({ 77 | owner: context.repo.owner, 78 | repo: context.repo.repo, 79 | issue_number: context.issue.number 80 | }) 81 | 82 | for (const comment of comments.data) { 83 | if (!comment.user || comment.user.login !== 'github-actions[bot]') { 84 | continue 85 | } 86 | 87 | if (!comment.body || !comment.body.includes(body)) { 88 | continue 89 | } 90 | 91 | return comment.id 92 | } 93 | 94 | return null 95 | } 96 | 97 | const updateComment = async ( 98 | comment_id: number, 99 | body: string 100 | ): Promise => { 101 | core.info(`Updating comment ${comment_id}`) 102 | 103 | await local_octokit.rest.issues.updateComment({ 104 | owner: context.repo.owner, 105 | repo: context.repo.repo, 106 | comment_id, 107 | body 108 | }) 109 | } 110 | 111 | const createComment = async (body: string): Promise => { 112 | core.info(`Posting new comment`) 113 | 114 | await local_octokit.rest.issues.createComment({ 115 | owner: context.repo.owner, 116 | repo: context.repo.repo, 117 | issue_number: context.issue.number, 118 | body 119 | }) 120 | } 121 | 122 | const findFileSha = async ( 123 | file_path: string 124 | ): Promise => { 125 | try { 126 | const files = await artifacts_octokit.rest.repos.getContent({ 127 | owner: artifacts_owner, 128 | repo: artifacts_repo, 129 | path: path.dirname(file_path), 130 | ref: artifacts_branch 131 | }) 132 | 133 | if (Array.isArray(files.data)) { 134 | for (const file of files.data) { 135 | if (file.name === path.basename(file_path)) { 136 | return file.sha 137 | } 138 | } 139 | } 140 | } catch (error) { 141 | /* empty */ 142 | } 143 | 144 | return undefined 145 | } 146 | 147 | const uploadFile = async ( 148 | file_path: string, 149 | file_content: Buffer 150 | ): Promise => { 151 | const old_sha = await findFileSha(file_path) 152 | 153 | if (old_sha) { 154 | core.info(`Uploading file ${file_path} (old sha ${old_sha})`) 155 | } else { 156 | core.info(`Uploading file ${file_path} (first time)`) 157 | } 158 | 159 | const repo_url = `https://github.com/${context.repo.owner}/${context.repo.repo}` 160 | const short_sha = commit_sha.substring(0, 5) 161 | 162 | let message = `Upload ${file_path} (${short_sha})` 163 | 164 | if (inter_link) { 165 | message += ` 166 | 167 | Pull request: ${repo_url}/pull/${context.issue.number} 168 | Commit: ${repo_url}/commit/${commit_sha} 169 | ` 170 | } 171 | 172 | await artifacts_octokit.rest.repos.createOrUpdateFileContents({ 173 | owner: artifacts_owner, 174 | repo: artifacts_repo, 175 | path: file_path, 176 | message, 177 | content: file_content.toString('base64'), 178 | branch: artifacts_branch, 179 | sha: old_sha 180 | }) 181 | 182 | const artifacts_repo_url = `https://github.com/${artifacts_owner}/${artifacts_repo}` 183 | return `${artifacts_repo_url}/blob/${artifacts_branch}/${file_path}?raw=true` 184 | } 185 | 186 | let target_prefix = artifacts_prefix 187 | if (target_prefix === '-') { 188 | target_prefix = `pr${context.issue.number}-` 189 | if (artifacts_dir !== '') { 190 | core.warning('Using deprecated artifacts-dir parameter') 191 | target_prefix = `${artifacts_dir}/${target_prefix}` 192 | } 193 | } 194 | 195 | core.info(`Artifacts prefix: "${target_prefix}"`) 196 | 197 | let comment_body = `## ${comment_title}\n` 198 | 199 | if (comment_message) { 200 | comment_body += `${comment_message}\n` 201 | } 202 | 203 | if (comment_style === 'table') { 204 | comment_body += ` 205 | | file | commit | 206 | | ---- | ------ | 207 | ` 208 | } 209 | 210 | for (let artifact of artifact_list.split(/\s+/)) { 211 | artifact = artifact.trim() 212 | 213 | core.info(`Processing artifact: ${artifact}`) 214 | 215 | const content = fs.readFileSync(artifact) 216 | 217 | const target_name = preserve_path ? artifact : path.basename(artifact) 218 | const target_path = target_prefix + target_name 219 | const target_link = await uploadFile(target_path, content) 220 | 221 | if (comment_style === 'table') { 222 | comment_body += `| ${toMarkdown( 223 | target_name, 224 | target_link 225 | )} | ${commit_sha} |` 226 | } 227 | 228 | if (comment_style === 'list') { 229 | comment_body += `* ${toMarkdown(target_name, target_link)}` 230 | } 231 | 232 | comment_body += '\n' 233 | } 234 | 235 | if (comment_style === 'list') { 236 | comment_body += `\nsynchronized with ${commit_sha}` 237 | } 238 | 239 | if (post_comment) { 240 | const comment_id = await findComment(comment_title) 241 | if (comment_id) { 242 | await updateComment(comment_id, comment_body) 243 | } else { 244 | await createComment(comment_body) 245 | } 246 | } 247 | } catch (error) { 248 | if (error instanceof Error) { 249 | core.setFailed(error.message) 250 | } else { 251 | core.setFailed('Failed') 252 | } 253 | } 254 | } 255 | 256 | run() 257 | -------------------------------------------------------------------------------- /dist/sourcemap-register.js: -------------------------------------------------------------------------------- 1 | (()=>{var e={650:e=>{var r=Object.prototype.toString;var n=typeof Buffer.alloc==="function"&&typeof Buffer.allocUnsafe==="function"&&typeof Buffer.from==="function";function isArrayBuffer(e){return r.call(e).slice(8,-1)==="ArrayBuffer"}function fromArrayBuffer(e,r,t){r>>>=0;var o=e.byteLength-r;if(o<0){throw new RangeError("'offset' is out of bounds")}if(t===undefined){t=o}else{t>>>=0;if(t>o){throw new RangeError("'length' is out of bounds")}}return n?Buffer.from(e.slice(r,r+t)):new Buffer(new Uint8Array(e.slice(r,r+t)))}function fromString(e,r){if(typeof r!=="string"||r===""){r="utf8"}if(!Buffer.isEncoding(r)){throw new TypeError('"encoding" must be a valid string encoding')}return n?Buffer.from(e,r):new Buffer(e,r)}function bufferFrom(e,r,t){if(typeof e==="number"){throw new TypeError('"value" argument must not be a number')}if(isArrayBuffer(e)){return fromArrayBuffer(e,r,t)}if(typeof e==="string"){return fromString(e,r)}return n?Buffer.from(e):new Buffer(e)}e.exports=bufferFrom},274:(e,r,n)=>{var t=n(339);var o=Object.prototype.hasOwnProperty;var i=typeof Map!=="undefined";function ArraySet(){this._array=[];this._set=i?new Map:Object.create(null)}ArraySet.fromArray=function ArraySet_fromArray(e,r){var n=new ArraySet;for(var t=0,o=e.length;t=0){return r}}else{var n=t.toSetString(e);if(o.call(this._set,n)){return this._set[n]}}throw new Error('"'+e+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(e){if(e>=0&&e{var t=n(190);var o=5;var i=1<>1;return r?-n:n}r.encode=function base64VLQ_encode(e){var r="";var n;var i=toVLQSigned(e);do{n=i&a;i>>>=o;if(i>0){n|=u}r+=t.encode(n)}while(i>0);return r};r.decode=function base64VLQ_decode(e,r,n){var i=e.length;var s=0;var l=0;var c,p;do{if(r>=i){throw new Error("Expected more digits in base 64 VLQ value.")}p=t.decode(e.charCodeAt(r++));if(p===-1){throw new Error("Invalid base64 digit: "+e.charAt(r-1))}c=!!(p&u);p&=a;s=s+(p<{var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");r.encode=function(e){if(0<=e&&e{r.GREATEST_LOWER_BOUND=1;r.LEAST_UPPER_BOUND=2;function recursiveSearch(e,n,t,o,i,a){var u=Math.floor((n-e)/2)+e;var s=i(t,o[u],true);if(s===0){return u}else if(s>0){if(n-u>1){return recursiveSearch(u,n,t,o,i,a)}if(a==r.LEAST_UPPER_BOUND){return n1){return recursiveSearch(e,u,t,o,i,a)}if(a==r.LEAST_UPPER_BOUND){return u}else{return e<0?-1:e}}}r.search=function search(e,n,t,o){if(n.length===0){return-1}var i=recursiveSearch(-1,n.length,e,n,t,o||r.GREATEST_LOWER_BOUND);if(i<0){return-1}while(i-1>=0){if(t(n[i],n[i-1],true)!==0){break}--i}return i}},680:(e,r,n)=>{var t=n(339);function generatedPositionAfter(e,r){var n=e.generatedLine;var o=r.generatedLine;var i=e.generatedColumn;var a=r.generatedColumn;return o>n||o==n&&a>=i||t.compareByGeneratedPositionsInflated(e,r)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(e,r){this._array.forEach(e,r)};MappingList.prototype.add=function MappingList_add(e){if(generatedPositionAfter(this._last,e)){this._last=e;this._array.push(e)}else{this._sorted=false;this._array.push(e)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(t.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};r.H=MappingList},758:(e,r)=>{function swap(e,r,n){var t=e[r];e[r]=e[n];e[n]=t}function randomIntInRange(e,r){return Math.round(e+Math.random()*(r-e))}function doQuickSort(e,r,n,t){if(n{var t;var o=n(339);var i=n(345);var a=n(274).I;var u=n(449);var s=n(758).U;function SourceMapConsumer(e,r){var n=e;if(typeof e==="string"){n=o.parseSourceMapInput(e)}return n.sections!=null?new IndexedSourceMapConsumer(n,r):new BasicSourceMapConsumer(n,r)}SourceMapConsumer.fromSourceMap=function(e,r){return BasicSourceMapConsumer.fromSourceMap(e,r)};SourceMapConsumer.prototype._version=3;SourceMapConsumer.prototype.__generatedMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){if(!this.__generatedMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__generatedMappings}});SourceMapConsumer.prototype.__originalMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){if(!this.__originalMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__originalMappings}});SourceMapConsumer.prototype._charIsMappingSeparator=function SourceMapConsumer_charIsMappingSeparator(e,r){var n=e.charAt(r);return n===";"||n===","};SourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(e,r){throw new Error("Subclasses must implement _parseMappings")};SourceMapConsumer.GENERATED_ORDER=1;SourceMapConsumer.ORIGINAL_ORDER=2;SourceMapConsumer.GREATEST_LOWER_BOUND=1;SourceMapConsumer.LEAST_UPPER_BOUND=2;SourceMapConsumer.prototype.eachMapping=function SourceMapConsumer_eachMapping(e,r,n){var t=r||null;var i=n||SourceMapConsumer.GENERATED_ORDER;var a;switch(i){case SourceMapConsumer.GENERATED_ORDER:a=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;a.map((function(e){var r=e.source===null?null:this._sources.at(e.source);r=o.computeSourceURL(u,r,this._sourceMapURL);return{source:r,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}}),this).forEach(e,t)};SourceMapConsumer.prototype.allGeneratedPositionsFor=function SourceMapConsumer_allGeneratedPositionsFor(e){var r=o.getArg(e,"line");var n={source:o.getArg(e,"source"),originalLine:r,originalColumn:o.getArg(e,"column",0)};n.source=this._findSourceIndex(n.source);if(n.source<0){return[]}var t=[];var a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",o.compareByOriginalPositions,i.LEAST_UPPER_BOUND);if(a>=0){var u=this._originalMappings[a];if(e.column===undefined){var s=u.originalLine;while(u&&u.originalLine===s){t.push({line:o.getArg(u,"generatedLine",null),column:o.getArg(u,"generatedColumn",null),lastColumn:o.getArg(u,"lastGeneratedColumn",null)});u=this._originalMappings[++a]}}else{var l=u.originalColumn;while(u&&u.originalLine===r&&u.originalColumn==l){t.push({line:o.getArg(u,"generatedLine",null),column:o.getArg(u,"generatedColumn",null),lastColumn:o.getArg(u,"lastGeneratedColumn",null)});u=this._originalMappings[++a]}}}return t};r.SourceMapConsumer=SourceMapConsumer;function BasicSourceMapConsumer(e,r){var n=e;if(typeof e==="string"){n=o.parseSourceMapInput(e)}var t=o.getArg(n,"version");var i=o.getArg(n,"sources");var u=o.getArg(n,"names",[]);var s=o.getArg(n,"sourceRoot",null);var l=o.getArg(n,"sourcesContent",null);var c=o.getArg(n,"mappings");var p=o.getArg(n,"file",null);if(t!=this._version){throw new Error("Unsupported version: "+t)}if(s){s=o.normalize(s)}i=i.map(String).map(o.normalize).map((function(e){return s&&o.isAbsolute(s)&&o.isAbsolute(e)?o.relative(s,e):e}));this._names=a.fromArray(u.map(String),true);this._sources=a.fromArray(i,true);this._absoluteSources=this._sources.toArray().map((function(e){return o.computeSourceURL(s,e,r)}));this.sourceRoot=s;this.sourcesContent=l;this._mappings=c;this._sourceMapURL=r;this.file=p}BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer;BasicSourceMapConsumer.prototype._findSourceIndex=function(e){var r=e;if(this.sourceRoot!=null){r=o.relative(this.sourceRoot,r)}if(this._sources.has(r)){return this._sources.indexOf(r)}var n;for(n=0;n1){v.source=l+_[1];l+=_[1];v.originalLine=i+_[2];i=v.originalLine;v.originalLine+=1;v.originalColumn=a+_[3];a=v.originalColumn;if(_.length>4){v.name=c+_[4];c+=_[4]}}m.push(v);if(typeof v.originalLine==="number"){d.push(v)}}}s(m,o.compareByGeneratedPositionsDeflated);this.__generatedMappings=m;s(d,o.compareByOriginalPositions);this.__originalMappings=d};BasicSourceMapConsumer.prototype._findMapping=function SourceMapConsumer_findMapping(e,r,n,t,o,a){if(e[n]<=0){throw new TypeError("Line must be greater than or equal to 1, got "+e[n])}if(e[t]<0){throw new TypeError("Column must be greater than or equal to 0, got "+e[t])}return i.search(e,r,o,a)};BasicSourceMapConsumer.prototype.computeColumnSpans=function SourceMapConsumer_computeColumnSpans(){for(var e=0;e=0){var t=this._generatedMappings[n];if(t.generatedLine===r.generatedLine){var i=o.getArg(t,"source",null);if(i!==null){i=this._sources.at(i);i=o.computeSourceURL(this.sourceRoot,i,this._sourceMapURL)}var a=o.getArg(t,"name",null);if(a!==null){a=this._names.at(a)}return{source:i,line:o.getArg(t,"originalLine",null),column:o.getArg(t,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function BasicSourceMapConsumer_hasContentsOfAllSources(){if(!this.sourcesContent){return false}return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return e==null}))};BasicSourceMapConsumer.prototype.sourceContentFor=function SourceMapConsumer_sourceContentFor(e,r){if(!this.sourcesContent){return null}var n=this._findSourceIndex(e);if(n>=0){return this.sourcesContent[n]}var t=e;if(this.sourceRoot!=null){t=o.relative(this.sourceRoot,t)}var i;if(this.sourceRoot!=null&&(i=o.urlParse(this.sourceRoot))){var a=t.replace(/^file:\/\//,"");if(i.scheme=="file"&&this._sources.has(a)){return this.sourcesContent[this._sources.indexOf(a)]}if((!i.path||i.path=="/")&&this._sources.has("/"+t)){return this.sourcesContent[this._sources.indexOf("/"+t)]}}if(r){return null}else{throw new Error('"'+t+'" is not in the SourceMap.')}};BasicSourceMapConsumer.prototype.generatedPositionFor=function SourceMapConsumer_generatedPositionFor(e){var r=o.getArg(e,"source");r=this._findSourceIndex(r);if(r<0){return{line:null,column:null,lastColumn:null}}var n={source:r,originalLine:o.getArg(e,"line"),originalColumn:o.getArg(e,"column")};var t=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",o.compareByOriginalPositions,o.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(t>=0){var i=this._originalMappings[t];if(i.source===n.source){return{line:o.getArg(i,"generatedLine",null),column:o.getArg(i,"generatedColumn",null),lastColumn:o.getArg(i,"lastGeneratedColumn",null)}}}return{line:null,column:null,lastColumn:null}};t=BasicSourceMapConsumer;function IndexedSourceMapConsumer(e,r){var n=e;if(typeof e==="string"){n=o.parseSourceMapInput(e)}var t=o.getArg(n,"version");var i=o.getArg(n,"sections");if(t!=this._version){throw new Error("Unsupported version: "+t)}this._sources=new a;this._names=new a;var u={line:-1,column:0};this._sections=i.map((function(e){if(e.url){throw new Error("Support for url field in sections not implemented.")}var n=o.getArg(e,"offset");var t=o.getArg(n,"line");var i=o.getArg(n,"column");if(t{var t=n(449);var o=n(339);var i=n(274).I;var a=n(680).H;function SourceMapGenerator(e){if(!e){e={}}this._file=o.getArg(e,"file",null);this._sourceRoot=o.getArg(e,"sourceRoot",null);this._skipValidation=o.getArg(e,"skipValidation",false);this._sources=new i;this._names=new i;this._mappings=new a;this._sourcesContents=null}SourceMapGenerator.prototype._version=3;SourceMapGenerator.fromSourceMap=function SourceMapGenerator_fromSourceMap(e){var r=e.sourceRoot;var n=new SourceMapGenerator({file:e.file,sourceRoot:r});e.eachMapping((function(e){var t={generated:{line:e.generatedLine,column:e.generatedColumn}};if(e.source!=null){t.source=e.source;if(r!=null){t.source=o.relative(r,t.source)}t.original={line:e.originalLine,column:e.originalColumn};if(e.name!=null){t.name=e.name}}n.addMapping(t)}));e.sources.forEach((function(t){var i=t;if(r!==null){i=o.relative(r,t)}if(!n._sources.has(i)){n._sources.add(i)}var a=e.sourceContentFor(t);if(a!=null){n.setSourceContent(t,a)}}));return n};SourceMapGenerator.prototype.addMapping=function SourceMapGenerator_addMapping(e){var r=o.getArg(e,"generated");var n=o.getArg(e,"original",null);var t=o.getArg(e,"source",null);var i=o.getArg(e,"name",null);if(!this._skipValidation){this._validateMapping(r,n,t,i)}if(t!=null){t=String(t);if(!this._sources.has(t)){this._sources.add(t)}}if(i!=null){i=String(i);if(!this._names.has(i)){this._names.add(i)}}this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:t,name:i})};SourceMapGenerator.prototype.setSourceContent=function SourceMapGenerator_setSourceContent(e,r){var n=e;if(this._sourceRoot!=null){n=o.relative(this._sourceRoot,n)}if(r!=null){if(!this._sourcesContents){this._sourcesContents=Object.create(null)}this._sourcesContents[o.toSetString(n)]=r}else if(this._sourcesContents){delete this._sourcesContents[o.toSetString(n)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};SourceMapGenerator.prototype.applySourceMap=function SourceMapGenerator_applySourceMap(e,r,n){var t=r;if(r==null){if(e.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}t=e.file}var a=this._sourceRoot;if(a!=null){t=o.relative(a,t)}var u=new i;var s=new i;this._mappings.unsortedForEach((function(r){if(r.source===t&&r.originalLine!=null){var i=e.originalPositionFor({line:r.originalLine,column:r.originalColumn});if(i.source!=null){r.source=i.source;if(n!=null){r.source=o.join(n,r.source)}if(a!=null){r.source=o.relative(a,r.source)}r.originalLine=i.line;r.originalColumn=i.column;if(i.name!=null){r.name=i.name}}}var l=r.source;if(l!=null&&!u.has(l)){u.add(l)}var c=r.name;if(c!=null&&!s.has(c)){s.add(c)}}),this);this._sources=u;this._names=s;e.sources.forEach((function(r){var t=e.sourceContentFor(r);if(t!=null){if(n!=null){r=o.join(n,r)}if(a!=null){r=o.relative(a,r)}this.setSourceContent(r,t)}}),this)};SourceMapGenerator.prototype._validateMapping=function SourceMapGenerator_validateMapping(e,r,n,t){if(r&&typeof r.line!=="number"&&typeof r.column!=="number"){throw new Error("original.line and original.column are not numbers -- you probably meant to omit "+"the original mapping entirely and only map the generated position. If so, pass "+"null for the original mapping instead of an object with empty or null values.")}if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!t){return}else if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n){return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:t}))}};SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){var e=0;var r=1;var n=0;var i=0;var a=0;var u=0;var s="";var l;var c;var p;var f;var g=this._mappings.toArray();for(var h=0,d=g.length;h0){if(!o.compareByGeneratedPositionsInflated(c,g[h-1])){continue}l+=","}}l+=t.encode(c.generatedColumn-e);e=c.generatedColumn;if(c.source!=null){f=this._sources.indexOf(c.source);l+=t.encode(f-u);u=f;l+=t.encode(c.originalLine-1-i);i=c.originalLine-1;l+=t.encode(c.originalColumn-n);n=c.originalColumn;if(c.name!=null){p=this._names.indexOf(c.name);l+=t.encode(p-a);a=p}}s+=l}return s};SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(e,r){return e.map((function(e){if(!this._sourcesContents){return null}if(r!=null){e=o.relative(r,e)}var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)};SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){e.file=this._file}if(this._sourceRoot!=null){e.sourceRoot=this._sourceRoot}if(this._sourcesContents){e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)}return e};SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON())};r.h=SourceMapGenerator},351:(e,r,n)=>{var t;var o=n(591).h;var i=n(339);var a=/(\r?\n)/;var u=10;var s="$$$isSourceNode$$$";function SourceNode(e,r,n,t,o){this.children=[];this.sourceContents={};this.line=e==null?null:e;this.column=r==null?null:r;this.source=n==null?null:n;this.name=o==null?null:o;this[s]=true;if(t!=null)this.add(t)}SourceNode.fromStringWithSourceMap=function SourceNode_fromStringWithSourceMap(e,r,n){var t=new SourceNode;var o=e.split(a);var u=0;var shiftNextLine=function(){var e=getNextLine();var r=getNextLine()||"";return e+r;function getNextLine(){return u=0;r--){this.prepend(e[r])}}else if(e[s]||typeof e==="string"){this.children.unshift(e)}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e)}return this};SourceNode.prototype.walk=function SourceNode_walk(e){var r;for(var n=0,t=this.children.length;n0){r=[];for(n=0;n{function getArg(e,r,n){if(r in e){return e[r]}else if(arguments.length===3){return n}else{throw new Error('"'+r+'" is a required argument.')}}r.getArg=getArg;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;var t=/^data:.+\,.+$/;function urlParse(e){var r=e.match(n);if(!r){return null}return{scheme:r[1],auth:r[2],host:r[3],port:r[4],path:r[5]}}r.urlParse=urlParse;function urlGenerate(e){var r="";if(e.scheme){r+=e.scheme+":"}r+="//";if(e.auth){r+=e.auth+"@"}if(e.host){r+=e.host}if(e.port){r+=":"+e.port}if(e.path){r+=e.path}return r}r.urlGenerate=urlGenerate;function normalize(e){var n=e;var t=urlParse(e);if(t){if(!t.path){return e}n=t.path}var o=r.isAbsolute(n);var i=n.split(/\/+/);for(var a,u=0,s=i.length-1;s>=0;s--){a=i[s];if(a==="."){i.splice(s,1)}else if(a===".."){u++}else if(u>0){if(a===""){i.splice(s+1,u);u=0}else{i.splice(s,2);u--}}}n=i.join("/");if(n===""){n=o?"/":"."}if(t){t.path=n;return urlGenerate(t)}return n}r.normalize=normalize;function join(e,r){if(e===""){e="."}if(r===""){r="."}var n=urlParse(r);var o=urlParse(e);if(o){e=o.path||"/"}if(n&&!n.scheme){if(o){n.scheme=o.scheme}return urlGenerate(n)}if(n||r.match(t)){return r}if(o&&!o.host&&!o.path){o.host=r;return urlGenerate(o)}var i=r.charAt(0)==="/"?r:normalize(e.replace(/\/+$/,"")+"/"+r);if(o){o.path=i;return urlGenerate(o)}return i}r.join=join;r.isAbsolute=function(e){return e.charAt(0)==="/"||n.test(e)};function relative(e,r){if(e===""){e="."}e=e.replace(/\/$/,"");var n=0;while(r.indexOf(e+"/")!==0){var t=e.lastIndexOf("/");if(t<0){return r}e=e.slice(0,t);if(e.match(/^([^\/]+:\/)?\/*$/)){return r}++n}return Array(n+1).join("../")+r.substr(e.length+1)}r.relative=relative;var o=function(){var e=Object.create(null);return!("__proto__"in e)}();function identity(e){return e}function toSetString(e){if(isProtoString(e)){return"$"+e}return e}r.toSetString=o?identity:toSetString;function fromSetString(e){if(isProtoString(e)){return e.slice(1)}return e}r.fromSetString=o?identity:fromSetString;function isProtoString(e){if(!e){return false}var r=e.length;if(r<9){return false}if(e.charCodeAt(r-1)!==95||e.charCodeAt(r-2)!==95||e.charCodeAt(r-3)!==111||e.charCodeAt(r-4)!==116||e.charCodeAt(r-5)!==111||e.charCodeAt(r-6)!==114||e.charCodeAt(r-7)!==112||e.charCodeAt(r-8)!==95||e.charCodeAt(r-9)!==95){return false}for(var n=r-10;n>=0;n--){if(e.charCodeAt(n)!==36){return false}}return true}function compareByOriginalPositions(e,r,n){var t=strcmp(e.source,r.source);if(t!==0){return t}t=e.originalLine-r.originalLine;if(t!==0){return t}t=e.originalColumn-r.originalColumn;if(t!==0||n){return t}t=e.generatedColumn-r.generatedColumn;if(t!==0){return t}t=e.generatedLine-r.generatedLine;if(t!==0){return t}return strcmp(e.name,r.name)}r.compareByOriginalPositions=compareByOriginalPositions;function compareByGeneratedPositionsDeflated(e,r,n){var t=e.generatedLine-r.generatedLine;if(t!==0){return t}t=e.generatedColumn-r.generatedColumn;if(t!==0||n){return t}t=strcmp(e.source,r.source);if(t!==0){return t}t=e.originalLine-r.originalLine;if(t!==0){return t}t=e.originalColumn-r.originalColumn;if(t!==0){return t}return strcmp(e.name,r.name)}r.compareByGeneratedPositionsDeflated=compareByGeneratedPositionsDeflated;function strcmp(e,r){if(e===r){return 0}if(e===null){return 1}if(r===null){return-1}if(e>r){return 1}return-1}function compareByGeneratedPositionsInflated(e,r){var n=e.generatedLine-r.generatedLine;if(n!==0){return n}n=e.generatedColumn-r.generatedColumn;if(n!==0){return n}n=strcmp(e.source,r.source);if(n!==0){return n}n=e.originalLine-r.originalLine;if(n!==0){return n}n=e.originalColumn-r.originalColumn;if(n!==0){return n}return strcmp(e.name,r.name)}r.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated;function parseSourceMapInput(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}r.parseSourceMapInput=parseSourceMapInput;function computeSourceURL(e,r,n){r=r||"";if(e){if(e[e.length-1]!=="/"&&r[0]!=="/"){e+="/"}r=e+r}if(n){var t=urlParse(n);if(!t){throw new Error("sourceMapURL could not be parsed")}if(t.path){var o=t.path.lastIndexOf("/");if(o>=0){t.path=t.path.substring(0,o+1)}}r=join(urlGenerate(t),r)}return normalize(r)}r.computeSourceURL=computeSourceURL},997:(e,r,n)=>{n(591).h;r.SourceMapConsumer=n(952).SourceMapConsumer;n(351)},284:(e,r,n)=>{e=n.nmd(e);var t=n(997).SourceMapConsumer;var o=n(17);var i;try{i=n(147);if(!i.existsSync||!i.readFileSync){i=null}}catch(e){}var a=n(650);function dynamicRequire(e,r){return e.require(r)}var u=false;var s=false;var l=false;var c="auto";var p={};var f={};var g=/^data:application\/json[^,]+base64,/;var h=[];var d=[];function isInBrowser(){if(c==="browser")return true;if(c==="node")return false;return typeof window!=="undefined"&&typeof XMLHttpRequest==="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function hasGlobalProcessEventEmitter(){return typeof process==="object"&&process!==null&&typeof process.on==="function"}function globalProcessVersion(){if(typeof process==="object"&&process!==null){return process.version}else{return""}}function globalProcessStderr(){if(typeof process==="object"&&process!==null){return process.stderr}}function globalProcessExit(e){if(typeof process==="object"&&process!==null&&typeof process.exit==="function"){return process.exit(e)}}function handlerExec(e){return function(r){for(var n=0;n"}var n=this.getLineNumber();if(n!=null){r+=":"+n;var t=this.getColumnNumber();if(t){r+=":"+t}}}var o="";var i=this.getFunctionName();var a=true;var u=this.isConstructor();var s=!(this.isToplevel()||u);if(s){var l=this.getTypeName();if(l==="[object Object]"){l="null"}var c=this.getMethodName();if(i){if(l&&i.indexOf(l)!=0){o+=l+"."}o+=i;if(c&&i.indexOf("."+c)!=i.length-c.length-1){o+=" [as "+c+"]"}}else{o+=l+"."+(c||"")}}else if(u){o+="new "+(i||"")}else if(i){o+=i}else{o+=r;a=false}if(a){o+=" ("+r+")"}return o}function cloneCallSite(e){var r={};Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(n){r[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n]}));r.toString=CallSiteToString;return r}function wrapCallSite(e,r){if(r===undefined){r={nextPosition:null,curPosition:null}}if(e.isNative()){r.curPosition=null;return e}var n=e.getFileName()||e.getScriptNameOrSourceURL();if(n){var t=e.getLineNumber();var o=e.getColumnNumber()-1;var i=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/;var a=i.test(globalProcessVersion())?0:62;if(t===1&&o>a&&!isInBrowser()&&!e.isEval()){o-=a}var u=mapSourcePosition({source:n,line:t,column:o});r.curPosition=u;e=cloneCallSite(e);var s=e.getFunctionName;e.getFunctionName=function(){if(r.nextPosition==null){return s()}return r.nextPosition.name||s()};e.getFileName=function(){return u.source};e.getLineNumber=function(){return u.line};e.getColumnNumber=function(){return u.column+1};e.getScriptNameOrSourceURL=function(){return u.source};return e}var l=e.isEval()&&e.getEvalOrigin();if(l){l=mapEvalOrigin(l);e=cloneCallSite(e);e.getEvalOrigin=function(){return l};return e}return e}function prepareStackTrace(e,r){if(l){p={};f={}}var n=e.name||"Error";var t=e.message||"";var o=n+": "+t;var i={nextPosition:null,curPosition:null};var a=[];for(var u=r.length-1;u>=0;u--){a.push("\n at "+wrapCallSite(r[u],i));i.nextPosition=i.curPosition}i.curPosition=i.nextPosition=null;return o+a.reverse().join("")}function getErrorSource(e){var r=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(r){var n=r[1];var t=+r[2];var o=+r[3];var a=p[n];if(!a&&i&&i.existsSync(n)){try{a=i.readFileSync(n,"utf8")}catch(e){a=""}}if(a){var u=a.split(/(?:\r\n|\r|\n)/)[t-1];if(u){return n+":"+t+"\n"+u+"\n"+new Array(o).join(" ")+"^"}}}return null}function printErrorAndExit(e){var r=getErrorSource(e);var n=globalProcessStderr();if(n&&n._handle&&n._handle.setBlocking){n._handle.setBlocking(true)}if(r){console.error();console.error(r)}console.error(e.stack);globalProcessExit(1)}function shimEmitUncaughtException(){var e=process.emit;process.emit=function(r){if(r==="uncaughtException"){var n=arguments[1]&&arguments[1].stack;var t=this.listeners(r).length>0;if(n&&!t){return printErrorAndExit(arguments[1])}}return e.apply(this,arguments)}}var S=h.slice(0);var _=d.slice(0);r.wrapCallSite=wrapCallSite;r.getErrorSource=getErrorSource;r.mapSourcePosition=mapSourcePosition;r.retrieveSourceMap=v;r.install=function(r){r=r||{};if(r.environment){c=r.environment;if(["node","browser","auto"].indexOf(c)===-1){throw new Error("environment "+c+" was unknown. Available options are {auto, browser, node}")}}if(r.retrieveFile){if(r.overrideRetrieveFile){h.length=0}h.unshift(r.retrieveFile)}if(r.retrieveSourceMap){if(r.overrideRetrieveSourceMap){d.length=0}d.unshift(r.retrieveSourceMap)}if(r.hookRequire&&!isInBrowser()){var n=dynamicRequire(e,"module");var t=n.prototype._compile;if(!t.__sourceMapSupport){n.prototype._compile=function(e,r){p[r]=e;f[r]=undefined;return t.call(this,e,r)};n.prototype._compile.__sourceMapSupport=true}}if(!l){l="emptyCacheBetweenOperations"in r?r.emptyCacheBetweenOperations:false}if(!u){u=true;Error.prepareStackTrace=prepareStackTrace}if(!s){var o="handleUncaughtExceptions"in r?r.handleUncaughtExceptions:true;try{var i=dynamicRequire(e,"worker_threads");if(i.isMainThread===false){o=false}}catch(e){}if(o&&hasGlobalProcessEventEmitter()){s=true;shimEmitUncaughtException()}}};r.resetRetrieveHandlers=function(){h.length=0;d.length=0;h=S.slice(0);d=_.slice(0);v=handlerExec(d);m=handlerExec(h)}},147:e=>{"use strict";e.exports=require("fs")},17:e=>{"use strict";e.exports=require("path")}};var r={};function __webpack_require__(n){var t=r[n];if(t!==undefined){return t.exports}var o=r[n]={id:n,loaded:false,exports:{}};var i=true;try{e[n](o,o.exports,__webpack_require__);i=false}finally{if(i)delete r[n]}o.loaded=true;return o.exports}(()=>{__webpack_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __webpack_require__!=="undefined")__webpack_require__.ab=__dirname+"/";var n={};(()=>{__webpack_require__(284).install()})();module.exports=n})(); -------------------------------------------------------------------------------- /dist/licenses.txt: -------------------------------------------------------------------------------- 1 | @actions/core 2 | MIT 3 | The MIT License (MIT) 4 | 5 | Copyright 2019 GitHub 6 | 7 | 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: 8 | 9 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 10 | 11 | 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. 12 | 13 | @actions/github 14 | MIT 15 | The MIT License (MIT) 16 | 17 | Copyright 2019 GitHub 18 | 19 | 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: 20 | 21 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 22 | 23 | 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. 24 | 25 | @actions/http-client 26 | MIT 27 | Actions Http Client for Node.js 28 | 29 | Copyright (c) GitHub, Inc. 30 | 31 | All rights reserved. 32 | 33 | MIT License 34 | 35 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 36 | associated documentation files (the "Software"), to deal in the Software without restriction, 37 | including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, 38 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, 39 | subject to the following conditions: 40 | 41 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 42 | 43 | THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 44 | LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN 45 | NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 46 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 47 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 48 | 49 | 50 | @octokit/auth-token 51 | MIT 52 | The MIT License 53 | 54 | Copyright (c) 2019 Octokit contributors 55 | 56 | Permission is hereby granted, free of charge, to any person obtaining a copy 57 | of this software and associated documentation files (the "Software"), to deal 58 | in the Software without restriction, including without limitation the rights 59 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 60 | copies of the Software, and to permit persons to whom the Software is 61 | furnished to do so, subject to the following conditions: 62 | 63 | The above copyright notice and this permission notice shall be included in 64 | all copies or substantial portions of the Software. 65 | 66 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 67 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 68 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 69 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 70 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 71 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 72 | THE SOFTWARE. 73 | 74 | 75 | @octokit/core 76 | MIT 77 | The MIT License 78 | 79 | Copyright (c) 2019 Octokit contributors 80 | 81 | Permission is hereby granted, free of charge, to any person obtaining a copy 82 | of this software and associated documentation files (the "Software"), to deal 83 | in the Software without restriction, including without limitation the rights 84 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 85 | copies of the Software, and to permit persons to whom the Software is 86 | furnished to do so, subject to the following conditions: 87 | 88 | The above copyright notice and this permission notice shall be included in 89 | all copies or substantial portions of the Software. 90 | 91 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 92 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 93 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 94 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 95 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 96 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 97 | THE SOFTWARE. 98 | 99 | 100 | @octokit/endpoint 101 | MIT 102 | The MIT License 103 | 104 | Copyright (c) 2018 Octokit contributors 105 | 106 | Permission is hereby granted, free of charge, to any person obtaining a copy 107 | of this software and associated documentation files (the "Software"), to deal 108 | in the Software without restriction, including without limitation the rights 109 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 110 | copies of the Software, and to permit persons to whom the Software is 111 | furnished to do so, subject to the following conditions: 112 | 113 | The above copyright notice and this permission notice shall be included in 114 | all copies or substantial portions of the Software. 115 | 116 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 117 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 118 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 119 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 120 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 121 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 122 | THE SOFTWARE. 123 | 124 | 125 | @octokit/graphql 126 | MIT 127 | The MIT License 128 | 129 | Copyright (c) 2018 Octokit contributors 130 | 131 | Permission is hereby granted, free of charge, to any person obtaining a copy 132 | of this software and associated documentation files (the "Software"), to deal 133 | in the Software without restriction, including without limitation the rights 134 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 135 | copies of the Software, and to permit persons to whom the Software is 136 | furnished to do so, subject to the following conditions: 137 | 138 | The above copyright notice and this permission notice shall be included in 139 | all copies or substantial portions of the Software. 140 | 141 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 142 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 143 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 144 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 145 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 146 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 147 | THE SOFTWARE. 148 | 149 | 150 | @octokit/plugin-paginate-rest 151 | MIT 152 | MIT License Copyright (c) 2019 Octokit contributors 153 | 154 | 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: 155 | 156 | The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. 157 | 158 | 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. 159 | 160 | 161 | @octokit/plugin-request-log 162 | MIT 163 | MIT License Copyright (c) 2020 Octokit contributors 164 | 165 | 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: 166 | 167 | The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. 168 | 169 | 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. 170 | 171 | 172 | @octokit/plugin-rest-endpoint-methods 173 | MIT 174 | MIT License Copyright (c) 2019 Octokit contributors 175 | 176 | 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: 177 | 178 | The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. 179 | 180 | 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. 181 | 182 | 183 | @octokit/request 184 | MIT 185 | The MIT License 186 | 187 | Copyright (c) 2018 Octokit contributors 188 | 189 | Permission is hereby granted, free of charge, to any person obtaining a copy 190 | of this software and associated documentation files (the "Software"), to deal 191 | in the Software without restriction, including without limitation the rights 192 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 193 | copies of the Software, and to permit persons to whom the Software is 194 | furnished to do so, subject to the following conditions: 195 | 196 | The above copyright notice and this permission notice shall be included in 197 | all copies or substantial portions of the Software. 198 | 199 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 200 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 201 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 202 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 203 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 204 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 205 | THE SOFTWARE. 206 | 207 | 208 | @octokit/request-error 209 | MIT 210 | The MIT License 211 | 212 | Copyright (c) 2019 Octokit contributors 213 | 214 | Permission is hereby granted, free of charge, to any person obtaining a copy 215 | of this software and associated documentation files (the "Software"), to deal 216 | in the Software without restriction, including without limitation the rights 217 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 218 | copies of the Software, and to permit persons to whom the Software is 219 | furnished to do so, subject to the following conditions: 220 | 221 | The above copyright notice and this permission notice shall be included in 222 | all copies or substantial portions of the Software. 223 | 224 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 225 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 226 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 227 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 228 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 229 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 230 | THE SOFTWARE. 231 | 232 | 233 | @octokit/rest 234 | MIT 235 | The MIT License 236 | 237 | Copyright (c) 2012 Cloud9 IDE, Inc. (Mike de Boer) 238 | Copyright (c) 2017-2018 Octokit contributors 239 | 240 | Permission is hereby granted, free of charge, to any person obtaining a copy 241 | of this software and associated documentation files (the "Software"), to deal 242 | in the Software without restriction, including without limitation the rights 243 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 244 | copies of the Software, and to permit persons to whom the Software is 245 | furnished to do so, subject to the following conditions: 246 | 247 | The above copyright notice and this permission notice shall be included in 248 | all copies or substantial portions of the Software. 249 | 250 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 251 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 252 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 253 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 254 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 255 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 256 | THE SOFTWARE. 257 | 258 | 259 | @vercel/ncc 260 | MIT 261 | Copyright 2018 ZEIT, Inc. 262 | 263 | 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: 264 | 265 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 266 | 267 | 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. 268 | 269 | before-after-hook 270 | Apache-2.0 271 | Apache License 272 | Version 2.0, January 2004 273 | http://www.apache.org/licenses/ 274 | 275 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 276 | 277 | 1. Definitions. 278 | 279 | "License" shall mean the terms and conditions for use, reproduction, 280 | and distribution as defined by Sections 1 through 9 of this document. 281 | 282 | "Licensor" shall mean the copyright owner or entity authorized by 283 | the copyright owner that is granting the License. 284 | 285 | "Legal Entity" shall mean the union of the acting entity and all 286 | other entities that control, are controlled by, or are under common 287 | control with that entity. For the purposes of this definition, 288 | "control" means (i) the power, direct or indirect, to cause the 289 | direction or management of such entity, whether by contract or 290 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 291 | outstanding shares, or (iii) beneficial ownership of such entity. 292 | 293 | "You" (or "Your") shall mean an individual or Legal Entity 294 | exercising permissions granted by this License. 295 | 296 | "Source" form shall mean the preferred form for making modifications, 297 | including but not limited to software source code, documentation 298 | source, and configuration files. 299 | 300 | "Object" form shall mean any form resulting from mechanical 301 | transformation or translation of a Source form, including but 302 | not limited to compiled object code, generated documentation, 303 | and conversions to other media types. 304 | 305 | "Work" shall mean the work of authorship, whether in Source or 306 | Object form, made available under the License, as indicated by a 307 | copyright notice that is included in or attached to the work 308 | (an example is provided in the Appendix below). 309 | 310 | "Derivative Works" shall mean any work, whether in Source or Object 311 | form, that is based on (or derived from) the Work and for which the 312 | editorial revisions, annotations, elaborations, or other modifications 313 | represent, as a whole, an original work of authorship. For the purposes 314 | of this License, Derivative Works shall not include works that remain 315 | separable from, or merely link (or bind by name) to the interfaces of, 316 | the Work and Derivative Works thereof. 317 | 318 | "Contribution" shall mean any work of authorship, including 319 | the original version of the Work and any modifications or additions 320 | to that Work or Derivative Works thereof, that is intentionally 321 | submitted to Licensor for inclusion in the Work by the copyright owner 322 | or by an individual or Legal Entity authorized to submit on behalf of 323 | the copyright owner. For the purposes of this definition, "submitted" 324 | means any form of electronic, verbal, or written communication sent 325 | to the Licensor or its representatives, including but not limited to 326 | communication on electronic mailing lists, source code control systems, 327 | and issue tracking systems that are managed by, or on behalf of, the 328 | Licensor for the purpose of discussing and improving the Work, but 329 | excluding communication that is conspicuously marked or otherwise 330 | designated in writing by the copyright owner as "Not a Contribution." 331 | 332 | "Contributor" shall mean Licensor and any individual or Legal Entity 333 | on behalf of whom a Contribution has been received by Licensor and 334 | subsequently incorporated within the Work. 335 | 336 | 2. Grant of Copyright License. Subject to the terms and conditions of 337 | this License, each Contributor hereby grants to You a perpetual, 338 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 339 | copyright license to reproduce, prepare Derivative Works of, 340 | publicly display, publicly perform, sublicense, and distribute the 341 | Work and such Derivative Works in Source or Object form. 342 | 343 | 3. Grant of Patent License. Subject to the terms and conditions of 344 | this License, each Contributor hereby grants to You a perpetual, 345 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 346 | (except as stated in this section) patent license to make, have made, 347 | use, offer to sell, sell, import, and otherwise transfer the Work, 348 | where such license applies only to those patent claims licensable 349 | by such Contributor that are necessarily infringed by their 350 | Contribution(s) alone or by combination of their Contribution(s) 351 | with the Work to which such Contribution(s) was submitted. If You 352 | institute patent litigation against any entity (including a 353 | cross-claim or counterclaim in a lawsuit) alleging that the Work 354 | or a Contribution incorporated within the Work constitutes direct 355 | or contributory patent infringement, then any patent licenses 356 | granted to You under this License for that Work shall terminate 357 | as of the date such litigation is filed. 358 | 359 | 4. Redistribution. You may reproduce and distribute copies of the 360 | Work or Derivative Works thereof in any medium, with or without 361 | modifications, and in Source or Object form, provided that You 362 | meet the following conditions: 363 | 364 | (a) You must give any other recipients of the Work or 365 | Derivative Works a copy of this License; and 366 | 367 | (b) You must cause any modified files to carry prominent notices 368 | stating that You changed the files; and 369 | 370 | (c) You must retain, in the Source form of any Derivative Works 371 | that You distribute, all copyright, patent, trademark, and 372 | attribution notices from the Source form of the Work, 373 | excluding those notices that do not pertain to any part of 374 | the Derivative Works; and 375 | 376 | (d) If the Work includes a "NOTICE" text file as part of its 377 | distribution, then any Derivative Works that You distribute must 378 | include a readable copy of the attribution notices contained 379 | within such NOTICE file, excluding those notices that do not 380 | pertain to any part of the Derivative Works, in at least one 381 | of the following places: within a NOTICE text file distributed 382 | as part of the Derivative Works; within the Source form or 383 | documentation, if provided along with the Derivative Works; or, 384 | within a display generated by the Derivative Works, if and 385 | wherever such third-party notices normally appear. The contents 386 | of the NOTICE file are for informational purposes only and 387 | do not modify the License. You may add Your own attribution 388 | notices within Derivative Works that You distribute, alongside 389 | or as an addendum to the NOTICE text from the Work, provided 390 | that such additional attribution notices cannot be construed 391 | as modifying the License. 392 | 393 | You may add Your own copyright statement to Your modifications and 394 | may provide additional or different license terms and conditions 395 | for use, reproduction, or distribution of Your modifications, or 396 | for any such Derivative Works as a whole, provided Your use, 397 | reproduction, and distribution of the Work otherwise complies with 398 | the conditions stated in this License. 399 | 400 | 5. Submission of Contributions. Unless You explicitly state otherwise, 401 | any Contribution intentionally submitted for inclusion in the Work 402 | by You to the Licensor shall be under the terms and conditions of 403 | this License, without any additional terms or conditions. 404 | Notwithstanding the above, nothing herein shall supersede or modify 405 | the terms of any separate license agreement you may have executed 406 | with Licensor regarding such Contributions. 407 | 408 | 6. Trademarks. This License does not grant permission to use the trade 409 | names, trademarks, service marks, or product names of the Licensor, 410 | except as required for reasonable and customary use in describing the 411 | origin of the Work and reproducing the content of the NOTICE file. 412 | 413 | 7. Disclaimer of Warranty. Unless required by applicable law or 414 | agreed to in writing, Licensor provides the Work (and each 415 | Contributor provides its Contributions) on an "AS IS" BASIS, 416 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 417 | implied, including, without limitation, any warranties or conditions 418 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 419 | PARTICULAR PURPOSE. You are solely responsible for determining the 420 | appropriateness of using or redistributing the Work and assume any 421 | risks associated with Your exercise of permissions under this License. 422 | 423 | 8. Limitation of Liability. In no event and under no legal theory, 424 | whether in tort (including negligence), contract, or otherwise, 425 | unless required by applicable law (such as deliberate and grossly 426 | negligent acts) or agreed to in writing, shall any Contributor be 427 | liable to You for damages, including any direct, indirect, special, 428 | incidental, or consequential damages of any character arising as a 429 | result of this License or out of the use or inability to use the 430 | Work (including but not limited to damages for loss of goodwill, 431 | work stoppage, computer failure or malfunction, or any and all 432 | other commercial damages or losses), even if such Contributor 433 | has been advised of the possibility of such damages. 434 | 435 | 9. Accepting Warranty or Additional Liability. While redistributing 436 | the Work or Derivative Works thereof, You may choose to offer, 437 | and charge a fee for, acceptance of support, warranty, indemnity, 438 | or other liability obligations and/or rights consistent with this 439 | License. However, in accepting such obligations, You may act only 440 | on Your own behalf and on Your sole responsibility, not on behalf 441 | of any other Contributor, and only if You agree to indemnify, 442 | defend, and hold each Contributor harmless for any liability 443 | incurred by, or claims asserted against, such Contributor by reason 444 | of your accepting any such warranty or additional liability. 445 | 446 | END OF TERMS AND CONDITIONS 447 | 448 | APPENDIX: How to apply the Apache License to your work. 449 | 450 | To apply the Apache License to your work, attach the following 451 | boilerplate notice, with the fields enclosed by brackets "{}" 452 | replaced with your own identifying information. (Don't include 453 | the brackets!) The text should be enclosed in the appropriate 454 | comment syntax for the file format. We also recommend that a 455 | file or class name and description of purpose be included on the 456 | same "printed page" as the copyright notice for easier 457 | identification within third-party archives. 458 | 459 | Copyright 2018 Gregor Martynus and other contributors. 460 | 461 | Licensed under the Apache License, Version 2.0 (the "License"); 462 | you may not use this file except in compliance with the License. 463 | You may obtain a copy of the License at 464 | 465 | http://www.apache.org/licenses/LICENSE-2.0 466 | 467 | Unless required by applicable law or agreed to in writing, software 468 | distributed under the License is distributed on an "AS IS" BASIS, 469 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 470 | See the License for the specific language governing permissions and 471 | limitations under the License. 472 | 473 | 474 | deprecation 475 | ISC 476 | The ISC License 477 | 478 | Copyright (c) Gregor Martynus and contributors 479 | 480 | Permission to use, copy, modify, and/or distribute this software for any 481 | purpose with or without fee is hereby granted, provided that the above 482 | copyright notice and this permission notice appear in all copies. 483 | 484 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 485 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 486 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 487 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 488 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 489 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 490 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 491 | 492 | 493 | is-plain-object 494 | MIT 495 | The MIT License (MIT) 496 | 497 | Copyright (c) 2014-2017, Jon Schlinkert. 498 | 499 | Permission is hereby granted, free of charge, to any person obtaining a copy 500 | of this software and associated documentation files (the "Software"), to deal 501 | in the Software without restriction, including without limitation the rights 502 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 503 | copies of the Software, and to permit persons to whom the Software is 504 | furnished to do so, subject to the following conditions: 505 | 506 | The above copyright notice and this permission notice shall be included in 507 | all copies or substantial portions of the Software. 508 | 509 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 510 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 511 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 512 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 513 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 514 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 515 | THE SOFTWARE. 516 | 517 | 518 | node-fetch 519 | MIT 520 | The MIT License (MIT) 521 | 522 | Copyright (c) 2016 David Frank 523 | 524 | Permission is hereby granted, free of charge, to any person obtaining a copy 525 | of this software and associated documentation files (the "Software"), to deal 526 | in the Software without restriction, including without limitation the rights 527 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 528 | copies of the Software, and to permit persons to whom the Software is 529 | furnished to do so, subject to the following conditions: 530 | 531 | The above copyright notice and this permission notice shall be included in all 532 | copies or substantial portions of the Software. 533 | 534 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 535 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 536 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 537 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 538 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 539 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 540 | SOFTWARE. 541 | 542 | 543 | 544 | once 545 | ISC 546 | The ISC License 547 | 548 | Copyright (c) Isaac Z. Schlueter and Contributors 549 | 550 | Permission to use, copy, modify, and/or distribute this software for any 551 | purpose with or without fee is hereby granted, provided that the above 552 | copyright notice and this permission notice appear in all copies. 553 | 554 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 555 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 556 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 557 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 558 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 559 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 560 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 561 | 562 | 563 | tr46 564 | MIT 565 | 566 | tunnel 567 | MIT 568 | The MIT License (MIT) 569 | 570 | Copyright (c) 2012 Koichi Kobayashi 571 | 572 | Permission is hereby granted, free of charge, to any person obtaining a copy 573 | of this software and associated documentation files (the "Software"), to deal 574 | in the Software without restriction, including without limitation the rights 575 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 576 | copies of the Software, and to permit persons to whom the Software is 577 | furnished to do so, subject to the following conditions: 578 | 579 | The above copyright notice and this permission notice shall be included in 580 | all copies or substantial portions of the Software. 581 | 582 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 583 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 584 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 585 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 586 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 587 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 588 | THE SOFTWARE. 589 | 590 | 591 | universal-user-agent 592 | ISC 593 | # [ISC License](https://spdx.org/licenses/ISC) 594 | 595 | Copyright (c) 2018, Gregor Martynus (https://github.com/gr2m) 596 | 597 | Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. 598 | 599 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 600 | 601 | 602 | uuid 603 | MIT 604 | The MIT License (MIT) 605 | 606 | Copyright (c) 2010-2020 Robert Kieffer and other contributors 607 | 608 | 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: 609 | 610 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 611 | 612 | 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. 613 | 614 | 615 | webidl-conversions 616 | BSD-2-Clause 617 | # The BSD 2-Clause License 618 | 619 | Copyright (c) 2014, Domenic Denicola 620 | All rights reserved. 621 | 622 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 623 | 624 | 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 625 | 626 | 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 627 | 628 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 629 | 630 | 631 | whatwg-url 632 | MIT 633 | The MIT License (MIT) 634 | 635 | Copyright (c) 2015–2016 Sebastian Mayr 636 | 637 | Permission is hereby granted, free of charge, to any person obtaining a copy 638 | of this software and associated documentation files (the "Software"), to deal 639 | in the Software without restriction, including without limitation the rights 640 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 641 | copies of the Software, and to permit persons to whom the Software is 642 | furnished to do so, subject to the following conditions: 643 | 644 | The above copyright notice and this permission notice shall be included in 645 | all copies or substantial portions of the Software. 646 | 647 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 648 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 649 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 650 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 651 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 652 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 653 | THE SOFTWARE. 654 | 655 | 656 | wrappy 657 | ISC 658 | The ISC License 659 | 660 | Copyright (c) Isaac Z. Schlueter and Contributors 661 | 662 | Permission to use, copy, modify, and/or distribute this software for any 663 | purpose with or without fee is hereby granted, provided that the above 664 | copyright notice and this permission notice appear in all copies. 665 | 666 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 667 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 668 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 669 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 670 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 671 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 672 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 673 | --------------------------------------------------------------------------------