Skip to content

Drop axios from hook-sdk#2977

Merged
Weltraumschaf merged 3 commits intosecureCodeBox:mainfrom
J12934:drop-axios
May 26, 2025
Merged

Drop axios from hook-sdk#2977
Weltraumschaf merged 3 commits intosecureCodeBox:mainfrom
J12934:drop-axios

Conversation

@J12934
Copy link
Member

@J12934 J12934 commented Apr 9, 2025

Description

Drops axios from hook-sdk dependencies and switches to the build in fetch function.

Checklist

  • Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests.
  • Make sure that all your commits are signed-off and that you are added to the Contributors file.
  • Make sure that all CI finish successfully.
  • Optional (but appreciated): Make sure that all commits are Verified.

@J12934 J12934 moved this from Triage to In Progress in secureCodeBox Apr 9, 2025
@netlify
Copy link

netlify bot commented Apr 9, 2025

Deploy Preview for docs-securecodebox ready!

Name Link
🔨 Latest commit 1426264
🔍 Latest deploy log https://app.netlify.com/sites/docs-securecodebox/deploys/682386772e33780008f61fec
😎 Deploy Preview https://deploy-preview-2977--docs-securecodebox.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 9, 2025

J12934 added 3 commits May 13, 2025 19:50
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@owasp.org>
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@owasp.org>
…dback

Signed-off-by: Jannik Hollenbach <jannik.hollenbach@owasp.org>
@J12934 J12934 marked this pull request as ready for review May 13, 2025 17:50
@J12934 J12934 moved this from In Progress to To Review in secureCodeBox May 13, 2025
@sonarqubecloud
Copy link

@J12934 J12934 requested a review from Copilot May 13, 2025 17:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes axios as a dependency from the hook-sdk and replaces it with the built-in fetch API. Key changes include:

  • Removal of the axios dependency from package.json.
  • Replacement of axios calls with fetch in hook-wrapper.js.
  • Refactoring promise-based functions to async/await with updated error handling.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
hook-sdk/nodejs/package.json Removed axios dependency to reduce external dependencies.
hook-sdk/nodejs/hook-wrapper.js Replaced axios calls with fetch and updated function signatures accordingly.
Comments suppressed due to low confidence (1)

hook-sdk/nodejs/hook-wrapper.js:38

  • The 'content-type' header is set to an empty string. Please specify a valid content-type header (e.g., 'application/json' or other appropriate type) to ensure the server correctly interprets the uploaded file contents.
headers: { "content-type": "" },

@github-project-automation github-project-automation bot moved this from To Review to Reviewer Approved in secureCodeBox May 26, 2025
@Weltraumschaf Weltraumschaf merged commit 2886e2e into secureCodeBox:main May 26, 2025
51 checks passed
@github-project-automation github-project-automation bot moved this from Reviewer Approved to Done in secureCodeBox May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants