Skip to content

Commit

Permalink
fix: wizard package manager fix
Browse files Browse the repository at this point in the history
  • Loading branch information
darscan committed Dec 16, 2016
1 parent a5c1b08 commit defe9b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/monitor.js
Expand Up @@ -13,6 +13,7 @@ function monitor(root, meta, modules) {
var policyLocations = [root];
policyLocations = policyLocations.concat(pluckPolicies(modules));
var opts = { loose: true };
var packageManager = meta.packageManager || 'npm';
return apiTokenExists('snyk monitor')
.then(function () {
return snyk.policy.load(policyLocations, opts);
Expand Down Expand Up @@ -41,7 +42,7 @@ function monitor(root, meta, modules) {
authorization: 'token ' + snyk.api,
'content-encoding': 'gzip',
},
url: config.API + '/monitor/' + meta.packageManager,
url: config.API + '/monitor/' + packageManager,
json: true,
}, function (error, res, body) {
if (error) {
Expand Down

0 comments on commit defe9b1

Please sign in to comment.