Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: drop console.logs #533

Merged
merged 1 commit into from
May 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/cli/commands/protect/prompts.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ function getPatchPrompts(vulns, policy, options) {
// sort by vulnerable package and the largest version
res.sort(sortPatchPrompts);

// console.log(res.map(_ => `${_.name}@${_.version}`));

var copy = {};
var offset = 0;
// mutate our objects so we can try to group them
Expand Down Expand Up @@ -316,7 +314,6 @@ function getPatchPrompts(vulns, policy, options) {
return true;
});

// console.log(res.map(_ => _.grouped));
var prompts = generatePrompt(res, policy, 'p', options);


Expand Down Expand Up @@ -809,7 +806,6 @@ function generatePrompt(vulns, policy, prefix, options) {
// in this case, we always show if the user choses to ignore.
prompts = prompts.reduce(function (acc, curr) {
acc.push(curr);
// console.log(curr.choices[0].value.vuln);
var rule = snykPolicy.getByVuln(policy, curr.choices[0].value.vuln);
var defaultAnswer = 'None given';
if (rule && rule.type === 'ignore') {
Expand Down
1 change: 0 additions & 1 deletion src/cli/commands/scenario.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ function parseScenario(source) {
}

vulnerabilities = vulnerabilities.filter(function (vuln) {
// console.log(vuln);
debug('checking new vuln: %s', vuln.id);
var p;
var i;
Expand Down
1 change: 0 additions & 1 deletion src/cli/commands/unpublished/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module.exports = function (cwd) {
return spinner(head).then(function () {
return resolve(cwd, {dev: true, disk: true}).then(function (res) {
prune(res, function (p) {
// console.log(p.name, packages.indexOf(p.name) === -1);
return packages.indexOf(p.name) === -1;
});

Expand Down
1 change: 0 additions & 1 deletion src/lib/isolate.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ function instrumentProps(id, key, obj) {
if (type === 'function') {
obj = function instrumented() {
console.log('NOTIFY: %s@%s', key || id, id);
// snyk.notify(key, id);
original.apply(this, arguments);
};
}
Expand Down