Skip to content

Commit

Permalink
Merge pull request #1051 from arduino/dependabot/npm_and_yarn/typed-r…
Browse files Browse the repository at this point in the history
…est-client-2.1.0

build(deps): bump typed-rest-client from 2.0.2 to 2.1.0
  • Loading branch information
per1234 authored Sep 20, 2024
2 parents c7d115e + 968f9c2 commit f9946b1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .licenses/npm/typed-rest-client.dep.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: typed-rest-client
version: 2.0.2
version: 2.1.0
type: npm
summary: Node Rest and Http Clients for use with TypeScript
homepage: https://github.com/Microsoft/typed-rest-client#readme
Expand Down
26 changes: 18 additions & 8 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11783,7 +11783,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpCodes = void 0;
exports.HttpClient = exports.HttpClientResponse = exports.HttpCodes = void 0;
exports.isHttps = isHttps;
const url = __nccwpck_require__(7310);
const http = __nccwpck_require__(3685);
const https = __nccwpck_require__(5687);
Expand Down Expand Up @@ -11863,7 +11864,6 @@ function isHttps(requestUrl) {
let parsedUrl = url.parse(requestUrl);
return parsedUrl.protocol === 'https:';
}
exports.isHttps = isHttps;
var EnvironmentVariables;
(function (EnvironmentVariables) {
EnvironmentVariables["HTTP_PROXY"] = "HTTP_PROXY";
Expand All @@ -11880,6 +11880,10 @@ class HttpClient {
this._maxRetries = 1;
this._keepAlive = false;
this._disposed = false;
this._httpGlobalAgentOptions = {
keepAlive: false,
timeout: 30000
};
this.userAgent = userAgent;
this.handlers = handlers || [];
let no_proxy = process.env[EnvironmentVariables.NO_PROXY];
Expand All @@ -11902,6 +11906,9 @@ class HttpClient {
this._httpProxyBypassHosts.push(new RegExp(bypass, 'i'));
});
}
if (requestOptions.globalAgentOptions) {
this._httpGlobalAgentOptions = requestOptions.globalAgentOptions;
}
this._certConfig = requestOptions.cert;
if (this._certConfig) {
// If using cert, need fs
Expand Down Expand Up @@ -12212,7 +12219,11 @@ class HttpClient {
}
// if not using private agent and tunnel agent isn't setup then use global agent
if (!agent) {
agent = usingSsl ? https.globalAgent : http.globalAgent;
const globalAgentOptions = {
keepAlive: this._httpGlobalAgentOptions.keepAlive,
timeout: this._httpGlobalAgentOptions.timeout
};
agent = usingSsl ? new https.Agent(globalAgentOptions) : new http.Agent(globalAgentOptions);
}
if (usingSsl && this._ignoreSslError) {
// we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
Expand Down Expand Up @@ -12525,7 +12536,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.obtainContentCharset = exports.buildProxyBypassRegexFromEnv = exports.decompressGzippedContent = exports.getUrl = void 0;
exports.getUrl = getUrl;
exports.decompressGzippedContent = decompressGzippedContent;
exports.buildProxyBypassRegexFromEnv = buildProxyBypassRegexFromEnv;
exports.obtainContentCharset = obtainContentCharset;
const qs = __nccwpck_require__(2760);
const url = __nccwpck_require__(7310);
const path = __nccwpck_require__(1017);
Expand Down Expand Up @@ -12563,7 +12577,6 @@ function getUrl(resource, baseUrl, queryParams) {
getUrlWithParsedQueryParams(requestUrl, queryParams) :
requestUrl;
}
exports.getUrl = getUrl;
/**
*
* @param {string} requestUrl
Expand Down Expand Up @@ -12613,7 +12626,6 @@ function decompressGzippedContent(buffer, charset) {
}));
});
}
exports.decompressGzippedContent = decompressGzippedContent;
/**
* Builds a RegExp to test urls against for deciding
* wether to bypass proxy from an entry of the
Expand All @@ -12635,7 +12647,6 @@ function buildProxyBypassRegexFromEnv(bypass) {
throw err;
}
}
exports.buildProxyBypassRegexFromEnv = buildProxyBypassRegexFromEnv;
/**
* Obtain Response's Content Charset.
* Through inspecting `content-type` response header.
Expand All @@ -12659,7 +12670,6 @@ function obtainContentCharset(response) {
}
return 'utf-8';
}
exports.obtainContentCharset = obtainContentCharset;


/***/ }),
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@actions/core": "^1.10.1",
"@actions/tool-cache": "^2.0.1",
"semver": "^7.6.3",
"typed-rest-client": "^2.0.2"
"typed-rest-client": "^2.1.0"
},
"devDependencies": {
"@actions/io": "^1.1.3",
Expand Down

0 comments on commit f9946b1

Please sign in to comment.