From a09bb753429e7b8a6ff81c2d0d29d33d5d74aa9b Mon Sep 17 00:00:00 2001 From: crazy-max Date: Fri, 24 Jan 2020 09:14:21 +0000 Subject: [PATCH] Update node_modules --- node_modules/@actions/core/package.json | 3 +- node_modules/@actions/http-client/LICENSE | 2 +- node_modules/@actions/http-client/auth.js | 4 +- node_modules/@actions/http-client/index.d.ts | 13 +- node_modules/@actions/http-client/index.js | 20 +- .../node_modules/tunnel/.idea/encodings.xml | 6 + .../node_modules/tunnel/.idea/modules.xml | 8 + .../node_modules/tunnel/.idea/node-tunnel.iml | 12 + .../node_modules/tunnel/.idea/vcs.xml | 6 + .../node_modules/tunnel/.idea/workspace.xml | 797 ++++++++++++++++++ .../node_modules/tunnel/.travis.yml | 6 + .../node_modules/tunnel/CHANGELOG.md | 22 + .../http-client/node_modules/tunnel/LICENSE | 21 + .../http-client/node_modules/tunnel/README.md | 185 ++++ .../http-client/node_modules/tunnel/index.js | 1 + .../node_modules/tunnel/lib/tunnel.js | 264 ++++++ .../node_modules/tunnel/package.json | 67 ++ .../@actions/http-client/package.json | 29 +- node_modules/@actions/http-client/proxy.d.ts | 3 +- node_modules/@actions/http-client/proxy.js | 50 +- .../@actions/tool-cache/lib/tool-cache.js | 30 +- .../@actions/tool-cache/lib/tool-cache.js.map | 2 +- .../node_modules/@actions/core/README.md | 140 --- .../@actions/core/lib/command.d.ts | 16 - .../node_modules/@actions/core/lib/command.js | 73 -- .../@actions/core/lib/command.js.map | 1 - .../node_modules/@actions/core/lib/core.d.ts | 112 --- .../node_modules/@actions/core/lib/core.js | 195 ----- .../@actions/core/lib/core.js.map | 1 - .../node_modules/@actions/core/package.json | 69 -- node_modules/@actions/tool-cache/package.json | 22 +- 31 files changed, 1513 insertions(+), 667 deletions(-) create mode 100644 node_modules/@actions/http-client/node_modules/tunnel/.idea/encodings.xml create mode 100644 node_modules/@actions/http-client/node_modules/tunnel/.idea/modules.xml create mode 100644 node_modules/@actions/http-client/node_modules/tunnel/.idea/node-tunnel.iml create mode 100644 node_modules/@actions/http-client/node_modules/tunnel/.idea/vcs.xml create mode 100644 node_modules/@actions/http-client/node_modules/tunnel/.idea/workspace.xml create mode 100644 node_modules/@actions/http-client/node_modules/tunnel/.travis.yml create mode 100644 node_modules/@actions/http-client/node_modules/tunnel/CHANGELOG.md create mode 100644 node_modules/@actions/http-client/node_modules/tunnel/LICENSE create mode 100644 node_modules/@actions/http-client/node_modules/tunnel/README.md create mode 100644 node_modules/@actions/http-client/node_modules/tunnel/index.js create mode 100644 node_modules/@actions/http-client/node_modules/tunnel/lib/tunnel.js create mode 100644 node_modules/@actions/http-client/node_modules/tunnel/package.json delete mode 100644 node_modules/@actions/tool-cache/node_modules/@actions/core/README.md delete mode 100644 node_modules/@actions/tool-cache/node_modules/@actions/core/lib/command.d.ts delete mode 100644 node_modules/@actions/tool-cache/node_modules/@actions/core/lib/command.js delete mode 100644 node_modules/@actions/tool-cache/node_modules/@actions/core/lib/command.js.map delete mode 100644 node_modules/@actions/tool-cache/node_modules/@actions/core/lib/core.d.ts delete mode 100644 node_modules/@actions/tool-cache/node_modules/@actions/core/lib/core.js delete mode 100644 node_modules/@actions/tool-cache/node_modules/@actions/core/lib/core.js.map delete mode 100644 node_modules/@actions/tool-cache/node_modules/@actions/core/package.json diff --git a/node_modules/@actions/core/package.json b/node_modules/@actions/core/package.json index 09ae78e..dfdfd6b 100644 --- a/node_modules/@actions/core/package.json +++ b/node_modules/@actions/core/package.json @@ -23,7 +23,8 @@ "fetchSpec": "1.2.1" }, "_requiredBy": [ - "/" + "/", + "/@actions/tool-cache" ], "_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.1.tgz", "_spec": "1.2.1", diff --git a/node_modules/@actions/http-client/LICENSE b/node_modules/@actions/http-client/LICENSE index d1ba4ff..5823a51 100644 --- a/node_modules/@actions/http-client/LICENSE +++ b/node_modules/@actions/http-client/LICENSE @@ -1,4 +1,4 @@ -Typed Rest Client for Node.js +Actions Http Client for Node.js Copyright (c) GitHub, Inc. diff --git a/node_modules/@actions/http-client/auth.js b/node_modules/@actions/http-client/auth.js index 5e872e4..98d22d6 100644 --- a/node_modules/@actions/http-client/auth.js +++ b/node_modules/@actions/http-client/auth.js @@ -6,7 +6,7 @@ class BasicCredentialHandler { this.password = password; } prepareRequest(options) { - options.headers['Authorization'] = 'Basic ' + new Buffer(this.username + ':' + this.password).toString('base64'); + options.headers['Authorization'] = 'Basic ' + Buffer.from(this.username + ':' + this.password).toString('base64'); } // This handler cannot handle 401 canHandleAuthentication(response) { @@ -42,7 +42,7 @@ class PersonalAccessTokenCredentialHandler { // currently implements pre-authorization // TODO: support preAuth = false where it hooks on 401 prepareRequest(options) { - options.headers['Authorization'] = 'Basic ' + new Buffer('PAT:' + this.token).toString('base64'); + options.headers['Authorization'] = 'Basic ' + Buffer.from('PAT:' + this.token).toString('base64'); } // This handler cannot handle 401 canHandleAuthentication(response) { diff --git a/node_modules/@actions/http-client/index.d.ts b/node_modules/@actions/http-client/index.d.ts index f22aa63..ea3454d 100644 --- a/node_modules/@actions/http-client/index.d.ts +++ b/node_modules/@actions/http-client/index.d.ts @@ -29,6 +29,11 @@ export declare enum HttpCodes { ServiceUnavailable = 503, GatewayTimeout = 504 } +/** + * Returns the proxy URL, depending upon the supplied url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ +export declare function getProxyUrl(serverUrl: string): string; export declare class HttpClientResponse implements ifm.IHttpClientResponse { constructor(message: http.IncomingMessage); message: http.IncomingMessage; @@ -36,7 +41,7 @@ export declare class HttpClientResponse implements ifm.IHttpClientResponse { } export declare function isHttps(requestUrl: string): boolean; export declare class HttpClient { - userAgent: string | null | undefined; + userAgent: string | undefined; handlers: ifm.IRequestHandler[]; requestOptions: ifm.IRequestOptions; private _ignoreSslError; @@ -82,6 +87,12 @@ export declare class HttpClient { * @param onResult */ requestRawWithCallback(info: ifm.IRequestInfo, data: string | NodeJS.ReadableStream, onResult: (err: any, res: ifm.IHttpClientResponse) => void): void; + /** + * Gets an http agent. This function is useful when you need an http agent that handles + * routing through a proxy server - depending upon the url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ + getAgent(serverUrl: string): http.Agent; private _prepareRequest; private _mergeHeaders; private _getAgent; diff --git a/node_modules/@actions/http-client/index.js b/node_modules/@actions/http-client/index.js index 59c4a95..631e16f 100644 --- a/node_modules/@actions/http-client/index.js +++ b/node_modules/@actions/http-client/index.js @@ -4,7 +4,6 @@ const url = require("url"); const http = require("http"); const https = require("https"); const pm = require("./proxy"); -let fs; let tunnel; var HttpCodes; (function (HttpCodes) { @@ -35,6 +34,15 @@ var HttpCodes; HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable"; HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout"; })(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {})); +/** + * Returns the proxy URL, depending upon the supplied url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ +function getProxyUrl(serverUrl) { + let proxyUrl = pm.getProxyUrl(url.parse(serverUrl)); + return proxyUrl ? proxyUrl.href : ''; +} +exports.getProxyUrl = getProxyUrl; const HttpRedirectCodes = [HttpCodes.MovedPermanently, HttpCodes.ResourceMoved, HttpCodes.SeeOther, HttpCodes.TemporaryRedirect, HttpCodes.PermanentRedirect]; const HttpResponseRetryCodes = [HttpCodes.BadGateway, HttpCodes.ServiceUnavailable, HttpCodes.GatewayTimeout]; const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD']; @@ -225,7 +233,6 @@ class HttpClient { */ requestRawWithCallback(info, data, onResult) { let socket; - let isDataString = typeof (data) === 'string'; if (typeof (data) === 'string') { info.options.headers["Content-Length"] = Buffer.byteLength(data, 'utf8'); } @@ -268,6 +275,15 @@ class HttpClient { req.end(); } } + /** + * Gets an http agent. This function is useful when you need an http agent that handles + * routing through a proxy server - depending upon the url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ + getAgent(serverUrl) { + let parsedUrl = url.parse(serverUrl); + return this._getAgent(parsedUrl); + } _prepareRequest(method, requestUrl, headers) { const info = {}; info.parsedUrl = requestUrl; diff --git a/node_modules/@actions/http-client/node_modules/tunnel/.idea/encodings.xml b/node_modules/@actions/http-client/node_modules/tunnel/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ b/node_modules/@actions/http-client/node_modules/tunnel/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/node_modules/@actions/http-client/node_modules/tunnel/.idea/modules.xml b/node_modules/@actions/http-client/node_modules/tunnel/.idea/modules.xml new file mode 100644 index 0000000..27bf888 --- /dev/null +++ b/node_modules/@actions/http-client/node_modules/tunnel/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/node_modules/@actions/http-client/node_modules/tunnel/.idea/node-tunnel.iml b/node_modules/@actions/http-client/node_modules/tunnel/.idea/node-tunnel.iml new file mode 100644 index 0000000..24643cc --- /dev/null +++ b/node_modules/@actions/http-client/node_modules/tunnel/.idea/node-tunnel.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/node_modules/@actions/http-client/node_modules/tunnel/.idea/vcs.xml b/node_modules/@actions/http-client/node_modules/tunnel/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/node_modules/@actions/http-client/node_modules/tunnel/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/node_modules/@actions/http-client/node_modules/tunnel/.idea/workspace.xml b/node_modules/@actions/http-client/node_modules/tunnel/.idea/workspace.xml new file mode 100644 index 0000000..1a318c8 --- /dev/null +++ b/node_modules/@actions/http-client/node_modules/tunnel/.idea/workspace.xml @@ -0,0 +1,797 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + max + onconne + + + + + + + + + + + + + false + + false + false + true + + + true + DEFINITION_ORDER + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +