mirror of
https://github.com/github/codeql-action.git
synced 2025-12-27 09:40:17 +08:00
* Bump tough-cookie and @azure/ms-rest-js Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) and [@azure/ms-rest-js](https://github.com/Azure/ms-rest-js). These dependencies needed to be updated together. Updates `tough-cookie` from 4.0.0 to 4.1.3 - [Release notes](https://github.com/salesforce/tough-cookie/releases) - [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md) - [Commits](https://github.com/salesforce/tough-cookie/compare/v4.0.0...v4.1.3) Updates `@azure/ms-rest-js` from 2.6.2 to 2.7.0 - [Changelog](https://github.com/Azure/ms-rest-js/blob/master/Changelog.md) - [Commits](https://github.com/Azure/ms-rest-js/commits) --- updated-dependencies: - dependency-name: tough-cookie dependency-type: indirect - dependency-name: "@azure/ms-rest-js" dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Update checked-in dependencies --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
109 lines
1.8 KiB
TypeScript
109 lines
1.8 KiB
TypeScript
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License. See License.txt in the project root for license information.
|
|
|
|
export const Constants = {
|
|
/**
|
|
* The ms-rest version
|
|
* @const
|
|
* @type {string}
|
|
*/
|
|
msRestVersion: "2.7.0",
|
|
|
|
/**
|
|
* Specifies HTTP.
|
|
*
|
|
* @const
|
|
* @type {string}
|
|
*/
|
|
HTTP: "http:",
|
|
|
|
/**
|
|
* Specifies HTTPS.
|
|
*
|
|
* @const
|
|
* @type {string}
|
|
*/
|
|
HTTPS: "https:",
|
|
|
|
/**
|
|
* Specifies HTTP Proxy.
|
|
*
|
|
* @const
|
|
* @type {string}
|
|
*/
|
|
HTTP_PROXY: "HTTP_PROXY",
|
|
|
|
/**
|
|
* Specifies HTTPS Proxy.
|
|
*
|
|
* @const
|
|
* @type {string}
|
|
*/
|
|
HTTPS_PROXY: "HTTPS_PROXY",
|
|
|
|
/**
|
|
* Specifies NO Proxy.
|
|
*/
|
|
NO_PROXY: "NO_PROXY",
|
|
|
|
/**
|
|
* Specifies ALL Proxy.
|
|
*/
|
|
ALL_PROXY: "ALL_PROXY",
|
|
|
|
HttpConstants: {
|
|
/**
|
|
* Http Verbs
|
|
*
|
|
* @const
|
|
* @enum {string}
|
|
*/
|
|
HttpVerbs: {
|
|
PUT: "PUT",
|
|
GET: "GET",
|
|
DELETE: "DELETE",
|
|
POST: "POST",
|
|
MERGE: "MERGE",
|
|
HEAD: "HEAD",
|
|
PATCH: "PATCH",
|
|
},
|
|
|
|
StatusCodes: {
|
|
TooManyRequests: 429,
|
|
},
|
|
},
|
|
|
|
/**
|
|
* Defines constants for use with HTTP headers.
|
|
*/
|
|
HeaderConstants: {
|
|
/**
|
|
* The Authorization header.
|
|
*
|
|
* @const
|
|
* @type {string}
|
|
*/
|
|
AUTHORIZATION: "authorization",
|
|
|
|
AUTHORIZATION_SCHEME: "Bearer",
|
|
|
|
/**
|
|
* The Retry-After response-header field can be used with a 503 (Service
|
|
* Unavailable) or 349 (Too Many Requests) responses to indicate how long
|
|
* the service is expected to be unavailable to the requesting client.
|
|
*
|
|
* @const
|
|
* @type {string}
|
|
*/
|
|
RETRY_AFTER: "Retry-After",
|
|
|
|
/**
|
|
* The UserAgent header.
|
|
*
|
|
* @const
|
|
* @type {string}
|
|
*/
|
|
USER_AGENT: "User-Agent",
|
|
},
|
|
};
|