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(ci): update dependencies #891

Closed
wants to merge 1 commit into from
Closed

chore(ci): update dependencies #891

wants to merge 1 commit into from

Conversation

mmorel-35
Copy link

@mmorel-35 mmorel-35 commented Aug 23, 2021

Hi @luketomlinson ! I have updated the current dependencies with the help of dependabot. When you have a chance to take a look 😊!
It fixes the audit failure by the way.

@mmorel-35 mmorel-35 requested a review from a team as a code owner August 23, 2021 09:56
@mmorel-35 mmorel-35 requested a review from a team August 23, 2021 09:56
@brcrista
Copy link
Contributor

Hey @mmorel-35 -- thanks for opening the PR. I see there are lots of changes here:

  • Adding Dependabot config
  • Updating package versions
  • Changing TypeScript settings
  • Adding type annotations in the code

You can help us out and increase your chances of your PR getting merged if you scope down to one specific thing. It's ok to submit multiple PRs for separate issues.

Also, if you can give more context in the description on the problem you are solving, that will be much appreciated as well. Thanks!

@mmorel-35
Copy link
Author

Hi @brcrista , I'm going to start by focusing on dependencies updates then

@mmorel-35 mmorel-35 marked this pull request as draft August 25, 2021 14:28
Signed-off-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
Co-Authored-By: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-Authored-By: MOREL Matthieu <matthieu.morel@cnp.fr>
Co-Authored-By: Matthieu MOREL <mmorel-35@users.noreply.github.com>
@@ -17,7 +17,7 @@ describe('@actions/github', () => {
beforeAll(async () => {
// Start proxy server
proxyServer = proxy()
await new Promise(resolve => {
await new Promise<void>(resolve => {
Copy link
Author

Choose a reason for hiding this comment

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

This is required by "typescript": "^4.3.5"

@@ -32,7 +32,7 @@ describe('@actions/github', () => {

afterAll(async () => {
// Stop proxy server
await new Promise(resolve => {
await new Promise<void>(resolve => {
Copy link
Author

Choose a reason for hiding this comment

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

This is required by "typescript": "^4.3.5"

@@ -302,7 +302,7 @@ export class DownloadHttpClient {
destinationStream: fs.WriteStream,
isGzip: boolean
): Promise<void> {
await new Promise((resolve, reject) => {
await new Promise<void>((resolve, reject) => {
Copy link
Author

Choose a reason for hiding this comment

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

This is required by "typescript": "^4.3.5"

@@ -454,12 +454,12 @@ describe('Upload Tests', () => {
*/
jest
.spyOn(HttpClient.prototype, 'patch')
.mockImplementation(async (requestdata, data) => {
.mockImplementation(async (requestUrl, data) => {
Copy link
Author

Choose a reason for hiding this comment

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

This is to use the same names as in patch function

@@ -385,7 +385,7 @@ describe('Upload Tests', () => {
*/
jest
.spyOn(HttpClient.prototype, 'post')
.mockImplementation(async (requestdata, data) => {
.mockImplementation(async (requestUrl, data) => {
Copy link
Author

Choose a reason for hiding this comment

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

This is to use the same names as in post function

@@ -371,8 +371,8 @@ describe('Upload Tests', () => {
* Helpers used to setup mocking for the HttpClient
*/
async function emptyMockReadBody(): Promise<string> {
return new Promise(resolve => {
resolve()
return new Promise<string>(resolve => {
Copy link
Author

Choose a reason for hiding this comment

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

This is required by "typescript": "^4.3.5"

@@ -65,8 +65,8 @@ beforeAll(async () => {
* Helpers used to setup mocking for the HttpClient
*/
async function emptyMockReadBody(): Promise<string> {
return new Promise(resolve => {
resolve()
return new Promise<string>(resolve => {
Copy link
Author

Choose a reason for hiding this comment

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

This is required by "typescript": "^4.3.5"

@@ -238,8 +238,8 @@ describe('Download Tests', () => {
* Helper used to setup mocking for the HttpClient
*/
async function emptyMockReadBody(): Promise<string> {
return new Promise(resolve => {
resolve()
return new Promise<string>(resolve => {
Copy link
Author

Choose a reason for hiding this comment

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

This is required by "typescript": "^4.3.5"

@@ -11,6 +11,7 @@
"eslint-comments/no-use": "off",
"github/no-then": "off",
"import/no-namespace": "off",
"import/named": "off",
Copy link
Author

@mmorel-35 mmorel-35 Aug 25, 2021

Choose a reason for hiding this comment

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

This is because of "@typescript-eslint/parser": "^4.29.3"

@mmorel-35 mmorel-35 marked this pull request as ready for review August 25, 2021 14:54
@mmorel-35
Copy link
Author

Hi @brcrista, this is ready for review, when you have the time :)

@mmorel-35 mmorel-35 closed this Oct 23, 2021
lvpx added a commit that referenced this pull request Aug 13, 2022
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.

2 participants