snyk 1.1215.0 → 1.1216.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/784.index.js
CHANGED
|
@@ -231,7 +231,7 @@ async function monitor(...args0) {
|
|
|
231
231
|
const targetFileRelativePath = projectDeps.plugin.targetFile ||
|
|
232
232
|
(tFile && pathUtil.join(pathUtil.resolve(path), tFile)) ||
|
|
233
233
|
'';
|
|
234
|
-
const res = await promiseOrCleanup(monitor_1.monitor(path, generateMonitorMeta(options, extractedPackageManager), projectDeps, options, projectDeps.plugin, targetFileRelativePath, contributors, generateProjectAttributes(options), generateTags(options)), spinner_1.spinner.clear(postingMonitorSpinnerLabel));
|
|
234
|
+
const res = await promiseOrCleanup(monitor_1.monitor(path, generateMonitorMeta(options, extractedPackageManager, projectName), projectDeps, options, projectDeps.plugin, targetFileRelativePath, contributors, generateProjectAttributes(options), generateTags(options)), spinner_1.spinner.clear(postingMonitorSpinnerLabel));
|
|
235
235
|
res.path = path;
|
|
236
236
|
const monOutput = formatters_1.formatMonitorOutput(extractedPackageManager, res, options, projectName, await get_extra_project_count_1.getExtraProjectCount(path, options, inspectResult));
|
|
237
237
|
// push a good result
|
|
@@ -275,12 +275,12 @@ async function monitor(...args0) {
|
|
|
275
275
|
throw new Error(output);
|
|
276
276
|
}
|
|
277
277
|
exports["default"] = monitor;
|
|
278
|
-
function generateMonitorMeta(options, packageManager) {
|
|
278
|
+
function generateMonitorMeta(options, packageManager, projectName) {
|
|
279
279
|
return {
|
|
280
280
|
method: 'cli',
|
|
281
281
|
packageManager,
|
|
282
282
|
'policy-path': options['policy-path'],
|
|
283
|
-
'project-name': options['project-name'] || config_1.default.PROJECT_NAME,
|
|
283
|
+
'project-name': options['project-name'] || projectName || config_1.default.PROJECT_NAME,
|
|
284
284
|
isDocker: !!options.docker,
|
|
285
285
|
prune: !!options.pruneRepeatedSubdependencies,
|
|
286
286
|
'remote-repo-url': options['remote-repo-url'],
|