=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== node-assertive-5.0.2/lib/assertive.js-40- node-assertive-5.0.2/lib/assertive.js:41:let green = x => `\x1B[32m${x}\x1B[39m`; node-assertive-5.0.2/lib/assertive.js:42:let red = x => `\x1B[31m${x}\x1B[39m`; node-assertive-5.0.2/lib/assertive.js-43-let clear = '\x1b[39;49;00m'; ############################################## node-assertive-5.0.2/lib/assertive.js-45-if (!(typeof process === 'object' && process.stdout && process.stdout.isTTY)) { node-assertive-5.0.2/lib/assertive.js:46: red = x => `${x}`; node-assertive-5.0.2/lib/assertive.js-47- green = red; ############################################## node-assertive-5.0.2/lib/assertive.js-134- if (explanation != null) { node-assertive-5.0.2/lib/assertive.js:135: message = `Assertion failed: ${explanation}\n${clear}${message}`; node-assertive-5.0.2/lib/assertive.js-136- } ############################################## node-assertive-5.0.2/lib/assertive.js-152- } node-assertive-5.0.2/lib/assertive.js:153: return `not${name.charAt().toUpperCase()}${name.slice(1)}`; node-assertive-5.0.2/lib/assertive.js-154-} ############################################## node-assertive-5.0.2/lib/assertive.js-160- if (re.ignoreCase) flags += 'i'; node-assertive-5.0.2/lib/assertive.js:161: return `/${re.source}/${flags}`; node-assertive-5.0.2/lib/assertive.js-162-} ############################################## node-assertive-5.0.2/lib/assertive.js-175-function stringify(x) { node-assertive-5.0.2/lib/assertive.js:176: if (x == null) return `${x}`; node-assertive-5.0.2/lib/assertive.js-177- if (is.NaN(x)) return 'NaN'; ############################################## node-assertive-5.0.2/lib/assertive.js-193- } node-assertive-5.0.2/lib/assertive.js:194: return `${x.stack}\nwith error metadata:\n${json}`; node-assertive-5.0.2/lib/assertive.js-195- } ############################################## node-assertive-5.0.2/lib/assertive.js-199- try { node-assertive-5.0.2/lib/assertive.js:200: return `${className}[${x}]`; node-assertive-5.0.2/lib/assertive.js-201- } catch (e) { ############################################## node-assertive-5.0.2/lib/assertive.js-223- if (argc !== n || is.String(args[0])) return [name, negated]; node-assertive-5.0.2/lib/assertive.js:224: max = `,\nand when called with ${n} args, the first arg must be a docstring`; node-assertive-5.0.2/lib/assertive.js-225- } ############################################## node-assertive-5.0.2/lib/assertive.js-228- if (is.Number(count)) { node-assertive-5.0.2/lib/assertive.js:229: wantedArgCount = `${count} argument`; node-assertive-5.0.2/lib/assertive.js-230- } else { ############################################## node-assertive-5.0.2/lib/assertive.js-232- count = count.pop(); node-assertive-5.0.2/lib/assertive.js:233: wantedArgCount = `${wantedArgCount} or ${count} argument`; node-assertive-5.0.2/lib/assertive.js-234- } ############################################## node-assertive-5.0.2/lib/assertive.js-241- if (max) { node-assertive-5.0.2/lib/assertive.js:242: wantedArgNames = `explanation, ${wantedArgNames}`; node-assertive-5.0.2/lib/assertive.js-243- } node-assertive-5.0.2/lib/assertive.js-244- node-assertive-5.0.2/lib/assertive.js:245: const wanted = `${name}(${wantedArgNames})`; node-assertive-5.0.2/lib/assertive.js:246: const actual = `${name}(${actualArgs})`; node-assertive-5.0.2/lib/assertive.js-247- const message = `${green(wanted)} needs ${wantedArgCount + max} ############################################## node-assertive-5.0.2/lib/assertive.js-260- if (is.Array(x)) return 'Array'; node-assertive-5.0.2/lib/assertive.js:261: throw new TypeError(`unsupported type: ${x}`); node-assertive-5.0.2/lib/assertive.js-262-} ############################################## node-assertive-5.0.2/lib/assertive.js-266- if (str.length <= (threshold || 1024)) return str; node-assertive-5.0.2/lib/assertive.js:267: let desc = `length: ${value.length}`; node-assertive-5.0.2/lib/assertive.js:268: if (is.Array(value)) desc += `; ${str.length} JSON encoded`; node-assertive-5.0.2/lib/assertive.js-269- if (name) name += ' '; node-assertive-5.0.2/lib/assertive.js:270: return `${name}${type(value)}[${desc}]`; node-assertive-5.0.2/lib/assertive.js-271-} ############################################## node-assertive-5.0.2/lib/assertive.js-276- case !(x == null): node-assertive-5.0.2/lib/assertive.js:277: return `${x}`; // null / undefined node-assertive-5.0.2/lib/assertive.js-278- case !is.String(x): ############################################## node-assertive-5.0.2/lib/assertive.js-291- const last = list[list.length - 1]; node-assertive-5.0.2/lib/assertive.js:292: return `${first} ${conjunction || 'and'} ${last}`; node-assertive-5.0.2/lib/assertive.js-293-} ############################################## node-assertive-5.0.2/lib/assertive.js-298- } node-assertive-5.0.2/lib/assertive.js:299: typeName = `${typeName[0].toUpperCase()}${typeName.slice(1)}`; node-assertive-5.0.2/lib/assertive.js-300- ############################################## node-assertive-5.0.2/lib/assertive.js-320- throw error( node-assertive-5.0.2/lib/assertive.js:321: `Expected ${red(stringify(bool))} to be ${name}`, node-assertive-5.0.2/lib/assertive.js-322- explanation ############################################## node-assertive-5.0.2/lib/assertive.js-347- throw error( node-assertive-5.0.2/lib/assertive.js:348: `notEqual assertion expected ${red(stringify(actual))}` + node-assertive-5.0.2/lib/assertive.js-349- ' to be exactly anything else', ############################################## node-assertive-5.0.2/lib/assertive.js-354- throw error( node-assertive-5.0.2/lib/assertive.js:355: `Expected: ${green(stringify(expected))}\nActually: ` + node-assertive-5.0.2/lib/assertive.js:356: `${red(stringify(actual))}`, node-assertive-5.0.2/lib/assertive.js-357- explanation, ############################################## node-assertive-5.0.2/lib/assertive.js-386- message = node-assertive-5.0.2/lib/assertive.js:387: `deepEqual ${green(rightLooks)} failed on something that\n` + node-assertive-5.0.2/lib/assertive.js-388- 'serializes to the same result (likely some function)'; node-assertive-5.0.2/lib/assertive.js-389- } else { node-assertive-5.0.2/lib/assertive.js:390: message = `Expected: ${wrongLooks} to deepEqual ${rightLooks}`; node-assertive-5.0.2/lib/assertive.js-391- } ############################################## node-assertive-5.0.2/lib/assertive.js-408- const what = negated ? 'always-failing test' : 'no-op test'; node-assertive-5.0.2/lib/assertive.js:409: throw error(`${what} detected: all strings contain the empty string!`); node-assertive-5.0.2/lib/assertive.js-410- } ############################################## node-assertive-5.0.2/lib/assertive.js-414- throw new TypeError( node-assertive-5.0.2/lib/assertive.js:415: `${name} ${problem}; you used:\n` + node-assertive-5.0.2/lib/assertive.js:416: `${name} ${green(stringify(haystack))}, ${red(stringify(needle))}` node-assertive-5.0.2/lib/assertive.js-417- ); ############################################## node-assertive-5.0.2/lib/assertive.js-433- 'notInclude expected needle not to be found in ' + node-assertive-5.0.2/lib/assertive.js:434: `haystack\n- needle: ${stringify(needle)}\n haystack: ` node-assertive-5.0.2/lib/assertive.js-435- }${abbreviate('', haystack)}`; ############################################## node-assertive-5.0.2/lib/assertive.js-438- if (needle.global) { node-assertive-5.0.2/lib/assertive.js:439: message += contained.map(s => `* ${red(stringify(s))}`).join('\n'); node-assertive-5.0.2/lib/assertive.js-440- } else { node-assertive-5.0.2/lib/assertive.js:441: message += `* ${red(stringify(contained[0]))}`; node-assertive-5.0.2/lib/assertive.js-442- } ############################################## node-assertive-5.0.2/lib/assertive.js-447- throw error( node-assertive-5.0.2/lib/assertive.js:448: `${name} expected needle to be found in haystack\n` + node-assertive-5.0.2/lib/assertive.js:449: `- needle: ${stringify(needle)}\n` + node-assertive-5.0.2/lib/assertive.js:450: `haystack: ${abbreviate('', haystack)}`, node-assertive-5.0.2/lib/assertive.js-451- explanation ############################################## node-assertive-5.0.2/lib/assertive.js-472- : 'regexp arg is not a RegExp'; node-assertive-5.0.2/lib/assertive.js:473: const called = `${name} ${stringify(regexp)}, ${red(string)}`; node-assertive-5.0.2/lib/assertive.js:474: throw new TypeError(`${name}: ${oops}; you used:\n${called}`); node-assertive-5.0.2/lib/assertive.js-475- } ############################################## node-assertive-5.0.2/lib/assertive.js-480- let message = node-assertive-5.0.2/lib/assertive.js:481: `Expected: ${stringify(regexp)}\nnot to match: ` + node-assertive-5.0.2/lib/assertive.js:482: `${red(abbreviate('string', string))}`; node-assertive-5.0.2/lib/assertive.js-483- if (regexp.global) { node-assertive-5.0.2/lib/assertive.js-484- const count = string.match(regexp).length; node-assertive-5.0.2/lib/assertive.js:485: message += `\nMatches: ${red(count)}`; node-assertive-5.0.2/lib/assertive.js-486- } ############################################## node-assertive-5.0.2/lib/assertive.js-490- throw error( node-assertive-5.0.2/lib/assertive.js:491: `Expected: ${stringify(regexp)}\nto match: ` + node-assertive-5.0.2/lib/assertive.js:492: `${red(abbreviate('string', string))}`, node-assertive-5.0.2/lib/assertive.js-493- explanation ############################################## node-assertive-5.0.2/lib/assertive.js-511- if (typeof fn !== 'function') { node-assertive-5.0.2/lib/assertive.js:512: throw error(`${name} expects ${green('a function')} but got ${red(fn)}`); node-assertive-5.0.2/lib/assertive.js-513- } ############################################## node-assertive-5.0.2/lib/assertive.js-519- throw error( node-assertive-5.0.2/lib/assertive.js:520: `Threw an exception despite ${name} assertion:\n` + `${err.message}`, node-assertive-5.0.2/lib/assertive.js-521- explanation ############################################## node-assertive-5.0.2/lib/assertive.js-546- throw new TypeError( node-assertive-5.0.2/lib/assertive.js:547: `${name}: unknown expectedType ${badArg}; you used:\n${name} ` + node-assertive-5.0.2/lib/assertive.js:548: `${red(badArg)}, ${stringify(value)}\nDid you mean ${suggestions}?` node-assertive-5.0.2/lib/assertive.js-549- ); ############################################## node-assertive-5.0.2/lib/assertive.js-554- value = red(stringify(value)); node-assertive-5.0.2/lib/assertive.js:555: const toBeOrNotToBe = `${negated ? 'not ' : ''}to be`; node-assertive-5.0.2/lib/assertive.js:556: const message = `Expected value ${value} ${toBeOrNotToBe} of type ${stringType}`; node-assertive-5.0.2/lib/assertive.js-557- throw error(message, explanation); ############################################## node-assertive-5.0.2/lib/assertive.js-611- 'Promise was rejected despite resolves assertion:\n' + node-assertive-5.0.2/lib/assertive.js:612: `${(err && err.message) || err}`, node-assertive-5.0.2/lib/assertive.js-613- explanation ############################################## node-assertive-5.0.2/test/assertive.test.js-484- include(/h[oe]/, 'hey ho'); node-assertive-5.0.2/test/assertive.test.js:485: include(/^ho+pla$/, 'hoopla'); node-assertive-5.0.2/test/assertive.test.js-486- include(/jeeves/i, 'what ho, Jeeves?'); node-assertive-5.0.2/test/assertive.test.js:487: include(/^$/, ''); node-assertive-5.0.2/test/assertive.test.js-488- }); ############################################## node-assertive-5.0.2/test/assertive.test.js-516- throws(() => include(/SPELUNKING/, 'spelunking')); node-assertive-5.0.2/test/assertive.test.js:517: throws(() => include(/SAY, WHAT$/i, 'say, what?')); node-assertive-5.0.2/test/assertive.test.js-518- }); ############################################## node-assertive-5.0.2/test/assertive.test.js-597- throws(() => notInclude(/h[oe]/, 'hey ho')); node-assertive-5.0.2/test/assertive.test.js:598: throws(() => notInclude(/^ho+pla$/, 'hoopla')); node-assertive-5.0.2/test/assertive.test.js-599- throws(() => notInclude(/jeeves/i, 'what ho, Jeeves?')); ############################################## node-assertive-5.0.2/test/assertive.test.js-608- notInclude(/SPELUNKING/, 'spelunking'); node-assertive-5.0.2/test/assertive.test.js:609: notInclude(/SAY, WHAT$/i, 'say, what?'); node-assertive-5.0.2/test/assertive.test.js-610- }); ############################################## node-assertive-5.0.2/test/promisified.test.js-144- node-assertive-5.0.2/test/promisified.test.js:145: it(`resolves for ${pass.descr}`, () => node-assertive-5.0.2/test/promisified.test.js-146- assert.resolves( node-assertive-5.0.2/test/promisified.test.js:147: `${name} should succeed`, node-assertive-5.0.2/test/promisified.test.js-148- assert[name].apply(null, pass.pargs || []) ############################################## node-assertive-5.0.2/test/promisified.test.js-150- node-assertive-5.0.2/test/promisified.test.js:151: return it(`rejects for ${fail.descr}`, () => node-assertive-5.0.2/test/promisified.test.js-152- assert node-assertive-5.0.2/test/promisified.test.js-153- .rejects( node-assertive-5.0.2/test/promisified.test.js:154: `${name} should throw`, node-assertive-5.0.2/test/promisified.test.js-155- assert[name].apply(null, [fail.explain].concat(fail.pargs))