-
Notifications
You must be signed in to change notification settings - Fork 9
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
Resolve vulnerable dependencies #77
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this module was created by John if you needed to update/maintain it directly https://www.npmjs.com/package/fs-json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I know. I didn't want to update upstream at this time.
const { home } = require('../controller/env'); | ||
const os = require('node:os'); | ||
const path = require('path'); | ||
/* global describe it before afterEach */ | ||
require('mocha'); | ||
require('should'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these requires necessary?
require('mocha');
require('should');
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure. I made (or will make) an issue to update Mocha. I started it on this PR but it broke everything, so I reverted for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for sure. I'm pretty sure when you run the tests with mocha
, that mocha exists in the global scope. It may be that these are meant to be run for projects (within the tool) and not the tests for the tool.. you could probably answer that more clearly, since you've been poking around the tool
@@ -40,8 +22,6 @@ const test = proxyquire('../controller/test', { | |||
} | |||
}); | |||
const projectsDirectory = './test/files/environment/projects'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should the path
module be used here?
|
||
/** | ||
* | ||
* @param {{ session: *, projectAction: string}} param0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the *
interpreted as any
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah
projects.action = () => 'shelve'; | ||
projects.action = 'shelve'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this being invoked somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put it back. It was changed for a type error caused by this code. It's fixed now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
word
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Left some comments, some are unrelated to the code that was changed
TODO:
minimist/mkdirp