typed-rest-client
Advanced tools
Comparing version 1.8.5 to 1.8.6
@@ -0,0 +0,0 @@ export { BasicCredentialHandler } from "./handlers/basiccreds"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import ifm = require('../Interfaces'); |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import ifm = require('../Interfaces'); |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import ifm = require('../Interfaces'); |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ var crypto = require('crypto'); |
@@ -0,0 +0,0 @@ var log = console.log; |
@@ -0,0 +0,0 @@ var crypto = require('crypto'); |
@@ -0,0 +0,0 @@ ### Reference: |
{ | ||
"name": "typed-rest-client", | ||
"version": "1.8.5", | ||
"version": "1.8.6", | ||
"description": "Node Rest and Http Clients for use with TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "./RestClient.js", |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
17
Util.js
@@ -17,3 +17,2 @@ "use strict"; | ||
const zlib = require("zlib"); | ||
const Constants_1 = require("./Constants"); | ||
/** | ||
@@ -110,9 +109,13 @@ * creates an url from a request url and optional base url (http://server:8080) | ||
function buildProxyBypassRegexFromEnv(bypass) { | ||
// check if expression starts with asterisk and replace it with .* | ||
if (bypass && bypass.startsWith("*")) { | ||
bypass = bypass.replace("*", ".*"); | ||
try { | ||
// We need to keep this around for back-compat purposes | ||
return new RegExp(bypass, 'i'); | ||
} | ||
// replace all . symbols in string by \. because point is a special character | ||
const safeRegex = (bypass || "").replace(Constants_1.searchRegExpToReplaceSpecialChars, '\\$1'); | ||
return new RegExp(safeRegex, 'i'); | ||
catch (err) { | ||
if (err instanceof SyntaxError && (bypass || "").startsWith("*")) { | ||
let wildcardEscaped = bypass.replace('*', '(.*)'); | ||
return new RegExp(wildcardEscaped, 'i'); | ||
} | ||
throw err; | ||
} | ||
} | ||
@@ -119,0 +122,0 @@ exports.buildProxyBypassRegexFromEnv = buildProxyBypassRegexFromEnv; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
4
153950
28
1727