Socket
Socket
Sign inDemoInstall

builder-util

Package Overview
Dependencies
Maintainers
2
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

builder-util - npm Package Compare versions

Comparing version 22.14.6 to 22.14.7

6

CHANGELOG.md
# builder-util
## 22.14.7
### Patch Changes
- [#6410](https://github.com/electron-userland/electron-builder/pull/6410) [`04a84352`](https://github.com/electron-userland/electron-builder/commit/04a84352b2b3fbb3c54533a8428bfd103df0af21) Thanks [@baparham](https://github.com/baparham)! - fix(builder-util): enable proxy handling in NodeHttpExecutor to fix requests/publishing behind corporate proxies
## 22.14.6

@@ -4,0 +10,0 @@

@@ -6,3 +6,5 @@ "use strict";

const http_1 = require("http");
const http_proxy_agent_1 = require("http-proxy-agent");
const https = require("https");
const https_proxy_agent_1 = require("https-proxy-agent");
class NodeHttpExecutor extends builder_util_runtime_1.HttpExecutor {

@@ -12,2 +14,8 @@ // noinspection JSMethodCanBeStatic

createRequest(options, callback) {
if (process.env["https_proxy"] !== undefined && options.protocol === "https:") {
options.agent = new https_proxy_agent_1.HttpsProxyAgent(process.env["https_proxy"]);
}
else if (process.env["http_proxy"] !== undefined && options.protocol === "http:") {
options.agent = new http_proxy_agent_1.HttpProxyAgent(process.env["http_proxy"]);
}
return (options.protocol === "http:" ? http_1.request : https.request)(options, callback);

@@ -14,0 +22,0 @@ }

4

package.json
{
"name": "builder-util",
"version": "22.14.6",
"version": "22.14.7",
"main": "out/util.js",

@@ -28,2 +28,4 @@ "author": "Vladimir Krivosheev",

"fs-extra": "^10.0.0",
"http-proxy-agent": "^5.0.0",
"https-proxy-agent": "^5.0.0",
"is-ci": "^3.0.0",

@@ -30,0 +32,0 @@ "js-yaml": "^4.1.0",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc