=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== node-cacache-15.0.5+~cs13.9.21/README.md-16- node-cacache-15.0.5+~cs13.9.21/README.md:17:`$ npm install --save cacache` node-cacache-15.0.5+~cs13.9.21/README.md-18- ############################################## node-cacache-15.0.5+~cs13.9.21/README.md-59-cacache.put(cachePath, key, '10293801983029384').then(integrity => { node-cacache-15.0.5+~cs13.9.21/README.md:60: console.log(`Saved content to ${cachePath}.`) node-cacache-15.0.5+~cs13.9.21/README.md-61-}) ############################################## node-cacache-15.0.5+~cs13.9.21/README.md-389- cachePath, 'registry.npmjs.org|cacache@1.0.0' node-cacache-15.0.5+~cs13.9.21/README.md:390: ).on('integrity', d => console.log(`integrity digest is ${d}`)) node-cacache-15.0.5+~cs13.9.21/README.md-391-) ############################################## node-cacache-15.0.5+~cs13.9.21/lib/content/path.js-27-function contentDir (cache) { node-cacache-15.0.5+~cs13.9.21/lib/content/path.js:28: return path.join(cache, `content-v${contentVer}`) node-cacache-15.0.5+~cs13.9.21/lib/content/path.js-29-} ############################################## node-cacache-15.0.5+~cs13.9.21/lib/content/read.js-236-function sizeError (expected, found) { node-cacache-15.0.5+~cs13.9.21/lib/content/read.js:237: const err = new Error(`Bad data size: expected inserted data to be ${expected} bytes, but got ${found} instead`) node-cacache-15.0.5+~cs13.9.21/lib/content/read.js-238- err.expected = expected ############################################## node-cacache-15.0.5+~cs13.9.21/lib/content/read.js-244-function integrityError (sri, path) { node-cacache-15.0.5+~cs13.9.21/lib/content/read.js:245: const err = new Error(`Integrity verification failed for ${sri} (${path})`) node-cacache-15.0.5+~cs13.9.21/lib/content/read.js-246- err.code = 'EINTEGRITY' ############################################## node-cacache-15.0.5+~cs13.9.21/lib/content/write.js-168-function sizeError (expected, found) { node-cacache-15.0.5+~cs13.9.21/lib/content/write.js:169: const err = new Error(`Bad data size: expected inserted data to be ${expected} bytes, but got ${found} instead`) node-cacache-15.0.5+~cs13.9.21/lib/content/write.js-170- err.expected = expected ############################################## node-cacache-15.0.5+~cs13.9.21/lib/entry-index.js-20- constructor (cache, key) { node-cacache-15.0.5+~cs13.9.21/lib/entry-index.js:21: super(`No cache entry for ${key} found in ${cache}`) node-cacache-15.0.5+~cs13.9.21/lib/entry-index.js-22- this.code = 'ENOENT' ############################################## node-cacache-15.0.5+~cs13.9.21/lib/entry-index.js-50- // Thanks to @isaacs for the whiteboarding session that ended up with this. node-cacache-15.0.5+~cs13.9.21/lib/entry-index.js:51: return appendFile(bucket, `\n${hashEntry(stringified)}\t${stringified}`) node-cacache-15.0.5+~cs13.9.21/lib/entry-index.js-52- }) ############################################## node-cacache-15.0.5+~cs13.9.21/lib/entry-index.js-83- const stringified = JSON.stringify(entry) node-cacache-15.0.5+~cs13.9.21/lib/entry-index.js:84: fs.appendFileSync(bucket, `\n${hashEntry(stringified)}\t${stringified}`) node-cacache-15.0.5+~cs13.9.21/lib/entry-index.js-85- try { ############################################## node-cacache-15.0.5+~cs13.9.21/lib/entry-index.js-249-function bucketDir (cache) { node-cacache-15.0.5+~cs13.9.21/lib/entry-index.js:250: return path.join(cache, `index-v${indexV}`) node-cacache-15.0.5+~cs13.9.21/lib/entry-index.js-251-} ############################################## node-cacache-15.0.5+~cs13.9.21/lib/memoization.js-27-function put (cache, entry, data, opts) { node-cacache-15.0.5+~cs13.9.21/lib/memoization.js:28: pickMem(opts).set(`key:${cache}:${entry.key}`, { entry, data }) node-cacache-15.0.5+~cs13.9.21/lib/memoization.js-29- putDigest(cache, entry.integrity, data, opts) ############################################## node-cacache-15.0.5+~cs13.9.21/lib/memoization.js-34-function putDigest (cache, integrity, data, opts) { node-cacache-15.0.5+~cs13.9.21/lib/memoization.js:35: pickMem(opts).set(`digest:${cache}:${integrity}`, data) node-cacache-15.0.5+~cs13.9.21/lib/memoization.js-36-} ############################################## node-cacache-15.0.5+~cs13.9.21/lib/memoization.js-40-function get (cache, key, opts) { node-cacache-15.0.5+~cs13.9.21/lib/memoization.js:41: return pickMem(opts).get(`key:${cache}:${key}`) node-cacache-15.0.5+~cs13.9.21/lib/memoization.js-42-} ############################################## node-cacache-15.0.5+~cs13.9.21/lib/memoization.js-46-function getDigest (cache, integrity, opts) { node-cacache-15.0.5+~cs13.9.21/lib/memoization.js:47: return pickMem(opts).get(`digest:${cache}:${integrity}`) node-cacache-15.0.5+~cs13.9.21/lib/memoization.js-48-} ############################################## node-cacache-15.0.5+~cs13.9.21/lib/verify.js-71- 'in', node-cacache-15.0.5+~cs13.9.21/lib/verify.js:72: `${stats.runTime.total}ms` node-cacache-15.0.5+~cs13.9.21/lib/verify.js-73- ) ############################################## node-cacache-15.0.5+~cs13.9.21/test/benchmarks/index.js-33- ? '' node-cacache-15.0.5+~cs13.9.21/test/benchmarks/index.js:34: : `${pctDelta > 0 ? '+' : ''}${pctDelta.toFixed(2)}% ` node-cacache-15.0.5+~cs13.9.21/test/benchmarks/index.js-35- colorDiff = ` (${ ############################################## node-cacache-15.0.5+~cs13.9.21/test/benchmarks/index.js-41- }±${bench.stats.rme.toFixed(2)}%)` node-cacache-15.0.5+~cs13.9.21/test/benchmarks/index.js:42: console.log(` ${bench.name}`) node-cacache-15.0.5+~cs13.9.21/test/benchmarks/index.js-43- console.log('------------------------------------------------') ############################################## node-cacache-15.0.5+~cs13.9.21/test/benchmarks/put.js-38- node-cacache-15.0.5+~cs13.9.21/test/benchmarks/put.js:39: suite.add(`cacache.put.stream() ${CONTENT.length} bytes`, { node-cacache-15.0.5+~cs13.9.21/test/benchmarks/put.js-40- defer: true, ############################################## node-cacache-15.0.5+~cs13.9.21/test/benchmarks/put.js-50- node-cacache-15.0.5+~cs13.9.21/test/benchmarks/put.js:51: suite.add(`cacache.put.stream() ${BIGCONTENT.length} bytes`, { node-cacache-15.0.5+~cs13.9.21/test/benchmarks/put.js-52- defer: true, ############################################## node-cacache-15.0.5+~cs13.9.21/test/get.js-429- stream.on(ev, () => { node-cacache-15.0.5+~cs13.9.21/test/get.js:430: t.ok(`${ev} listener added`) node-cacache-15.0.5+~cs13.9.21/test/get.js-431- }) ############################################## node-cacache-15.0.5+~cs13.9.21/test/index.find.js-191- '\n' + node-cacache-15.0.5+~cs13.9.21/test/index.find.js:192: `${index.hashEntry(stringified)}\t${stringified}` + node-cacache-15.0.5+~cs13.9.21/test/index.find.js-193- '\n{"key": "' + ############################################## node-cacache-15.0.5+~cs13.9.21/test/memoization.js-20- { node-cacache-15.0.5+~cs13.9.21/test/memoization.js:21: [`key:${CACHE}:${ENTRY.key}`]: { node-cacache-15.0.5+~cs13.9.21/test/memoization.js-22- entry: ENTRY, ############################################## node-cacache-15.0.5+~cs13.9.21/test/memoization.js-24- }, node-cacache-15.0.5+~cs13.9.21/test/memoization.js:25: [`digest:${CACHE}:${ENTRY.integrity}`]: DATA node-cacache-15.0.5+~cs13.9.21/test/memoization.js-26- }, ############################################## node-cacache-15.0.5+~cs13.9.21/test/memoization.js-93- t.deepEqual( node-cacache-15.0.5+~cs13.9.21/test/memoization.js:94: MEMO.get(`key:${CACHE}:${ENTRY.key}`), node-cacache-15.0.5+~cs13.9.21/test/memoization.js-95- { entry: ENTRY, data: DATA }, ############################################## node-cacache-15.0.5+~cs13.9.21/test/memoization.js-98- t.deepEqual( node-cacache-15.0.5+~cs13.9.21/test/memoization.js:99: MEMO.get(`digest:${CACHE}:${ENTRY.integrity}`), node-cacache-15.0.5+~cs13.9.21/test/memoization.js-100- DATA, ############################################## node-cacache-15.0.5+~cs13.9.21/test/memoization.js-115- t.deepEqual( node-cacache-15.0.5+~cs13.9.21/test/memoization.js:116: MEMO.get(`digest:${CACHE}:${ENTRY.integrity}`), node-cacache-15.0.5+~cs13.9.21/test/memoization.js-117- DATA, ############################################## node-cacache-15.0.5+~cs13.9.21/test/util/cache-index.js-36- const stringified = JSON.stringify(line) node-cacache-15.0.5+~cs13.9.21/test/util/cache-index.js:37: return `${hashEntry(stringified)}\t${stringified}` node-cacache-15.0.5+~cs13.9.21/test/util/cache-index.js-38- }) ############################################## node-cacache-15.0.5+~cs13.9.21/test/verify.js-110- bucketData, node-cacache-15.0.5+~cs13.9.21/test/verify.js:111: `\n${index.hashEntry(stringified)}\t${stringified}`, node-cacache-15.0.5+~cs13.9.21/test/verify.js-112- 'only the most recent entry is still in the bucket' ############################################## node-cacache-15.0.5+~cs13.9.21/figgy-pudding/index.js-15- } else { node-cacache-15.0.5+~cs13.9.21/figgy-pudding/index.js:16: throw new Error(`Alias refers to invalid key: ${key} -> ${alias}`) node-cacache-15.0.5+~cs13.9.21/figgy-pudding/index.js-17- } ############################################## node-cacache-15.0.5+~cs13.9.21/figgy-pudding/index.js-93- throw Object.assign(new Error( node-cacache-15.0.5+~cs13.9.21/figgy-pudding/index.js:94: `invalid config key requested: ${key}` node-cacache-15.0.5+~cs13.9.21/figgy-pudding/index.js-95- ), {code: 'EBADKEY'}) ############################################## node-cacache-15.0.5+~cs13.9.21/figgy-pudding/README.md-20- node-cacache-15.0.5+~cs13.9.21/figgy-pudding/README.md:21:`$ npm install figgy-pudding` node-cacache-15.0.5+~cs13.9.21/figgy-pudding/README.md-22- ############################################## node-cacache-15.0.5+~cs13.9.21/figgy-pudding/README.md-53- opts = PrintOpts(opts) node-cacache-15.0.5+~cs13.9.21/figgy-pudding/README.md:54: const uri = `https://registry.npmjs.com/${name}` node-cacache-15.0.5+~cs13.9.21/figgy-pudding/README.md-55- const res = await fetch(uri, opts.concat({ ############################################## node-cacache-15.0.5+~cs13.9.21/minipass/test/basic.js-251- fs.writeFileSync(file, ` node-cacache-15.0.5+~cs13.9.21/minipass/test/basic.js:252: const MP = require(${module}) node-cacache-15.0.5+~cs13.9.21/minipass/test/basic.js-253- const mp = new MP() ############################################## node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/index.js-49- if (!options.overwrite && await pathExists(destination)) { node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/index.js:50: throw new Error(`The destination file exists: ${destination}`) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/index.js-51- } ############################################## node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/index.js-77- if (!options.overwrite && pathExistsSync(destination)) { node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/index.js:78: throw new Error(`The destination file exists: ${destination}`) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/index.js-79- } ############################################## node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js-13- }) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js:14: const dest = `${dir}/dest` node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js:15: await moveFile(`${dir}/src`, dest) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js-16- t.equal(fs.readFileSync(dest, 'utf8'), fixture) ############################################## node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js-31- }) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js:32: const dest = `${dir}/dest` node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js:33: await t.rejects(() => moveFile(`${dir}/src`, dest), randoError) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js-34-}) ############################################## node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js-48- }) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js:49: const dest = `${dir}/dest` node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js:50: await moveFile(`${dir}/src`, dest) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js-51- t.equal(fs.readFileSync(dest, 'utf8'), fixture) ############################################## node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js-58- }) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js:59: await t.rejects(moveFile(`${dir}/src`, `${dir}/dest`, {overwrite: false})) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js:60: t.equal(fs.readFileSync(`${dir}/dest`, 'utf8'), 'y') node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js:61: await moveFile(`${dir}/src`, `${dir}/dest`) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js:62: t.equal(fs.readFileSync(`${dir}/dest`, 'utf8'), 'x') node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js-63-}) ############################################## node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js-77- }) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js:78: await t.rejects(moveFile(`${dir}/src`, `${dir}/dest`, {overwrite: false})) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js-79- // it actually isn't there tho, so this fails, obviously node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js:80: t.throws(() => fs.readFileSync(`${dir}/dest`, 'utf8'), 'y') node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js:81: await moveFile(`${dir}/src`, `${dir}/dest`) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js:82: t.equal(fs.readFileSync(`${dir}/dest`, 'utf8'), 'x') node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/async.js-83-}) ############################################## node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js-13- }) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js:14: const dest = `${dir}/dest` node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js:15: moveFile.sync(`${dir}/src`, dest) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js-16- t.equal(fs.readFileSync(dest, 'utf8'), fixture) ############################################## node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js-31- }) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js:32: const dest = `${dir}/dest` node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js:33: moveFile.sync(`${dir}/src`, dest) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js-34- t.equal(fs.readFileSync(dest, 'utf8'), fixture) ############################################## node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js-49- }) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js:50: const dest = `${dir}/dest` node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js:51: t.throws(() => moveFile.sync(`${dir}/src`, dest), randoError) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js-52-}) ############################################## node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js-58- }) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js:59: t.throws(() => moveFile.sync(`${dir}/src`, `${dir}/dest`, {overwrite: false})) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js:60: t.equal(fs.readFileSync(`${dir}/dest`, 'utf8'), 'y') node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js:61: moveFile.sync(`${dir}/src`, `${dir}/dest`) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js:62: t.equal(fs.readFileSync(`${dir}/dest`, 'utf8'), 'x') node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js-63-}) ############################################## node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js-77- }) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js:78: t.throws(() => moveFile.sync(`${dir}/src`, `${dir}/dest`, {overwrite: false})) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js-79- // it actually isn't there tho, so this fails, obviously node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js:80: t.throws(() => fs.readFileSync(`${dir}/dest`, 'utf8'), 'y') node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js:81: moveFile.sync(`${dir}/src`, `${dir}/dest`) node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js:82: t.equal(fs.readFileSync(`${dir}/dest`, 'utf8'), 'x') node-cacache-15.0.5+~cs13.9.21/npmcli-move-file/test/sync.js-83-})