Comparing version 4.3.3 to 5.0.0
@@ -52,6 +52,7 @@ "use strict"; | ||
function loadProxy() { | ||
const proxy = process.env.HTTPS_PROXY || | ||
process.env.https_proxy || | ||
process.env.HTTP_PROXY || | ||
process.env.http_proxy; | ||
var _a, _b, _c, _d; | ||
const proxy = ((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.HTTPS_PROXY) || | ||
((_b = process === null || process === void 0 ? void 0 : process.env) === null || _b === void 0 ? void 0 : _b.https_proxy) || | ||
((_c = process === null || process === void 0 ? void 0 : process.env) === null || _c === void 0 ? void 0 : _c.HTTP_PROXY) || | ||
((_d = process === null || process === void 0 ? void 0 : process.env) === null || _d === void 0 ? void 0 : _d.http_proxy); | ||
if (proxy) { | ||
@@ -137,3 +138,3 @@ HttpsProxyAgent = require('https-proxy-agent'); | ||
err.config = opts; | ||
const { shouldRetry, config } = await retry_1.getRetryConfig(e); | ||
const { shouldRetry, config } = await (0, retry_1.getRetryConfig)(err); | ||
if (shouldRetry && config) { | ||
@@ -174,3 +175,3 @@ err.config.retryConfig.currentRetryAttempt = | ||
validateOpts(options) { | ||
const opts = extend_1.default(true, {}, this.defaults, options); | ||
const opts = (0, extend_1.default)(true, {}, this.defaults, options); | ||
if (!opts.url) { | ||
@@ -177,0 +178,0 @@ throw new Error('URL is required.'); |
@@ -15,3 +15,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.request = exports.instance = exports.Gaxios = void 0; | ||
exports.request = exports.instance = exports.Gaxios = exports.GaxiosError = void 0; | ||
const gaxios_1 = require("./gaxios"); | ||
@@ -18,0 +18,0 @@ Object.defineProperty(exports, "Gaxios", { enumerable: true, get: function () { return gaxios_1.Gaxios; } }); |
# Changelog | ||
## [5.0.0](https://github.com/googleapis/gaxios/compare/v4.3.3...v5.0.0) (2022-04-20) | ||
### ⚠ BREAKING CHANGES | ||
* drop node 10 from engines list, update typescript to 4.6.3 (#477) | ||
### Features | ||
* handling missing process global ([c30395b](https://github.com/googleapis/gaxios/commit/c30395bbf34d889e75c7c72a7dff701dc7a98244)) | ||
### Build System | ||
* drop node 10 from engines list, update typescript to 4.6.3 ([#477](https://github.com/googleapis/gaxios/issues/477)) ([a926962](https://github.com/googleapis/gaxios/commit/a9269624a70aa6305599cc0af079d0225ed6af50)) | ||
### [4.3.3](https://github.com/googleapis/gaxios/compare/v4.3.2...v4.3.3) (2022-04-08) | ||
@@ -4,0 +20,0 @@ |
{ | ||
"name": "gaxios", | ||
"version": "4.3.3", | ||
"version": "5.0.0", | ||
"description": "A simple common HTTP client specifically for Google APIs and services.", | ||
@@ -35,3 +35,3 @@ "main": "build/src/index.js", | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=12" | ||
}, | ||
@@ -50,3 +50,3 @@ "author": "Google, LLC", | ||
"@types/ncp": "^2.0.1", | ||
"@types/node": "^16.11.3", | ||
"@types/node": "^17.0.23", | ||
"@types/node-fetch": "^2.5.7", | ||
@@ -63,3 +63,3 @@ "@types/sinon": "^10.0.0", | ||
"form-data": "^4.0.0", | ||
"gts": "^3.0.0", | ||
"gts": "^3.1.0", | ||
"is-docker": "^2.0.0", | ||
@@ -86,3 +86,3 @@ "karma": "^6.0.0", | ||
"ts-loader": "^8.0.0", | ||
"typescript": "^3.8.3", | ||
"typescript": "^4.6.3", | ||
"uuid": "^8.0.0", | ||
@@ -89,0 +89,0 @@ "webpack": "^5.35.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
69305
706