change url to archive mirror
This commit is contained in:
1 parent
fbb2b0cc60
commit
66602c7280
690 files changed
+1017813
-2
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
var a = require.resolve('buffer/').replace(process.cwd(), '$CWD');
|
||||
var b = require('resolve').sync('buffer/', { preserveSymlinks: true }).replace(process.cwd(), '$CWD');
|
||||
var c = require('resolve').sync('buffer/', { preserveSymlinks: false }).replace(process.cwd(), '$CWD');
|
||||
|
||||
console.log(a, ': require.resolve, preserveSymlinks ' + (process.execArgv.indexOf('preserve-symlinks') > -1 ? 'true' : 'false'));
|
||||
console.log(b, ': preserveSymlinks true');
|
||||
console.log(c, ': preserveSymlinks false');
|
||||
|
||||
if (a !== b && a !== c) {
|
||||
throw 'sync: no match';
|
||||
}
|
||||
console.log('sync: success! a matched either b or c\n');
|
||||
Reference in new issue
Block a user