MCPcopy Index your code
hub / github.com/nodejs/node / runAll

Method runAll

deps/npm/lib/utils/allow-scripts-cmd.js:154–168  ·  view source on GitHub ↗
(unreviewed)

Source from the content-addressed store, hash-verified

152 }
153
154 async runAll (unreviewed) {
155 if (unreviewed.length === 0) {
156 if (this.npm.flatOptions.json) {
157 output.buffer({ allowScripts: [] })
158 return
159 }
160 output.standard('No packages with unreviewed install scripts.')
161 return
162 }
163 // Bundled dependencies never appear in `unreviewed` (checkAllowScripts
164 // skips them because they never run their install scripts and cannot
165 // be allowlisted), so there is nothing extra to filter here.
166 const groups = this.groupByPackage(unreviewed.map(({ node }) => node))
167 await this.writePolicyChanges(groups)
168 }
169
170 async runPositional (args, arb) {
171 const { matched, unmatched } = this.findNodesForArgs(args, arb)

Callers 1

execMethod · 0.95

Calls 4

groupByPackageMethod · 0.95
writePolicyChangesMethod · 0.95
mapMethod · 0.65
bufferMethod · 0.45

Tested by

no test coverage detected