1
0
Fork 0

Always org/arangodb -> @arangodb

This commit is contained in:
Alan Plum 2015-12-17 13:02:39 +01:00
parent 942b3656e3
commit dd51a91d59
1 changed files with 2 additions and 1 deletions

View File

@ -91,7 +91,7 @@ function hasOwnProperty(obj, prop) {
function createRequire(module) {
function require(path) {
return module.require(path.replace(/^org\/arangodb/, '@arangodb'));
return module.require(path);
}
require.resolve = function(request) {
@ -406,6 +406,7 @@ function isGlobalModule(filename) {
// Then have it load the file contents before returning its exports
// object.
Module._load = function(request, parent, isMain) {
request = request.replace(/^org\/arangodb/, '@arangodb');
var filename = request;
var dbModule = false;