Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

proxy.js 955B

1234567891011121314151617181920212223242526
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const debug = require("debug");
  4. const d = debug('@electron/get:proxy');
  5. /**
  6. * Initializes a third-party proxy module for HTTP(S) requests.
  7. */
  8. function initializeProxy() {
  9. try {
  10. // Code originally from https://github.com/yeoman/yo/blob/b2eea87e/lib/cli.js#L19-L28
  11. const MAJOR_NODEJS_VERSION = parseInt(process.version.slice(1).split('.')[0], 10);
  12. if (MAJOR_NODEJS_VERSION >= 10) {
  13. // `global-agent` works with Node.js v10 and above.
  14. require('global-agent').bootstrap();
  15. }
  16. else {
  17. // `global-tunnel-ng` works with Node.js v10 and below.
  18. require('global-tunnel-ng').initialize();
  19. }
  20. }
  21. catch (e) {
  22. d('Could not load either proxy modules, built-in proxy support not available:', e);
  23. }
  24. }
  25. exports.initializeProxy = initializeProxy;
  26. //# sourceMappingURL=proxy.js.map