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

fix: move constants for test-unpublished to json and add it to packag… #230

Merged
merged 2 commits into from
Oct 3, 2018

Conversation

Kirill89
Copy link
Contributor

@Kirill89 Kirill89 commented Oct 3, 2018

…e #225

  • Ready for review
  • Follows CONTRIBUTING rules
  • [] Reviewed by Snyk internal team

Any background context you want to provide?

Constants for test-unpublished command was in txt file and wasn't included to the npm package.

What are the relevant tickets?

https://github.com/snyk/snyk/issues/225
#226

@Kirill89 Kirill89 self-assigned this Oct 3, 2018
@Kirill89 Kirill89 requested a review from miiila October 3, 2018 14:09
@CLAassistant
Copy link

CLAassistant commented Oct 3, 2018

CLA assistant check
All committers have signed the CLA.

@lili2311
Copy link
Contributor

lili2311 commented Oct 3, 2018

Looking good, just playing around with it locally.

.split('\n').map(function (s) {
return s.trim();
});
var config = JSON.parse(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can move away form using var now, perhaps lets update this to const

var tail = fs.readFileSync(__dirname + '/tail.txt', 'utf8');
var lbl = fs.readFileSync(__dirname + '/head.txt', 'utf8');
var packages = config.packages;
var tail = config.tail;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can update this to be const { packages, tail, head:lbl } = config; since we can now play around with newer syntax

@Kirill89
Copy link
Contributor Author

Kirill89 commented Oct 3, 2018

@lili2311 fixed.

@Kirill89 Kirill89 merged commit b0bbb4d into master Oct 3, 2018
@Kirill89 Kirill89 deleted the fix/unpublished branch October 3, 2018 16:47
@snyksec
Copy link

snyksec commented Oct 3, 2018

🎉 This PR is included in version 1.100.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants