github.com/jfrog/jfrog-cli-go@v1.22.1-0.20200318093948-4826ef344ffd/npm/node_modules/debug/src/index.js (about)

     1  /**
     2   * Detect Electron renderer process, which is node, but we should
     3   * treat as a browser.
     4   */
     5  
     6  if (typeof process === 'undefined' || process.type === 'renderer') {
     7    module.exports = require('./browser.js');
     8  } else {
     9    module.exports = require('./node.js');
    10  }