map.js 280 B

123456789
  1. if (process.env.npm_package_name === 'pseudomap' &&
  2. process.env.npm_lifecycle_script === 'test')
  3. process.env.TEST_PSEUDOMAP = 'true'
  4. if (typeof Map === 'function' && !process.env.TEST_PSEUDOMAP) {
  5. module.exports = Map
  6. } else {
  7. module.exports = require('./pseudomap')
  8. }