mirror of https://gitee.com/bigwinds/arangodb
Always org/arangodb -> @arangodb
This commit is contained in:
parent
942b3656e3
commit
dd51a91d59
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue