@actions/http-client
Advanced tools
Comparing version 1.0.11 to 2.0.0
{ | ||
"name": "@actions/http-client", | ||
"version": "1.0.11", | ||
"version": "2.0.0", | ||
"description": "Actions Http Client", | ||
"main": "index.js", | ||
"scripts": { | ||
"build": "rm -Rf ./_out && tsc && cp package*.json ./_out && cp *.md ./_out && cp LICENSE ./_out && cp actions.png ./_out", | ||
"test": "jest", | ||
"format": "prettier --write *.ts && prettier --write **/*.ts", | ||
"format-check": "prettier --check *.ts && prettier --check **/*.ts", | ||
"audit-check": "npm audit --audit-level=moderate" | ||
"keywords": [ | ||
"github", | ||
"actions", | ||
"http" | ||
], | ||
"homepage": "https://github.com/actions/toolkit/tree/main/packages/http-client", | ||
"license": "MIT", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"directories": { | ||
"lib": "lib", | ||
"test": "__tests__" | ||
}, | ||
"files": [ | ||
"lib", | ||
"!.DS_Store" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/actions/http-client.git" | ||
"url": "git+https://github.com/actions/toolkit.git", | ||
"directory": "packages/github" | ||
}, | ||
"keywords": [ | ||
"Actions", | ||
"Http" | ||
], | ||
"author": "GitHub, Inc.", | ||
"license": "MIT", | ||
"scripts": { | ||
"audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", | ||
"test": "echo \"Error: run tests from root\" && exit 1", | ||
"build": "tsc", | ||
"format": "prettier --write **/*.ts", | ||
"format-check": "prettier --check **/*.ts", | ||
"tsc": "tsc" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/actions/http-client/issues" | ||
"url": "https://github.com/actions/toolkit/issues" | ||
}, | ||
"homepage": "https://github.com/actions/http-client#readme", | ||
"devDependencies": { | ||
"@types/jest": "^25.1.4", | ||
"@types/node": "^12.12.31", | ||
"jest": "^25.1.0", | ||
"prettier": "^2.0.4", | ||
"@types/tunnel": "0.0.3", | ||
"proxy": "^1.0.1", | ||
"ts-jest": "^25.2.1", | ||
"typescript": "^3.8.3" | ||
}, | ||
"dependencies": { | ||
"tunnel": "0.0.6" | ||
} | ||
} |
@@ -0,16 +1,9 @@ | ||
# `@actions/http-client` | ||
<p align="center"> | ||
<img src="actions.png"> | ||
</p> | ||
A lightweight HTTP client optimized for building actions. | ||
# Actions Http-Client | ||
[![Http Status](https://github.com/actions/http-client/workflows/http-tests/badge.svg)](https://github.com/actions/http-client/actions) | ||
A lightweight HTTP client optimized for use with actions, TypeScript with generics and async await. | ||
## Features | ||
- HTTP client with TypeScript generics and async/await/Promises | ||
- Typings included so no need to acquire separately (great for intellisense and no versioning drift) | ||
- Typings included! | ||
- [Proxy support](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/about-self-hosted-runners#using-a-proxy-server-with-self-hosted-runners) just works with actions and the runner | ||
@@ -31,3 +24,3 @@ - Targets ES2019 (runner runs actions with node 12+). Only supported on node 12+. | ||
See the [HTTP](./__tests__) tests for detailed examples. | ||
See the [tests](./__tests__) for detailed examples. | ||
@@ -43,3 +36,3 @@ ## Errors | ||
See [HTTP tests](./__tests__) for detailed examples. | ||
See the [tests](./__tests__) for detailed examples. | ||
@@ -50,3 +43,3 @@ ## Debugging | ||
``` | ||
```shell | ||
export NODE_DEBUG=http | ||
@@ -69,15 +62,16 @@ ``` | ||
```bash | ||
$ npm install | ||
``` | ||
npm install | ||
``` | ||
To build: | ||
```bash | ||
$ npm run build | ||
``` | ||
npm run build | ||
``` | ||
To run all tests: | ||
```bash | ||
$ npm test | ||
``` | ||
npm test | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
3
15
941
65272
1
74
4
- Removedtunnel@0.0.6
- Removedtunnel@0.0.6(transitive)