Izmjenjena struktura, dodan backand

This commit is contained in:
GotPPay
2017-10-16 11:19:46 +02:00
parent 1ec88afacb
commit 048e32c4aa
37153 changed files with 2975854 additions and 1 deletions

29
web/node_modules/require-uncached/index.js generated vendored Normal file
View File

@@ -0,0 +1,29 @@
'use strict';
var path = require('path');
var resolveFrom = require('resolve-from');
var callerPath = require('caller-path');
module.exports = function (moduleId) {
if (typeof moduleId !== 'string') {
throw new TypeError('Expected a string');
}
var filePath = resolveFrom(path.dirname(callerPath()), moduleId);
// delete itself from module parent
if (require.cache[filePath] && require.cache[filePath].parent) {
var i = require.cache[filePath].parent.children.length;
while (i--) {
if (require.cache[filePath].parent.children[i].id === filePath) {
require.cache[filePath].parent.children.splice(i, 1);
}
}
}
// delete module from cache
delete require.cache[filePath];
// return fresh module
return require(filePath);
};