mirror of
https://github.com/actions/toolkit.git
synced 2025-06-10 18:10:47 +09:00
Update dependencies in github package (#1553)
* Update octokit package * define type for function * fix linter * Update github package to latest * Update RELEASES.md
This commit is contained in:
parent
797f48fcfa
commit
494f12bcd9
8 changed files with 349 additions and 351 deletions
|
@ -1,6 +1,6 @@
|
|||
import * as http from 'http'
|
||||
import * as https from 'https'
|
||||
import proxy from 'proxy'
|
||||
import {createProxy} from 'proxy'
|
||||
|
||||
// Default values are set when the module is imported, so we need to set proxy first.
|
||||
const proxyUrl = 'http://127.0.0.1:8081'
|
||||
|
@ -16,7 +16,7 @@ describe('@actions/github', () => {
|
|||
|
||||
beforeAll(async () => {
|
||||
// Start proxy server
|
||||
proxyServer = proxy()
|
||||
proxyServer = createProxy()
|
||||
await new Promise<void>(resolve => {
|
||||
const port = Number(proxyUrl.split(':')[2])
|
||||
proxyServer.listen(port, () => resolve())
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import * as http from 'http'
|
||||
import proxy from 'proxy'
|
||||
import {createProxy} from 'proxy'
|
||||
import {getOctokit} from '../src/github'
|
||||
import {GitHub, getOctokitOptions} from '../src/utils'
|
||||
|
||||
|
@ -12,7 +12,7 @@ describe('@actions/github', () => {
|
|||
|
||||
beforeAll(async () => {
|
||||
// Start proxy server
|
||||
proxyServer = proxy()
|
||||
proxyServer = createProxy()
|
||||
await new Promise<void>(resolve => {
|
||||
const port = Number(proxyUrl.split(':')[2])
|
||||
proxyServer.listen(port, () => resolve())
|
||||
|
|
5
packages/github/__tests__/proxy.d.ts
vendored
5
packages/github/__tests__/proxy.d.ts
vendored
|
@ -1,5 +0,0 @@
|
|||
declare module 'proxy' {
|
||||
import * as http from 'http'
|
||||
function internal(): http.Server
|
||||
export = internal
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue