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

Up deps, fix vuls, update fixtures #18

Merged
merged 2 commits into from Mar 7, 2021

Conversation

antongolub
Copy link
Contributor

@antongolub antongolub commented Mar 7, 2021

  • up deps / fix known vuls
  • use CLI opt.delay instead of sleep
  • update fixtures. Replace rawgit.com with gitcdn.link

closes #10

Copy link
Owner

@twolfson twolfson left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for all the work here =)

@@ -1 +1,2 @@
node_modules/
yarn.lock
Copy link
Owner

Choose a reason for hiding this comment

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

We don't use Yarn in this repo so shouldn't really need this =/ This seems like it should be in the developer's global .gitignore -- or they should use npm install

Will leave it though I guess, doesn't really hurt anyone, though might confuse them

@@ -29,8 +29,8 @@ exports._parse = function (argv, _console, callback) {
DEFAULT_SLEEP_MS)
.option('--concurrency <concurrency>',
'Amount of requests to run in parallel, defaults to ' + DEFAULT_CONCURRENCY, DEFAULT_CONCURRENCY)
.option('--usermedium <usermedium>', 'Medium where the CSS will be used (e.g. `all` (service default), `print`, `screen`)')
.option('--profile <profile>', 'CSS profile to use for validation (e.g. `css3svg` (service default), `css21`, `svg`)')
.option('--usermedium <usermedium>', 'Medium where the CSS will be used (e.g. `all` (service default), `print`, `screen`)') // jscs:disable
Copy link
Owner

Choose a reason for hiding this comment

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

I'm guessing this is for line length, would prefer we silence that rule explicitly. Will update

@@ -96,7 +99,7 @@ exports._parse = function (argv, _console, callback) {
}

// Continue
setTimeout(cb, program.sleep);
setTimeout(cb, opts.delay);
Copy link
Owner

Choose a reason for hiding this comment

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

👍 Nice catch, surprised nobody reported this earlier o_o

@@ -54,17 +57,17 @@ exports._parse = function (argv, _console, callback) {
}

// Otherwise, perform our validation
async.eachOfLimit(filepathContentArr, program.concurrency,
async.eachOfLimit(filepathContentArr, opts.concurrency,
Copy link
Owner

Choose a reason for hiding this comment

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

Was confused why we needed this change -- turns out in Commander@7 they moved it to an inner object to avoid unsafe usage:

tj/commander.js#1409

https://github.com/tj/commander.js/blob/4aaaa9de3fd09401afe3894483193ba0e2e512d7/CHANGELOG.md#700-2021-01-15

@twolfson twolfson merged commit 234006a into twolfson:master Mar 7, 2021
@twolfson
Copy link
Owner

twolfson commented Mar 7, 2021

This has been landed in 0.10.0. Thanks again for the PR =)

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.

Doesn't work with form-data 2.3.2+
2 participants