mirror of
				https://gitea.com/actions/setup-node.git
				synced 2025-10-29 15:52:42 +08:00 
			
		
		
		
	Compare commits
	
		
			15 Commits
		
	
	
		
			v2.4.1
			...
			thboop/nod
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					6d709998c7 | ||
| 
						 | 
					5784c79d41 | ||
| 
						 | 
					558ef89cd9 | ||
| 
						 | 
					f099707f6e | ||
| 
						 | 
					f658dc5bd7 | ||
| 
						 | 
					5e2e068714 | ||
| 
						 | 
					7a0f7a9962 | ||
| 
						 | 
					7b558676dd | ||
| 
						 | 
					1f8c6b94b2 | ||
| 
						 | 
					9a74eb4e64 | ||
| 
						 | 
					04c56d2f95 | ||
| 
						 | 
					d08cf22211 | ||
| 
						 | 
					360ab8b75b | ||
| 
						 | 
					fd4bd829f2 | ||
| 
						 | 
					a4b8ed2f4e | 
							
								
								
									
										38
									
								
								.github/ISSUE_TEMPLATE/bug_report.md
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								.github/ISSUE_TEMPLATE/bug_report.md
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,38 @@
 | 
			
		||||
---
 | 
			
		||||
name: Bug report
 | 
			
		||||
about: Create a bug report
 | 
			
		||||
title: ''
 | 
			
		||||
labels: bug, needs triage
 | 
			
		||||
assignees: ''
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
<!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 --->
 | 
			
		||||
<!--- Before opening up a new bug report, please make sure to check for similar existing issues -->
 | 
			
		||||
 | 
			
		||||
**Description:**
 | 
			
		||||
A clear and concise description of what the bug is.
 | 
			
		||||
 | 
			
		||||
**Action version:**
 | 
			
		||||
Specify the action version
 | 
			
		||||
 | 
			
		||||
**Platform:**
 | 
			
		||||
- [ ] Ubuntu
 | 
			
		||||
- [ ] macOS
 | 
			
		||||
- [ ] Windows
 | 
			
		||||
 | 
			
		||||
**Runner type:**
 | 
			
		||||
- [ ] Hosted
 | 
			
		||||
- [ ] Self-hosted
 | 
			
		||||
 | 
			
		||||
**Tools version:**
 | 
			
		||||
<!--- Please specify versions of node and package manager (npm, yarn, pnpm and etc)-->
 | 
			
		||||
 | 
			
		||||
**Repro steps:**  
 | 
			
		||||
A description with steps to reproduce the issue. If you have a public example or repo to share, please provide the link.
 | 
			
		||||
 | 
			
		||||
**Expected behavior:**
 | 
			
		||||
A description of what you expected to happen.
 | 
			
		||||
 | 
			
		||||
**Actual behavior:**
 | 
			
		||||
A description of what is actually happening.
 | 
			
		||||
							
								
								
									
										1
									
								
								.github/ISSUE_TEMPLATE/config.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.github/ISSUE_TEMPLATE/config.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
blank_issues_enabled: false
 | 
			
		||||
							
								
								
									
										18
									
								
								.github/ISSUE_TEMPLATE/feature_request.md
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								.github/ISSUE_TEMPLATE/feature_request.md
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
---
 | 
			
		||||
name: Feature request
 | 
			
		||||
about: Suggest an idea for this project
 | 
			
		||||
title: ''
 | 
			
		||||
labels: feature request, needs triage
 | 
			
		||||
assignees: ''
 | 
			
		||||
---
 | 
			
		||||
<!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 --->
 | 
			
		||||
<!--- Before opening up a new feature request, please make sure to check for similar existing issues and pull requests -->
 | 
			
		||||
 | 
			
		||||
**Description:**
 | 
			
		||||
Describe your proposal.
 | 
			
		||||
 | 
			
		||||
**Justification:**
 | 
			
		||||
Justification or a use case for your proposal.
 | 
			
		||||
 | 
			
		||||
**Are you willing to submit a PR?**
 | 
			
		||||
<!--- We accept contributions! -->
 | 
			
		||||
							
								
								
									
										9
									
								
								.github/pull_request_template.md
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								.github/pull_request_template.md
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
**Description:**
 | 
			
		||||
Describe your changes.
 | 
			
		||||
 | 
			
		||||
**Related issue:**
 | 
			
		||||
Add link to the related issue.
 | 
			
		||||
 | 
			
		||||
**Check list:**
 | 
			
		||||
- [ ] Mark if documentation changes are required.
 | 
			
		||||
- [ ] Mark if tests were added or updated to cover the changes.
 | 
			
		||||
							
								
								
									
										5
									
								
								.github/workflows/build-test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/build-test.yml
									
									
									
									
										vendored
									
									
								
							@@ -19,10 +19,11 @@ jobs:
 | 
			
		||||
        os: [ubuntu-latest, windows-latest, macos-latest]
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v2
 | 
			
		||||
      - name: Setup node 12
 | 
			
		||||
      - name: Setup node 16
 | 
			
		||||
        uses: actions/setup-node@v2
 | 
			
		||||
        with:
 | 
			
		||||
          node-version: 12.x
 | 
			
		||||
          node-version: 16.x
 | 
			
		||||
          cache: npm
 | 
			
		||||
      - run: npm ci
 | 
			
		||||
      - run: npm run build
 | 
			
		||||
      - run: npm run format-check
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										7
									
								
								.github/workflows/check-dist.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/check-dist.yml
									
									
									
									
										vendored
									
									
								
							@@ -23,10 +23,11 @@ jobs:
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v2
 | 
			
		||||
 | 
			
		||||
      - name: Set Node.js 12.x
 | 
			
		||||
        uses: actions/setup-node@v1
 | 
			
		||||
      - name: Set Node.js 16.x
 | 
			
		||||
        uses: actions/setup-node@v2
 | 
			
		||||
        with:
 | 
			
		||||
          node-version: 12.x
 | 
			
		||||
          node-version: 16.x
 | 
			
		||||
          cache: npm
 | 
			
		||||
 | 
			
		||||
      - name: Install dependencies
 | 
			
		||||
        run: npm ci
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								.github/workflows/licensed.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/licensed.yml
									
									
									
									
										vendored
									
									
								
							@@ -18,7 +18,7 @@ jobs:
 | 
			
		||||
      - name: Install licensed
 | 
			
		||||
        run: |
 | 
			
		||||
          cd $RUNNER_TEMP
 | 
			
		||||
          curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.12.2/licensed-2.12.2-linux-x64.tar.gz
 | 
			
		||||
          curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/3.3.1/licensed-3.3.1-linux-x64.tar.gz
 | 
			
		||||
          sudo tar -xzf licensed.tar.gz
 | 
			
		||||
          sudo mv licensed /usr/local/bin/licensed
 | 
			
		||||
      - run: licensed status
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										6
									
								
								.github/workflows/proxy.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/proxy.yml
									
									
									
									
										vendored
									
									
								
							@@ -6,7 +6,7 @@ on:
 | 
			
		||||
      - '**.md'
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - master
 | 
			
		||||
      - main
 | 
			
		||||
      - releases/*
 | 
			
		||||
    paths-ignore:
 | 
			
		||||
      - '**.md'
 | 
			
		||||
@@ -14,8 +14,6 @@ on:
 | 
			
		||||
jobs:
 | 
			
		||||
  test-proxy:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    strategy:    
 | 
			
		||||
      fail-fast: false    
 | 
			
		||||
    container:
 | 
			
		||||
      image: ubuntu:latest
 | 
			
		||||
      options: --dns 127.0.0.1
 | 
			
		||||
@@ -39,8 +37,6 @@ jobs:
 | 
			
		||||
 | 
			
		||||
  test-bypass-proxy:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    strategy:    
 | 
			
		||||
      fail-fast: false
 | 
			
		||||
    env:
 | 
			
		||||
      https_proxy: http://no-such-proxy:3128
 | 
			
		||||
      no_proxy: api.github.com,github.com,nodejs.org,registry.npmjs.org,*.s3.amazonaws.com,s3.amazonaws.com
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										15
									
								
								.github/workflows/versions.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/versions.yml
									
									
									
									
										vendored
									
									
								
							@@ -78,6 +78,21 @@ jobs:
 | 
			
		||||
        run: __tests__/verify-node.sh "${{ matrix.node-version }}"
 | 
			
		||||
        shell: bash
 | 
			
		||||
 | 
			
		||||
  version-file:
 | 
			
		||||
    runs-on: ${{ matrix.os }}
 | 
			
		||||
    strategy:
 | 
			
		||||
      fail-fast: false
 | 
			
		||||
      matrix:
 | 
			
		||||
        os: [ubuntu-latest, windows-latest, macos-latest]
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v2
 | 
			
		||||
      - name: Setup node from node version file
 | 
			
		||||
        uses: ./
 | 
			
		||||
        with:
 | 
			
		||||
          node-version-file: '__tests__/data/.nvmrc'
 | 
			
		||||
      - name: Verify node
 | 
			
		||||
        run: __tests__/verify-node.sh 14
 | 
			
		||||
 | 
			
		||||
  node-dist:
 | 
			
		||||
    runs-on: ${{ matrix.os }}
 | 
			
		||||
    strategy:
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								.licenses/npm/@actions/cache.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								.licenses/npm/@actions/cache.dep.yml
									
									
									
										generated
									
									
									
								
							@@ -1,6 +1,6 @@
 | 
			
		||||
---
 | 
			
		||||
name: "@actions/cache"
 | 
			
		||||
version: 1.0.7
 | 
			
		||||
version: 1.0.8
 | 
			
		||||
type: npm
 | 
			
		||||
summary: Actions cache lib
 | 
			
		||||
homepage: https://github.com/actions/toolkit/tree/main/packages/cache
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
---
 | 
			
		||||
name: "@actions/core"
 | 
			
		||||
version: 1.2.6
 | 
			
		||||
version: 1.6.0
 | 
			
		||||
type: npm
 | 
			
		||||
summary: Actions core lib
 | 
			
		||||
homepage: https://github.com/actions/toolkit/tree/main/packages/core
 | 
			
		||||
							
								
								
									
										32
									
								
								.licenses/npm/@actions/http-client-1.0.6.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										32
									
								
								.licenses/npm/@actions/http-client-1.0.6.dep.yml
									
									
									
										generated
									
									
									
								
							@@ -1,32 +0,0 @@
 | 
			
		||||
---
 | 
			
		||||
name: "@actions/http-client"
 | 
			
		||||
version: 1.0.6
 | 
			
		||||
type: npm
 | 
			
		||||
summary: Actions Http Client
 | 
			
		||||
homepage: https://github.com/actions/http-client#readme
 | 
			
		||||
license: mit
 | 
			
		||||
licenses:
 | 
			
		||||
- sources: LICENSE
 | 
			
		||||
  text: |
 | 
			
		||||
    Actions Http Client for Node.js
 | 
			
		||||
 | 
			
		||||
    Copyright (c) GitHub, Inc.
 | 
			
		||||
 | 
			
		||||
    All rights reserved.
 | 
			
		||||
 | 
			
		||||
    MIT License
 | 
			
		||||
 | 
			
		||||
    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
 | 
			
		||||
    associated documentation files (the "Software"), to deal in the Software without restriction,
 | 
			
		||||
    including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
 | 
			
		||||
    and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
 | 
			
		||||
    subject to the following conditions:
 | 
			
		||||
 | 
			
		||||
    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 | 
			
		||||
 | 
			
		||||
    THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 | 
			
		||||
    LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
 | 
			
		||||
    NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 | 
			
		||||
    WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 | 
			
		||||
    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 | 
			
		||||
notices: []
 | 
			
		||||
							
								
								
									
										4
									
								
								.licenses/npm/@azure/core-auth.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								.licenses/npm/@azure/core-auth.dep.yml
									
									
									
										generated
									
									
									
								
							@@ -1,10 +1,10 @@
 | 
			
		||||
---
 | 
			
		||||
name: "@azure/core-auth"
 | 
			
		||||
version: 1.3.0
 | 
			
		||||
version: 1.3.2
 | 
			
		||||
type: npm
 | 
			
		||||
summary: Provides low-level interfaces and helper methods for authentication in Azure
 | 
			
		||||
  SDK
 | 
			
		||||
homepage: https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/core/core-auth/README.md
 | 
			
		||||
homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-auth/README.md
 | 
			
		||||
license: mit
 | 
			
		||||
licenses:
 | 
			
		||||
- sources: LICENSE
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								.licenses/npm/@azure/core-http.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								.licenses/npm/@azure/core-http.dep.yml
									
									
									
										generated
									
									
									
								
							@@ -1,10 +1,10 @@
 | 
			
		||||
---
 | 
			
		||||
name: "@azure/core-http"
 | 
			
		||||
version: 1.2.6
 | 
			
		||||
version: 2.2.2
 | 
			
		||||
type: npm
 | 
			
		||||
summary: Isomorphic client Runtime for Typescript/node.js/browser javascript client
 | 
			
		||||
  libraries generated using AutoRest
 | 
			
		||||
homepage: https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/core/core-http/README.md
 | 
			
		||||
homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-http/README.md
 | 
			
		||||
license: mit
 | 
			
		||||
licenses:
 | 
			
		||||
- sources: LICENSE
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										7
									
								
								.licenses/npm/@azure/core-lro.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										7
									
								
								.licenses/npm/@azure/core-lro.dep.yml
									
									
									
										generated
									
									
									
								
							@@ -1,9 +1,10 @@
 | 
			
		||||
---
 | 
			
		||||
name: "@azure/core-lro"
 | 
			
		||||
version: 1.0.5
 | 
			
		||||
version: 2.2.1
 | 
			
		||||
type: npm
 | 
			
		||||
summary: LRO Polling strtegy for the Azure SDK in TypeScript
 | 
			
		||||
homepage: https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/core/core-lro/README.md
 | 
			
		||||
summary: Isomorphic client library for supporting long-running operations in node.js
 | 
			
		||||
  and browser.
 | 
			
		||||
homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-lro/README.md
 | 
			
		||||
license: mit
 | 
			
		||||
licenses:
 | 
			
		||||
- sources: LICENSE
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								.licenses/npm/@azure/core-paging.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								.licenses/npm/@azure/core-paging.dep.yml
									
									
									
										generated
									
									
									
								
							@@ -1,9 +1,9 @@
 | 
			
		||||
---
 | 
			
		||||
name: "@azure/core-paging"
 | 
			
		||||
version: 1.1.3
 | 
			
		||||
version: 1.2.0
 | 
			
		||||
type: npm
 | 
			
		||||
summary: Core types for paging async iterable iterators
 | 
			
		||||
homepage: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/core-paging/README.md
 | 
			
		||||
homepage: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-paging/README.md
 | 
			
		||||
license: mit
 | 
			
		||||
licenses:
 | 
			
		||||
- sources: LICENSE
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								.licenses/npm/@azure/core-tracing.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								.licenses/npm/@azure/core-tracing.dep.yml
									
									
									
										generated
									
									
									
								
							@@ -1,9 +1,9 @@
 | 
			
		||||
---
 | 
			
		||||
name: "@azure/core-tracing"
 | 
			
		||||
version: 1.0.0-preview.11
 | 
			
		||||
version: 1.0.0-preview.13
 | 
			
		||||
type: npm
 | 
			
		||||
summary: Provides low-level interfaces and helper methods for tracing in Azure SDK
 | 
			
		||||
homepage: https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/core/core-tracing/README.md
 | 
			
		||||
homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-tracing/README.md
 | 
			
		||||
license: mit
 | 
			
		||||
licenses:
 | 
			
		||||
- sources: LICENSE
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								.licenses/npm/@azure/logger.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								.licenses/npm/@azure/logger.dep.yml
									
									
									
										generated
									
									
									
								
							@@ -1,9 +1,9 @@
 | 
			
		||||
---
 | 
			
		||||
name: "@azure/logger"
 | 
			
		||||
version: 1.0.2
 | 
			
		||||
version: 1.0.3
 | 
			
		||||
type: npm
 | 
			
		||||
summary: Microsoft Azure SDK for JavaScript - Logger
 | 
			
		||||
homepage: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger/README.md
 | 
			
		||||
homepage: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger/README.md
 | 
			
		||||
license: mit
 | 
			
		||||
licenses:
 | 
			
		||||
- sources: LICENSE
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								.licenses/npm/@azure/ms-rest-js.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								.licenses/npm/@azure/ms-rest-js.dep.yml
									
									
									
										generated
									
									
									
								
							@@ -1,6 +1,6 @@
 | 
			
		||||
---
 | 
			
		||||
name: "@azure/ms-rest-js"
 | 
			
		||||
version: 2.5.2
 | 
			
		||||
version: 2.6.0
 | 
			
		||||
type: npm
 | 
			
		||||
summary: Isomorphic client Runtime for Typescript/node.js/browser javascript client
 | 
			
		||||
  libraries generated using AutoRest
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								.licenses/npm/@azure/storage-blob.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								.licenses/npm/@azure/storage-blob.dep.yml
									
									
									
										generated
									
									
									
								
							@@ -1,9 +1,9 @@
 | 
			
		||||
---
 | 
			
		||||
name: "@azure/storage-blob"
 | 
			
		||||
version: 12.6.0
 | 
			
		||||
version: 12.8.0
 | 
			
		||||
type: npm
 | 
			
		||||
summary: Microsoft Azure Storage SDK for JavaScript - Blob
 | 
			
		||||
homepage: https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/storage/storage-blob/
 | 
			
		||||
homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-blob/
 | 
			
		||||
license: mit
 | 
			
		||||
licenses:
 | 
			
		||||
- sources: LICENSE
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										226
									
								
								.licenses/npm/@opencensus/web-types.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										226
									
								
								.licenses/npm/@opencensus/web-types.dep.yml
									
									
									
										generated
									
									
									
								
							@@ -1,226 +0,0 @@
 | 
			
		||||
---
 | 
			
		||||
name: "@opencensus/web-types"
 | 
			
		||||
version: 0.0.7
 | 
			
		||||
type: npm
 | 
			
		||||
summary: OpenCensus Web types is a slightly-patched copy of the `types.ts` files from
 | 
			
		||||
  `@opencensus/core` so that they can be easily imported in web-specific packages.
 | 
			
		||||
homepage: https://github.com/census-instrumentation/opencensus-web#readme
 | 
			
		||||
license: apache-2.0
 | 
			
		||||
licenses:
 | 
			
		||||
- sources: LICENSE
 | 
			
		||||
  text: |2
 | 
			
		||||
 | 
			
		||||
                                     Apache License
 | 
			
		||||
                               Version 2.0, January 2004
 | 
			
		||||
                            http://www.apache.org/licenses/
 | 
			
		||||
 | 
			
		||||
       TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
 | 
			
		||||
 | 
			
		||||
       1. Definitions.
 | 
			
		||||
 | 
			
		||||
          "License" shall mean the terms and conditions for use, reproduction,
 | 
			
		||||
          and distribution as defined by Sections 1 through 9 of this document.
 | 
			
		||||
 | 
			
		||||
          "Licensor" shall mean the copyright owner or entity authorized by
 | 
			
		||||
          the copyright owner that is granting the License.
 | 
			
		||||
 | 
			
		||||
          "Legal Entity" shall mean the union of the acting entity and all
 | 
			
		||||
          other entities that control, are controlled by, or are under common
 | 
			
		||||
          control with that entity. For the purposes of this definition,
 | 
			
		||||
          "control" means (i) the power, direct or indirect, to cause the
 | 
			
		||||
          direction or management of such entity, whether by contract or
 | 
			
		||||
          otherwise, or (ii) ownership of fifty percent (50%) or more of the
 | 
			
		||||
          outstanding shares, or (iii) beneficial ownership of such entity.
 | 
			
		||||
 | 
			
		||||
          "You" (or "Your") shall mean an individual or Legal Entity
 | 
			
		||||
          exercising permissions granted by this License.
 | 
			
		||||
 | 
			
		||||
          "Source" form shall mean the preferred form for making modifications,
 | 
			
		||||
          including but not limited to software source code, documentation
 | 
			
		||||
          source, and configuration files.
 | 
			
		||||
 | 
			
		||||
          "Object" form shall mean any form resulting from mechanical
 | 
			
		||||
          transformation or translation of a Source form, including but
 | 
			
		||||
          not limited to compiled object code, generated documentation,
 | 
			
		||||
          and conversions to other media types.
 | 
			
		||||
 | 
			
		||||
          "Work" shall mean the work of authorship, whether in Source or
 | 
			
		||||
          Object form, made available under the License, as indicated by a
 | 
			
		||||
          copyright notice that is included in or attached to the work
 | 
			
		||||
          (an example is provided in the Appendix below).
 | 
			
		||||
 | 
			
		||||
          "Derivative Works" shall mean any work, whether in Source or Object
 | 
			
		||||
          form, that is based on (or derived from) the Work and for which the
 | 
			
		||||
          editorial revisions, annotations, elaborations, or other modifications
 | 
			
		||||
          represent, as a whole, an original work of authorship. For the purposes
 | 
			
		||||
          of this License, Derivative Works shall not include works that remain
 | 
			
		||||
          separable from, or merely link (or bind by name) to the interfaces of,
 | 
			
		||||
          the Work and Derivative Works thereof.
 | 
			
		||||
 | 
			
		||||
          "Contribution" shall mean any work of authorship, including
 | 
			
		||||
          the original version of the Work and any modifications or additions
 | 
			
		||||
          to that Work or Derivative Works thereof, that is intentionally
 | 
			
		||||
          submitted to Licensor for inclusion in the Work by the copyright owner
 | 
			
		||||
          or by an individual or Legal Entity authorized to submit on behalf of
 | 
			
		||||
          the copyright owner. For the purposes of this definition, "submitted"
 | 
			
		||||
          means any form of electronic, verbal, or written communication sent
 | 
			
		||||
          to the Licensor or its representatives, including but not limited to
 | 
			
		||||
          communication on electronic mailing lists, source code control systems,
 | 
			
		||||
          and issue tracking systems that are managed by, or on behalf of, the
 | 
			
		||||
          Licensor for the purpose of discussing and improving the Work, but
 | 
			
		||||
          excluding communication that is conspicuously marked or otherwise
 | 
			
		||||
          designated in writing by the copyright owner as "Not a Contribution."
 | 
			
		||||
 | 
			
		||||
          "Contributor" shall mean Licensor and any individual or Legal Entity
 | 
			
		||||
          on behalf of whom a Contribution has been received by Licensor and
 | 
			
		||||
          subsequently incorporated within the Work.
 | 
			
		||||
 | 
			
		||||
       2. Grant of Copyright License. Subject to the terms and conditions of
 | 
			
		||||
          this License, each Contributor hereby grants to You a perpetual,
 | 
			
		||||
          worldwide, non-exclusive, no-charge, royalty-free, irrevocable
 | 
			
		||||
          copyright license to reproduce, prepare Derivative Works of,
 | 
			
		||||
          publicly display, publicly perform, sublicense, and distribute the
 | 
			
		||||
          Work and such Derivative Works in Source or Object form.
 | 
			
		||||
 | 
			
		||||
       3. Grant of Patent License. Subject to the terms and conditions of
 | 
			
		||||
          this License, each Contributor hereby grants to You a perpetual,
 | 
			
		||||
          worldwide, non-exclusive, no-charge, royalty-free, irrevocable
 | 
			
		||||
          (except as stated in this section) patent license to make, have made,
 | 
			
		||||
          use, offer to sell, sell, import, and otherwise transfer the Work,
 | 
			
		||||
          where such license applies only to those patent claims licensable
 | 
			
		||||
          by such Contributor that are necessarily infringed by their
 | 
			
		||||
          Contribution(s) alone or by combination of their Contribution(s)
 | 
			
		||||
          with the Work to which such Contribution(s) was submitted. If You
 | 
			
		||||
          institute patent litigation against any entity (including a
 | 
			
		||||
          cross-claim or counterclaim in a lawsuit) alleging that the Work
 | 
			
		||||
          or a Contribution incorporated within the Work constitutes direct
 | 
			
		||||
          or contributory patent infringement, then any patent licenses
 | 
			
		||||
          granted to You under this License for that Work shall terminate
 | 
			
		||||
          as of the date such litigation is filed.
 | 
			
		||||
 | 
			
		||||
       4. Redistribution. You may reproduce and distribute copies of the
 | 
			
		||||
          Work or Derivative Works thereof in any medium, with or without
 | 
			
		||||
          modifications, and in Source or Object form, provided that You
 | 
			
		||||
          meet the following conditions:
 | 
			
		||||
 | 
			
		||||
          (a) You must give any other recipients of the Work or
 | 
			
		||||
              Derivative Works a copy of this License; and
 | 
			
		||||
 | 
			
		||||
          (b) You must cause any modified files to carry prominent notices
 | 
			
		||||
              stating that You changed the files; and
 | 
			
		||||
 | 
			
		||||
          (c) You must retain, in the Source form of any Derivative Works
 | 
			
		||||
              that You distribute, all copyright, patent, trademark, and
 | 
			
		||||
              attribution notices from the Source form of the Work,
 | 
			
		||||
              excluding those notices that do not pertain to any part of
 | 
			
		||||
              the Derivative Works; and
 | 
			
		||||
 | 
			
		||||
          (d) If the Work includes a "NOTICE" text file as part of its
 | 
			
		||||
              distribution, then any Derivative Works that You distribute must
 | 
			
		||||
              include a readable copy of the attribution notices contained
 | 
			
		||||
              within such NOTICE file, excluding those notices that do not
 | 
			
		||||
              pertain to any part of the Derivative Works, in at least one
 | 
			
		||||
              of the following places: within a NOTICE text file distributed
 | 
			
		||||
              as part of the Derivative Works; within the Source form or
 | 
			
		||||
              documentation, if provided along with the Derivative Works; or,
 | 
			
		||||
              within a display generated by the Derivative Works, if and
 | 
			
		||||
              wherever such third-party notices normally appear. The contents
 | 
			
		||||
              of the NOTICE file are for informational purposes only and
 | 
			
		||||
              do not modify the License. You may add Your own attribution
 | 
			
		||||
              notices within Derivative Works that You distribute, alongside
 | 
			
		||||
              or as an addendum to the NOTICE text from the Work, provided
 | 
			
		||||
              that such additional attribution notices cannot be construed
 | 
			
		||||
              as modifying the License.
 | 
			
		||||
 | 
			
		||||
          You may add Your own copyright statement to Your modifications and
 | 
			
		||||
          may provide additional or different license terms and conditions
 | 
			
		||||
          for use, reproduction, or distribution of Your modifications, or
 | 
			
		||||
          for any such Derivative Works as a whole, provided Your use,
 | 
			
		||||
          reproduction, and distribution of the Work otherwise complies with
 | 
			
		||||
          the conditions stated in this License.
 | 
			
		||||
 | 
			
		||||
       5. Submission of Contributions. Unless You explicitly state otherwise,
 | 
			
		||||
          any Contribution intentionally submitted for inclusion in the Work
 | 
			
		||||
          by You to the Licensor shall be under the terms and conditions of
 | 
			
		||||
          this License, without any additional terms or conditions.
 | 
			
		||||
          Notwithstanding the above, nothing herein shall supersede or modify
 | 
			
		||||
          the terms of any separate license agreement you may have executed
 | 
			
		||||
          with Licensor regarding such Contributions.
 | 
			
		||||
 | 
			
		||||
       6. Trademarks. This License does not grant permission to use the trade
 | 
			
		||||
          names, trademarks, service marks, or product names of the Licensor,
 | 
			
		||||
          except as required for reasonable and customary use in describing the
 | 
			
		||||
          origin of the Work and reproducing the content of the NOTICE file.
 | 
			
		||||
 | 
			
		||||
       7. Disclaimer of Warranty. Unless required by applicable law or
 | 
			
		||||
          agreed to in writing, Licensor provides the Work (and each
 | 
			
		||||
          Contributor provides its Contributions) on an "AS IS" BASIS,
 | 
			
		||||
          WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 | 
			
		||||
          implied, including, without limitation, any warranties or conditions
 | 
			
		||||
          of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
 | 
			
		||||
          PARTICULAR PURPOSE. You are solely responsible for determining the
 | 
			
		||||
          appropriateness of using or redistributing the Work and assume any
 | 
			
		||||
          risks associated with Your exercise of permissions under this License.
 | 
			
		||||
 | 
			
		||||
       8. Limitation of Liability. In no event and under no legal theory,
 | 
			
		||||
          whether in tort (including negligence), contract, or otherwise,
 | 
			
		||||
          unless required by applicable law (such as deliberate and grossly
 | 
			
		||||
          negligent acts) or agreed to in writing, shall any Contributor be
 | 
			
		||||
          liable to You for damages, including any direct, indirect, special,
 | 
			
		||||
          incidental, or consequential damages of any character arising as a
 | 
			
		||||
          result of this License or out of the use or inability to use the
 | 
			
		||||
          Work (including but not limited to damages for loss of goodwill,
 | 
			
		||||
          work stoppage, computer failure or malfunction, or any and all
 | 
			
		||||
          other commercial damages or losses), even if such Contributor
 | 
			
		||||
          has been advised of the possibility of such damages.
 | 
			
		||||
 | 
			
		||||
       9. Accepting Warranty or Additional Liability. While redistributing
 | 
			
		||||
          the Work or Derivative Works thereof, You may choose to offer,
 | 
			
		||||
          and charge a fee for, acceptance of support, warranty, indemnity,
 | 
			
		||||
          or other liability obligations and/or rights consistent with this
 | 
			
		||||
          License. However, in accepting such obligations, You may act only
 | 
			
		||||
          on Your own behalf and on Your sole responsibility, not on behalf
 | 
			
		||||
          of any other Contributor, and only if You agree to indemnify,
 | 
			
		||||
          defend, and hold each Contributor harmless for any liability
 | 
			
		||||
          incurred by, or claims asserted against, such Contributor by reason
 | 
			
		||||
          of your accepting any such warranty or additional liability.
 | 
			
		||||
 | 
			
		||||
       END OF TERMS AND CONDITIONS
 | 
			
		||||
 | 
			
		||||
       APPENDIX: How to apply the Apache License to your work.
 | 
			
		||||
 | 
			
		||||
          To apply the Apache License to your work, attach the following
 | 
			
		||||
          boilerplate notice, with the fields enclosed by brackets "[]"
 | 
			
		||||
          replaced with your own identifying information. (Don't include
 | 
			
		||||
          the brackets!)  The text should be enclosed in the appropriate
 | 
			
		||||
          comment syntax for the file format. We also recommend that a
 | 
			
		||||
          file or class name and description of purpose be included on the
 | 
			
		||||
          same "printed page" as the copyright notice for easier
 | 
			
		||||
          identification within third-party archives.
 | 
			
		||||
 | 
			
		||||
       Copyright [yyyy] [name of copyright owner]
 | 
			
		||||
 | 
			
		||||
       Licensed under the Apache License, Version 2.0 (the "License");
 | 
			
		||||
       you may not use this file except in compliance with the License.
 | 
			
		||||
       You may obtain a copy of the License at
 | 
			
		||||
 | 
			
		||||
           http://www.apache.org/licenses/LICENSE-2.0
 | 
			
		||||
 | 
			
		||||
       Unless required by applicable law or agreed to in writing, software
 | 
			
		||||
       distributed under the License is distributed on an "AS IS" BASIS,
 | 
			
		||||
       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
			
		||||
       See the License for the specific language governing permissions and
 | 
			
		||||
       limitations under the License.
 | 
			
		||||
- sources: README.md
 | 
			
		||||
  text: |-
 | 
			
		||||
    Apache 2.0 - See [LICENSE][license-url] for more information.
 | 
			
		||||
 | 
			
		||||
    [gitter-image]: https://badges.gitter.im/census-instrumentation/lobby.svg
 | 
			
		||||
    [gitter-url]: https://gitter.im/census-instrumentation/lobby
 | 
			
		||||
    [opencensus-core-url]: https://github.com/census-instrumentation/opencensus-node/tree/master/packages/opencensus-core
 | 
			
		||||
    [oc-web-readme-url]: https://github.com/census-instrumentation/opencensus-web/blob/master/README.md
 | 
			
		||||
    [license-url]: https://github.com/census-instrumentation/opencensus-web/blob/master/packages/opencensus-web-instrumentation-perf/LICENSE
 | 
			
		||||
    [rules-typescript-url]: https://github.com/bazelbuild/rules_typescript
 | 
			
		||||
    [tsickle-url]: https://github.com/angular/tsickle
 | 
			
		||||
    [closure-url]: https://github.com/google/closure-compiler
 | 
			
		||||
notices: []
 | 
			
		||||
							
								
								
									
										7
									
								
								.licenses/npm/@opentelemetry/api.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										7
									
								
								.licenses/npm/@opentelemetry/api.dep.yml
									
									
									
										generated
									
									
									
								
							@@ -1,6 +1,6 @@
 | 
			
		||||
---
 | 
			
		||||
name: "@opentelemetry/api"
 | 
			
		||||
version: 1.0.0-rc.0
 | 
			
		||||
version: 1.0.3
 | 
			
		||||
type: npm
 | 
			
		||||
summary: Public API for OpenTelemetry
 | 
			
		||||
homepage: https://github.com/open-telemetry/opentelemetry-js-api#readme
 | 
			
		||||
@@ -218,13 +218,12 @@ licenses:
 | 
			
		||||
    [discussions-url]: https://github.com/open-telemetry/opentelemetry-js/discussions
 | 
			
		||||
    [license-url]: https://github.com/open-telemetry/opentelemetry-js-api/blob/main/LICENSE
 | 
			
		||||
    [license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat
 | 
			
		||||
    [dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-api/status.svg
 | 
			
		||||
    [dependencies-image]: https://status.david-dm.org/gh/open-telemetry/opentelemetry-js-api.svg
 | 
			
		||||
    [dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-api
 | 
			
		||||
    [devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js-api/dev-status.svg
 | 
			
		||||
    [devDependencies-image]: https://status.david-dm.org/gh/open-telemetry/opentelemetry-js-api.svg?type=dev
 | 
			
		||||
    [devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-api?type=dev
 | 
			
		||||
    [npm-url]: https://www.npmjs.com/package/@opentelemetry/api
 | 
			
		||||
    [npm-img]: https://badge.fury.io/js/%40opentelemetry%2Fapi.svg
 | 
			
		||||
 | 
			
		||||
    [docs-tracing]: https://github.com/open-telemetry/opentelemetry-js-api/blob/main/docs/tracing.md
 | 
			
		||||
    [docs-sdk-registration]: https://github.com/open-telemetry/opentelemetry-js-api/blob/main/docs/sdk-registration.md
 | 
			
		||||
notices: []
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								.licenses/npm/@types/node-fetch.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								.licenses/npm/@types/node-fetch.dep.yml
									
									
									
										generated
									
									
									
								
							@@ -1,9 +1,9 @@
 | 
			
		||||
---
 | 
			
		||||
name: "@types/node-fetch"
 | 
			
		||||
version: 2.5.10
 | 
			
		||||
version: 2.5.12
 | 
			
		||||
type: npm
 | 
			
		||||
summary: TypeScript definitions for node-fetch
 | 
			
		||||
homepage: https://github.com/DefinitelyTyped/DefinitelyTyped#readme
 | 
			
		||||
homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-fetch
 | 
			
		||||
license: mit
 | 
			
		||||
licenses:
 | 
			
		||||
- sources: LICENSE
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										42
									
								
								.licenses/npm/@types/tunnel.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										42
									
								
								.licenses/npm/@types/tunnel.dep.yml
									
									
									
										generated
									
									
									
								
							@@ -1,26 +1,32 @@
 | 
			
		||||
---
 | 
			
		||||
name: "@types/tunnel"
 | 
			
		||||
version: 0.0.1
 | 
			
		||||
version: 0.0.3
 | 
			
		||||
type: npm
 | 
			
		||||
summary: TypeScript definitions for tunnel
 | 
			
		||||
homepage: https://github.com/DefinitelyTyped/DefinitelyTyped#readme
 | 
			
		||||
homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tunnel
 | 
			
		||||
license: mit
 | 
			
		||||
licenses:
 | 
			
		||||
- sources: LICENSE
 | 
			
		||||
  text: "    MIT License\r\n\r\n    Copyright (c) Microsoft Corporation. All rights
 | 
			
		||||
    reserved.\r\n\r\n    Permission is hereby granted, free of charge, to any person
 | 
			
		||||
    obtaining a copy\r\n    of this software and associated documentation files (the
 | 
			
		||||
    \"Software\"), to deal\r\n    in the Software without restriction, including without
 | 
			
		||||
    limitation the rights\r\n    to use, copy, modify, merge, publish, distribute,
 | 
			
		||||
    sublicense, and/or sell\r\n    copies of the Software, and to permit persons to
 | 
			
		||||
    whom the Software is\r\n    furnished to do so, subject to the following conditions:\r\n\r\n
 | 
			
		||||
    \   The above copyright notice and this permission notice shall be included in
 | 
			
		||||
    all\r\n    copies or substantial portions of the Software.\r\n\r\n    THE SOFTWARE
 | 
			
		||||
    IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n    IMPLIED,
 | 
			
		||||
    INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n    FITNESS
 | 
			
		||||
    FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n    AUTHORS
 | 
			
		||||
    OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n    LIABILITY,
 | 
			
		||||
    WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n    OUT
 | 
			
		||||
    OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\n
 | 
			
		||||
    \   SOFTWARE\r\n"
 | 
			
		||||
  text: |2
 | 
			
		||||
        MIT License
 | 
			
		||||
 | 
			
		||||
        Copyright (c) Microsoft Corporation.
 | 
			
		||||
 | 
			
		||||
        Permission is hereby granted, free of charge, to any person obtaining a copy
 | 
			
		||||
        of this software and associated documentation files (the "Software"), to deal
 | 
			
		||||
        in the Software without restriction, including without limitation the rights
 | 
			
		||||
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 | 
			
		||||
        copies of the Software, and to permit persons to whom the Software is
 | 
			
		||||
        furnished to do so, subject to the following conditions:
 | 
			
		||||
 | 
			
		||||
        The above copyright notice and this permission notice shall be included in all
 | 
			
		||||
        copies or substantial portions of the Software.
 | 
			
		||||
 | 
			
		||||
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 | 
			
		||||
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 | 
			
		||||
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 | 
			
		||||
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 | 
			
		||||
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 | 
			
		||||
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 | 
			
		||||
        SOFTWARE
 | 
			
		||||
notices: []
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										33
									
								
								.licenses/npm/form-data-4.0.0.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								.licenses/npm/form-data-4.0.0.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
			
		||||
---
 | 
			
		||||
name: form-data
 | 
			
		||||
version: 4.0.0
 | 
			
		||||
type: npm
 | 
			
		||||
summary: A library to create readable "multipart/form-data" streams. Can be used to
 | 
			
		||||
  submit forms and file uploads to other web applications.
 | 
			
		||||
homepage: https://github.com/form-data/form-data#readme
 | 
			
		||||
license: mit
 | 
			
		||||
licenses:
 | 
			
		||||
- sources: License
 | 
			
		||||
  text: |
 | 
			
		||||
    Copyright (c) 2012 Felix Geisendörfer (felix@debuggable.com) and contributors
 | 
			
		||||
 | 
			
		||||
     Permission is hereby granted, free of charge, to any person obtaining a copy
 | 
			
		||||
     of this software and associated documentation files (the "Software"), to deal
 | 
			
		||||
     in the Software without restriction, including without limitation the rights
 | 
			
		||||
     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 | 
			
		||||
     copies of the Software, and to permit persons to whom the Software is
 | 
			
		||||
     furnished to do so, subject to the following conditions:
 | 
			
		||||
 | 
			
		||||
     The above copyright notice and this permission notice shall be included in
 | 
			
		||||
     all copies or substantial portions of the Software.
 | 
			
		||||
 | 
			
		||||
     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 | 
			
		||||
     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 | 
			
		||||
     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 | 
			
		||||
     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 | 
			
		||||
     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 | 
			
		||||
     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 | 
			
		||||
     THE SOFTWARE.
 | 
			
		||||
- sources: Readme.md
 | 
			
		||||
  text: Form-Data is released under the [MIT](License) license.
 | 
			
		||||
notices: []
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
---
 | 
			
		||||
name: tslib
 | 
			
		||||
version: 2.3.0
 | 
			
		||||
version: 2.3.1
 | 
			
		||||
type: npm
 | 
			
		||||
summary: Runtime library for TypeScript helper functions
 | 
			
		||||
homepage: https://www.typescriptlang.org/
 | 
			
		||||
							
								
								
									
										15
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								README.md
									
									
									
									
									
								
							@@ -41,7 +41,7 @@ nvm lts syntax: `lts/erbium`, `lts/fermium`, `lts/*`
 | 
			
		||||
 | 
			
		||||
## Caching packages dependencies
 | 
			
		||||
 | 
			
		||||
The action has a built-in functionality for caching and restoring dependencies. It uses [actions/cache](https://github.com/actions/cache) under hood for caching dependencies but requires less configuration settings. Supported package managers are `npm`, `yarn`, `pnpm` (v6.10+). The `cache` input is optional, and caching is turned off by default.
 | 
			
		||||
The action has a built-in functionality for caching and restoring dependencies. It uses [actions/cache](https://github.com/actions/cache) under the hood for caching dependencies but requires less configuration settings. Supported package managers are `npm`, `yarn`, `pnpm` (v6.10+). The `cache` input is optional, and caching is turned off by default.
 | 
			
		||||
 | 
			
		||||
The action defaults to search for the dependency file (`package-lock.json` or `yarn.lock`) in the repository root, and uses its hash as a part of the cache key. Use `cache-dependency-path` for cases when multiple dependency files are used, or they are located in different subdirectories.
 | 
			
		||||
 | 
			
		||||
@@ -93,12 +93,13 @@ jobs:
 | 
			
		||||
## Advanced usage
 | 
			
		||||
 | 
			
		||||
1. [Check latest version](docs/advanced-usage.md#check-latest-version)
 | 
			
		||||
2. [Using different architectures](docs/advanced-usage.md#architecture)
 | 
			
		||||
3. [Caching packages dependencies](docs/advanced-usage.md#caching-packages-dependencies)
 | 
			
		||||
4. [Using multiple operating systems and architectures](docs/advanced-usage.md#multiple-operating-systems-and-architectures)
 | 
			
		||||
5. [Publishing to npmjs and GPR with npm](docs/advanced-usage.md#publish-to-npmjs-and-gpr-with-npm)
 | 
			
		||||
6. [Publishing to npmjs and GPR with yarn](docs/advanced-usage.md#publish-to-npmjs-and-gpr-with-yarn)
 | 
			
		||||
7. [Using private packages](docs/advanced-usage.md#use-private-packages)
 | 
			
		||||
2. [Using a node version file](docs/advanced-usage.md#node-version-file)
 | 
			
		||||
3. [Using different architectures](docs/advanced-usage.md#architecture)
 | 
			
		||||
4. [Caching packages dependencies](docs/advanced-usage.md#caching-packages-dependencies)
 | 
			
		||||
5. [Using multiple operating systems and architectures](docs/advanced-usage.md#multiple-operating-systems-and-architectures)
 | 
			
		||||
6. [Publishing to npmjs and GPR with npm](docs/advanced-usage.md#publish-to-npmjs-and-gpr-with-npm)
 | 
			
		||||
7. [Publishing to npmjs and GPR with yarn](docs/advanced-usage.md#publish-to-npmjs-and-gpr-with-yarn)
 | 
			
		||||
8. [Using private packages](docs/advanced-usage.md#use-private-packages)
 | 
			
		||||
 | 
			
		||||
# License
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								__tests__/data/.nvmrc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								__tests__/data/.nvmrc
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
v14
 | 
			
		||||
@@ -1,12 +1,12 @@
 | 
			
		||||
import * as core from '@actions/core';
 | 
			
		||||
import * as io from '@actions/io';
 | 
			
		||||
import * as tc from '@actions/tool-cache';
 | 
			
		||||
import * as im from '../src/installer';
 | 
			
		||||
import fs from 'fs';
 | 
			
		||||
import cp from 'child_process';
 | 
			
		||||
import osm = require('os');
 | 
			
		||||
import path from 'path';
 | 
			
		||||
import * as main from '../src/main';
 | 
			
		||||
import * as im from '../src/installer';
 | 
			
		||||
import * as auth from '../src/authutil';
 | 
			
		||||
 | 
			
		||||
let nodeTestManifest = require('./data/versions-manifest.json');
 | 
			
		||||
@@ -31,9 +31,11 @@ describe('setup-node', () => {
 | 
			
		||||
  let dbgSpy: jest.SpyInstance;
 | 
			
		||||
  let whichSpy: jest.SpyInstance;
 | 
			
		||||
  let existsSpy: jest.SpyInstance;
 | 
			
		||||
  let readFileSyncSpy: jest.SpyInstance;
 | 
			
		||||
  let mkdirpSpy: jest.SpyInstance;
 | 
			
		||||
  let execSpy: jest.SpyInstance;
 | 
			
		||||
  let authSpy: jest.SpyInstance;
 | 
			
		||||
  let parseNodeVersionSpy: jest.SpyInstance;
 | 
			
		||||
 | 
			
		||||
  beforeEach(() => {
 | 
			
		||||
    // @actions/core
 | 
			
		||||
@@ -58,6 +60,7 @@ describe('setup-node', () => {
 | 
			
		||||
    cacheSpy = jest.spyOn(tc, 'cacheDir');
 | 
			
		||||
    getManifestSpy = jest.spyOn(tc, 'getManifestFromRepo');
 | 
			
		||||
    getDistSpy = jest.spyOn(im, 'getVersionsFromDist');
 | 
			
		||||
    parseNodeVersionSpy = jest.spyOn(im, 'parseNodeVersionFile');
 | 
			
		||||
 | 
			
		||||
    // io
 | 
			
		||||
    whichSpy = jest.spyOn(io, 'which');
 | 
			
		||||
@@ -91,6 +94,10 @@ describe('setup-node', () => {
 | 
			
		||||
      // uncomment to see debug output
 | 
			
		||||
      // process.stderr.write(msg + '\n');
 | 
			
		||||
    });
 | 
			
		||||
    warningSpy.mockImplementation(msg => {
 | 
			
		||||
      // uncomment to debug
 | 
			
		||||
      // process.stderr.write('log:' + line + '\n');
 | 
			
		||||
    });
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  afterEach(() => {
 | 
			
		||||
@@ -101,6 +108,7 @@ describe('setup-node', () => {
 | 
			
		||||
 | 
			
		||||
  afterAll(async () => {
 | 
			
		||||
    console.log('::stoptoken::'); // Re-enable executing of runner commands when running tests in actions
 | 
			
		||||
    jest.restoreAllMocks();
 | 
			
		||||
  }, 100000);
 | 
			
		||||
 | 
			
		||||
  //--------------------------------------------------
 | 
			
		||||
@@ -343,7 +351,7 @@ describe('setup-node', () => {
 | 
			
		||||
    expect(cnSpy).toHaveBeenCalledWith(`::error::${errMsg}${osm.EOL}`);
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  it('Acquires specified architecture of node', async () => {
 | 
			
		||||
  it('acquires specified architecture of node', async () => {
 | 
			
		||||
    for (const {arch, version, osSpec} of [
 | 
			
		||||
      {arch: 'x86', version: '12.16.2', osSpec: 'win32'},
 | 
			
		||||
      {arch: 'x86', version: '14.0.0', osSpec: 'win32'}
 | 
			
		||||
@@ -549,6 +557,93 @@ describe('setup-node', () => {
 | 
			
		||||
    });
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  describe('node-version-file flag', () => {
 | 
			
		||||
    it('not used if node-version is provided', async () => {
 | 
			
		||||
      // Arrange
 | 
			
		||||
      inputs['node-version'] = '12';
 | 
			
		||||
 | 
			
		||||
      // Act
 | 
			
		||||
      await main.run();
 | 
			
		||||
 | 
			
		||||
      // Assert
 | 
			
		||||
      expect(parseNodeVersionSpy).toHaveBeenCalledTimes(0);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    it('not used if node-version-file not provided', async () => {
 | 
			
		||||
      // Act
 | 
			
		||||
      await main.run();
 | 
			
		||||
 | 
			
		||||
      // Assert
 | 
			
		||||
      expect(parseNodeVersionSpy).toHaveBeenCalledTimes(0);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    it('reads node-version-file if provided', async () => {
 | 
			
		||||
      // Arrange
 | 
			
		||||
      const versionSpec = 'v14';
 | 
			
		||||
      const versionFile = '.nvmrc';
 | 
			
		||||
      const expectedVersionSpec = '14';
 | 
			
		||||
      process.env['GITHUB_WORKSPACE'] = path.join(__dirname, 'data');
 | 
			
		||||
      inputs['node-version-file'] = versionFile;
 | 
			
		||||
 | 
			
		||||
      parseNodeVersionSpy.mockImplementation(() => expectedVersionSpec);
 | 
			
		||||
      existsSpy.mockImplementationOnce(
 | 
			
		||||
        input => input === path.join(__dirname, 'data', versionFile)
 | 
			
		||||
      );
 | 
			
		||||
      // Act
 | 
			
		||||
      await main.run();
 | 
			
		||||
 | 
			
		||||
      // Assert
 | 
			
		||||
      expect(existsSpy).toHaveBeenCalledTimes(1);
 | 
			
		||||
      expect(existsSpy).toHaveReturnedWith(true);
 | 
			
		||||
      expect(parseNodeVersionSpy).toHaveBeenCalledWith(versionSpec);
 | 
			
		||||
      expect(logSpy).toHaveBeenCalledWith(
 | 
			
		||||
        `Resolved ${versionFile} as ${expectedVersionSpec}`
 | 
			
		||||
      );
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    it('both node-version-file and node-version are provided', async () => {
 | 
			
		||||
      inputs['node-version'] = '12';
 | 
			
		||||
      const versionSpec = 'v14';
 | 
			
		||||
      const versionFile = '.nvmrc';
 | 
			
		||||
      const expectedVersionSpec = '14';
 | 
			
		||||
      process.env['GITHUB_WORKSPACE'] = path.join(__dirname, '..');
 | 
			
		||||
      inputs['node-version-file'] = versionFile;
 | 
			
		||||
 | 
			
		||||
      parseNodeVersionSpy.mockImplementation(() => expectedVersionSpec);
 | 
			
		||||
 | 
			
		||||
      // Act
 | 
			
		||||
      await main.run();
 | 
			
		||||
 | 
			
		||||
      // Assert
 | 
			
		||||
      expect(existsSpy).toHaveBeenCalledTimes(0);
 | 
			
		||||
      expect(parseNodeVersionSpy).not.toHaveBeenCalled();
 | 
			
		||||
      expect(warningSpy).toHaveBeenCalledWith(
 | 
			
		||||
        'Both node-version and node-version-file inputs are specified, only node-version will be used'
 | 
			
		||||
      );
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    it('should throw an error if node-version-file is not found', async () => {
 | 
			
		||||
      const versionFile = '.nvmrc';
 | 
			
		||||
      const versionFilePath = path.join(__dirname, '..', versionFile);
 | 
			
		||||
      inputs['node-version-file'] = versionFile;
 | 
			
		||||
 | 
			
		||||
      inSpy.mockImplementation(name => inputs[name]);
 | 
			
		||||
      existsSpy.mockImplementationOnce(
 | 
			
		||||
        input => input === path.join(__dirname, 'data', versionFile)
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
      // Act
 | 
			
		||||
      await main.run();
 | 
			
		||||
 | 
			
		||||
      // Assert
 | 
			
		||||
      expect(existsSpy).toHaveBeenCalled();
 | 
			
		||||
      expect(existsSpy).toHaveReturnedWith(false);
 | 
			
		||||
      expect(parseNodeVersionSpy).not.toHaveBeenCalled();
 | 
			
		||||
      expect(cnSpy).toHaveBeenCalledWith(
 | 
			
		||||
        `::error::The specified node version file at: ${versionFilePath} does not exist${osm.EOL}`
 | 
			
		||||
      );
 | 
			
		||||
    });
 | 
			
		||||
  });
 | 
			
		||||
  describe('LTS version', () => {
 | 
			
		||||
    beforeEach(() => {
 | 
			
		||||
      os.platform = 'linux';
 | 
			
		||||
 
 | 
			
		||||
@@ -7,6 +7,8 @@ inputs:
 | 
			
		||||
    default: 'false'
 | 
			
		||||
  node-version:
 | 
			
		||||
    description: 'Version Spec of the version to use.  Examples: 12.x, 10.15.1, >=10.15.0'
 | 
			
		||||
  node-version-file:
 | 
			
		||||
    description: 'File containing the version Spec of the version to use.  Examples: .nvmrc, .node-version'
 | 
			
		||||
  architecture:
 | 
			
		||||
    description: 'Target architecture for Node to use. Examples: x86, x64. Will use system architecture by default.'
 | 
			
		||||
  check-latest:
 | 
			
		||||
@@ -33,7 +35,7 @@ outputs:
 | 
			
		||||
  cache-hit: 
 | 
			
		||||
    description: 'A boolean value to indicate if a cache was hit'
 | 
			
		||||
runs:
 | 
			
		||||
  using: 'node12'
 | 
			
		||||
  using: 'node16'
 | 
			
		||||
  main: 'dist/setup/index.js'
 | 
			
		||||
  post: 'dist/cache-save/index.js'
 | 
			
		||||
  post-if: success()
 | 
			
		||||
							
								
								
									
										24459
									
								
								dist/cache-save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										24459
									
								
								dist/cache-save/index.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										24079
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										24079
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -19,6 +19,22 @@ steps:
 | 
			
		||||
- run: npm test
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Node version file
 | 
			
		||||
  
 | 
			
		||||
The `node-version-file` input accepts a path to a file containing the version of Node.js to be used by a project, for example `.nvmrc` or `.node-version`. If both the `node-version` and the `node-version-file` inputs are provided then the `node-version` input is used. 
 | 
			
		||||
See [supported version syntax](https://github.com/actions/setup-node#supported-version-syntax) 
 | 
			
		||||
> The action will search for the node version file relative to the repository root.
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
steps:
 | 
			
		||||
- uses: actions/checkout@v2
 | 
			
		||||
- uses: actions/setup-node@v2
 | 
			
		||||
  with:
 | 
			
		||||
    node-version-file: '.nvmrc'
 | 
			
		||||
- run: npm install
 | 
			
		||||
- run: npm test
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Architecture
 | 
			
		||||
 | 
			
		||||
You can use any of the [supported operating systems](https://docs.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners), and the compatible `architecture` can be selected using `architecture`. Values are `x86`, `x64`, `arm64`, `armv6l`, `armv7l`, `ppc64le`, `s390x` (not all of the architectures are available on all platforms).
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										8301
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										8301
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										14
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								package.json
									
									
									
									
									
								
							@@ -23,25 +23,25 @@
 | 
			
		||||
  "author": "GitHub",
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "@actions/cache": "^1.0.7",
 | 
			
		||||
    "@actions/core": "^1.2.6",
 | 
			
		||||
    "@actions/cache": "^1.0.8",
 | 
			
		||||
    "@actions/core": "^1.6.0",
 | 
			
		||||
    "@actions/exec": "^1.1.0",
 | 
			
		||||
    "@actions/github": "^1.1.0",
 | 
			
		||||
    "@actions/glob": "^0.2.0",
 | 
			
		||||
    "@actions/http-client": "^1.0.6",
 | 
			
		||||
    "@actions/http-client": "^1.0.11",
 | 
			
		||||
    "@actions/io": "^1.0.2",
 | 
			
		||||
    "@actions/tool-cache": "^1.5.4",
 | 
			
		||||
    "semver": "^6.1.1"
 | 
			
		||||
  },
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "@types/jest": "^24.0.13",
 | 
			
		||||
    "@types/jest": "^27.0.2",
 | 
			
		||||
    "@types/node": "^12.0.4",
 | 
			
		||||
    "@types/semver": "^6.0.0",
 | 
			
		||||
    "@zeit/ncc": "^0.21.0",
 | 
			
		||||
    "jest": "^24.9.0",
 | 
			
		||||
    "jest-circus": "^24.7.1",
 | 
			
		||||
    "jest": "^27.2.5",
 | 
			
		||||
    "jest-circus": "^27.2.5",
 | 
			
		||||
    "prettier": "^1.19.1",
 | 
			
		||||
    "ts-jest": "^24.3.0",
 | 
			
		||||
    "ts-jest": "^27.0.5",
 | 
			
		||||
    "typescript": "^3.8.3"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -4,6 +4,14 @@ import fs from 'fs';
 | 
			
		||||
import {State} from './constants';
 | 
			
		||||
import {getCacheDirectoryPath, getPackageManagerInfo} from './cache-utils';
 | 
			
		||||
 | 
			
		||||
// Catch and log any unhandled exceptions.  These exceptions can leak out of the uploadChunk method in
 | 
			
		||||
// @actions/toolkit when a failed upload closes the file descriptor causing any in-process reads to
 | 
			
		||||
// throw an uncaught exception.  Instead of failing this action, just warn.
 | 
			
		||||
process.on('uncaughtException', e => {
 | 
			
		||||
  const warningPrefix = '[warning]';
 | 
			
		||||
  core.info(`${warningPrefix}${e.message}`);
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
export async function run() {
 | 
			
		||||
  try {
 | 
			
		||||
    const cacheLock = core.getInput('cache');
 | 
			
		||||
 
 | 
			
		||||
@@ -30,9 +30,16 @@ export const supportedPackageManagers: SupportedPackageManagers = {
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export const getCommandOutput = async (toolCommand: string) => {
 | 
			
		||||
  const {stdout, stderr, exitCode} = await exec.getExecOutput(toolCommand);
 | 
			
		||||
  let {stdout, stderr, exitCode} = await exec.getExecOutput(
 | 
			
		||||
    toolCommand,
 | 
			
		||||
    undefined,
 | 
			
		||||
    {ignoreReturnCode: true}
 | 
			
		||||
  );
 | 
			
		||||
 | 
			
		||||
  if (stderr) {
 | 
			
		||||
  if (exitCode) {
 | 
			
		||||
    stderr = !stderr.trim()
 | 
			
		||||
      ? `The '${toolCommand}' command failed with exit code: ${exitCode}`
 | 
			
		||||
      : stderr;
 | 
			
		||||
    throw new Error(stderr);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -371,7 +371,7 @@ async function queryDistForMatch(
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  let versions: string[] = [];
 | 
			
		||||
  let nodeVersions = await module.exports.getVersionsFromDist();
 | 
			
		||||
  let nodeVersions = await getVersionsFromDist();
 | 
			
		||||
 | 
			
		||||
  nodeVersions.forEach((nodeVersion: INodeVersion) => {
 | 
			
		||||
    // ensure this version supports your os and platform
 | 
			
		||||
@@ -464,3 +464,12 @@ function translateArchToDistUrl(arch: string): string {
 | 
			
		||||
      return arch;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export function parseNodeVersionFile(contents: string): string {
 | 
			
		||||
  let nodeVersion = contents.trim();
 | 
			
		||||
 | 
			
		||||
  if (/^v\d/.test(nodeVersion)) {
 | 
			
		||||
    nodeVersion = nodeVersion.substring(1);
 | 
			
		||||
  }
 | 
			
		||||
  return nodeVersion;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										43
									
								
								src/main.ts
									
									
									
									
									
								
							
							
						
						
									
										43
									
								
								src/main.ts
									
									
									
									
									
								
							@@ -1,5 +1,6 @@
 | 
			
		||||
import * as core from '@actions/core';
 | 
			
		||||
import * as installer from './installer';
 | 
			
		||||
import fs from 'fs';
 | 
			
		||||
import * as auth from './authutil';
 | 
			
		||||
import * as path from 'path';
 | 
			
		||||
import {restoreCache} from './cache-restore';
 | 
			
		||||
@@ -12,10 +13,7 @@ export async function run() {
 | 
			
		||||
    // Version is optional.  If supplied, install / use from the tool cache
 | 
			
		||||
    // If not supplied then task is still used to setup proxy, auth, etc...
 | 
			
		||||
    //
 | 
			
		||||
    let version = core.getInput('node-version');
 | 
			
		||||
    if (!version) {
 | 
			
		||||
      version = core.getInput('version');
 | 
			
		||||
    }
 | 
			
		||||
    let version = resolveVersionInput();
 | 
			
		||||
 | 
			
		||||
    let arch = core.getInput('architecture');
 | 
			
		||||
    const cache = core.getInput('cache');
 | 
			
		||||
@@ -63,8 +61,8 @@ export async function run() {
 | 
			
		||||
    core.info(
 | 
			
		||||
      `##[add-matcher]${path.join(matchersPath, 'eslint-compact.json')}`
 | 
			
		||||
    );
 | 
			
		||||
  } catch (error) {
 | 
			
		||||
    core.setFailed(error.message);
 | 
			
		||||
  } catch (err) {
 | 
			
		||||
    core.setFailed(err.message);
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -74,3 +72,36 @@ function isGhes(): boolean {
 | 
			
		||||
  );
 | 
			
		||||
  return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function resolveVersionInput(): string {
 | 
			
		||||
  let version = core.getInput('node-version') || core.getInput('version');
 | 
			
		||||
  const versionFileInput = core.getInput('node-version-file');
 | 
			
		||||
 | 
			
		||||
  if (version && versionFileInput) {
 | 
			
		||||
    core.warning(
 | 
			
		||||
      'Both node-version and node-version-file inputs are specified, only node-version will be used'
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if (version) {
 | 
			
		||||
    return version;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if (versionFileInput) {
 | 
			
		||||
    const versionFilePath = path.join(
 | 
			
		||||
      process.env.GITHUB_WORKSPACE!,
 | 
			
		||||
      versionFileInput
 | 
			
		||||
    );
 | 
			
		||||
    if (!fs.existsSync(versionFilePath)) {
 | 
			
		||||
      throw new Error(
 | 
			
		||||
        `The specified node version file at: ${versionFilePath} does not exist`
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
    version = installer.parseNodeVersionFile(
 | 
			
		||||
      fs.readFileSync(versionFilePath, 'utf8')
 | 
			
		||||
    );
 | 
			
		||||
    core.info(`Resolved ${versionFileInput} as ${version}`);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return version;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -2,9 +2,6 @@
 | 
			
		||||
  "compilerOptions": {
 | 
			
		||||
    "target": "es6",                          /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
 | 
			
		||||
    "module": "commonjs",                     /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
 | 
			
		||||
    "lib": [
 | 
			
		||||
      "es6"
 | 
			
		||||
    ],
 | 
			
		||||
    "outDir": "./lib",                        /* Redirect output structure to the directory. */
 | 
			
		||||
    "rootDir": "./src",                       /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
 | 
			
		||||
    "sourceMap": true,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user