Skip to content

Commit 9398140

Browse files
dependabot[bot]per1234
authored andcommitted
build(deps): bump typed-rest-client from 1.8.5 to 1.8.6
Bumps [typed-rest-client](https://github.com/Microsoft/typed-rest-client) from 1.8.5 to 1.8.6. - [Release notes](https://github.com/Microsoft/typed-rest-client/releases) - [Commits](https://github.com/Microsoft/typed-rest-client/commits) --- updated-dependencies: - dependency-name: typed-rest-client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
1 parent 2c62a43 commit 9398140

File tree

3 files changed

+14
-23
lines changed

3 files changed

+14
-23
lines changed

dist/index.js

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9740,18 +9740,6 @@ if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
97409740
exports.debug = debug; // for test
97419741

97429742

9743-
/***/ }),
9744-
9745-
/***/ 9026:
9746-
/***/ ((__unused_webpack_module, exports) => {
9747-
9748-
"use strict";
9749-
9750-
Object.defineProperty(exports, "__esModule", ({ value: true }));
9751-
// Used by buildProxyBypassRegexFromEnv for escaping dot symbols in NO_PROXY hosts' strings
9752-
exports.searchRegExpToReplaceSpecialChars = new RegExp('(?<!\\\\)([.])(?!\\*)', 'g');
9753-
9754-
97559743
/***/ }),
97569744

97579745
/***/ 5538:
@@ -10508,7 +10496,6 @@ const qs = __nccwpck_require__(9615);
1050810496
const url = __nccwpck_require__(8835);
1050910497
const path = __nccwpck_require__(5622);
1051010498
const zlib = __nccwpck_require__(8761);
10511-
const Constants_1 = __nccwpck_require__(9026);
1051210499
/**
1051310500
* creates an url from a request url and optional base url (http://server:8080)
1051410501
* @param {string} resource - a fully qualified url or relative path
@@ -10600,13 +10587,17 @@ exports.decompressGzippedContent = decompressGzippedContent;
1060010587
* @return {RegExp}
1060110588
*/
1060210589
function buildProxyBypassRegexFromEnv(bypass) {
10603-
// check if expression starts with asterisk and replace it with .*
10604-
if (bypass && bypass.startsWith("*")) {
10605-
bypass = bypass.replace("*", ".*");
10590+
try {
10591+
// We need to keep this around for back-compat purposes
10592+
return new RegExp(bypass, 'i');
10593+
}
10594+
catch (err) {
10595+
if (err instanceof SyntaxError && (bypass || "").startsWith("*")) {
10596+
let wildcardEscaped = bypass.replace('*', '(.*)');
10597+
return new RegExp(wildcardEscaped, 'i');
10598+
}
10599+
throw err;
1060610600
}
10607-
// replace all . symbols in string by \. because point is a special character
10608-
const safeRegex = (bypass || "").replace(Constants_1.searchRegExpToReplaceSpecialChars, '\\$1');
10609-
return new RegExp(safeRegex, 'i');
1061010601
}
1061110602
exports.buildProxyBypassRegexFromEnv = buildProxyBypassRegexFromEnv;
1061210603
/**

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@actions/tool-cache": "^1.7.1",
2121
"eslint-config-airbnb-base": "^14.2.1",
2222
"semver": "^7.3.5",
23-
"typed-rest-client": "^1.8.5"
23+
"typed-rest-client": "^1.8.6"
2424
},
2525
"devDependencies": {
2626
"@actions/io": "^1.1.1",

0 commit comments

Comments
 (0)