Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 20, 2024

Bumps axios from 1.6.7 to 1.7.1.

Release notes

Sourced from axios's releases.

Release v1.7.1

Release notes:

Bug Fixes

  • fetch: fixed ReferenceError issue when TextEncoder is not available in the environment; (#6410) (733f15f)

Contributors to this release

Release v1.7.0

Release notes:

Features

Bug Fixes

  • core/axios: handle un-writable error stack (#6362) (81e0455)

Contributors to this release

Release v1.7.0-beta.2

Release notes:

Bug Fixes

  • fetch: capitalize HTTP method names; (#6395) (ad3174a)
  • fetch: fix & optimize progress capturing for cases when the request data has a nullish value or zero data length (#6400) (95a3e8e)
  • fetch: fix headers getting from a stream response; (#6401) (870e0a7)

Contributors to this release

Release v1.7.0-beta.1

Release notes:

Bug Fixes

  • core/axios: handle un-writable error stack (#6362) (81e0455)
  • fetch: fix cases when ReadableStream or Response.body are not available; (#6377) (d1d359d)
  • fetch: treat fetch-related TypeError as an AxiosError.ERR_NETWORK error; (#6380) (bb5f9a5)

Contributors to this release

... (truncated)

Changelog

Sourced from axios's changelog.

1.7.1 (2024-05-20)

Bug Fixes

  • fetch: fixed ReferenceError issue when TextEncoder is not available in the environment; (#6410) (733f15f)

Contributors to this release

1.7.0 (2024-05-19)

Features

Bug Fixes

  • core/axios: handle un-writable error stack (#6362) (81e0455)

Contributors to this release

1.7.0-beta.2 (2024-05-19)

Bug Fixes

  • fetch: capitalize HTTP method names; (#6395) (ad3174a)
  • fetch: fix & optimize progress capturing for cases when the request data has a nullish value or zero data length (#6400) (95a3e8e)
  • fetch: fix headers getting from a stream response; (#6401) (870e0a7)

Contributors to this release

1.7.0-beta.1 (2024-05-07)

Bug Fixes

  • core/axios: handle un-writable error stack (#6362) (81e0455)
  • fetch: fix cases when ReadableStream or Response.body are not available; (#6377) (d1d359d)
  • fetch: treat fetch-related TypeError as an AxiosError.ERR_NETWORK error; (#6380) (bb5f9a5)

... (truncated)

Commits
  • 67d1373 chore(release): v1.7.1 (#6411)
  • 733f15f fix(fetch): fixed ReferenceError issue when TextEncoder is not available in t...
  • 3041c61 [Release] v1.7.0 (#6408)
  • 18b13cb chore(docs): add fetch adapter docs; (#6407)
  • e62099b fix(fetch): fixed a possible memory leak in the AbortController for the strea...
  • b49aa8e chore(release): v1.7.0-beta.2 (#6403)
  • d57f03a chore(ci): bump create-pull-request version to fix a bug; (#6405)
  • 097b0d1 chore(ci): add tag resolution for npm releases based on package version; (#6404)
  • 870e0a7 fix(fetch): fix headers getting from a stream response; (#6401)
  • 95a3e8e fix(fetch): fix & optimize progress capturing for cases when the request data...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [axios](https://github.com/axios/axios) from 1.6.7 to 1.7.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v1.6.7...v1.7.1)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels May 20, 2024
@github-actions github-actions bot enabled auto-merge May 20, 2024 15:23
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This PR is approved by Osama Bin Laden

@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@github-actions
Copy link
Contributor

Coverage report

Caution

Test run failed

St.
Category Percentage Covered / Total
🟡 Statements
63.56% (+0.55% 🔼)
464/730
🔴 Branches
45.86% (+0.59% 🔼)
155/338
🟡 Functions 67.78% 61/90
🟡 Lines
64.69% (+0.58% 🔼)
447/691

Test suite run failed

Failed tests: 11/20. Failed suites: 1/2.
  ● v3 Static API Test › GET /api/v3/health

    thrown: "Exceeded timeout of 30000 ms for a test.
    Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

      26 |
      27 | describe("v3 Static API Test", () => {
    > 28 |     test("GET /api/v3/health", async () => {
         |     ^
      29 |         return request.get("/api/v3/health").expect(200);
      30 |     });
      31 |     test("GET /api/v3/meta/categories", async () => {

      at test (test/v3.test.js:28:5)
      at Object.describe (test/v3.test.js:27:1)

  ● v3 Classification API Test › GET /api/v3/classification/https://cdn.discordapp.com/attachments/997389718163566652/1000542968052207708/unknown.png

    expected 200 "OK", got 404 "Not Found"

      48 |         test("GET /api/v3/classification/" + url, async () => {
      49 |             return await request.get("/api/v3/classification/" + encodeURIComponent(url))
    > 50 |                 .expect(200)
         |                  ^
      51 |                 .expect('Content-Type', /json/)
      52 |                 .expect((res) => {
      53 |                     expect(res.body.data.data).toBeDefined();

      at Object.expect (test/v3.test.js:50:18)
      ----
      at Test._assertStatus (node_modules/supertest/lib/test.js:252:14)
      at node_modules/supertest/lib/test.js:308:13
      at Test._assertFunction (node_modules/supertest/lib/test.js:285:13)
      at Test.assert (node_modules/supertest/lib/test.js:164:23)
      at localAssert (node_modules/supertest/lib/test.js:120:14)
      at node_modules/supertest/lib/test.js:125:7
      at Test.fn [as callback] (node_modules/superagent/src/node/index.js:925:3)
      at callback (node_modules/superagent/src/node/index.js:1166:18)
      at IncomingMessage.fn (node_modules/superagent/src/node/parsers/json.js:19:7)

  ● v3 Classification API Test › GET /api/v3/classification/https://github.com/o7-Fire/General/raw/master/AI/Logo/Accomplish-o7.png

    thrown: "Exceeded timeout of 30000 ms for a test.
    Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

      46 | describe("v3 Classification API Test", () => {
      47 |     for (const url of testImageUrls) {
    > 48 |         test("GET /api/v3/classification/" + url, async () => {
         |         ^
      49 |             return await request.get("/api/v3/classification/" + encodeURIComponent(url))
      50 |                 .expect(200)
      51 |                 .expect('Content-Type', /json/)

      at test (test/v3.test.js:48:9)
      at Object.describe (test/v3.test.js:46:1)

  ● v3 Classification API Test › GET /api/v3/classification/https://picsum.photos/224

    thrown: "Exceeded timeout of 30000 ms for a test.
    Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

      46 | describe("v3 Classification API Test", () => {
      47 |     for (const url of testImageUrls) {
    > 48 |         test("GET /api/v3/classification/" + url, async () => {
         |         ^
      49 |             return await request.get("/api/v3/classification/" + encodeURIComponent(url))
      50 |                 .expect(200)
      51 |                 .expect('Content-Type', /json/)

      at test (test/v3.test.js:48:9)
      at Object.describe (test/v3.test.js:46:1)

  ● v3 Classification API Test › GET /api/v3/classification/https://upload.wikimedia.org/wikipedia/commons/3/3e/Exploding_Wikipedia-logo.gif

    expected 200 "OK", got 500 "Internal Server Error"

      48 |         test("GET /api/v3/classification/" + url, async () => {
      49 |             return await request.get("/api/v3/classification/" + encodeURIComponent(url))
    > 50 |                 .expect(200)
         |                  ^
      51 |                 .expect('Content-Type', /json/)
      52 |                 .expect((res) => {
      53 |                     expect(res.body.data.data).toBeDefined();

      at Object.expect (test/v3.test.js:50:18)
      ----
      at Test._assertStatus (node_modules/supertest/lib/test.js:252:14)
      at node_modules/supertest/lib/test.js:308:13
      at Test._assertFunction (node_modules/supertest/lib/test.js:285:13)
      at Test.assert (node_modules/supertest/lib/test.js:164:23)
      at localAssert (node_modules/supertest/lib/test.js:120:14)
      at node_modules/supertest/lib/test.js:125:7
      at Test.fn [as callback] (node_modules/superagent/src/node/index.js:925:3)
      at callback (node_modules/superagent/src/node/index.js:1166:18)
      at IncomingMessage.fn (node_modules/superagent/src/node/parsers/json.js:19:7)

  ● v3 Classification API Test › GET /api/v3/classification/https://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/SIPI_Jelly_Beans_4.1.07.tiff/lossy-page1-256px-SIPI_Jelly_Beans_4.1.07.tiff.jpg

    thrown: "Exceeded timeout of 30000 ms for a test.
    Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

      46 | describe("v3 Classification API Test", () => {
      47 |     for (const url of testImageUrls) {
    > 48 |         test("GET /api/v3/classification/" + url, async () => {
         |         ^
      49 |             return await request.get("/api/v3/classification/" + encodeURIComponent(url))
      50 |                 .expect(200)
      51 |                 .expect('Content-Type', /json/)

      at test (test/v3.test.js:48:9)
      at Object.describe (test/v3.test.js:46:1)

  ● v3 Classification API Test › GET /api/v3/classification Cache Test

    thrown: "Exceeded timeout of 30000 ms for a test.
    Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

      55 |         });
      56 |     }
    > 57 |     test("GET /api/v3/classification Cache Test", async () => {
         |     ^
      58 |         for (let i = 0; i < 10; i++) {
      59 |             await request.get("/api/v3/classification/" + encodeURIComponent(NSFWModel.TEST_URL))
      60 |                 .expect(200)

      at test (test/v3.test.js:57:5)
      at Object.describe (test/v3.test.js:46:1)

  ● v3 Classification API Test › POST /api/v3/classification

    thrown: "Exceeded timeout of 30000 ms for a test.
    Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

      65 |         }
      66 |     });
    > 67 |     test("POST /api/v3/classification", async () => {
         |     ^
      68 |         return request.post("/api/v3/classification").attach("file", "test/assets/1.png").expect(200);
      69 |     });
      70 |     test("POST /api/v3/classification Cache Test", async () => {

      at test (test/v3.test.js:67:5)
      at Object.describe (test/v3.test.js:46:1)

  ● v3 Classification API Test › POST /api/v3/classification Cache Test

    thrown: "Exceeded timeout of 30000 ms for a test.
    Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

      68 |         return request.post("/api/v3/classification").attach("file", "test/assets/1.png").expect(200);
      69 |     });
    > 70 |     test("POST /api/v3/classification Cache Test", async () => {
         |     ^
      71 |         for (let i = 0; i < 10; i++) {
      72 |             await request.post("/api/v3/classification").attach("file", "test/assets/1.png").expect(200);
      73 |         }

      at test (test/v3.test.js:70:5)
      at Object.describe (test/v3.test.js:46:1)

  ● v3 Classification API Test › GET /api/v3/hash/:hash

    expected 200 "OK", got 404 "Not Found"

      77 |         //TODO get hash from request above
      78 |         const hash = "8d311167da7ea1130a1e9983adbd034e9613f3e6e5f36fe87da811d9173374b1";
    > 79 |         return request.get("/api/v3/hash/" + hash).expect(200);
         |                                                    ^
      80 |     });
      81 |     test("POST /api/v3/hash", async () => {
      82 |         return request.post("/api/v3/hash").attach("file", "test/assets/1.png").expect(200);

      at Object.expect (test/v3.test.js:79:52)
      ----
      at Test._assertStatus (node_modules/supertest/lib/test.js:252:14)
      at node_modules/supertest/lib/test.js:308:13
      at Test._assertFunction (node_modules/supertest/lib/test.js:285:13)
      at Test.assert (node_modules/supertest/lib/test.js:164:23)
      at localAssert (node_modules/supertest/lib/test.js:120:14)
      at node_modules/supertest/lib/test.js:125:7
      at Test.fn [as callback] (node_modules/superagent/src/node/index.js:925:3)
      at callback (node_modules/superagent/src/node/index.js:1166:18)
      at IncomingMessage.fn (node_modules/superagent/src/node/parsers/json.js:19:7)

  ● v3 Classification API Test › POST /api/v3/hash

    expected 200 "OK", got 404 "Not Found"

      80 |     });
      81 |     test("POST /api/v3/hash", async () => {
    > 82 |         return request.post("/api/v3/hash").attach("file", "test/assets/1.png").expect(200);
         |                                                                                 ^
      83 |     });
      84 | });
      85 |

      at Object.expect (test/v3.test.js:82:81)
      ----
      at Test._assertStatus (node_modules/supertest/lib/test.js:252:14)
      at node_modules/supertest/lib/test.js:308:13
      at Test._assertFunction (node_modules/supertest/lib/test.js:285:13)
      at Test.assert (node_modules/supertest/lib/test.js:164:23)
      at localAssert (node_modules/supertest/lib/test.js:120:14)
      at node_modules/supertest/lib/test.js:125:7
      at Test.fn [as callback] (node_modules/superagent/src/node/index.js:925:3)
      at callback (node_modules/superagent/src/node/index.js:1166:18)
      at IncomingMessage.fn (node_modules/superagent/src/node/parsers/json.js:19:7)

Report generated by 🧪jest coverage report action from c10b276

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant