Sha256: 2e6b4fa4c6eb69554654a4424b9392a7419ae31210cb0a956c8887bda5e3871e

Contents?: true

Size: 347 Bytes

Versions: 24

Compression:

Stored size: 347 Bytes

Contents

module.exports = function(moduleName) {
  try {
    return module.parent.require(moduleName);
  } catch (e) {
    // This could mean that we are in a browser context.
    // Add another try catch like it used to be, for backwards compability
    // and browserify reasons.
    try {
      return require(moduleName);
    }
    catch (e) {}
  }
};

Version data entries

24 entries across 17 versions & 2 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request/lib/optional.js
hooch-0.4.1 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request/lib/optional.js
hooch-0.4.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request/lib/optional.js
hooch-0.3.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request/lib/optional.js
hooch-0.2.1 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request/lib/optional.js
hooch-0.2.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request/lib/optional.js
hooch-0.1.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request/lib/optional.js
hooch-0.0.8 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request/lib/optional.js
hooch-0.0.7 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request/lib/optional.js
hooch-0.0.6 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request/lib/optional.js
entangled-0.0.16 spec/dummy/public/node_modules/bower/node_modules/request/lib/optional.js
entangled-0.0.16 spec/dummy/public/node_modules/phantomjs/node_modules/request/lib/optional.js
entangled-0.0.15 spec/dummy/public/node_modules/phantomjs/node_modules/request/lib/optional.js
entangled-0.0.15 spec/dummy/public/node_modules/bower/node_modules/request/lib/optional.js
entangled-0.0.14 spec/dummy/public/node_modules/bower/node_modules/request/lib/optional.js
entangled-0.0.14 spec/dummy/public/node_modules/phantomjs/node_modules/request/lib/optional.js
entangled-0.0.13 spec/dummy/public/node_modules/bower/node_modules/request/lib/optional.js
entangled-0.0.13 spec/dummy/public/node_modules/phantomjs/node_modules/request/lib/optional.js
entangled-0.0.12 spec/dummy/public/node_modules/phantomjs/node_modules/request/lib/optional.js
entangled-0.0.12 spec/dummy/public/node_modules/bower/node_modules/request/lib/optional.js