Socket
Socket
Sign inDemoInstall

@electron/get

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electron/get - npm Package Compare versions

Comparing version 1.14.0 to 1.14.1

6

dist/cjs/proxy.js

@@ -16,5 +16,5 @@ "use strict";

const env = utils_1.getEnv('GLOBAL_AGENT_');
process.env.GLOBAL_AGENT_HTTP_PROXY = env('HTTP_PROXY');
process.env.GLOBAL_AGENT_HTTPS_PROXY = env('HTTPS_PROXY');
process.env.GLOBAL_AGENT_NO_PROXY = env('NO_PROXY');
utils_1.setEnv('GLOBAL_AGENT_HTTP_PROXY', env('HTTP_PROXY'));
utils_1.setEnv('GLOBAL_AGENT_HTTPS_PROXY', env('HTTPS_PROXY'));
utils_1.setEnv('GLOBAL_AGENT_NO_PROXY', env('NO_PROXY'));
// `global-agent` works with Node.js v10 and above.

@@ -21,0 +21,0 @@ require('global-agent').bootstrap();

@@ -25,1 +25,2 @@ export declare function withTempDirectoryIn<T>(parentDirectory: string | undefined, fn: (directory: string) => Promise<T>): Promise<T>;

export declare function getEnv(prefix?: string): (name: string) => string | undefined;
export declare function setEnv(key: string, value: string | undefined): void;

@@ -99,2 +99,10 @@ "use strict";

exports.getEnv = getEnv;
function setEnv(key, value) {
// The `void` operator always returns `undefined`.
// See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/void
if (value !== void 0) {
process.env[key] = value;
}
}
exports.setEnv = setEnv;
//# sourceMappingURL=utils.js.map
import * as debug from 'debug';
import { getEnv } from './utils';
import { getEnv, setEnv } from './utils';
const d = debug('@electron/get:proxy');

@@ -14,5 +14,5 @@ /**

const env = getEnv('GLOBAL_AGENT_');
process.env.GLOBAL_AGENT_HTTP_PROXY = env('HTTP_PROXY');
process.env.GLOBAL_AGENT_HTTPS_PROXY = env('HTTPS_PROXY');
process.env.GLOBAL_AGENT_NO_PROXY = env('NO_PROXY');
setEnv('GLOBAL_AGENT_HTTP_PROXY', env('HTTP_PROXY'));
setEnv('GLOBAL_AGENT_HTTPS_PROXY', env('HTTPS_PROXY'));
setEnv('GLOBAL_AGENT_NO_PROXY', env('NO_PROXY'));
// `global-agent` works with Node.js v10 and above.

@@ -19,0 +19,0 @@ require('global-agent').bootstrap();

@@ -25,1 +25,2 @@ export declare function withTempDirectoryIn<T>(parentDirectory: string | undefined, fn: (directory: string) => Promise<T>): Promise<T>;

export declare function getEnv(prefix?: string): (name: string) => string | undefined;
export declare function setEnv(key: string, value: string | undefined): void;

@@ -88,2 +88,9 @@ import * as childProcess from 'child_process';

}
export function setEnv(key, value) {
// The `void` operator always returns `undefined`.
// See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/void
if (value !== void 0) {
process.env[key] = value;
}
}
//# sourceMappingURL=utils.js.map
{
"name": "@electron/get",
"version": "1.14.0",
"version": "1.14.1",
"description": "Utility for downloading artifacts from different versions of Electron",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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