Sha256: 5d4d74edf8eeb719bf2e40ddde566ac581cea8807b1d4c15b18c75cf1ae7d9ac

Contents?: true

Size: 606 Bytes

Versions: 171

Compression:

Stored size: 606 Bytes

Contents

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');

Version data entries

171 entries across 146 versions & 18 rubygems

Version Path
clapton-0.0.17 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.16 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.15 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.49 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.49 node_modules/@babel/helper-define-polyfill-provider/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.49 node_modules/eslint-import-resolver-node/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.14 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.48 node_modules/eslint-import-resolver-node/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.48 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.48 node_modules/@babel/helper-define-polyfill-provider/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.13 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.12 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.11 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.10 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.9 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.8 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.7 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.6 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.5 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.4 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js