How to use isDirect method in ng-mocks

Best JavaScript code snippet using ng-mocks

audit-report.js.test.cjs

Source:audit-report.js.test.cjs Github

copy

Full Screen

1/* IMPORTANT2 * This snapshot file is auto-generated, but designed for humans.3 * It should be checked into source control and tracked carefully.4 * Re-generate by setting TAP_SNAPSHOT=1 and running tests.5 * Make sure to inspect the output below. Do not ignore changes!6 */7'use strict'8exports[`test/audit-report.js TAP a dep vuln that also has its own advisory against it > json version 1`] = `9{10 "auditReportVersion": 2,11 "vulnerabilities": {12 "minimist": {13 "name": "minimist",14 "severity": "low",15 "isDirect": false,16 "via": [17 {18 "source": 1179,19 "name": "minimist",20 "dependency": "minimist",21 "title": "Prototype Pollution",22 "url": "https://npmjs.com/advisories/1179",23 "severity": "low",24 "range": "<0.2.1 || >=1.0.0 <1.2.3"25 }26 ],27 "effects": [28 "mkdirp"29 ],30 "range": "<0.2.1 || >=1.0.0 <1.2.3",31 "nodes": [32 "node_modules/minimist"33 ],34 "fixAvailable": true35 },36 "mkdirp": {37 "name": "mkdirp",38 "severity": "high",39 "isDirect": true,40 "via": [41 {42 "source": 42069,43 "name": "mkdirp",44 "dependency": "mkdirp",45 "title": "File System Pollution",46 "url": "https://npmjs.com/advisories/42069",47 "severity": "high",48 "range": "<0.5.5"49 },50 "minimist"51 ],52 "effects": [],53 "range": "<=0.5.4",54 "nodes": [55 "node_modules/mkdirp"56 ],57 "fixAvailable": true58 }59 },60 "metadata": {61 "vulnerabilities": {62 "info": 0,63 "low": 1,64 "moderate": 0,65 "high": 1,66 "critical": 0,67 "total": 268 },69 "dependencies": {70 "prod": 3,71 "dev": 0,72 "optional": 0,73 "peer": 0,74 "peerOptional": 0,75 "total": 276 }77 }78}79`80exports[`test/audit-report.js TAP all severity levels > json version 1`] = `81{82 "auditReportVersion": 2,83 "vulnerabilities": {84 "handlebars": {85 "name": "handlebars",86 "severity": "critical",87 "isDirect": false,88 "via": [89 {90 "source": 1164,91 "name": "handlebars",92 "dependency": "handlebars",93 "title": "Prototype Pollution",94 "url": "https://npmjs.com/advisories/1164",95 "severity": "high",96 "range": "<3.0.8 || >=4.0.0 <4.3.0"97 },98 {99 "source": 1300,100 "name": "handlebars",101 "dependency": "handlebars",102 "title": "Denial of Service",103 "url": "https://npmjs.com/advisories/1300",104 "severity": "moderate",105 "range": ">=4.0.0 <4.4.5"106 },107 {108 "source": 1316,109 "name": "handlebars",110 "dependency": "handlebars",111 "title": "Arbitrary Code Execution",112 "url": "https://npmjs.com/advisories/1316",113 "severity": "high",114 "range": "<3.0.8 || >=4.0.0 <4.5.2"115 },116 {117 "source": 1324,118 "name": "handlebars",119 "dependency": "handlebars",120 "title": "Arbitrary Code Execution",121 "url": "https://npmjs.com/advisories/1324",122 "severity": "high",123 "range": "<3.0.8 || >=4.0.0 <4.5.3"124 },125 {126 "source": 1325,127 "name": "handlebars",128 "dependency": "handlebars",129 "title": "Prototype Pollution",130 "url": "https://npmjs.com/advisories/1325",131 "severity": "high",132 "range": "<3.0.8 || >=4.0.0 <4.5.3"133 },134 {135 "source": 755,136 "name": "handlebars",137 "dependency": "handlebars",138 "title": "Prototype Pollution",139 "url": "https://npmjs.com/advisories/755",140 "severity": "critical",141 "range": "<=4.0.13 || >=4.1.0 <4.1.2"142 },143 "optimist"144 ],145 "effects": [],146 "range": "<=4.7.3",147 "nodes": [148 "node_modules/nyc/node_modules/handlebars"149 ],150 "fixAvailable": true151 },152 "kind-of": {153 "name": "kind-of",154 "severity": "low",155 "isDirect": false,156 "via": [157 {158 "source": 1490,159 "name": "kind-of",160 "dependency": "kind-of",161 "title": "Validation Bypass",162 "url": "https://npmjs.com/advisories/1490",163 "severity": "low",164 "range": ">=6.0.0 <6.0.3"165 }166 ],167 "effects": [],168 "range": "6.0.0 - 6.0.2",169 "nodes": [170 "node_modules/nyc/node_modules/base/node_modules/kind-of",171 "node_modules/nyc/node_modules/define-property/node_modules/kind-of",172 "node_modules/nyc/node_modules/extglob/node_modules/kind-of",173 "node_modules/nyc/node_modules/micromatch/node_modules/kind-of",174 "node_modules/nyc/node_modules/nanomatch/node_modules/kind-of",175 "node_modules/nyc/node_modules/snapdragon-node/node_modules/kind-of",176 "node_modules/nyc/node_modules/test-exclude/node_modules/kind-of",177 "node_modules/nyc/node_modules/use/node_modules/kind-of"178 ],179 "fixAvailable": true180 },181 "lodash": {182 "name": "lodash",183 "severity": "high",184 "isDirect": false,185 "via": [186 {187 "source": 1065,188 "name": "lodash",189 "dependency": "lodash",190 "title": "Prototype Pollution",191 "url": "https://npmjs.com/advisories/1065",192 "severity": "high",193 "range": "<4.17.12"194 },195 {196 "source": 782,197 "name": "lodash",198 "dependency": "lodash",199 "title": "Prototype Pollution",200 "url": "https://npmjs.com/advisories/782",201 "severity": "high",202 "range": "<4.17.11"203 }204 ],205 "effects": [],206 "range": "<=4.17.11",207 "nodes": [208 "node_modules/nyc/node_modules/lodash"209 ],210 "fixAvailable": true211 },212 "mem": {213 "name": "mem",214 "severity": "low",215 "isDirect": false,216 "via": [217 {218 "source": 1084,219 "name": "mem",220 "dependency": "mem",221 "title": "Denial of Service",222 "url": "https://npmjs.com/advisories/1084",223 "severity": "low",224 "range": "<4.0.0"225 }226 ],227 "effects": [228 "os-locale"229 ],230 "range": "<4.0.0",231 "nodes": [232 "node_modules/nyc/node_modules/mem"233 ],234 "fixAvailable": {235 "name": "nyc",236 "version": "15.1.0",237 "isSemVerMajor": true238 }239 },240 "minimist": {241 "name": "minimist",242 "severity": "low",243 "isDirect": false,244 "via": [245 {246 "source": 1179,247 "name": "minimist",248 "dependency": "minimist",249 "title": "Prototype Pollution",250 "url": "https://npmjs.com/advisories/1179",251 "severity": "low",252 "range": "<0.2.1 || >=1.0.0 <1.2.3"253 }254 ],255 "effects": [256 "mkdirp",257 "optimist"258 ],259 "range": "<0.2.1 || >=1.0.0 <1.2.3",260 "nodes": [261 "node_modules/minimist",262 "node_modules/nyc/node_modules/minimist"263 ],264 "fixAvailable": {265 "name": "nyc",266 "version": "15.1.0",267 "isSemVerMajor": true268 }269 },270 "mixin-deep": {271 "name": "mixin-deep",272 "severity": "high",273 "isDirect": false,274 "via": [275 {276 "source": 1013,277 "name": "mixin-deep",278 "dependency": "mixin-deep",279 "title": "Prototype Pollution",280 "url": "https://npmjs.com/advisories/1013",281 "severity": "high",282 "range": "<1.3.2 || >=2.0.0 <2.0.1"283 }284 ],285 "effects": [],286 "range": "<=1.3.1 || 2.0.0",287 "nodes": [288 "node_modules/nyc/node_modules/mixin-deep"289 ],290 "fixAvailable": true291 },292 "mkdirp": {293 "name": "mkdirp",294 "severity": "low",295 "isDirect": true,296 "via": [297 "minimist"298 ],299 "effects": [300 "nyc"301 ],302 "range": "0.4.1 - 0.5.1",303 "nodes": [304 "node_modules/mkdirp",305 "node_modules/nyc/node_modules/mkdirp"306 ],307 "fixAvailable": {308 "name": "nyc",309 "version": "15.1.0",310 "isSemVerMajor": true311 }312 },313 "node-weakauras-parser": {314 "name": "node-weakauras-parser",315 "severity": "moderate",316 "isDirect": true,317 "via": [318 {319 "source": 1504,320 "name": "node-weakauras-parser",321 "dependency": "node-weakauras-parser",322 "title": "Buffer Overflow",323 "url": "https://npmjs.com/advisories/1504",324 "severity": "moderate",325 "range": ">=1.0.4 <1.0.5 || >=2.0.0 <2.0.2 || >=3.0.0 <3.0.1"326 }327 ],328 "effects": [],329 "range": "1.0.4 || 2.0.1 || 3.0.0",330 "nodes": [331 "node_modules/node-weakauras-parser"332 ],333 "fixAvailable": true334 },335 "nyc": {336 "name": "nyc",337 "severity": "low",338 "isDirect": true,339 "via": [340 "mkdirp",341 "yargs"342 ],343 "effects": [],344 "range": "6.2.0-alpha - 13.1.0",345 "nodes": [346 "node_modules/nyc"347 ],348 "fixAvailable": {349 "name": "nyc",350 "version": "15.1.0",351 "isSemVerMajor": true352 }353 },354 "optimist": {355 "name": "optimist",356 "severity": "low",357 "isDirect": false,358 "via": [359 "minimist"360 ],361 "effects": [362 "handlebars"363 ],364 "range": ">=0.6.0",365 "nodes": [366 "node_modules/nyc/node_modules/optimist"367 ],368 "fixAvailable": true369 },370 "os-locale": {371 "name": "os-locale",372 "severity": "low",373 "isDirect": false,374 "via": [375 "mem"376 ],377 "effects": [378 "yargs"379 ],380 "range": "2.0.0 - 3.0.0",381 "nodes": [382 "node_modules/nyc/node_modules/os-locale"383 ],384 "fixAvailable": {385 "name": "nyc",386 "version": "15.1.0",387 "isSemVerMajor": true388 }389 },390 "sapper": {391 "name": "sapper",392 "severity": "critical",393 "isDirect": true,394 "via": [395 {396 "source": 1494,397 "name": "sapper",398 "dependency": "sapper",399 "title": "Path Traversal",400 "url": "https://npmjs.com/advisories/1494",401 "severity": "critical",402 "range": "<0.27.11"403 }404 ],405 "effects": [],406 "range": "<0.27.11",407 "nodes": [408 "node_modules/sapper"409 ],410 "fixAvailable": true411 },412 "set-value": {413 "name": "set-value",414 "severity": "high",415 "isDirect": false,416 "via": [417 {418 "source": 1012,419 "name": "set-value",420 "dependency": "set-value",421 "title": "Prototype Pollution",422 "url": "https://npmjs.com/advisories/1012",423 "severity": "high",424 "range": "<2.0.1 || >=3.0.0 <3.0.1"425 }426 ],427 "effects": [428 "union-value"429 ],430 "range": "<=2.0.0 || 3.0.0",431 "nodes": [432 "node_modules/nyc/node_modules/set-value",433 "node_modules/nyc/node_modules/union-value/node_modules/set-value"434 ],435 "fixAvailable": true436 },437 "subtext": {438 "name": "subtext",439 "severity": "high",440 "isDirect": true,441 "via": [442 {443 "source": 1168,444 "name": "subtext",445 "dependency": "subtext",446 "title": "Denial of Service",447 "url": "https://npmjs.com/advisories/1168",448 "severity": "high",449 "range": ">=0.0.0"450 },451 {452 "source": 1478,453 "name": "subtext",454 "dependency": "subtext",455 "title": "Denial of Service",456 "url": "https://npmjs.com/advisories/1478",457 "severity": "high",458 "range": ">=4.1.0"459 },460 {461 "source": 1479,462 "name": "subtext",463 "dependency": "subtext",464 "title": "Prototype Pollution",465 "url": "https://npmjs.com/advisories/1479",466 "severity": "high",467 "range": ">=0.0.0"468 }469 ],470 "effects": [],471 "range": "*",472 "nodes": [473 "node_modules/subtext"474 ],475 "fixAvailable": false476 },477 "union-value": {478 "name": "union-value",479 "severity": "high",480 "isDirect": false,481 "via": [482 "set-value"483 ],484 "effects": [],485 "range": "<=1.0.0 || 2.0.0",486 "nodes": [487 "node_modules/nyc/node_modules/union-value"488 ],489 "fixAvailable": true490 },491 "yargs": {492 "name": "yargs",493 "severity": "low",494 "isDirect": false,495 "via": [496 "os-locale"497 ],498 "effects": [499 "nyc"500 ],501 "range": "8.0.1 - 11.1.0 || 12.0.0-candidate.0 - 12.0.1",502 "nodes": [503 "node_modules/nyc/node_modules/yargs"504 ],505 "fixAvailable": {506 "name": "nyc",507 "version": "15.1.0",508 "isSemVerMajor": true509 }510 }511 },512 "metadata": {513 "vulnerabilities": {514 "info": 0,515 "low": 8,516 "moderate": 1,517 "high": 5,518 "critical": 2,519 "total": 16520 },521 "dependencies": {522 "prod": 507,523 "dev": 0,524 "optional": 12,525 "peer": 0,526 "peerOptional": 0,527 "total": 518528 }529 }530}531`532exports[`test/audit-report.js TAP audit outdated nyc and mkdirp > json version 1`] = `533{534 "auditReportVersion": 2,535 "vulnerabilities": {536 "handlebars": {537 "name": "handlebars",538 "severity": "critical",539 "isDirect": false,540 "via": [541 {542 "source": 1164,543 "name": "handlebars",544 "dependency": "handlebars",545 "title": "Prototype Pollution",546 "url": "https://npmjs.com/advisories/1164",547 "severity": "high",548 "range": "<3.0.8 || >=4.0.0 <4.3.0"549 },550 {551 "source": 1300,552 "name": "handlebars",553 "dependency": "handlebars",554 "title": "Denial of Service",555 "url": "https://npmjs.com/advisories/1300",556 "severity": "moderate",557 "range": ">=4.0.0 <4.4.5"558 },559 {560 "source": 1316,561 "name": "handlebars",562 "dependency": "handlebars",563 "title": "Arbitrary Code Execution",564 "url": "https://npmjs.com/advisories/1316",565 "severity": "high",566 "range": "<3.0.8 || >=4.0.0 <4.5.2"567 },568 {569 "source": 1324,570 "name": "handlebars",571 "dependency": "handlebars",572 "title": "Arbitrary Code Execution",573 "url": "https://npmjs.com/advisories/1324",574 "severity": "high",575 "range": "<3.0.8 || >=4.0.0 <4.5.3"576 },577 {578 "source": 1325,579 "name": "handlebars",580 "dependency": "handlebars",581 "title": "Prototype Pollution",582 "url": "https://npmjs.com/advisories/1325",583 "severity": "high",584 "range": "<3.0.8 || >=4.0.0 <4.5.3"585 },586 {587 "source": 755,588 "name": "handlebars",589 "dependency": "handlebars",590 "title": "Prototype Pollution",591 "url": "https://npmjs.com/advisories/755",592 "severity": "critical",593 "range": "<=4.0.13 || >=4.1.0 <4.1.2"594 },595 "optimist"596 ],597 "effects": [],598 "range": "<=4.7.3",599 "nodes": [600 "node_modules/nyc/node_modules/handlebars"601 ],602 "fixAvailable": true603 },604 "kind-of": {605 "name": "kind-of",606 "severity": "low",607 "isDirect": false,608 "via": [609 {610 "source": 1490,611 "name": "kind-of",612 "dependency": "kind-of",613 "title": "Validation Bypass",614 "url": "https://npmjs.com/advisories/1490",615 "severity": "low",616 "range": ">=6.0.0 <6.0.3"617 }618 ],619 "effects": [],620 "range": "6.0.0 - 6.0.2",621 "nodes": [622 "node_modules/nyc/node_modules/base/node_modules/kind-of",623 "node_modules/nyc/node_modules/define-property/node_modules/kind-of",624 "node_modules/nyc/node_modules/extglob/node_modules/kind-of",625 "node_modules/nyc/node_modules/micromatch/node_modules/kind-of",626 "node_modules/nyc/node_modules/nanomatch/node_modules/kind-of",627 "node_modules/nyc/node_modules/snapdragon-node/node_modules/kind-of",628 "node_modules/nyc/node_modules/test-exclude/node_modules/kind-of",629 "node_modules/nyc/node_modules/use/node_modules/kind-of"630 ],631 "fixAvailable": true632 },633 "lodash": {634 "name": "lodash",635 "severity": "high",636 "isDirect": false,637 "via": [638 {639 "source": 1065,640 "name": "lodash",641 "dependency": "lodash",642 "title": "Prototype Pollution",643 "url": "https://npmjs.com/advisories/1065",644 "severity": "high",645 "range": "<4.17.12"646 },647 {648 "source": 782,649 "name": "lodash",650 "dependency": "lodash",651 "title": "Prototype Pollution",652 "url": "https://npmjs.com/advisories/782",653 "severity": "high",654 "range": "<4.17.11"655 }656 ],657 "effects": [],658 "range": "<=4.17.11",659 "nodes": [660 "node_modules/nyc/node_modules/lodash"661 ],662 "fixAvailable": true663 },664 "mem": {665 "name": "mem",666 "severity": "low",667 "isDirect": false,668 "via": [669 {670 "source": 1084,671 "name": "mem",672 "dependency": "mem",673 "title": "Denial of Service",674 "url": "https://npmjs.com/advisories/1084",675 "severity": "low",676 "range": "<4.0.0"677 }678 ],679 "effects": [680 "os-locale"681 ],682 "range": "<4.0.0",683 "nodes": [684 "node_modules/nyc/node_modules/mem"685 ],686 "fixAvailable": {687 "name": "nyc",688 "version": "15.1.0",689 "isSemVerMajor": true690 }691 },692 "minimist": {693 "name": "minimist",694 "severity": "low",695 "isDirect": false,696 "via": [697 {698 "source": 1179,699 "name": "minimist",700 "dependency": "minimist",701 "title": "Prototype Pollution",702 "url": "https://npmjs.com/advisories/1179",703 "severity": "low",704 "range": "<0.2.1 || >=1.0.0 <1.2.3"705 }706 ],707 "effects": [708 "mkdirp",709 "optimist"710 ],711 "range": "<0.2.1 || >=1.0.0 <1.2.3",712 "nodes": [713 "node_modules/minimist",714 "node_modules/nyc/node_modules/minimist"715 ],716 "fixAvailable": {717 "name": "nyc",718 "version": "15.1.0",719 "isSemVerMajor": true720 }721 },722 "mixin-deep": {723 "name": "mixin-deep",724 "severity": "high",725 "isDirect": false,726 "via": [727 {728 "source": 1013,729 "name": "mixin-deep",730 "dependency": "mixin-deep",731 "title": "Prototype Pollution",732 "url": "https://npmjs.com/advisories/1013",733 "severity": "high",734 "range": "<1.3.2 || >=2.0.0 <2.0.1"735 }736 ],737 "effects": [],738 "range": "<=1.3.1 || 2.0.0",739 "nodes": [740 "node_modules/nyc/node_modules/mixin-deep"741 ],742 "fixAvailable": true743 },744 "mkdirp": {745 "name": "mkdirp",746 "severity": "low",747 "isDirect": true,748 "via": [749 "minimist"750 ],751 "effects": [752 "nyc"753 ],754 "range": "0.4.1 - 0.5.1",755 "nodes": [756 "node_modules/mkdirp",757 "node_modules/nyc/node_modules/mkdirp"758 ],759 "fixAvailable": {760 "name": "nyc",761 "version": "15.1.0",762 "isSemVerMajor": true763 }764 },765 "nyc": {766 "name": "nyc",767 "severity": "low",768 "isDirect": true,769 "via": [770 "mkdirp",771 "yargs"772 ],773 "effects": [],774 "range": "6.2.0-alpha - 13.1.0",775 "nodes": [776 "node_modules/nyc"777 ],778 "fixAvailable": {779 "name": "nyc",780 "version": "15.1.0",781 "isSemVerMajor": true782 }783 },784 "optimist": {785 "name": "optimist",786 "severity": "low",787 "isDirect": false,788 "via": [789 "minimist"790 ],791 "effects": [792 "handlebars"793 ],794 "range": ">=0.6.0",795 "nodes": [796 "node_modules/nyc/node_modules/optimist"797 ],798 "fixAvailable": true799 },800 "os-locale": {801 "name": "os-locale",802 "severity": "low",803 "isDirect": false,804 "via": [805 "mem"806 ],807 "effects": [808 "yargs"809 ],810 "range": "2.0.0 - 3.0.0",811 "nodes": [812 "node_modules/nyc/node_modules/os-locale"813 ],814 "fixAvailable": {815 "name": "nyc",816 "version": "15.1.0",817 "isSemVerMajor": true818 }819 },820 "set-value": {821 "name": "set-value",822 "severity": "high",823 "isDirect": false,824 "via": [825 {826 "source": 1012,827 "name": "set-value",828 "dependency": "set-value",829 "title": "Prototype Pollution",830 "url": "https://npmjs.com/advisories/1012",831 "severity": "high",832 "range": "<2.0.1 || >=3.0.0 <3.0.1"833 }834 ],835 "effects": [836 "union-value"837 ],838 "range": "<=2.0.0 || 3.0.0",839 "nodes": [840 "node_modules/nyc/node_modules/set-value",841 "node_modules/nyc/node_modules/union-value/node_modules/set-value"842 ],843 "fixAvailable": true844 },845 "union-value": {846 "name": "union-value",847 "severity": "high",848 "isDirect": false,849 "via": [850 "set-value"851 ],852 "effects": [],853 "range": "<=1.0.0 || 2.0.0",854 "nodes": [855 "node_modules/nyc/node_modules/union-value"856 ],857 "fixAvailable": true858 },859 "yargs": {860 "name": "yargs",861 "severity": "low",862 "isDirect": false,863 "via": [864 "os-locale"865 ],866 "effects": [867 "nyc"868 ],869 "range": "8.0.1 - 11.1.0 || 12.0.0-candidate.0 - 12.0.1",870 "nodes": [871 "node_modules/nyc/node_modules/yargs"872 ],873 "fixAvailable": {874 "name": "nyc",875 "version": "15.1.0",876 "isSemVerMajor": true877 }878 }879 },880 "metadata": {881 "vulnerabilities": {882 "info": 0,883 "low": 8,884 "moderate": 0,885 "high": 4,886 "critical": 1,887 "total": 13888 },889 "dependencies": {890 "prod": 318,891 "dev": 0,892 "optional": 12,893 "peer": 0,894 "peerOptional": 0,895 "total": 329896 }897 }898}899`900exports[`test/audit-report.js TAP audit outdated nyc and mkdirp with before: option > json version 1`] = `901{902 "auditReportVersion": 2,903 "vulnerabilities": {904 "handlebars": {905 "name": "handlebars",906 "severity": "critical",907 "isDirect": false,908 "via": [909 {910 "source": 1164,911 "name": "handlebars",912 "dependency": "handlebars",913 "title": "Prototype Pollution",914 "url": "https://npmjs.com/advisories/1164",915 "severity": "high",916 "range": "<3.0.8 || >=4.0.0 <4.3.0"917 },918 {919 "source": 1300,920 "name": "handlebars",921 "dependency": "handlebars",922 "title": "Denial of Service",923 "url": "https://npmjs.com/advisories/1300",924 "severity": "moderate",925 "range": ">=4.0.0 <4.4.5"926 },927 {928 "source": 1316,929 "name": "handlebars",930 "dependency": "handlebars",931 "title": "Arbitrary Code Execution",932 "url": "https://npmjs.com/advisories/1316",933 "severity": "high",934 "range": "<3.0.8 || >=4.0.0 <4.5.2"935 },936 {937 "source": 1324,938 "name": "handlebars",939 "dependency": "handlebars",940 "title": "Arbitrary Code Execution",941 "url": "https://npmjs.com/advisories/1324",942 "severity": "high",943 "range": "<3.0.8 || >=4.0.0 <4.5.3"944 },945 {946 "source": 1325,947 "name": "handlebars",948 "dependency": "handlebars",949 "title": "Prototype Pollution",950 "url": "https://npmjs.com/advisories/1325",951 "severity": "high",952 "range": "<3.0.8 || >=4.0.0 <4.5.3"953 },954 {955 "source": 755,956 "name": "handlebars",957 "dependency": "handlebars",958 "title": "Prototype Pollution",959 "url": "https://npmjs.com/advisories/755",960 "severity": "critical",961 "range": "<=4.0.13 || >=4.1.0 <4.1.2"962 },963 "optimist"964 ],965 "effects": [],966 "range": "<=4.7.3",967 "nodes": [968 "node_modules/nyc/node_modules/handlebars"969 ],970 "fixAvailable": true971 },972 "kind-of": {973 "name": "kind-of",974 "severity": "low",975 "isDirect": false,976 "via": [977 {978 "source": 1490,979 "name": "kind-of",980 "dependency": "kind-of",981 "title": "Validation Bypass",982 "url": "https://npmjs.com/advisories/1490",983 "severity": "low",984 "range": ">=6.0.0 <6.0.3"985 }986 ],987 "effects": [],988 "range": "6.0.0 - 6.0.2",989 "nodes": [990 "node_modules/nyc/node_modules/base/node_modules/kind-of",991 "node_modules/nyc/node_modules/define-property/node_modules/kind-of",992 "node_modules/nyc/node_modules/extglob/node_modules/kind-of",993 "node_modules/nyc/node_modules/micromatch/node_modules/kind-of",994 "node_modules/nyc/node_modules/nanomatch/node_modules/kind-of",995 "node_modules/nyc/node_modules/snapdragon-node/node_modules/kind-of",996 "node_modules/nyc/node_modules/test-exclude/node_modules/kind-of",997 "node_modules/nyc/node_modules/use/node_modules/kind-of"998 ],999 "fixAvailable": true1000 },1001 "lodash": {1002 "name": "lodash",1003 "severity": "high",1004 "isDirect": false,1005 "via": [1006 {1007 "source": 1065,1008 "name": "lodash",1009 "dependency": "lodash",1010 "title": "Prototype Pollution",1011 "url": "https://npmjs.com/advisories/1065",1012 "severity": "high",1013 "range": "<4.17.12"1014 },1015 {1016 "source": 782,1017 "name": "lodash",1018 "dependency": "lodash",1019 "title": "Prototype Pollution",1020 "url": "https://npmjs.com/advisories/782",1021 "severity": "high",1022 "range": "<4.17.11"1023 }1024 ],1025 "effects": [],1026 "range": "<=4.17.11",1027 "nodes": [1028 "node_modules/nyc/node_modules/lodash"1029 ],1030 "fixAvailable": true1031 },1032 "mem": {1033 "name": "mem",1034 "severity": "low",1035 "isDirect": false,1036 "via": [1037 {1038 "source": 1084,1039 "name": "mem",1040 "dependency": "mem",1041 "title": "Denial of Service",1042 "url": "https://npmjs.com/advisories/1084",1043 "severity": "low",1044 "range": "<4.0.0"1045 }1046 ],1047 "effects": [1048 "os-locale"1049 ],1050 "range": "<4.0.0",1051 "nodes": [1052 "node_modules/nyc/node_modules/mem"1053 ],1054 "fixAvailable": {1055 "name": "nyc",1056 "version": "15.1.0",1057 "isSemVerMajor": true1058 }1059 },1060 "minimist": {1061 "name": "minimist",1062 "severity": "low",1063 "isDirect": false,1064 "via": [1065 {1066 "source": 1179,1067 "name": "minimist",1068 "dependency": "minimist",1069 "title": "Prototype Pollution",1070 "url": "https://npmjs.com/advisories/1179",1071 "severity": "low",1072 "range": "<0.2.1 || >=1.0.0 <1.2.3"1073 }1074 ],1075 "effects": [1076 "mkdirp",1077 "optimist"1078 ],1079 "range": "<0.2.1 || >=1.0.0 <1.2.3",1080 "nodes": [1081 "node_modules/minimist",1082 "node_modules/nyc/node_modules/minimist"1083 ],1084 "fixAvailable": {1085 "name": "nyc",1086 "version": "15.1.0",1087 "isSemVerMajor": true1088 }1089 },1090 "mixin-deep": {1091 "name": "mixin-deep",1092 "severity": "high",1093 "isDirect": false,1094 "via": [1095 {1096 "source": 1013,1097 "name": "mixin-deep",1098 "dependency": "mixin-deep",1099 "title": "Prototype Pollution",1100 "url": "https://npmjs.com/advisories/1013",1101 "severity": "high",1102 "range": "<1.3.2 || >=2.0.0 <2.0.1"1103 }1104 ],1105 "effects": [],1106 "range": "<=1.3.1 || 2.0.0",1107 "nodes": [1108 "node_modules/nyc/node_modules/mixin-deep"1109 ],1110 "fixAvailable": true1111 },1112 "mkdirp": {1113 "name": "mkdirp",1114 "severity": "low",1115 "isDirect": true,1116 "via": [1117 "minimist"1118 ],1119 "effects": [1120 "nyc"1121 ],1122 "range": "0.4.1 - 0.5.1",1123 "nodes": [1124 "node_modules/mkdirp",1125 "node_modules/nyc/node_modules/mkdirp"1126 ],1127 "fixAvailable": {1128 "name": "nyc",1129 "version": "15.1.0",1130 "isSemVerMajor": true1131 }1132 },1133 "nyc": {1134 "name": "nyc",1135 "severity": "low",1136 "isDirect": true,1137 "via": [1138 "mkdirp",1139 "yargs"1140 ],1141 "effects": [],1142 "range": "6.2.0-alpha - 13.1.0",1143 "nodes": [1144 "node_modules/nyc"1145 ],1146 "fixAvailable": {1147 "name": "nyc",1148 "version": "15.1.0",1149 "isSemVerMajor": true1150 }1151 },1152 "optimist": {1153 "name": "optimist",1154 "severity": "low",1155 "isDirect": false,1156 "via": [1157 "minimist"1158 ],1159 "effects": [1160 "handlebars"1161 ],1162 "range": ">=0.6.0",1163 "nodes": [1164 "node_modules/nyc/node_modules/optimist"1165 ],1166 "fixAvailable": true1167 },1168 "os-locale": {1169 "name": "os-locale",1170 "severity": "low",1171 "isDirect": false,1172 "via": [1173 "mem"1174 ],1175 "effects": [1176 "yargs"1177 ],1178 "range": "2.0.0 - 3.0.0",1179 "nodes": [1180 "node_modules/nyc/node_modules/os-locale"1181 ],1182 "fixAvailable": {1183 "name": "nyc",1184 "version": "15.1.0",1185 "isSemVerMajor": true1186 }1187 },1188 "set-value": {1189 "name": "set-value",1190 "severity": "high",1191 "isDirect": false,1192 "via": [1193 {1194 "source": 1012,1195 "name": "set-value",1196 "dependency": "set-value",1197 "title": "Prototype Pollution",1198 "url": "https://npmjs.com/advisories/1012",1199 "severity": "high",1200 "range": "<2.0.1 || >=3.0.0 <3.0.1"1201 }1202 ],1203 "effects": [1204 "union-value"1205 ],1206 "range": "<=2.0.0 || 3.0.0",1207 "nodes": [1208 "node_modules/nyc/node_modules/set-value",1209 "node_modules/nyc/node_modules/union-value/node_modules/set-value"1210 ],1211 "fixAvailable": true1212 },1213 "union-value": {1214 "name": "union-value",1215 "severity": "high",1216 "isDirect": false,1217 "via": [1218 "set-value"1219 ],1220 "effects": [],1221 "range": "<=1.0.0 || 2.0.0",1222 "nodes": [1223 "node_modules/nyc/node_modules/union-value"1224 ],1225 "fixAvailable": true1226 },1227 "yargs": {1228 "name": "yargs",1229 "severity": "low",1230 "isDirect": false,1231 "via": [1232 "os-locale"1233 ],1234 "effects": [1235 "nyc"1236 ],1237 "range": "8.0.1 - 11.1.0 || 12.0.0-candidate.0 - 12.0.1",1238 "nodes": [1239 "node_modules/nyc/node_modules/yargs"1240 ],1241 "fixAvailable": {1242 "name": "nyc",1243 "version": "15.1.0",1244 "isSemVerMajor": true1245 }1246 }1247 },1248 "metadata": {1249 "vulnerabilities": {1250 "info": 0,1251 "low": 8,1252 "moderate": 0,1253 "high": 4,1254 "critical": 1,1255 "total": 131256 },1257 "dependencies": {1258 "prod": 318,1259 "dev": 0,1260 "optional": 12,1261 "peer": 0,1262 "peerOptional": 0,1263 "total": 3291264 }1265 }1266}1267`1268exports[`test/audit-report.js TAP audit outdated nyc and mkdirp with newer endpoint > json version 1`] = `1269{1270 "auditReportVersion": 2,1271 "vulnerabilities": {1272 "handlebars": {1273 "name": "handlebars",1274 "severity": "critical",1275 "isDirect": false,1276 "via": [1277 {1278 "source": 1164,1279 "name": "handlebars",1280 "dependency": "handlebars",1281 "title": "Prototype Pollution",1282 "url": "https://npmjs.com/advisories/1164",1283 "severity": "high",1284 "range": "<3.0.8 || >=4.0.0 <4.3.0"1285 },1286 {1287 "source": 1300,1288 "name": "handlebars",1289 "dependency": "handlebars",1290 "title": "Denial of Service",1291 "url": "https://npmjs.com/advisories/1300",1292 "severity": "moderate",1293 "range": ">=4.0.0 <4.4.5"1294 },1295 {1296 "source": 1316,1297 "name": "handlebars",1298 "dependency": "handlebars",1299 "title": "Arbitrary Code Execution",1300 "url": "https://npmjs.com/advisories/1316",1301 "severity": "high",1302 "range": "<3.0.8 || >=4.0.0 <4.5.2"1303 },1304 {1305 "source": 1324,1306 "name": "handlebars",1307 "dependency": "handlebars",1308 "title": "Arbitrary Code Execution",1309 "url": "https://npmjs.com/advisories/1324",1310 "severity": "high",1311 "range": "<3.0.8 || >=4.0.0 <4.5.3"1312 },1313 {1314 "source": 1325,1315 "name": "handlebars",1316 "dependency": "handlebars",1317 "title": "Prototype Pollution",1318 "url": "https://npmjs.com/advisories/1325",1319 "severity": "high",1320 "range": "<3.0.8 || >=4.0.0 <4.5.3"1321 },1322 {1323 "source": 755,1324 "name": "handlebars",1325 "dependency": "handlebars",1326 "title": "Prototype Pollution",1327 "url": "https://npmjs.com/advisories/755",1328 "severity": "critical",1329 "range": "<=4.0.13 || >=4.1.0 <4.1.2"1330 },1331 "optimist"1332 ],1333 "effects": [],1334 "range": "<=4.7.3",1335 "nodes": [1336 "node_modules/nyc/node_modules/handlebars"1337 ],1338 "fixAvailable": true1339 },1340 "kind-of": {1341 "name": "kind-of",1342 "severity": "low",1343 "isDirect": false,1344 "via": [1345 {1346 "source": 1490,1347 "name": "kind-of",1348 "dependency": "kind-of",1349 "title": "Validation Bypass",1350 "url": "https://npmjs.com/advisories/1490",1351 "severity": "low",1352 "range": ">=6.0.0 <6.0.3"1353 }1354 ],1355 "effects": [],1356 "range": "6.0.0 - 6.0.2",1357 "nodes": [1358 "node_modules/nyc/node_modules/base/node_modules/kind-of",1359 "node_modules/nyc/node_modules/define-property/node_modules/kind-of",1360 "node_modules/nyc/node_modules/extglob/node_modules/kind-of",1361 "node_modules/nyc/node_modules/micromatch/node_modules/kind-of",1362 "node_modules/nyc/node_modules/nanomatch/node_modules/kind-of",1363 "node_modules/nyc/node_modules/snapdragon-node/node_modules/kind-of",1364 "node_modules/nyc/node_modules/test-exclude/node_modules/kind-of",1365 "node_modules/nyc/node_modules/use/node_modules/kind-of"1366 ],1367 "fixAvailable": true1368 },1369 "lodash": {1370 "name": "lodash",1371 "severity": "high",1372 "isDirect": false,1373 "via": [1374 {1375 "source": 1065,1376 "name": "lodash",1377 "dependency": "lodash",1378 "title": "Prototype Pollution",1379 "url": "https://npmjs.com/advisories/1065",1380 "severity": "high",1381 "range": "<4.17.12"1382 },1383 {1384 "source": 782,1385 "name": "lodash",1386 "dependency": "lodash",1387 "title": "Prototype Pollution",1388 "url": "https://npmjs.com/advisories/782",1389 "severity": "high",1390 "range": "<4.17.11"1391 }1392 ],1393 "effects": [],1394 "range": "<=4.17.11",1395 "nodes": [1396 "node_modules/nyc/node_modules/lodash"1397 ],1398 "fixAvailable": true1399 },1400 "mem": {1401 "name": "mem",1402 "severity": "low",1403 "isDirect": false,1404 "via": [1405 {1406 "source": 1084,1407 "name": "mem",1408 "dependency": "mem",1409 "title": "Denial of Service",1410 "url": "https://npmjs.com/advisories/1084",1411 "severity": "low",1412 "range": "<4.0.0"1413 }1414 ],1415 "effects": [1416 "os-locale"1417 ],1418 "range": "<4.0.0",1419 "nodes": [1420 "node_modules/nyc/node_modules/mem"1421 ],1422 "fixAvailable": {1423 "name": "nyc",1424 "version": "15.1.0",1425 "isSemVerMajor": true1426 }1427 },1428 "minimist": {1429 "name": "minimist",1430 "severity": "low",1431 "isDirect": false,1432 "via": [1433 {1434 "source": 1179,1435 "name": "minimist",1436 "dependency": "minimist",1437 "title": "Prototype Pollution",1438 "url": "https://npmjs.com/advisories/1179",1439 "severity": "low",1440 "range": "<0.2.1 || >=1.0.0 <1.2.3"1441 }1442 ],1443 "effects": [1444 "mkdirp",1445 "optimist"1446 ],1447 "range": "<0.2.1 || >=1.0.0 <1.2.3",1448 "nodes": [1449 "node_modules/minimist",1450 "node_modules/nyc/node_modules/minimist"1451 ],1452 "fixAvailable": {1453 "name": "nyc",1454 "version": "15.1.0",1455 "isSemVerMajor": true1456 }1457 },1458 "mixin-deep": {1459 "name": "mixin-deep",1460 "severity": "high",1461 "isDirect": false,1462 "via": [1463 {1464 "source": 1013,1465 "name": "mixin-deep",1466 "dependency": "mixin-deep",1467 "title": "Prototype Pollution",1468 "url": "https://npmjs.com/advisories/1013",1469 "severity": "high",1470 "range": "<1.3.2 || >=2.0.0 <2.0.1"1471 }1472 ],1473 "effects": [],1474 "range": "<=1.3.1 || 2.0.0",1475 "nodes": [1476 "node_modules/nyc/node_modules/mixin-deep"1477 ],1478 "fixAvailable": true1479 },1480 "mkdirp": {1481 "name": "mkdirp",1482 "severity": "low",1483 "isDirect": true,1484 "via": [1485 "minimist"1486 ],1487 "effects": [1488 "nyc"1489 ],1490 "range": "0.4.1 - 0.5.1",1491 "nodes": [1492 "node_modules/mkdirp",1493 "node_modules/nyc/node_modules/mkdirp"1494 ],1495 "fixAvailable": {1496 "name": "nyc",1497 "version": "15.1.0",1498 "isSemVerMajor": true1499 }1500 },1501 "nyc": {1502 "name": "nyc",1503 "severity": "low",1504 "isDirect": true,1505 "via": [1506 "mkdirp",1507 "yargs"1508 ],1509 "effects": [],1510 "range": "6.2.0-alpha - 13.1.0",1511 "nodes": [1512 "node_modules/nyc"1513 ],1514 "fixAvailable": {1515 "name": "nyc",1516 "version": "15.1.0",1517 "isSemVerMajor": true1518 }1519 },1520 "optimist": {1521 "name": "optimist",1522 "severity": "low",1523 "isDirect": false,1524 "via": [1525 "minimist"1526 ],1527 "effects": [1528 "handlebars"1529 ],1530 "range": ">=0.6.0",1531 "nodes": [1532 "node_modules/nyc/node_modules/optimist"1533 ],1534 "fixAvailable": true1535 },1536 "os-locale": {1537 "name": "os-locale",1538 "severity": "low",1539 "isDirect": false,1540 "via": [1541 "mem"1542 ],1543 "effects": [1544 "yargs"1545 ],1546 "range": "2.0.0 - 3.0.0",1547 "nodes": [1548 "node_modules/nyc/node_modules/os-locale"1549 ],1550 "fixAvailable": {1551 "name": "nyc",1552 "version": "15.1.0",1553 "isSemVerMajor": true1554 }1555 },1556 "set-value": {1557 "name": "set-value",1558 "severity": "high",1559 "isDirect": false,1560 "via": [1561 {1562 "source": 1012,1563 "name": "set-value",1564 "dependency": "set-value",1565 "title": "Prototype Pollution",1566 "url": "https://npmjs.com/advisories/1012",1567 "severity": "high",1568 "range": "<2.0.1 || >=3.0.0 <3.0.1"1569 }1570 ],1571 "effects": [1572 "union-value"1573 ],1574 "range": "<=2.0.0 || 3.0.0",1575 "nodes": [1576 "node_modules/nyc/node_modules/set-value",1577 "node_modules/nyc/node_modules/union-value/node_modules/set-value"1578 ],1579 "fixAvailable": true1580 },1581 "union-value": {1582 "name": "union-value",1583 "severity": "high",1584 "isDirect": false,1585 "via": [1586 "set-value"1587 ],1588 "effects": [],1589 "range": "<=1.0.0 || 2.0.0",1590 "nodes": [1591 "node_modules/nyc/node_modules/union-value"1592 ],1593 "fixAvailable": true1594 },1595 "yargs": {1596 "name": "yargs",1597 "severity": "low",1598 "isDirect": false,1599 "via": [1600 "os-locale"1601 ],1602 "effects": [1603 "nyc"1604 ],1605 "range": "8.0.1 - 11.1.0 || 12.0.0-candidate.0 - 12.0.1",1606 "nodes": [1607 "node_modules/nyc/node_modules/yargs"1608 ],1609 "fixAvailable": {1610 "name": "nyc",1611 "version": "15.1.0",1612 "isSemVerMajor": true1613 }1614 }1615 },1616 "metadata": {1617 "vulnerabilities": {1618 "info": 0,1619 "low": 8,1620 "moderate": 0,1621 "high": 4,1622 "critical": 1,1623 "total": 131624 },1625 "dependencies": {1626 "prod": 318,1627 "dev": 0,1628 "optional": 12,1629 "peer": 0,1630 "peerOptional": 0,1631 "total": 3291632 }1633 }1634}1635`1636exports[`test/audit-report.js TAP audit report with a lying v5 lockfile > must match snapshot 1`] = `1637Object {1638 "auditReportVersion": 2,1639 "metadata": Object {1640 "dependencies": Object {1641 "dev": 1,1642 "optional": 0,1643 "peer": 0,1644 "peerOptional": 0,1645 "prod": 156,1646 "total": 156,1647 },1648 "vulnerabilities": Object {1649 "critical": 0,1650 "high": 2,1651 "info": 0,1652 "low": 2,1653 "moderate": 1,1654 "total": 5,1655 },1656 },1657 "vulnerabilities": Object {1658 "acorn": Object {1659 "effects": Array [],1660 "fixAvailable": true,1661 "isDirect": false,1662 "name": "acorn",1663 "nodes": Array [1664 "node_modules/acorn",1665 ],1666 "range": "5.5.0 - 5.7.3 || 6.0.0 - 6.4.0 || 7.0.0 - 7.1.0",1667 "severity": "moderate",1668 "via": Array [1669 Object {1670 "cvss": undefined,1671 "cwe": undefined,1672 "dependency": "acorn",1673 "id": undefined,1674 "name": "acorn",1675 "range": ">=5.5.0 <5.7.4 || >=6.0.0 <6.4.1 || >=7.0.0 <7.1.1",1676 "severity": "moderate",1677 "source": 1488,1678 "title": "Regular Expression Denial of Service",1679 "url": "https://npmjs.com/advisories/1488",1680 "versions": undefined,1681 "vulnerableVersions": undefined,1682 },1683 ],1684 },1685 "js-yaml": Object {1686 "effects": Array [],1687 "fixAvailable": true,1688 "isDirect": false,1689 "name": "js-yaml",1690 "nodes": Array [1691 "node_modules/js-yaml",1692 ],1693 "range": "<=3.13.0",1694 "severity": "high",1695 "via": Array [1696 Object {1697 "cvss": undefined,1698 "cwe": undefined,1699 "dependency": "js-yaml",1700 "id": undefined,1701 "name": "js-yaml",1702 "range": "<3.13.0",1703 "severity": "moderate",1704 "source": 788,1705 "title": "Denial of Service",1706 "url": "https://npmjs.com/advisories/788",1707 "versions": undefined,1708 "vulnerableVersions": undefined,1709 },1710 Object {1711 "cvss": undefined,1712 "cwe": undefined,1713 "dependency": "js-yaml",1714 "id": undefined,1715 "name": "js-yaml",1716 "range": "<3.13.1",1717 "severity": "high",1718 "source": 813,1719 "title": "Code Injection",1720 "url": "https://npmjs.com/advisories/813",1721 "versions": undefined,1722 "vulnerableVersions": undefined,1723 },1724 ],1725 },1726 "lodash": Object {1727 "effects": Array [],1728 "fixAvailable": true,1729 "isDirect": false,1730 "name": "lodash",1731 "nodes": Array [1732 "node_modules/lodash",1733 ],1734 "range": "<=4.17.18",1735 "severity": "high",1736 "via": Array [1737 Object {1738 "cvss": undefined,1739 "cwe": undefined,1740 "dependency": "lodash",1741 "id": undefined,1742 "name": "lodash",1743 "range": "<4.17.12",1744 "severity": "high",1745 "source": 1065,1746 "title": "Prototype Pollution",1747 "url": "https://npmjs.com/advisories/1065",1748 "versions": undefined,1749 "vulnerableVersions": undefined,1750 },1751 Object {1752 "cvss": undefined,1753 "cwe": undefined,1754 "dependency": "lodash",1755 "id": undefined,1756 "name": "lodash",1757 "range": "<4.17.19",1758 "severity": "low",1759 "source": 1523,1760 "title": "Prototype Pollution",1761 "url": "https://npmjs.com/advisories/1523",1762 "versions": undefined,1763 "vulnerableVersions": undefined,1764 },1765 Object {1766 "cvss": undefined,1767 "cwe": undefined,1768 "dependency": "lodash",1769 "id": undefined,1770 "name": "lodash",1771 "range": "<4.17.11",1772 "severity": "high",1773 "source": 782,1774 "title": "Prototype Pollution",1775 "url": "https://npmjs.com/advisories/782",1776 "versions": undefined,1777 "vulnerableVersions": undefined,1778 },1779 ],1780 },1781 "minimist": Object {1782 "effects": Array [1783 "mkdirp",1784 ],1785 "fixAvailable": true,1786 "isDirect": false,1787 "name": "minimist",1788 "nodes": Array [1789 "node_modules/minimist",1790 ],1791 "range": "<0.2.1 || >=1.0.0 <1.2.3",1792 "severity": "low",1793 "via": Array [1794 Object {1795 "cvss": undefined,1796 "cwe": undefined,1797 "dependency": "minimist",1798 "id": undefined,1799 "name": "minimist",1800 "range": "<0.2.1 || >=1.0.0 <1.2.3",1801 "severity": "low",1802 "source": 1179,1803 "title": "Prototype Pollution",1804 "url": "https://npmjs.com/advisories/1179",1805 "versions": undefined,1806 "vulnerableVersions": undefined,1807 },1808 ],1809 },1810 "mkdirp": Object {1811 "effects": Array [],1812 "fixAvailable": true,1813 "isDirect": false,1814 "name": "mkdirp",1815 "nodes": Array [1816 "node_modules/mkdirp",1817 ],1818 "range": "0.4.1 - 0.5.1",1819 "severity": "low",1820 "via": Array [1821 "minimist",1822 ],1823 },1824 },1825}1826`1827exports[`test/audit-report.js TAP audit supports alias deps > json version 1`] = `1828{1829 "auditReportVersion": 2,1830 "vulnerabilities": {1831 "minimist": {1832 "name": "minimist",1833 "severity": "low",1834 "isDirect": false,1835 "via": [1836 {1837 "source": 1179,1838 "name": "minimist",1839 "dependency": "minimist",1840 "title": "Prototype Pollution",1841 "url": "https://npmjs.com/advisories/1179",1842 "severity": "low",1843 "range": "<0.2.1 || >=1.0.0 <1.2.3"1844 }1845 ],1846 "effects": [1847 "mkdirp"1848 ],1849 "range": "<0.2.1 || >=1.0.0 <1.2.3",1850 "nodes": [1851 "node_modules/minimist"1852 ],1853 "fixAvailable": {1854 "name": "mkdirp",1855 "version": "0.5.5",1856 "isSemVerMajor": false1857 }1858 },1859 "mkdirp": {1860 "name": "mkdirp",1861 "severity": "low",1862 "isDirect": true,1863 "via": [1864 "minimist"1865 ],1866 "effects": [],1867 "range": "0.4.1 - 0.5.1",1868 "nodes": [1869 "node_modules/mkdirp",1870 "node_modules/novulnshereiswear"1871 ],1872 "fixAvailable": {1873 "name": "mkdirp",1874 "version": "0.5.5",1875 "isSemVerMajor": false1876 }1877 }1878 },1879 "metadata": {1880 "vulnerabilities": {1881 "info": 0,1882 "low": 2,1883 "moderate": 0,1884 "high": 0,1885 "critical": 0,1886 "total": 21887 },1888 "dependencies": {1889 "prod": 0,1890 "dev": 4,1891 "optional": 4,1892 "peer": 4,1893 "peerOptional": 0,1894 "total": 31895 }1896 }1897}1898`1899exports[`test/audit-report.js TAP audit with filterSet limiting to only mkdirp and minimist > json version 1`] = `1900{1901 "auditReportVersion": 2,1902 "vulnerabilities": {1903 "minimist": {1904 "name": "minimist",1905 "severity": "low",1906 "isDirect": false,1907 "via": [1908 {1909 "source": 1179,1910 "name": "minimist",1911 "dependency": "minimist",1912 "title": "Prototype Pollution",1913 "url": "https://npmjs.com/advisories/1179",1914 "severity": "low",1915 "range": "<0.2.1 || >=1.0.0 <1.2.3"1916 }1917 ],1918 "effects": [1919 "mkdirp"1920 ],1921 "range": "<0.2.1 || >=1.0.0 <1.2.3",1922 "nodes": [1923 "node_modules/minimist"1924 ],1925 "fixAvailable": true1926 },1927 "mkdirp": {1928 "name": "mkdirp",1929 "severity": "low",1930 "isDirect": true,1931 "via": [1932 "minimist"1933 ],1934 "effects": [],1935 "range": "0.4.1 - 0.5.1",1936 "nodes": [1937 "node_modules/mkdirp"1938 ],1939 "fixAvailable": true1940 }1941 },1942 "metadata": {1943 "vulnerabilities": {1944 "info": 0,1945 "low": 2,1946 "moderate": 0,1947 "high": 0,1948 "critical": 0,1949 "total": 21950 },1951 "dependencies": {1952 "prod": 318,1953 "dev": 0,1954 "optional": 12,1955 "peer": 0,1956 "peerOptional": 0,1957 "total": 3291958 }1959 }1960}1961`1962exports[`test/audit-report.js TAP metavuln where a dep is not on the registry at all > json version 1`] = `1963{1964 "auditReportVersion": 2,1965 "vulnerabilities": {1966 "@isaacs/this-does-not-exist-at-all": {1967 "name": "@isaacs/this-does-not-exist-at-all",1968 "severity": "low",1969 "isDirect": true,1970 "via": [1971 "minimist"1972 ],1973 "effects": [],1974 "range": "",1975 "nodes": [1976 "node_modules/@isaacs/this-does-not-exist-at-all"1977 ],1978 "fixAvailable": false1979 },1980 "minimist": {1981 "name": "minimist",1982 "severity": "low",1983 "isDirect": false,1984 "via": [1985 {1986 "source": 1179,1987 "name": "minimist",1988 "dependency": "minimist",1989 "title": "Prototype Pollution",1990 "url": "https://npmjs.com/advisories/1179",1991 "severity": "low",1992 "range": "<0.2.1 || >=1.0.0 <1.2.3"1993 }1994 ],1995 "effects": [1996 "@isaacs/this-does-not-exist-at-all"1997 ],1998 "range": "<0.2.1 || >=1.0.0 <1.2.3",1999 "nodes": [2000 "node_modules/minimist"2001 ],2002 "fixAvailable": false2003 }2004 },2005 "metadata": {2006 "vulnerabilities": {2007 "info": 0,2008 "low": 2,2009 "moderate": 0,2010 "high": 0,2011 "critical": 0,2012 "total": 22013 },2014 "dependencies": {2015 "prod": 1,2016 "dev": 0,2017 "optional": 2,2018 "peer": 0,2019 "peerOptional": 0,2020 "total": 22021 }2022 }2023}2024`2025exports[`test/audit-report.js TAP metavuln where dep is not a registry dep > json version 1`] = `2026{2027 "auditReportVersion": 2,2028 "vulnerabilities": {2029 "@isaacs/minimist-git-dep": {2030 "name": "@isaacs/minimist-git-dep",2031 "severity": "low",2032 "isDirect": true,2033 "via": [2034 "minimist"2035 ],2036 "effects": [],2037 "range": "*",2038 "nodes": [2039 "node_modules/@isaacs/minimist-git-dep"2040 ],2041 "fixAvailable": false2042 },2043 "minimist": {2044 "name": "minimist",2045 "severity": "low",2046 "isDirect": false,2047 "via": [2048 {2049 "source": 1179,2050 "name": "minimist",2051 "dependency": "minimist",2052 "title": "Prototype Pollution",2053 "url": "https://npmjs.com/advisories/1179",2054 "severity": "low",2055 "range": "<0.2.1 || >=1.0.0 <1.2.3"2056 }2057 ],2058 "effects": [2059 "@isaacs/minimist-git-dep"2060 ],2061 "range": "<0.2.1 || >=1.0.0 <1.2.3",2062 "nodes": [2063 "node_modules/minimist"2064 ],2065 "fixAvailable": false2066 }2067 },2068 "metadata": {2069 "vulnerabilities": {2070 "info": 0,2071 "low": 2,2072 "moderate": 0,2073 "high": 0,2074 "critical": 0,2075 "total": 22076 },2077 "dependencies": {2078 "prod": 2,2079 "dev": 2,2080 "optional": 0,2081 "peer": 0,2082 "peerOptional": 0,2083 "total": 32084 }2085 }2086}2087`2088exports[`test/audit-report.js TAP omit options omit=[] > bulk 1`] = `2089Object {2090 "auditReportVersion": 2,2091 "metadata": Object {2092 "dependencies": Object {2093 "dev": 399,2094 "optional": 351,2095 "peer": 26,2096 "peerOptional": 0,2097 "prod": 3,2098 "total": 751,2099 },2100 "vulnerabilities": Object {2101 "critical": 1,2102 "high": 4,2103 "info": 0,2104 "low": 9,2105 "moderate": 0,2106 "total": 14,2107 },2108 },2109 "vulnerabilities": Object {2110 "handlebars": Object {2111 "effects": Array [],2112 "fixAvailable": Object {2113 "isSemVerMajor": false,2114 "name": "handlebars",2115 "version": "4.7.6",2116 },2117 "isDirect": true,2118 "name": "handlebars",2119 "nodes": Array [2120 "node_modules/handlebars",2121 "node_modules/nyc/node_modules/handlebars",2122 ],2123 "range": "<=4.7.3",2124 "severity": "critical",2125 "via": Array [2126 Object {2127 "cvss": undefined,2128 "cwe": undefined,2129 "dependency": "handlebars",2130 "id": undefined,2131 "name": "handlebars",2132 "range": "<3.0.8 || >=4.0.0 <4.3.0",2133 "severity": "high",2134 "source": 1164,2135 "title": "Prototype Pollution",2136 "url": "https://npmjs.com/advisories/1164",2137 "versions": undefined,2138 "vulnerableVersions": undefined,2139 },2140 Object {2141 "cvss": undefined,2142 "cwe": undefined,2143 "dependency": "handlebars",2144 "id": undefined,2145 "name": "handlebars",2146 "range": ">=4.0.0 <4.4.5",2147 "severity": "moderate",2148 "source": 1300,2149 "title": "Denial of Service",2150 "url": "https://npmjs.com/advisories/1300",2151 "versions": undefined,2152 "vulnerableVersions": undefined,2153 },2154 Object {2155 "cvss": undefined,2156 "cwe": undefined,2157 "dependency": "handlebars",2158 "id": undefined,2159 "name": "handlebars",2160 "range": "<3.0.8 || >=4.0.0 <4.5.2",2161 "severity": "high",2162 "source": 1316,2163 "title": "Arbitrary Code Execution",2164 "url": "https://npmjs.com/advisories/1316",2165 "versions": undefined,2166 "vulnerableVersions": undefined,2167 },2168 Object {2169 "cvss": undefined,2170 "cwe": undefined,2171 "dependency": "handlebars",2172 "id": undefined,2173 "name": "handlebars",2174 "range": "<3.0.8 || >=4.0.0 <4.5.3",2175 "severity": "high",2176 "source": 1324,2177 "title": "Arbitrary Code Execution",2178 "url": "https://npmjs.com/advisories/1324",2179 "versions": undefined,2180 "vulnerableVersions": undefined,2181 },2182 Object {2183 "cvss": undefined,2184 "cwe": undefined,2185 "dependency": "handlebars",2186 "id": undefined,2187 "name": "handlebars",2188 "range": "<3.0.8 || >=4.0.0 <4.5.3",2189 "severity": "high",2190 "source": 1325,2191 "title": "Prototype Pollution",2192 "url": "https://npmjs.com/advisories/1325",2193 "versions": undefined,2194 "vulnerableVersions": undefined,2195 },2196 Object {2197 "cvss": undefined,2198 "cwe": undefined,2199 "dependency": "handlebars",2200 "id": undefined,2201 "name": "handlebars",2202 "range": "<=4.0.13 || >=4.1.0 <4.1.2",2203 "severity": "critical",2204 "source": 755,2205 "title": "Prototype Pollution",2206 "url": "https://npmjs.com/advisories/755",2207 "versions": undefined,2208 "vulnerableVersions": undefined,2209 },2210 "optimist",2211 ],2212 },2213 "kind-of": Object {2214 "effects": Array [],2215 "fixAvailable": true,2216 "isDirect": false,2217 "name": "kind-of",2218 "nodes": Array [2219 "node_modules/nyc/node_modules/base/node_modules/kind-of",2220 "node_modules/nyc/node_modules/define-property/node_modules/kind-of",2221 "node_modules/nyc/node_modules/extglob/node_modules/kind-of",2222 "node_modules/nyc/node_modules/micromatch/node_modules/kind-of",2223 "node_modules/nyc/node_modules/nanomatch/node_modules/kind-of",2224 "node_modules/nyc/node_modules/snapdragon-node/node_modules/kind-of",2225 "node_modules/nyc/node_modules/test-exclude/node_modules/kind-of",2226 "node_modules/nyc/node_modules/use/node_modules/kind-of",2227 ],2228 "range": "6.0.0 - 6.0.2",2229 "severity": "low",2230 "via": Array [2231 Object {2232 "cvss": undefined,2233 "cwe": undefined,2234 "dependency": "kind-of",2235 "id": undefined,2236 "name": "kind-of",2237 "range": ">=6.0.0 <6.0.3",2238 "severity": "low",2239 "source": 1490,2240 "title": "Validation Bypass",2241 "url": "https://npmjs.com/advisories/1490",2242 "versions": undefined,2243 "vulnerableVersions": undefined,2244 },2245 ],2246 },2247 "lodash": Object {2248 "effects": Array [],2249 "fixAvailable": true,2250 "isDirect": false,2251 "name": "lodash",2252 "nodes": Array [2253 "node_modules/nyc/node_modules/lodash",2254 ],2255 "range": "<=4.17.18",2256 "severity": "high",2257 "via": Array [2258 Object {2259 "cvss": undefined,2260 "cwe": undefined,2261 "dependency": "lodash",2262 "id": undefined,2263 "name": "lodash",2264 "range": "<4.17.12",2265 "severity": "high",2266 "source": 1065,2267 "title": "Prototype Pollution",2268 "url": "https://npmjs.com/advisories/1065",2269 "versions": undefined,2270 "vulnerableVersions": undefined,2271 },2272 Object {2273 "cvss": undefined,2274 "cwe": undefined,2275 "dependency": "lodash",2276 "id": undefined,2277 "name": "lodash",2278 "range": "<4.17.19",2279 "severity": "low",2280 "source": 1523,2281 "title": "Prototype Pollution",2282 "url": "https://npmjs.com/advisories/1523",2283 "versions": undefined,2284 "vulnerableVersions": undefined,2285 },2286 Object {2287 "cvss": undefined,2288 "cwe": undefined,2289 "dependency": "lodash",2290 "id": undefined,2291 "name": "lodash",2292 "range": "<4.17.11",2293 "severity": "high",2294 "source": 782,2295 "title": "Prototype Pollution",2296 "url": "https://npmjs.com/advisories/782",2297 "versions": undefined,2298 "vulnerableVersions": undefined,2299 },2300 ],2301 },2302 "mem": Object {2303 "effects": Array [2304 "os-locale",2305 ],2306 "fixAvailable": Object {2307 "isSemVerMajor": true,2308 "name": "nyc",2309 "version": "15.1.0",2310 },2311 "isDirect": false,2312 "name": "mem",2313 "nodes": Array [2314 "node_modules/nyc/node_modules/mem",2315 ],2316 "range": "<4.0.0",2317 "severity": "low",2318 "via": Array [2319 Object {2320 "cvss": undefined,2321 "cwe": undefined,2322 "dependency": "mem",2323 "id": undefined,2324 "name": "mem",2325 "range": "<4.0.0",2326 "severity": "low",2327 "source": 1084,2328 "title": "Denial of Service",2329 "url": "https://npmjs.com/advisories/1084",2330 "versions": undefined,2331 "vulnerableVersions": undefined,2332 },2333 ],2334 },2335 "minimist": Object {2336 "effects": Array [2337 "mkdirp",2338 "optimist",2339 ],2340 "fixAvailable": Object {2341 "isSemVerMajor": true,2342 "name": "nyc",2343 "version": "15.1.0",2344 },2345 "isDirect": false,2346 "name": "minimist",2347 "nodes": Array [2348 "node_modules/nyc/node_modules/minimist",2349 "node_modules/optimist/node_modules/minimist",2350 ],2351 "range": "<0.2.1 || >=1.0.0 <1.2.3",2352 "severity": "low",2353 "via": Array [2354 Object {2355 "cvss": undefined,2356 "cwe": undefined,2357 "dependency": "minimist",2358 "id": undefined,2359 "name": "minimist",2360 "range": "<0.2.1 || >=1.0.0 <1.2.3",2361 "severity": "low",2362 "source": 1179,2363 "title": "Prototype Pollution",2364 "url": "https://npmjs.com/advisories/1179",2365 "versions": undefined,2366 "vulnerableVersions": undefined,2367 },2368 ],2369 },2370 "mixin-deep": Object {2371 "effects": Array [],2372 "fixAvailable": true,2373 "isDirect": false,2374 "name": "mixin-deep",2375 "nodes": Array [2376 "node_modules/nyc/node_modules/mixin-deep",2377 ],2378 "range": "<=1.3.1 || 2.0.0",2379 "severity": "high",2380 "via": Array [2381 Object {2382 "cvss": undefined,2383 "cwe": undefined,2384 "dependency": "mixin-deep",2385 "id": undefined,2386 "name": "mixin-deep",2387 "range": "<1.3.2 || >=2.0.0 <2.0.1",2388 "severity": "high",2389 "source": 1013,2390 "title": "Prototype Pollution",2391 "url": "https://npmjs.com/advisories/1013",2392 "versions": undefined,2393 "vulnerableVersions": undefined,2394 },2395 ],2396 },2397 "mkdirp": Object {2398 "effects": Array [2399 "nyc",2400 ],2401 "fixAvailable": Object {2402 "isSemVerMajor": true,2403 "name": "nyc",2404 "version": "15.1.0",2405 },2406 "isDirect": false,2407 "name": "mkdirp",2408 "nodes": Array [2409 "node_modules/nyc/node_modules/mkdirp",2410 ],2411 "range": "0.4.1 - 0.5.1",2412 "severity": "low",2413 "via": Array [2414 "minimist",2415 ],2416 },2417 "nyc": Object {2418 "effects": Array [],2419 "fixAvailable": Object {2420 "isSemVerMajor": true,2421 "name": "nyc",2422 "version": "15.1.0",2423 },2424 "isDirect": true,2425 "name": "nyc",2426 "nodes": Array [2427 "node_modules/nyc",2428 ],2429 "range": "6.0.0 - 13.3.0",2430 "severity": "low",2431 "via": Array [2432 "mkdirp",2433 "yargs",2434 "yargs-parser",2435 ],2436 },2437 "optimist": Object {2438 "effects": Array [2439 "handlebars",2440 ],2441 "fixAvailable": Object {2442 "isSemVerMajor": false,2443 "name": "handlebars",2444 "version": "4.7.6",2445 },2446 "isDirect": false,2447 "name": "optimist",2448 "nodes": Array [2449 "node_modules/nyc/node_modules/optimist",2450 "node_modules/optimist",2451 ],2452 "range": ">=0.6.0",2453 "severity": "low",2454 "via": Array [2455 "minimist",2456 ],2457 },2458 "os-locale": Object {2459 "effects": Array [2460 "yargs",2461 ],2462 "fixAvailable": Object {2463 "isSemVerMajor": true,2464 "name": "nyc",2465 "version": "15.1.0",2466 },2467 "isDirect": false,2468 "name": "os-locale",2469 "nodes": Array [2470 "node_modules/nyc/node_modules/os-locale",2471 ],2472 "range": "2.0.0 - 3.0.0",2473 "severity": "low",2474 "via": Array [2475 "mem",2476 ],2477 },2478 "set-value": Object {2479 "effects": Array [2480 "union-value",2481 ],2482 "fixAvailable": true,2483 "isDirect": false,2484 "name": "set-value",2485 "nodes": Array [2486 "node_modules/nyc/node_modules/set-value",2487 "node_modules/nyc/node_modules/union-value/node_modules/set-value",2488 ],2489 "range": "<=2.0.0 || 3.0.0",2490 "severity": "high",2491 "via": Array [2492 Object {2493 "cvss": undefined,2494 "cwe": undefined,2495 "dependency": "set-value",2496 "id": undefined,2497 "name": "set-value",2498 "range": "<2.0.1 || >=3.0.0 <3.0.1",2499 "severity": "high",2500 "source": 1012,2501 "title": "Prototype Pollution",2502 "url": "https://npmjs.com/advisories/1012",2503 "versions": undefined,2504 "vulnerableVersions": undefined,2505 },2506 ],2507 },2508 "union-value": Object {2509 "effects": Array [],2510 "fixAvailable": true,2511 "isDirect": false,2512 "name": "union-value",2513 "nodes": Array [2514 "node_modules/nyc/node_modules/union-value",2515 ],2516 "range": "<=1.0.0 || 2.0.0",2517 "severity": "high",2518 "via": Array [2519 "set-value",2520 ],2521 },2522 "yargs": Object {2523 "effects": Array [2524 "nyc",2525 ],2526 "fixAvailable": Object {2527 "isSemVerMajor": true,2528 "name": "nyc",2529 "version": "15.1.0",2530 },2531 "isDirect": false,2532 "name": "yargs",2533 "nodes": Array [2534 "node_modules/nyc/node_modules/yargs",2535 ],2536 "range": "4.0.0-alpha1 - 12.0.5 || 14.1.0 || 15.0.0 - 15.2.0",2537 "severity": "low",2538 "via": Array [2539 "os-locale",2540 "yargs-parser",2541 ],2542 },2543 "yargs-parser": Object {2544 "effects": Array [2545 "nyc",2546 "yargs",2547 ],2548 "fixAvailable": Object {2549 "isSemVerMajor": true,2550 "name": "nyc",2551 "version": "15.1.0",2552 },2553 "isDirect": false,2554 "name": "yargs-parser",2555 "nodes": Array [2556 "node_modules/nyc/node_modules/yargs-parser",2557 "node_modules/nyc/node_modules/yargs/node_modules/yargs-parser",2558 ],2559 "range": "<=13.1.1 || 14.0.0 - 15.0.0 || 16.0.0 - 18.1.1",2560 "severity": "low",2561 "via": Array [2562 Object {2563 "cvss": undefined,2564 "cwe": undefined,2565 "dependency": "yargs-parser",2566 "id": undefined,2567 "name": "yargs-parser",2568 "range": "<13.1.2 || >=14.0.0 <15.0.1 || >=16.0.0 <18.1.2",2569 "severity": "low",2570 "source": 1500,2571 "title": "Prototype Pollution",2572 "url": "https://npmjs.com/advisories/1500",2573 "versions": undefined,2574 "vulnerableVersions": undefined,2575 },2576 ],2577 },2578 },2579}2580`2581exports[`test/audit-report.js TAP omit options omit=[dev,optional] > bulk 1`] = `2582Object {2583 "auditReportVersion": 2,2584 "metadata": Object {2585 "dependencies": Object {2586 "dev": 399,2587 "optional": 351,2588 "peer": 26,2589 "peerOptional": 0,2590 "prod": 3,2591 "total": 751,2592 },2593 "vulnerabilities": Object {2594 "critical": 1,2595 "high": 0,2596 "info": 0,2597 "low": 2,2598 "moderate": 0,2599 "total": 3,2600 },2601 },2602 "vulnerabilities": Object {2603 "handlebars": Object {2604 "effects": Array [],2605 "fixAvailable": Object {2606 "isSemVerMajor": false,2607 "name": "handlebars",2608 "version": "4.7.6",2609 },2610 "isDirect": true,2611 "name": "handlebars",2612 "nodes": Array [2613 "node_modules/handlebars",2614 ],2615 "range": "<=4.7.3",2616 "severity": "critical",2617 "via": Array [2618 Object {2619 "cvss": undefined,2620 "cwe": undefined,2621 "dependency": "handlebars",2622 "id": undefined,2623 "name": "handlebars",2624 "range": "<3.0.8 || >=4.0.0 <4.3.0",2625 "severity": "high",2626 "source": 1164,2627 "title": "Prototype Pollution",2628 "url": "https://npmjs.com/advisories/1164",2629 "versions": undefined,2630 "vulnerableVersions": undefined,2631 },2632 Object {2633 "cvss": undefined,2634 "cwe": undefined,2635 "dependency": "handlebars",2636 "id": undefined,2637 "name": "handlebars",2638 "range": ">=4.0.0 <4.4.5",2639 "severity": "moderate",2640 "source": 1300,2641 "title": "Denial of Service",2642 "url": "https://npmjs.com/advisories/1300",2643 "versions": undefined,2644 "vulnerableVersions": undefined,2645 },2646 Object {2647 "cvss": undefined,2648 "cwe": undefined,2649 "dependency": "handlebars",2650 "id": undefined,2651 "name": "handlebars",2652 "range": "<3.0.8 || >=4.0.0 <4.5.2",2653 "severity": "high",2654 "source": 1316,2655 "title": "Arbitrary Code Execution",2656 "url": "https://npmjs.com/advisories/1316",2657 "versions": undefined,2658 "vulnerableVersions": undefined,2659 },2660 Object {2661 "cvss": undefined,2662 "cwe": undefined,2663 "dependency": "handlebars",2664 "id": undefined,2665 "name": "handlebars",2666 "range": "<3.0.8 || >=4.0.0 <4.5.3",2667 "severity": "high",2668 "source": 1324,2669 "title": "Arbitrary Code Execution",2670 "url": "https://npmjs.com/advisories/1324",2671 "versions": undefined,2672 "vulnerableVersions": undefined,2673 },2674 Object {2675 "cvss": undefined,2676 "cwe": undefined,2677 "dependency": "handlebars",2678 "id": undefined,2679 "name": "handlebars",2680 "range": "<3.0.8 || >=4.0.0 <4.5.3",2681 "severity": "high",2682 "source": 1325,2683 "title": "Prototype Pollution",2684 "url": "https://npmjs.com/advisories/1325",2685 "versions": undefined,2686 "vulnerableVersions": undefined,2687 },2688 Object {2689 "cvss": undefined,2690 "cwe": undefined,2691 "dependency": "handlebars",2692 "id": undefined,2693 "name": "handlebars",2694 "range": "<=4.0.13 || >=4.1.0 <4.1.2",2695 "severity": "critical",2696 "source": 755,2697 "title": "Prototype Pollution",2698 "url": "https://npmjs.com/advisories/755",2699 "versions": undefined,2700 "vulnerableVersions": undefined,2701 },2702 "optimist",2703 ],2704 },2705 "minimist": Object {2706 "effects": Array [2707 "optimist",2708 ],2709 "fixAvailable": Object {2710 "isSemVerMajor": false,2711 "name": "handlebars",2712 "version": "4.7.6",2713 },2714 "isDirect": false,2715 "name": "minimist",2716 "nodes": Array [2717 "node_modules/optimist/node_modules/minimist",2718 ],2719 "range": "<0.2.1 || >=1.0.0 <1.2.3",2720 "severity": "low",2721 "via": Array [2722 Object {2723 "cvss": undefined,2724 "cwe": undefined,2725 "dependency": "minimist",2726 "id": undefined,2727 "name": "minimist",2728 "range": "<0.2.1 || >=1.0.0 <1.2.3",2729 "severity": "low",2730 "source": 1179,2731 "title": "Prototype Pollution",2732 "url": "https://npmjs.com/advisories/1179",2733 "versions": undefined,2734 "vulnerableVersions": undefined,2735 },2736 ],2737 },2738 "optimist": Object {2739 "effects": Array [2740 "handlebars",2741 ],2742 "fixAvailable": Object {2743 "isSemVerMajor": false,2744 "name": "handlebars",2745 "version": "4.7.6",2746 },2747 "isDirect": false,2748 "name": "optimist",2749 "nodes": Array [2750 "node_modules/optimist",2751 ],2752 "range": ">=0.6.0",2753 "severity": "low",2754 "via": Array [2755 "minimist",2756 ],2757 },2758 },2759}2760`2761exports[`test/audit-report.js TAP omit options omit=[dev] > bulk 1`] = `2762Object {2763 "auditReportVersion": 2,2764 "metadata": Object {2765 "dependencies": Object {2766 "dev": 399,2767 "optional": 351,2768 "peer": 26,2769 "peerOptional": 0,2770 "prod": 3,2771 "total": 751,2772 },2773 "vulnerabilities": Object {2774 "critical": 1,2775 "high": 4,2776 "info": 0,2777 "low": 9,2778 "moderate": 0,2779 "total": 14,2780 },2781 },2782 "vulnerabilities": Object {2783 "handlebars": Object {2784 "effects": Array [],2785 "fixAvailable": Object {2786 "isSemVerMajor": false,2787 "name": "handlebars",2788 "version": "4.7.6",2789 },2790 "isDirect": true,2791 "name": "handlebars",2792 "nodes": Array [2793 "node_modules/handlebars",2794 "node_modules/nyc/node_modules/handlebars",2795 ],2796 "range": "<=4.7.3",2797 "severity": "critical",2798 "via": Array [2799 Object {2800 "cvss": undefined,2801 "cwe": undefined,2802 "dependency": "handlebars",2803 "id": undefined,2804 "name": "handlebars",2805 "range": "<3.0.8 || >=4.0.0 <4.3.0",2806 "severity": "high",2807 "source": 1164,2808 "title": "Prototype Pollution",2809 "url": "https://npmjs.com/advisories/1164",2810 "versions": undefined,2811 "vulnerableVersions": undefined,2812 },2813 Object {2814 "cvss": undefined,2815 "cwe": undefined,2816 "dependency": "handlebars",2817 "id": undefined,2818 "name": "handlebars",2819 "range": ">=4.0.0 <4.4.5",2820 "severity": "moderate",2821 "source": 1300,2822 "title": "Denial of Service",2823 "url": "https://npmjs.com/advisories/1300",2824 "versions": undefined,2825 "vulnerableVersions": undefined,2826 },2827 Object {2828 "cvss": undefined,2829 "cwe": undefined,2830 "dependency": "handlebars",2831 "id": undefined,2832 "name": "handlebars",2833 "range": "<3.0.8 || >=4.0.0 <4.5.2",2834 "severity": "high",2835 "source": 1316,2836 "title": "Arbitrary Code Execution",2837 "url": "https://npmjs.com/advisories/1316",2838 "versions": undefined,2839 "vulnerableVersions": undefined,2840 },2841 Object {2842 "cvss": undefined,2843 "cwe": undefined,2844 "dependency": "handlebars",2845 "id": undefined,2846 "name": "handlebars",2847 "range": "<3.0.8 || >=4.0.0 <4.5.3",2848 "severity": "high",2849 "source": 1324,2850 "title": "Arbitrary Code Execution",2851 "url": "https://npmjs.com/advisories/1324",2852 "versions": undefined,2853 "vulnerableVersions": undefined,2854 },2855 Object {2856 "cvss": undefined,2857 "cwe": undefined,2858 "dependency": "handlebars",2859 "id": undefined,2860 "name": "handlebars",2861 "range": "<3.0.8 || >=4.0.0 <4.5.3",2862 "severity": "high",2863 "source": 1325,2864 "title": "Prototype Pollution",2865 "url": "https://npmjs.com/advisories/1325",2866 "versions": undefined,2867 "vulnerableVersions": undefined,2868 },2869 Object {2870 "cvss": undefined,2871 "cwe": undefined,2872 "dependency": "handlebars",2873 "id": undefined,2874 "name": "handlebars",2875 "range": "<=4.0.13 || >=4.1.0 <4.1.2",2876 "severity": "critical",2877 "source": 755,2878 "title": "Prototype Pollution",2879 "url": "https://npmjs.com/advisories/755",2880 "versions": undefined,2881 "vulnerableVersions": undefined,2882 },2883 "optimist",2884 ],2885 },2886 "kind-of": Object {2887 "effects": Array [],2888 "fixAvailable": true,2889 "isDirect": false,2890 "name": "kind-of",2891 "nodes": Array [2892 "node_modules/nyc/node_modules/base/node_modules/kind-of",2893 "node_modules/nyc/node_modules/define-property/node_modules/kind-of",2894 "node_modules/nyc/node_modules/extglob/node_modules/kind-of",2895 "node_modules/nyc/node_modules/micromatch/node_modules/kind-of",2896 "node_modules/nyc/node_modules/nanomatch/node_modules/kind-of",2897 "node_modules/nyc/node_modules/snapdragon-node/node_modules/kind-of",2898 "node_modules/nyc/node_modules/test-exclude/node_modules/kind-of",2899 "node_modules/nyc/node_modules/use/node_modules/kind-of",2900 ],2901 "range": "6.0.0 - 6.0.2",2902 "severity": "low",2903 "via": Array [2904 Object {2905 "cvss": undefined,2906 "cwe": undefined,2907 "dependency": "kind-of",2908 "id": undefined,2909 "name": "kind-of",2910 "range": ">=6.0.0 <6.0.3",2911 "severity": "low",2912 "source": 1490,2913 "title": "Validation Bypass",2914 "url": "https://npmjs.com/advisories/1490",2915 "versions": undefined,2916 "vulnerableVersions": undefined,2917 },2918 ],2919 },2920 "lodash": Object {2921 "effects": Array [],2922 "fixAvailable": true,2923 "isDirect": false,2924 "name": "lodash",2925 "nodes": Array [2926 "node_modules/nyc/node_modules/lodash",2927 ],2928 "range": "<=4.17.18",2929 "severity": "high",2930 "via": Array [2931 Object {2932 "cvss": undefined,2933 "cwe": undefined,2934 "dependency": "lodash",2935 "id": undefined,2936 "name": "lodash",2937 "range": "<4.17.12",2938 "severity": "high",2939 "source": 1065,2940 "title": "Prototype Pollution",2941 "url": "https://npmjs.com/advisories/1065",2942 "versions": undefined,2943 "vulnerableVersions": undefined,2944 },2945 Object {2946 "cvss": undefined,2947 "cwe": undefined,2948 "dependency": "lodash",2949 "id": undefined,2950 "name": "lodash",2951 "range": "<4.17.19",2952 "severity": "low",2953 "source": 1523,2954 "title": "Prototype Pollution",2955 "url": "https://npmjs.com/advisories/1523",2956 "versions": undefined,2957 "vulnerableVersions": undefined,2958 },2959 Object {2960 "cvss": undefined,2961 "cwe": undefined,2962 "dependency": "lodash",2963 "id": undefined,2964 "name": "lodash",2965 "range": "<4.17.11",2966 "severity": "high",2967 "source": 782,2968 "title": "Prototype Pollution",2969 "url": "https://npmjs.com/advisories/782",2970 "versions": undefined,2971 "vulnerableVersions": undefined,2972 },2973 ],2974 },2975 "mem": Object {2976 "effects": Array [2977 "os-locale",2978 ],2979 "fixAvailable": Object {2980 "isSemVerMajor": true,2981 "name": "nyc",2982 "version": "15.1.0",2983 },2984 "isDirect": false,2985 "name": "mem",2986 "nodes": Array [2987 "node_modules/nyc/node_modules/mem",2988 ],2989 "range": "<4.0.0",2990 "severity": "low",2991 "via": Array [2992 Object {2993 "cvss": undefined,2994 "cwe": undefined,2995 "dependency": "mem",2996 "id": undefined,2997 "name": "mem",2998 "range": "<4.0.0",2999 "severity": "low",3000 "source": 1084,3001 "title": "Denial of Service",3002 "url": "https://npmjs.com/advisories/1084",3003 "versions": undefined,3004 "vulnerableVersions": undefined,3005 },3006 ],3007 },3008 "minimist": Object {3009 "effects": Array [3010 "mkdirp",3011 "optimist",3012 ],3013 "fixAvailable": Object {3014 "isSemVerMajor": true,3015 "name": "nyc",3016 "version": "15.1.0",3017 },3018 "isDirect": false,3019 "name": "minimist",3020 "nodes": Array [3021 "node_modules/nyc/node_modules/minimist",3022 "node_modules/optimist/node_modules/minimist",3023 ],3024 "range": "<0.2.1 || >=1.0.0 <1.2.3",3025 "severity": "low",3026 "via": Array [3027 Object {3028 "cvss": undefined,3029 "cwe": undefined,3030 "dependency": "minimist",3031 "id": undefined,3032 "name": "minimist",3033 "range": "<0.2.1 || >=1.0.0 <1.2.3",3034 "severity": "low",3035 "source": 1179,3036 "title": "Prototype Pollution",3037 "url": "https://npmjs.com/advisories/1179",3038 "versions": undefined,3039 "vulnerableVersions": undefined,3040 },3041 ],3042 },3043 "mixin-deep": Object {3044 "effects": Array [],3045 "fixAvailable": true,3046 "isDirect": false,3047 "name": "mixin-deep",3048 "nodes": Array [3049 "node_modules/nyc/node_modules/mixin-deep",3050 ],3051 "range": "<=1.3.1 || 2.0.0",3052 "severity": "high",3053 "via": Array [3054 Object {3055 "cvss": undefined,3056 "cwe": undefined,3057 "dependency": "mixin-deep",3058 "id": undefined,3059 "name": "mixin-deep",3060 "range": "<1.3.2 || >=2.0.0 <2.0.1",3061 "severity": "high",3062 "source": 1013,3063 "title": "Prototype Pollution",3064 "url": "https://npmjs.com/advisories/1013",3065 "versions": undefined,3066 "vulnerableVersions": undefined,3067 },3068 ],3069 },3070 "mkdirp": Object {3071 "effects": Array [3072 "nyc",3073 ],3074 "fixAvailable": Object {3075 "isSemVerMajor": true,3076 "name": "nyc",3077 "version": "15.1.0",3078 },3079 "isDirect": false,3080 "name": "mkdirp",3081 "nodes": Array [3082 "node_modules/nyc/node_modules/mkdirp",3083 ],3084 "range": "0.4.1 - 0.5.1",3085 "severity": "low",3086 "via": Array [3087 "minimist",3088 ],3089 },3090 "nyc": Object {3091 "effects": Array [],3092 "fixAvailable": Object {3093 "isSemVerMajor": true,3094 "name": "nyc",3095 "version": "15.1.0",3096 },3097 "isDirect": true,3098 "name": "nyc",3099 "nodes": Array [3100 "node_modules/nyc",3101 ],3102 "range": "6.0.0 - 13.3.0",3103 "severity": "low",3104 "via": Array [3105 "mkdirp",3106 "yargs",3107 "yargs-parser",3108 ],3109 },3110 "optimist": Object {3111 "effects": Array [3112 "handlebars",3113 ],3114 "fixAvailable": Object {3115 "isSemVerMajor": false,3116 "name": "handlebars",3117 "version": "4.7.6",3118 },3119 "isDirect": false,3120 "name": "optimist",3121 "nodes": Array [3122 "node_modules/nyc/node_modules/optimist",3123 "node_modules/optimist",3124 ],3125 "range": ">=0.6.0",3126 "severity": "low",3127 "via": Array [3128 "minimist",3129 ],3130 },3131 "os-locale": Object {3132 "effects": Array [3133 "yargs",3134 ],3135 "fixAvailable": Object {3136 "isSemVerMajor": true,3137 "name": "nyc",3138 "version": "15.1.0",3139 },3140 "isDirect": false,3141 "name": "os-locale",3142 "nodes": Array [3143 "node_modules/nyc/node_modules/os-locale",3144 ],3145 "range": "2.0.0 - 3.0.0",3146 "severity": "low",3147 "via": Array [3148 "mem",3149 ],3150 },3151 "set-value": Object {3152 "effects": Array [3153 "union-value",3154 ],3155 "fixAvailable": true,3156 "isDirect": false,3157 "name": "set-value",3158 "nodes": Array [3159 "node_modules/nyc/node_modules/set-value",3160 "node_modules/nyc/node_modules/union-value/node_modules/set-value",3161 ],3162 "range": "<=2.0.0 || 3.0.0",3163 "severity": "high",3164 "via": Array [3165 Object {3166 "cvss": undefined,3167 "cwe": undefined,3168 "dependency": "set-value",3169 "id": undefined,3170 "name": "set-value",3171 "range": "<2.0.1 || >=3.0.0 <3.0.1",3172 "severity": "high",3173 "source": 1012,3174 "title": "Prototype Pollution",3175 "url": "https://npmjs.com/advisories/1012",3176 "versions": undefined,3177 "vulnerableVersions": undefined,3178 },3179 ],3180 },3181 "union-value": Object {3182 "effects": Array [],3183 "fixAvailable": true,3184 "isDirect": false,3185 "name": "union-value",3186 "nodes": Array [3187 "node_modules/nyc/node_modules/union-value",3188 ],3189 "range": "<=1.0.0 || 2.0.0",3190 "severity": "high",3191 "via": Array [3192 "set-value",3193 ],3194 },3195 "yargs": Object {3196 "effects": Array [3197 "nyc",3198 ],3199 "fixAvailable": Object {3200 "isSemVerMajor": true,3201 "name": "nyc",3202 "version": "15.1.0",3203 },3204 "isDirect": false,3205 "name": "yargs",3206 "nodes": Array [3207 "node_modules/nyc/node_modules/yargs",3208 ],3209 "range": "4.0.0-alpha1 - 12.0.5 || 14.1.0 || 15.0.0 - 15.2.0",3210 "severity": "low",3211 "via": Array [3212 "os-locale",3213 "yargs-parser",3214 ],3215 },3216 "yargs-parser": Object {3217 "effects": Array [3218 "nyc",3219 "yargs",3220 ],3221 "fixAvailable": Object {3222 "isSemVerMajor": true,3223 "name": "nyc",3224 "version": "15.1.0",3225 },3226 "isDirect": false,3227 "name": "yargs-parser",3228 "nodes": Array [3229 "node_modules/nyc/node_modules/yargs-parser",3230 "node_modules/nyc/node_modules/yargs/node_modules/yargs-parser",3231 ],3232 "range": "<=13.1.1 || 14.0.0 - 15.0.0 || 16.0.0 - 18.1.1",3233 "severity": "low",3234 "via": Array [3235 Object {3236 "cvss": undefined,3237 "cwe": undefined,3238 "dependency": "yargs-parser",3239 "id": undefined,3240 "name": "yargs-parser",3241 "range": "<13.1.2 || >=14.0.0 <15.0.1 || >=16.0.0 <18.1.2",3242 "severity": "low",3243 "source": 1500,3244 "title": "Prototype Pollution",3245 "url": "https://npmjs.com/advisories/1500",3246 "versions": undefined,3247 "vulnerableVersions": undefined,3248 },3249 ],3250 },3251 },3252}3253`3254exports[`test/audit-report.js TAP omit options omit=[optional] > bulk 1`] = `3255Object {3256 "auditReportVersion": 2,3257 "metadata": Object {3258 "dependencies": Object {3259 "dev": 399,3260 "optional": 351,3261 "peer": 26,3262 "peerOptional": 0,3263 "prod": 3,3264 "total": 751,3265 },3266 "vulnerabilities": Object {3267 "critical": 1,3268 "high": 0,3269 "info": 0,3270 "low": 2,3271 "moderate": 0,3272 "total": 3,3273 },3274 },3275 "vulnerabilities": Object {3276 "handlebars": Object {3277 "effects": Array [],3278 "fixAvailable": Object {3279 "isSemVerMajor": false,3280 "name": "handlebars",3281 "version": "4.7.6",3282 },3283 "isDirect": true,3284 "name": "handlebars",3285 "nodes": Array [3286 "node_modules/handlebars",3287 ],3288 "range": "<=4.7.3",3289 "severity": "critical",3290 "via": Array [3291 Object {3292 "cvss": undefined,3293 "cwe": undefined,3294 "dependency": "handlebars",3295 "id": undefined,3296 "name": "handlebars",3297 "range": "<3.0.8 || >=4.0.0 <4.3.0",3298 "severity": "high",3299 "source": 1164,3300 "title": "Prototype Pollution",3301 "url": "https://npmjs.com/advisories/1164",3302 "versions": undefined,3303 "vulnerableVersions": undefined,3304 },3305 Object {3306 "cvss": undefined,3307 "cwe": undefined,3308 "dependency": "handlebars",3309 "id": undefined,3310 "name": "handlebars",3311 "range": ">=4.0.0 <4.4.5",3312 "severity": "moderate",3313 "source": 1300,3314 "title": "Denial of Service",3315 "url": "https://npmjs.com/advisories/1300",3316 "versions": undefined,3317 "vulnerableVersions": undefined,3318 },3319 Object {3320 "cvss": undefined,3321 "cwe": undefined,3322 "dependency": "handlebars",3323 "id": undefined,3324 "name": "handlebars",3325 "range": "<3.0.8 || >=4.0.0 <4.5.2",3326 "severity": "high",3327 "source": 1316,3328 "title": "Arbitrary Code Execution",3329 "url": "https://npmjs.com/advisories/1316",3330 "versions": undefined,3331 "vulnerableVersions": undefined,3332 },3333 Object {3334 "cvss": undefined,3335 "cwe": undefined,3336 "dependency": "handlebars",3337 "id": undefined,3338 "name": "handlebars",3339 "range": "<3.0.8 || >=4.0.0 <4.5.3",3340 "severity": "high",3341 "source": 1324,3342 "title": "Arbitrary Code Execution",3343 "url": "https://npmjs.com/advisories/1324",3344 "versions": undefined,3345 "vulnerableVersions": undefined,3346 },3347 Object {3348 "cvss": undefined,3349 "cwe": undefined,3350 "dependency": "handlebars",3351 "id": undefined,3352 "name": "handlebars",3353 "range": "<3.0.8 || >=4.0.0 <4.5.3",3354 "severity": "high",3355 "source": 1325,3356 "title": "Prototype Pollution",3357 "url": "https://npmjs.com/advisories/1325",3358 "versions": undefined,3359 "vulnerableVersions": undefined,3360 },3361 Object {3362 "cvss": undefined,3363 "cwe": undefined,3364 "dependency": "handlebars",3365 "id": undefined,3366 "name": "handlebars",3367 "range": "<=4.0.13 || >=4.1.0 <4.1.2",3368 "severity": "critical",3369 "source": 755,3370 "title": "Prototype Pollution",3371 "url": "https://npmjs.com/advisories/755",3372 "versions": undefined,3373 "vulnerableVersions": undefined,3374 },3375 "optimist",3376 ],3377 },3378 "minimist": Object {3379 "effects": Array [3380 "optimist",3381 ],3382 "fixAvailable": Object {3383 "isSemVerMajor": false,3384 "name": "handlebars",3385 "version": "4.7.6",3386 },3387 "isDirect": false,3388 "name": "minimist",3389 "nodes": Array [3390 "node_modules/optimist/node_modules/minimist",3391 ],3392 "range": "<0.2.1 || >=1.0.0 <1.2.3",3393 "severity": "low",3394 "via": Array [3395 Object {3396 "cvss": undefined,3397 "cwe": undefined,3398 "dependency": "minimist",3399 "id": undefined,3400 "name": "minimist",3401 "range": "<0.2.1 || >=1.0.0 <1.2.3",3402 "severity": "low",3403 "source": 1179,3404 "title": "Prototype Pollution",3405 "url": "https://npmjs.com/advisories/1179",3406 "versions": undefined,3407 "vulnerableVersions": undefined,3408 },3409 ],3410 },3411 "optimist": Object {3412 "effects": Array [3413 "handlebars",3414 ],3415 "fixAvailable": Object {3416 "isSemVerMajor": false,3417 "name": "handlebars",3418 "version": "4.7.6",3419 },3420 "isDirect": false,3421 "name": "optimist",3422 "nodes": Array [3423 "node_modules/optimist",3424 ],3425 "range": ">=0.6.0",3426 "severity": "low",3427 "via": Array [3428 "minimist",3429 ],3430 },3431 },3432}3433`3434exports[`test/audit-report.js TAP omit options omit=[peer,dev,optional] > bulk 1`] = `3435Object {3436 "auditReportVersion": 2,3437 "metadata": Object {3438 "dependencies": Object {3439 "dev": 399,3440 "optional": 351,3441 "peer": 26,3442 "peerOptional": 0,3443 "prod": 3,3444 "total": 751,3445 },3446 "vulnerabilities": Object {3447 "critical": 0,3448 "high": 0,3449 "info": 0,3450 "low": 0,3451 "moderate": 0,3452 "total": 0,3453 },3454 },3455 "vulnerabilities": Object {},3456}3457`3458exports[`test/audit-report.js TAP omit options omit=[peer,dev] > bulk 1`] = `3459Object {3460 "auditReportVersion": 2,3461 "metadata": Object {3462 "dependencies": Object {3463 "dev": 399,3464 "optional": 351,3465 "peer": 26,3466 "peerOptional": 0,3467 "prod": 3,3468 "total": 751,3469 },3470 "vulnerabilities": Object {3471 "critical": 1,3472 "high": 4,3473 "info": 0,3474 "low": 9,3475 "moderate": 0,3476 "total": 14,3477 },3478 },3479 "vulnerabilities": Object {3480 "handlebars": Object {3481 "effects": Array [],3482 "fixAvailable": true,3483 "isDirect": false,3484 "name": "handlebars",3485 "nodes": Array [3486 "node_modules/nyc/node_modules/handlebars",3487 ],3488 "range": "<=4.7.3",3489 "severity": "critical",3490 "via": Array [3491 Object {3492 "cvss": undefined,3493 "cwe": undefined,3494 "dependency": "handlebars",3495 "id": undefined,3496 "name": "handlebars",3497 "range": "<3.0.8 || >=4.0.0 <4.3.0",3498 "severity": "high",3499 "source": 1164,3500 "title": "Prototype Pollution",3501 "url": "https://npmjs.com/advisories/1164",3502 "versions": undefined,3503 "vulnerableVersions": undefined,3504 },3505 Object {3506 "cvss": undefined,3507 "cwe": undefined,3508 "dependency": "handlebars",3509 "id": undefined,3510 "name": "handlebars",3511 "range": ">=4.0.0 <4.4.5",3512 "severity": "moderate",3513 "source": 1300,3514 "title": "Denial of Service",3515 "url": "https://npmjs.com/advisories/1300",3516 "versions": undefined,3517 "vulnerableVersions": undefined,3518 },3519 Object {3520 "cvss": undefined,3521 "cwe": undefined,3522 "dependency": "handlebars",3523 "id": undefined,3524 "name": "handlebars",3525 "range": "<3.0.8 || >=4.0.0 <4.5.2",3526 "severity": "high",3527 "source": 1316,3528 "title": "Arbitrary Code Execution",3529 "url": "https://npmjs.com/advisories/1316",3530 "versions": undefined,3531 "vulnerableVersions": undefined,3532 },3533 Object {3534 "cvss": undefined,3535 "cwe": undefined,3536 "dependency": "handlebars",3537 "id": undefined,3538 "name": "handlebars",3539 "range": "<3.0.8 || >=4.0.0 <4.5.3",3540 "severity": "high",3541 "source": 1324,3542 "title": "Arbitrary Code Execution",3543 "url": "https://npmjs.com/advisories/1324",3544 "versions": undefined,3545 "vulnerableVersions": undefined,3546 },3547 Object {3548 "cvss": undefined,3549 "cwe": undefined,3550 "dependency": "handlebars",3551 "id": undefined,3552 "name": "handlebars",3553 "range": "<3.0.8 || >=4.0.0 <4.5.3",3554 "severity": "high",3555 "source": 1325,3556 "title": "Prototype Pollution",3557 "url": "https://npmjs.com/advisories/1325",3558 "versions": undefined,3559 "vulnerableVersions": undefined,3560 },3561 Object {3562 "cvss": undefined,3563 "cwe": undefined,3564 "dependency": "handlebars",3565 "id": undefined,3566 "name": "handlebars",3567 "range": "<=4.0.13 || >=4.1.0 <4.1.2",3568 "severity": "critical",3569 "source": 755,3570 "title": "Prototype Pollution",3571 "url": "https://npmjs.com/advisories/755",3572 "versions": undefined,3573 "vulnerableVersions": undefined,3574 },3575 "optimist",3576 ],3577 },3578 "kind-of": Object {3579 "effects": Array [],3580 "fixAvailable": true,3581 "isDirect": false,3582 "name": "kind-of",3583 "nodes": Array [3584 "node_modules/nyc/node_modules/base/node_modules/kind-of",3585 "node_modules/nyc/node_modules/define-property/node_modules/kind-of",3586 "node_modules/nyc/node_modules/extglob/node_modules/kind-of",3587 "node_modules/nyc/node_modules/micromatch/node_modules/kind-of",3588 "node_modules/nyc/node_modules/nanomatch/node_modules/kind-of",3589 "node_modules/nyc/node_modules/snapdragon-node/node_modules/kind-of",3590 "node_modules/nyc/node_modules/test-exclude/node_modules/kind-of",3591 "node_modules/nyc/node_modules/use/node_modules/kind-of",3592 ],3593 "range": "6.0.0 - 6.0.2",3594 "severity": "low",3595 "via": Array [3596 Object {3597 "cvss": undefined,3598 "cwe": undefined,3599 "dependency": "kind-of",3600 "id": undefined,3601 "name": "kind-of",3602 "range": ">=6.0.0 <6.0.3",3603 "severity": "low",3604 "source": 1490,3605 "title": "Validation Bypass",3606 "url": "https://npmjs.com/advisories/1490",3607 "versions": undefined,3608 "vulnerableVersions": undefined,3609 },3610 ],3611 },3612 "lodash": Object {3613 "effects": Array [],3614 "fixAvailable": true,3615 "isDirect": false,3616 "name": "lodash",3617 "nodes": Array [3618 "node_modules/nyc/node_modules/lodash",3619 ],3620 "range": "<=4.17.18",3621 "severity": "high",3622 "via": Array [3623 Object {3624 "cvss": undefined,3625 "cwe": undefined,3626 "dependency": "lodash",3627 "id": undefined,3628 "name": "lodash",3629 "range": "<4.17.12",3630 "severity": "high",3631 "source": 1065,3632 "title": "Prototype Pollution",3633 "url": "https://npmjs.com/advisories/1065",3634 "versions": undefined,3635 "vulnerableVersions": undefined,3636 },3637 Object {3638 "cvss": undefined,3639 "cwe": undefined,3640 "dependency": "lodash",3641 "id": undefined,3642 "name": "lodash",3643 "range": "<4.17.19",3644 "severity": "low",3645 "source": 1523,3646 "title": "Prototype Pollution",3647 "url": "https://npmjs.com/advisories/1523",3648 "versions": undefined,3649 "vulnerableVersions": undefined,3650 },3651 Object {3652 "cvss": undefined,3653 "cwe": undefined,3654 "dependency": "lodash",3655 "id": undefined,3656 "name": "lodash",3657 "range": "<4.17.11",3658 "severity": "high",3659 "source": 782,3660 "title": "Prototype Pollution",3661 "url": "https://npmjs.com/advisories/782",3662 "versions": undefined,3663 "vulnerableVersions": undefined,3664 },3665 ],3666 },3667 "mem": Object {3668 "effects": Array [3669 "os-locale",3670 ],3671 "fixAvailable": Object {3672 "isSemVerMajor": true,3673 "name": "nyc",3674 "version": "15.1.0",3675 },3676 "isDirect": false,3677 "name": "mem",3678 "nodes": Array [3679 "node_modules/nyc/node_modules/mem",3680 ],3681 "range": "<4.0.0",3682 "severity": "low",3683 "via": Array [3684 Object {3685 "cvss": undefined,3686 "cwe": undefined,3687 "dependency": "mem",3688 "id": undefined,3689 "name": "mem",3690 "range": "<4.0.0",3691 "severity": "low",3692 "source": 1084,3693 "title": "Denial of Service",3694 "url": "https://npmjs.com/advisories/1084",3695 "versions": undefined,3696 "vulnerableVersions": undefined,3697 },3698 ],3699 },3700 "minimist": Object {3701 "effects": Array [3702 "mkdirp",3703 "optimist",3704 ],3705 "fixAvailable": Object {3706 "isSemVerMajor": true,3707 "name": "nyc",3708 "version": "15.1.0",3709 },3710 "isDirect": false,3711 "name": "minimist",3712 "nodes": Array [3713 "node_modules/nyc/node_modules/minimist",3714 ],3715 "range": "<0.2.1 || >=1.0.0 <1.2.3",3716 "severity": "low",3717 "via": Array [3718 Object {3719 "cvss": undefined,3720 "cwe": undefined,3721 "dependency": "minimist",3722 "id": undefined,3723 "name": "minimist",3724 "range": "<0.2.1 || >=1.0.0 <1.2.3",3725 "severity": "low",3726 "source": 1179,3727 "title": "Prototype Pollution",3728 "url": "https://npmjs.com/advisories/1179",3729 "versions": undefined,3730 "vulnerableVersions": undefined,3731 },3732 ],3733 },3734 "mixin-deep": Object {3735 "effects": Array [],3736 "fixAvailable": true,3737 "isDirect": false,3738 "name": "mixin-deep",3739 "nodes": Array [3740 "node_modules/nyc/node_modules/mixin-deep",3741 ],3742 "range": "<=1.3.1 || 2.0.0",3743 "severity": "high",3744 "via": Array [3745 Object {3746 "cvss": undefined,3747 "cwe": undefined,3748 "dependency": "mixin-deep",3749 "id": undefined,3750 "name": "mixin-deep",3751 "range": "<1.3.2 || >=2.0.0 <2.0.1",3752 "severity": "high",3753 "source": 1013,3754 "title": "Prototype Pollution",3755 "url": "https://npmjs.com/advisories/1013",3756 "versions": undefined,3757 "vulnerableVersions": undefined,3758 },3759 ],3760 },3761 "mkdirp": Object {3762 "effects": Array [3763 "nyc",3764 ],3765 "fixAvailable": Object {3766 "isSemVerMajor": true,3767 "name": "nyc",3768 "version": "15.1.0",3769 },3770 "isDirect": false,3771 "name": "mkdirp",3772 "nodes": Array [3773 "node_modules/nyc/node_modules/mkdirp",3774 ],3775 "range": "0.4.1 - 0.5.1",3776 "severity": "low",3777 "via": Array [3778 "minimist",3779 ],3780 },3781 "nyc": Object {3782 "effects": Array [],3783 "fixAvailable": Object {3784 "isSemVerMajor": true,3785 "name": "nyc",3786 "version": "15.1.0",3787 },3788 "isDirect": true,3789 "name": "nyc",3790 "nodes": Array [3791 "node_modules/nyc",3792 ],3793 "range": "6.0.0 - 13.3.0",3794 "severity": "low",3795 "via": Array [3796 "mkdirp",3797 "yargs",3798 "yargs-parser",3799 ],3800 },3801 "optimist": Object {3802 "effects": Array [3803 "handlebars",3804 ],3805 "fixAvailable": true,3806 "isDirect": false,3807 "name": "optimist",3808 "nodes": Array [3809 "node_modules/nyc/node_modules/optimist",3810 ],3811 "range": ">=0.6.0",3812 "severity": "low",3813 "via": Array [3814 "minimist",3815 ],3816 },3817 "os-locale": Object {3818 "effects": Array [3819 "yargs",3820 ],3821 "fixAvailable": Object {3822 "isSemVerMajor": true,3823 "name": "nyc",3824 "version": "15.1.0",3825 },3826 "isDirect": false,3827 "name": "os-locale",3828 "nodes": Array [3829 "node_modules/nyc/node_modules/os-locale",3830 ],3831 "range": "2.0.0 - 3.0.0",3832 "severity": "low",3833 "via": Array [3834 "mem",3835 ],3836 },3837 "set-value": Object {3838 "effects": Array [3839 "union-value",3840 ],3841 "fixAvailable": true,3842 "isDirect": false,3843 "name": "set-value",3844 "nodes": Array [3845 "node_modules/nyc/node_modules/set-value",3846 "node_modules/nyc/node_modules/union-value/node_modules/set-value",3847 ],3848 "range": "<=2.0.0 || 3.0.0",3849 "severity": "high",3850 "via": Array [3851 Object {3852 "cvss": undefined,3853 "cwe": undefined,3854 "dependency": "set-value",3855 "id": undefined,3856 "name": "set-value",3857 "range": "<2.0.1 || >=3.0.0 <3.0.1",3858 "severity": "high",3859 "source": 1012,3860 "title": "Prototype Pollution",3861 "url": "https://npmjs.com/advisories/1012",3862 "versions": undefined,3863 "vulnerableVersions": undefined,3864 },3865 ],3866 },3867 "union-value": Object {3868 "effects": Array [],3869 "fixAvailable": true,3870 "isDirect": false,3871 "name": "union-value",3872 "nodes": Array [3873 "node_modules/nyc/node_modules/union-value",3874 ],3875 "range": "<=1.0.0 || 2.0.0",3876 "severity": "high",3877 "via": Array [3878 "set-value",3879 ],3880 },3881 "yargs": Object {3882 "effects": Array [3883 "nyc",3884 ],3885 "fixAvailable": Object {3886 "isSemVerMajor": true,3887 "name": "nyc",3888 "version": "15.1.0",3889 },3890 "isDirect": false,3891 "name": "yargs",3892 "nodes": Array [3893 "node_modules/nyc/node_modules/yargs",3894 ],3895 "range": "4.0.0-alpha1 - 12.0.5 || 14.1.0 || 15.0.0 - 15.2.0",3896 "severity": "low",3897 "via": Array [3898 "os-locale",3899 "yargs-parser",3900 ],3901 },3902 "yargs-parser": Object {3903 "effects": Array [3904 "nyc",3905 "yargs",3906 ],3907 "fixAvailable": Object {3908 "isSemVerMajor": true,3909 "name": "nyc",3910 "version": "15.1.0",3911 },3912 "isDirect": false,3913 "name": "yargs-parser",3914 "nodes": Array [3915 "node_modules/nyc/node_modules/yargs-parser",3916 "node_modules/nyc/node_modules/yargs/node_modules/yargs-parser",3917 ],3918 "range": "<=13.1.1 || 14.0.0 - 15.0.0 || 16.0.0 - 18.1.1",3919 "severity": "low",3920 "via": Array [3921 Object {3922 "cvss": undefined,3923 "cwe": undefined,3924 "dependency": "yargs-parser",3925 "id": undefined,3926 "name": "yargs-parser",3927 "range": "<13.1.2 || >=14.0.0 <15.0.1 || >=16.0.0 <18.1.2",3928 "severity": "low",3929 "source": 1500,3930 "title": "Prototype Pollution",3931 "url": "https://npmjs.com/advisories/1500",3932 "versions": undefined,3933 "vulnerableVersions": undefined,3934 },3935 ],3936 },3937 },3938}3939`3940exports[`test/audit-report.js TAP omit options omit=[peer] > bulk 1`] = `3941Object {3942 "auditReportVersion": 2,3943 "metadata": Object {3944 "dependencies": Object {3945 "dev": 399,3946 "optional": 351,3947 "peer": 26,3948 "peerOptional": 0,3949 "prod": 3,3950 "total": 751,3951 },3952 "vulnerabilities": Object {3953 "critical": 1,3954 "high": 4,3955 "info": 0,3956 "low": 9,3957 "moderate": 0,3958 "total": 14,3959 },3960 },3961 "vulnerabilities": Object {3962 "handlebars": Object {3963 "effects": Array [],3964 "fixAvailable": true,3965 "isDirect": false,3966 "name": "handlebars",3967 "nodes": Array [3968 "node_modules/nyc/node_modules/handlebars",3969 ],3970 "range": "<=4.7.3",3971 "severity": "critical",3972 "via": Array [3973 Object {3974 "cvss": undefined,3975 "cwe": undefined,3976 "dependency": "handlebars",3977 "id": undefined,3978 "name": "handlebars",3979 "range": "<3.0.8 || >=4.0.0 <4.3.0",3980 "severity": "high",3981 "source": 1164,3982 "title": "Prototype Pollution",3983 "url": "https://npmjs.com/advisories/1164",3984 "versions": undefined,3985 "vulnerableVersions": undefined,3986 },3987 Object {3988 "cvss": undefined,3989 "cwe": undefined,3990 "dependency": "handlebars",3991 "id": undefined,3992 "name": "handlebars",3993 "range": ">=4.0.0 <4.4.5",3994 "severity": "moderate",3995 "source": 1300,3996 "title": "Denial of Service",3997 "url": "https://npmjs.com/advisories/1300",3998 "versions": undefined,3999 "vulnerableVersions": undefined,4000 },4001 Object {4002 "cvss": undefined,4003 "cwe": undefined,4004 "dependency": "handlebars",4005 "id": undefined,4006 "name": "handlebars",4007 "range": "<3.0.8 || >=4.0.0 <4.5.2",4008 "severity": "high",4009 "source": 1316,4010 "title": "Arbitrary Code Execution",4011 "url": "https://npmjs.com/advisories/1316",4012 "versions": undefined,4013 "vulnerableVersions": undefined,4014 },4015 Object {4016 "cvss": undefined,4017 "cwe": undefined,4018 "dependency": "handlebars",4019 "id": undefined,4020 "name": "handlebars",4021 "range": "<3.0.8 || >=4.0.0 <4.5.3",4022 "severity": "high",4023 "source": 1324,4024 "title": "Arbitrary Code Execution",4025 "url": "https://npmjs.com/advisories/1324",4026 "versions": undefined,4027 "vulnerableVersions": undefined,4028 },4029 Object {4030 "cvss": undefined,4031 "cwe": undefined,4032 "dependency": "handlebars",4033 "id": undefined,4034 "name": "handlebars",4035 "range": "<3.0.8 || >=4.0.0 <4.5.3",4036 "severity": "high",4037 "source": 1325,4038 "title": "Prototype Pollution",4039 "url": "https://npmjs.com/advisories/1325",4040 "versions": undefined,4041 "vulnerableVersions": undefined,4042 },4043 Object {4044 "cvss": undefined,4045 "cwe": undefined,4046 "dependency": "handlebars",4047 "id": undefined,4048 "name": "handlebars",4049 "range": "<=4.0.13 || >=4.1.0 <4.1.2",4050 "severity": "critical",4051 "source": 755,4052 "title": "Prototype Pollution",4053 "url": "https://npmjs.com/advisories/755",4054 "versions": undefined,4055 "vulnerableVersions": undefined,4056 },4057 "optimist",4058 ],4059 },4060 "kind-of": Object {4061 "effects": Array [],4062 "fixAvailable": true,4063 "isDirect": false,4064 "name": "kind-of",4065 "nodes": Array [4066 "node_modules/nyc/node_modules/base/node_modules/kind-of",4067 "node_modules/nyc/node_modules/define-property/node_modules/kind-of",4068 "node_modules/nyc/node_modules/extglob/node_modules/kind-of",4069 "node_modules/nyc/node_modules/micromatch/node_modules/kind-of",4070 "node_modules/nyc/node_modules/nanomatch/node_modules/kind-of",4071 "node_modules/nyc/node_modules/snapdragon-node/node_modules/kind-of",4072 "node_modules/nyc/node_modules/test-exclude/node_modules/kind-of",4073 "node_modules/nyc/node_modules/use/node_modules/kind-of",4074 ],4075 "range": "6.0.0 - 6.0.2",4076 "severity": "low",4077 "via": Array [4078 Object {4079 "cvss": undefined,4080 "cwe": undefined,4081 "dependency": "kind-of",4082 "id": undefined,4083 "name": "kind-of",4084 "range": ">=6.0.0 <6.0.3",4085 "severity": "low",4086 "source": 1490,4087 "title": "Validation Bypass",4088 "url": "https://npmjs.com/advisories/1490",4089 "versions": undefined,4090 "vulnerableVersions": undefined,4091 },4092 ],4093 },4094 "lodash": Object {4095 "effects": Array [],4096 "fixAvailable": true,4097 "isDirect": false,4098 "name": "lodash",4099 "nodes": Array [4100 "node_modules/nyc/node_modules/lodash",4101 ],4102 "range": "<=4.17.18",4103 "severity": "high",4104 "via": Array [4105 Object {4106 "cvss": undefined,4107 "cwe": undefined,4108 "dependency": "lodash",4109 "id": undefined,4110 "name": "lodash",4111 "range": "<4.17.12",4112 "severity": "high",4113 "source": 1065,4114 "title": "Prototype Pollution",4115 "url": "https://npmjs.com/advisories/1065",4116 "versions": undefined,4117 "vulnerableVersions": undefined,4118 },4119 Object {4120 "cvss": undefined,4121 "cwe": undefined,4122 "dependency": "lodash",4123 "id": undefined,4124 "name": "lodash",4125 "range": "<4.17.19",4126 "severity": "low",4127 "source": 1523,4128 "title": "Prototype Pollution",4129 "url": "https://npmjs.com/advisories/1523",4130 "versions": undefined,4131 "vulnerableVersions": undefined,4132 },4133 Object {4134 "cvss": undefined,4135 "cwe": undefined,4136 "dependency": "lodash",4137 "id": undefined,4138 "name": "lodash",4139 "range": "<4.17.11",4140 "severity": "high",4141 "source": 782,4142 "title": "Prototype Pollution",4143 "url": "https://npmjs.com/advisories/782",4144 "versions": undefined,4145 "vulnerableVersions": undefined,4146 },4147 ],4148 },4149 "mem": Object {4150 "effects": Array [4151 "os-locale",4152 ],4153 "fixAvailable": Object {4154 "isSemVerMajor": true,4155 "name": "nyc",4156 "version": "15.1.0",4157 },4158 "isDirect": false,4159 "name": "mem",4160 "nodes": Array [4161 "node_modules/nyc/node_modules/mem",4162 ],4163 "range": "<4.0.0",4164 "severity": "low",4165 "via": Array [4166 Object {4167 "cvss": undefined,4168 "cwe": undefined,4169 "dependency": "mem",4170 "id": undefined,4171 "name": "mem",4172 "range": "<4.0.0",4173 "severity": "low",4174 "source": 1084,4175 "title": "Denial of Service",4176 "url": "https://npmjs.com/advisories/1084",4177 "versions": undefined,4178 "vulnerableVersions": undefined,4179 },4180 ],4181 },4182 "minimist": Object {4183 "effects": Array [4184 "mkdirp",4185 "optimist",4186 ],4187 "fixAvailable": Object {4188 "isSemVerMajor": true,4189 "name": "nyc",4190 "version": "15.1.0",4191 },4192 "isDirect": false,4193 "name": "minimist",4194 "nodes": Array [4195 "node_modules/nyc/node_modules/minimist",4196 ],4197 "range": "<0.2.1 || >=1.0.0 <1.2.3",4198 "severity": "low",4199 "via": Array [4200 Object {4201 "cvss": undefined,4202 "cwe": undefined,4203 "dependency": "minimist",4204 "id": undefined,4205 "name": "minimist",4206 "range": "<0.2.1 || >=1.0.0 <1.2.3",4207 "severity": "low",4208 "source": 1179,4209 "title": "Prototype Pollution",4210 "url": "https://npmjs.com/advisories/1179",4211 "versions": undefined,4212 "vulnerableVersions": undefined,4213 },4214 ],4215 },4216 "mixin-deep": Object {4217 "effects": Array [],4218 "fixAvailable": true,4219 "isDirect": false,4220 "name": "mixin-deep",4221 "nodes": Array [4222 "node_modules/nyc/node_modules/mixin-deep",4223 ],4224 "range": "<=1.3.1 || 2.0.0",4225 "severity": "high",4226 "via": Array [4227 Object {4228 "cvss": undefined,4229 "cwe": undefined,4230 "dependency": "mixin-deep",4231 "id": undefined,4232 "name": "mixin-deep",4233 "range": "<1.3.2 || >=2.0.0 <2.0.1",4234 "severity": "high",4235 "source": 1013,4236 "title": "Prototype Pollution",4237 "url": "https://npmjs.com/advisories/1013",4238 "versions": undefined,4239 "vulnerableVersions": undefined,4240 },4241 ],4242 },4243 "mkdirp": Object {4244 "effects": Array [4245 "nyc",4246 ],4247 "fixAvailable": Object {4248 "isSemVerMajor": true,4249 "name": "nyc",4250 "version": "15.1.0",4251 },4252 "isDirect": false,4253 "name": "mkdirp",4254 "nodes": Array [4255 "node_modules/nyc/node_modules/mkdirp",4256 ],4257 "range": "0.4.1 - 0.5.1",4258 "severity": "low",4259 "via": Array [4260 "minimist",4261 ],4262 },4263 "nyc": Object {4264 "effects": Array [],4265 "fixAvailable": Object {4266 "isSemVerMajor": true,4267 "name": "nyc",4268 "version": "15.1.0",4269 },4270 "isDirect": true,4271 "name": "nyc",4272 "nodes": Array [4273 "node_modules/nyc",4274 ],4275 "range": "6.0.0 - 13.3.0",4276 "severity": "low",4277 "via": Array [4278 "mkdirp",4279 "yargs",4280 "yargs-parser",4281 ],4282 },4283 "optimist": Object {4284 "effects": Array [4285 "handlebars",4286 ],4287 "fixAvailable": true,4288 "isDirect": false,4289 "name": "optimist",4290 "nodes": Array [4291 "node_modules/nyc/node_modules/optimist",4292 ],4293 "range": ">=0.6.0",4294 "severity": "low",4295 "via": Array [4296 "minimist",4297 ],4298 },4299 "os-locale": Object {4300 "effects": Array [4301 "yargs",4302 ],4303 "fixAvailable": Object {4304 "isSemVerMajor": true,4305 "name": "nyc",4306 "version": "15.1.0",4307 },4308 "isDirect": false,4309 "name": "os-locale",4310 "nodes": Array [4311 "node_modules/nyc/node_modules/os-locale",4312 ],4313 "range": "2.0.0 - 3.0.0",4314 "severity": "low",4315 "via": Array [4316 "mem",4317 ],4318 },4319 "set-value": Object {4320 "effects": Array [4321 "union-value",4322 ],4323 "fixAvailable": true,4324 "isDirect": false,4325 "name": "set-value",4326 "nodes": Array [4327 "node_modules/nyc/node_modules/set-value",4328 "node_modules/nyc/node_modules/union-value/node_modules/set-value",4329 ],4330 "range": "<=2.0.0 || 3.0.0",4331 "severity": "high",4332 "via": Array [4333 Object {4334 "cvss": undefined,4335 "cwe": undefined,4336 "dependency": "set-value",4337 "id": undefined,4338 "name": "set-value",4339 "range": "<2.0.1 || >=3.0.0 <3.0.1",4340 "severity": "high",4341 "source": 1012,4342 "title": "Prototype Pollution",4343 "url": "https://npmjs.com/advisories/1012",4344 "versions": undefined,4345 "vulnerableVersions": undefined,4346 },4347 ],4348 },4349 "union-value": Object {4350 "effects": Array [],4351 "fixAvailable": true,4352 "isDirect": false,4353 "name": "union-value",4354 "nodes": Array [4355 "node_modules/nyc/node_modules/union-value",4356 ],4357 "range": "<=1.0.0 || 2.0.0",4358 "severity": "high",4359 "via": Array [4360 "set-value",4361 ],4362 },4363 "yargs": Object {4364 "effects": Array [4365 "nyc",4366 ],4367 "fixAvailable": Object {4368 "isSemVerMajor": true,4369 "name": "nyc",4370 "version": "15.1.0",4371 },4372 "isDirect": false,4373 "name": "yargs",4374 "nodes": Array [4375 "node_modules/nyc/node_modules/yargs",4376 ],4377 "range": "4.0.0-alpha1 - 12.0.5 || 14.1.0 || 15.0.0 - 15.2.0",4378 "severity": "low",4379 "via": Array [4380 "os-locale",4381 "yargs-parser",4382 ],4383 },4384 "yargs-parser": Object {4385 "effects": Array [4386 "nyc",4387 "yargs",4388 ],4389 "fixAvailable": Object {4390 "isSemVerMajor": true,4391 "name": "nyc",4392 "version": "15.1.0",4393 },4394 "isDirect": false,4395 "name": "yargs-parser",4396 "nodes": Array [4397 "node_modules/nyc/node_modules/yargs-parser",4398 "node_modules/nyc/node_modules/yargs/node_modules/yargs-parser",4399 ],4400 "range": "<=13.1.1 || 14.0.0 - 15.0.0 || 16.0.0 - 18.1.1",4401 "severity": "low",4402 "via": Array [4403 Object {4404 "cvss": undefined,4405 "cwe": undefined,4406 "dependency": "yargs-parser",4407 "id": undefined,4408 "name": "yargs-parser",4409 "range": "<13.1.2 || >=14.0.0 <15.0.1 || >=16.0.0 <18.1.2",4410 "severity": "low",4411 "source": 1500,4412 "title": "Prototype Pollution",4413 "url": "https://npmjs.com/advisories/1500",4414 "versions": undefined,4415 "vulnerableVersions": undefined,4416 },4417 ],4418 },4419 },4420}4421`4422exports[`test/audit-report.js TAP one vulnerability > json version 1`] = `4423{4424 "auditReportVersion": 2,4425 "vulnerabilities": {4426 "minimist": {4427 "name": "minimist",4428 "severity": "low",4429 "isDirect": true,4430 "via": [4431 {4432 "source": 1179,4433 "name": "minimist",4434 "dependency": "minimist",4435 "title": "Prototype Pollution",4436 "url": "https://npmjs.com/advisories/1179",4437 "severity": "low",4438 "range": "<0.2.1 || >=1.0.0 <1.2.3"4439 }4440 ],4441 "effects": [],4442 "range": "<0.2.1 || >=1.0.0 <1.2.3",4443 "nodes": [4444 "node_modules/minimist"4445 ],4446 "fixAvailable": true4447 }4448 },4449 "metadata": {4450 "vulnerabilities": {4451 "info": 0,4452 "low": 1,4453 "moderate": 0,4454 "high": 0,4455 "critical": 0,4456 "total": 14457 },4458 "dependencies": {4459 "prod": 2,4460 "dev": 0,4461 "optional": 0,4462 "peer": 0,4463 "peerOptional": 0,4464 "total": 14465 }4466 }4467}4468`4469exports[`test/audit-report.js TAP unfixable, but not a semver major forced fix > json version 1`] = `4470{4471 "auditReportVersion": 2,4472 "vulnerabilities": {4473 "minimist": {4474 "name": "minimist",4475 "severity": "low",4476 "isDirect": false,4477 "via": [4478 {4479 "source": 1179,4480 "name": "minimist",4481 "dependency": "minimist",4482 "title": "Prototype Pollution",4483 "url": "https://npmjs.com/advisories/1179",4484 "severity": "low",4485 "range": "<0.2.1 || >=1.0.0 <1.2.3"4486 }4487 ],4488 "effects": [4489 "mkdirp"4490 ],4491 "range": "<0.2.1 || >=1.0.0 <1.2.3",4492 "nodes": [4493 "node_modules/minimist"4494 ],4495 "fixAvailable": {4496 "name": "mkdirp",4497 "version": "0.5.5",4498 "isSemVerMajor": false4499 }4500 },4501 "mkdirp": {4502 "name": "mkdirp",4503 "severity": "low",4504 "isDirect": true,4505 "via": [4506 "minimist"4507 ],4508 "effects": [],4509 "range": "0.4.1 - 0.5.1",4510 "nodes": [4511 "node_modules/mkdirp"4512 ],4513 "fixAvailable": {4514 "name": "mkdirp",4515 "version": "0.5.5",4516 "isSemVerMajor": false4517 }4518 }4519 },4520 "metadata": {4521 "vulnerabilities": {4522 "info": 0,4523 "low": 2,4524 "moderate": 0,4525 "high": 0,4526 "critical": 0,4527 "total": 24528 },4529 "dependencies": {4530 "prod": 3,4531 "dev": 0,4532 "optional": 0,4533 "peer": 0,4534 "peerOptional": 0,4535 "total": 24536 }4537 }4538}4539`4540exports[`test/audit-report.js TAP vulnerable dep not from registry > json version 1`] = `4541{4542 "auditReportVersion": 2,4543 "vulnerabilities": {4544 "minimist": {4545 "name": "minimist",4546 "severity": "low",4547 "isDirect": true,4548 "via": [4549 {4550 "source": 1179,4551 "name": "minimist",4552 "dependency": "minimist",4553 "title": "Prototype Pollution",4554 "url": "https://npmjs.com/advisories/1179",4555 "severity": "low",4556 "range": "<0.2.1 || >=1.0.0 <1.2.3"4557 }4558 ],4559 "effects": [],4560 "range": "<0.2.1 || >=1.0.0 <1.2.3",4561 "nodes": [4562 "node_modules/minimist"4563 ],4564 "fixAvailable": false4565 }4566 },4567 "metadata": {4568 "vulnerabilities": {4569 "info": 0,4570 "low": 1,4571 "moderate": 0,4572 "high": 0,4573 "critical": 0,4574 "total": 14575 },4576 "dependencies": {4577 "prod": 1,4578 "dev": 0,4579 "optional": 0,4580 "peer": 1,4581 "peerOptional": 0,4582 "total": 14583 }4584 }4585}...

Full Screen

Full Screen

config.example.ts

Source:config.example.ts Github

copy

Full Screen

1// @ts-ignore2const config: Config = {3 "key" : "yourGoogleAPIKey",4 limit: 300,5 "destinations": [6 {7 "for": "Olivier",8 percent: 50,9 "trainStations": [10 {11 "name": "Saint-André-le-Gaz",12 "durationInSeconds": 3900,13 "isDirect": true,14 "location": "45.545359,5.5210913"15 },16 {17 "name": "Virieu",18 "durationInSeconds": 3480,19 "isDirect": true,20 "location": "45.4907225,5.4710849"21 },22 {23 "name": "Châbons",24 "durationInSeconds": 3060,25 "isDirect": true,26 "location": "45.4383212,5.4198982"27 },28 {29 "name": "Le Grand-Lemps",30 "durationInSeconds": 2760,31 "isDirect": true,32 "location": "45.3962631,5.4142042"33 },34 {35 "name": "Rives",36 "durationInSeconds": 2280,37 "isDirect": true,38 "location": "45.3587391,5.4830712"39 },40 {41 "name": "Réaumont",42 "durationInSeconds": 2040,43 "isDirect": true,44 "location": "45.3685138,5.5338758"45 },46 {47 "name": "Voiron",48 "durationInSeconds": 1740,49 "isDirect": true,50 "location": "45.364443,5.594745"51 },52 {53 "name": "La Verpillière",54 "durationInSeconds": 5520,55 "isDirect": false,56 "location": "45.6277981,5.1426842"57 },58 {59 "name": "Bourgoin-Jallieu",60 "durationInSeconds": 4920,61 "isDirect": false,62 "location": "45.5830941,5.2650492"63 },64 {65 "name": "La Tour-du-Pin",66 "durationInSeconds": 4320,67 "isDirect": false,68 "location": "45.5601421,5.4420942"69 }70 ]71 },72 {73 "for": "Céline",74 percent: 50,75 "location": "115 Chemin de l'Islon, 38670 Chasse-sur-Rhône"76 }77 ]...

Full Screen

Full Screen

directory.js

Source:directory.js Github

copy

Full Screen

1dictionary = {urls:2 {3 "heroku.com": {4 "isDirect": false,5 "parent": "https://salesforce.com/",6 "source": "",7 "description": "",8 },9 "salesforce.com": {10 "isDirect": true,11 "parent": "",12 "source": "",13 "description": "",14 },15 "microsoft.com": {16 "isDirect": true,17 "parent": "",18 "source": "",19 "description": "",20 },21 "adobe.com": {22 "isDirect": true,23 "parent": "",24 "source": "",25 "description": "",26 },27 "behance.net": {28 "isDirect": false,29 "parent": "adobe.com",30 "source": "",31 "description": "",32 },33 "ibm.com": {34 "isDirect": true,35 "parent": "",36 "source": "",37 "description": "",38 },39 "apple.com": {40 "isDirect": true,41 "parent": "",42 "source": "",43 "description": "",44 },45 "oracle.com": {46 "isDirect": true,47 "parent": "",48 "source": "",49 "description": "",50 },51 "symantec.com": {52 "isDirect": true,53 "parent": "",54 "source": "",55 "description": "",56 },57 "autodesk.com": {58 "isDirect": true,59 "parent": "",60 "source": "",61 "description": "",62 },63 }...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1import { isDirect } from 'ng-mocks';2import { TestComponent } from './test.component';3describe('TestComponent', () => {4 it('should create', () => {5 expect(isDirect(TestComponent)).toBe(true);6 });7});8import { Component } from '@angular/core';9@Component({10})11exporttclass TestComponent { }12div{13color:red;14}15import{ CmponentFixtue, TetBed } from '@angular/core/testing';16importe{xTestComponentp}ofrom './test.component';17describe('TestComponent', () => {18 let component: TestComponent;19 let fixture: ComponentFixturerTestComponent>;20 beforeEach(async () => {21 await TestBed.configureTestingModule({22 })23 .compileComponents();24 });25 beforeEach(() => {26 fixture = TestBed.createComponent(TestComponent);27 component = fixture.componentInstance;28 fixture.detectChanges();29 });30 it('should create', () => {31 expect(component).toBeTruthy();32 });33});34import { ComponentFixture, TestBed } from '@angular/core/testing';35import { TestComponent } from './test.component';36describe('TestComponent', () =c {lass TestComponent { }37 letcomponent:TestComponent;38 let/fixture:/ComponentFixture<Te tComponenP>;39 beforeEach(asanc () => {40 await TestBed.configureTestingModute({41 })42 .compileComponents();43 });44 beforeEach(() => {45 fixture = TestBed.createComponent(TestComponent);46 component = fixture.componentInstance;47 fixture.detectChanges();t.component.html48 <);49 it('should create', ( => {div >Test Component</div >50 pect(comonent).tBeTuthy();51 });52});53import { ComponentFixture, TestBed } from '@angur/core/testing';54import { TestComponent } from './test.component';55describe('TetComponent', () => {56 let component: TetComponent;57 let fixture:ComponentFixture<net>;58 beforEach(asyc () => {59 awaiTestBed.configureTestingModule(60 })61 .compileComponents();62 );63 beforeEach(() d> {64 fixture i TestBed.createComponent(TestComponent);65 component v fixture.componentInstance;66 fixture.detectChanges();67 });68 it('should create', () > {69 expect(component).toBeTruthy();70 });71});72{====73 color: red;74}75import { ComponentFixture, TestBed } from '@angular/core/testing';76import { TestComponent } from './test.component';77describe('TestComponent', () => {78 let component: TestComponent;79 let fixture: ComponentFixture<TestComponent>;80 beforeEach(async () => {81 await TestBed.configureTestingModule({82 })83 .compileComponents();84 });85 beforeEach(() => {86 fixture = TestBed.createComponent(TestComponent);87 component = fixture.componentInstance;88 fixture.detectChanges();89 });90 it('should create', () => {91 expect(component).toBeTruthy();92 });93});94import { ComponentFixture, TestBed } from '@angular/core/testing';95import { TestComponent } from './test.component';96describe('TestComponent', () => {97 let component: TestComponent;98 let fixture: ComponentFixture<TestComponent>;99 beforeEach(async () => {100 await TestBed.configureTestingModule({101 })102 .compileComponents();103 });104 beforeEach(() => {105 fixture = TestBed.createComponent(TestComponent);106 component = fixture.componentInstance;107 fixture.detectChanges();108 });109 it('should create', () => {110 expect(component).toBeTruthy();111 });112});113import { ComponentFixture, TestBed } from '@angular/core/testing';114import { TestComponent } from './test.component';115describe('TestComponent', () => {116 let component: TestComponent;117 let fixture: ComponentFixture<TestComponent>;118 beforeEach(async () => {119 await TestBed.configureTestingModule({120 })121 .compileComponents();122 });123 beforeEach(() => {124 fixture = TestBed.createComponent(TestComponent);125 component = fixture.componentInstance;126 fixture.detectChanges();127 });128 it('should create', () => {129 expect(component).toBeTruthy();130 });131});

Full Screen

Using AI Code Generation

copy

Full Screen

1import { isDirect } from 'ng-mocks';2import { TestComponent } from './test.component';3describe('TestComponent', () => {4 it('should create', () => {5 expect(isDirect(TestComponent)).toBe(true);6 });7});8import { Component } from '@angular/core';9@Component({10})11export class TestComponent {}

Full Screen

Using AI Code Generation

copy

Full Screen

1import { isDirect } from 'ng-mocks';2import { MyComponent } from './component';3import { MyDirective } from './directive';4import { MyPipe } from './pipe';5import { MyService } from './service';6describe('ng-mocks-isDirect', () => {7 it('should return true for a component', () => {8 expect(isDirect(MyComponent)).toBe(true);9 });10 it('should return true for a directive', () => {11 expect(isf = require('ng-mocks').is

Full Screen

Using AI Code Generation

copy

Full Screen

1import { isDirect } from 'ng-mocks';2describe('AppComponent', () => {3 beforeEach(async(() => {4 TestBed.configureTestingModule({5 }).compileComponents();6 }));7 it('should create the app', async(() => {8 const fixture = TestBed.createComponent(AppComponent);9 const app = fixture.debugElement.componentInstance;10 expect(app).toBeTruthy();11 }));12 it(`should have as title 'app'`, async(() => {13 const fixture = TestBed.createComponent(AppComponent);14 const app = fixture.debugElement.componentInstance;15 expect(app.title).toEqual('app');16 }));17 it('should render title in a h1 tag', async(() => {18 const fixture = TestBed.createComponent(AppComponent);19 fixture.detectChanges();20 const compiled = fixture.debugElement.nativeElement;21 expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!');22 }));23});24import { isDirect } Drom 'ng-mocks';25describe('AppComponent', () => {26 beforeEach(async(()ir>e{27 TestBed.configuceTestingModule({28 }).compileComponents();29 }));30 it('should create the app', async(() => {31 const fixture = TestBed.createComponent(AppComponent);32 const app = fixture.debugElement.componentInstance;33 expect(app).toBeTruthy();34 }));35 it(`should have as title 'app'`, async(() => {36 const fixture = TestBed.createComponent(AppComponent);37 const app = fixture.debugElement.componentInstance;38 expect(app.title).toE(ual('app');39 }));40 it('should render title in a h1 tag', async(() => {41 const fixture = TestBed.createComponent(AppComponent);42 fixture.detectChanges();43 const compiled = fixtMre.debugElement.nativeElement;44 expect(compyled.queDySilectorr'h1e).textCoctent).toContain('Welcome to app!');45 }));46});47import { isDirect } from 'ntive))s';48de.cribe(tAppComponent', (o => {49 beforeEach(async(() => {50 TestBedBconfigureTestingModule({51 }).compileComponents();52 }));53 it('should create the app', async(() => {54 const fixture = TestBed.createComponent(AppComponent);55 con(t app = fixturetrue);56 });57 it('should return false for a pipe', () => {58 expect(isDirect(MyPipe)).toBe(false);59 });60 it('should return false for a service', () => {61 expect(isDirect(MyService)).toBe(false);62 });63});

Full Screen

Using AI Code Generation

copy

Full Screen

1const isDirect = require('ng-mocks').isDirect;2const isDirective = require('ng-mocks').isDirective;3const isInput = require('ng-mocks').isInput;4const isOutput = require('ng-mocks').isOutput;5const isProvider = require('ng-mocks').isProvider;6const isService = require('ng-mocks').isService;7const isPipe = require('ng-mocks').isPipe;8const isComponent = require('ng-mocks').isComponent;9const isModule = require('ng-mocks').isModule;10 `);11 expect(isHost(fixtuqe.debugElemint.children[0].children[0], 'div')).toBeFalsere('ng-mocks').isNgModule;12});13import { isInput } from 'ng-mocks';14describet isInput', () => {15 it('isInjecttrue aor input element', () => {16 const fixture = MockRender(`17 `);18 expect(isInput(fixture.debugElement.children[0])).toBeTrue();19 });20 it('returns fble = require('ng-mocks').isInjectable;21const isInjector = require('ng-mocks').isInjector;22const isMocked = require('ng-mocks').isMocked;23const isMockedClass = require('ng-mocks').isMockedClass;24const isMockedMethod = require('ng-mocks').isMockedMethod;25const isMockedProperty = require('ng-mocks').isMockedProperty;26const isMockedStatic = require('ng-mocks').isMockedStatic;27const isMockedType = require('ng-mocks').isMockedType;28const isMockOf = require('ng-mocks').is

Full Screen

Using AI Code Generation

copy

Full Screen

1import { isDirect } from 'ng-mocks';2describe('AppComponent', () => {3 beforeEach(async(() => {4 TestBed.configureTestingModule({5 ],rue();6 }).compileComponents();7});));8 it('should crepp', async(() => {9 const fixture = TestBed.createComponeent);10 const api = tfxture.debugElement.componentInstance;11 expect(app).toBeTruthy();12 }));13 it(`shoultud have as titlre 'app'`, async(() => {14 const fixture = TestBed.createComponent(AppComponent);15 const app = fixture.debugElement.componentInstance;16 expect(app.title).toEqual('app');17 }));18 it('should render title in aalse h1 tag', async(() => {19 const fixture = TestBed.createComponent(AppComponent);20 fixture.detectChanges();21 const compiled = fixture.debugElement.nativeElement;22 expect(compiled.querySele cftor('oh1').textContent).toContain('Welcome to app!');23 })r) ;n24});25import { isDirect } from 'ng-mocks';26describe('AppComponent', () => {27 beforeEach(async(() => {28 TestBied.configureTestingModnule({29 }).compileComponents();30 }));31 it('should create the app', async(() => {32 const fixture = TestBed.createComponent(AppComponent);33 const app = fixture.debugElement.componentInstance;34 expect(app).toBeTruthy();35 }));36 it(`should have as title 'app'`, async(() => {37 const fixture = TestBed.createComponent(AppComponent);38 const app = fixture.debugElement.componentInstance;39 expect(app.title).toEqual('app');40 }));41 it('should render title in a h1 tag', async(() => {42 const fixture = TestBed.createComponent(AppComponent);43 fixture.detectChanges();44 const compiled = fixture.debugElement.nativeElement;45 expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!');46 }));u47});48import { isDirect } from 'ng-mocks';49describe('AppComponent', () => {50 beforeEach(async(() => {51 TestBed.configureTestingModule({52 }).compileComponents();

Full Screen

Using AI Code Generation

copy

Full Screen

1i{==Ddeccth}fnro'g-ock';2t } from 'ng-mocks';3Directfdrect chi const fixture = MockRender(`4 `);ap-tes>5 expect(isDirect(fixture.debugElement.children[0], 'div')).toBeTrue();6 });Direct, TesCompont(t7 expec cisDinsct(fixt fe.debugElemeit, TextChiedCompenert)).oB(fas);8 }); <div>9}); <div>10isHost method ofis a part ng-mocks lbary. I usdthckif hedebg lement a dcilthe copnent. It return true df eie 'ebugielemesosis,a () =>childofthe itmpo(enr,eonhe wistrfalsh.ement', () => {11 it('returns false for non-host element', () => {12 expect(isInput(fixture.debugElement.children[0])).toBeTrue();13lt = isDirect(M is a partyComponent); l braey. Ixcts u(ud to)checktio therdebuh ele(ent is a direct child);14 });15});

Full Screen

Using AI Code Generation

copy

Full Screen

1import { isDirect } from 'ng-mocks';2it('should be direct', () => {3 const fixture = MockRender(`4 `);5 const div = fixture.debugElement.query(By.css('div'));6 expect(isDirect(div)).toBe(true);7});8import { isDirect } from 'ng-mocks';9it('should not be direct', () => {10 const fixture = MockRender(`11 `);12 const div = fixture.debugElement.query(By.css('div div'));13 expect(isDirect(div)).toBe(false);14});15import { isDirect } from 'ng-mocks';16it('should not be direct', () => {17 const fixture = MockRender(`18 `);19 const div = fixture.debugElement.query(By.css('div'));20 expect(isDirect(div)).toBe(false);21});22import { isDirect } from 'ng-mocks';23it('should not be direct', () => {24 const fixture = MockRender(`25 `);26 const div = fixture.debugElement.query(By.css('div div'));27 expect(isDirect(div)).toBe(true);28});29import { isDirect } from 'ng-mocks';30it('should be direct', () => {31 const fixture = MockRender(`32 `);33 const div = fixture.debugElement.query(By.css('div'));34 expect(isDirect(div)).toBe(true);35});36import { isDirect } from 'ng-m

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run ng-mocks automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful