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

[Snyk] Upgrade: chai-spies, node-fetch, sinon #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tiff-es
Copy link
Owner

@tiff-es tiff-es commented Sep 9, 2024

snyk-top-banner

Snyk has created this PR to upgrade multiple dependencies.

👯 The following dependencies are linked and will therefore be updated together.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

Name Versions Released on

chai-spies
from 1.0.0 to 1.1.0 | 1 version ahead of your current version | 10 months ago
on 2023-10-31
node-fetch
from 2.3.0 to 2.7.0 | 18 versions ahead of your current version | a year ago
on 2023-08-23
sinon
from 7.3.1 to 7.5.0 | 4 versions ahead of your current version | 5 years ago
on 2019-09-23

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Prototype Pollution
SNYK-JS-LODASH-6139239
696 Proof of Concept
high severity Code Injection
SNYK-JS-LODASH-1040724
696 Proof of Concept
high severity Prototype Pollution
SNYK-JS-LODASH-450202
696 Proof of Concept
high severity Prototype Pollution
SNYK-JS-LODASH-567746
696 Proof of Concept
high severity Prototype Pollution
SNYK-JS-LODASH-608086
696 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-LODASH-1018905
696 Proof of Concept
medium severity Information Exposure
SNYK-JS-NODEFETCH-2342118
696 No Known Exploit
medium severity Denial of Service
SNYK-JS-NODEFETCH-674311
696 No Known Exploit
Release notes
Package name: chai-spies
  • 1.1.0 - 2023-10-31

    What's Changed

    New Contributors

    Full Changelog: 1.0.0...v1.1.0

  • 1.0.0 - 2018-01-12

    This is a major release which introduces many new featues, such as sandboxes, as well as new convenience methods and assertions.

    This major release also comes with some breaking changes:

    Breaking Changes

    • removed reset method. #35 (@ stalniy)
      You will need to update any callsites to spy.reset() to instead assign a new spy to that variable or property.

    • exposes original function body in spy.toString calls #93 (@ stalniy)
      If you check the spy.toString() output in your tests, this will need to be changed to accomodate for this change.

    Features

    chai.spy.on(array, 'push', returns => 5)
    chai.spy.on(array, 'push', function() {
      // custom implementation
    })
    • added spy.restore #61 (#38, @ stalniy)
      Allows to remove spies added by spy.on and restore original method implementation

    • added support for sanboxes #61 (#38, @ stalniy)
      Now it's possible to create sanboxes and track/restore spies in sandbox

    • added support for nth call checks #75 (#59, @ cnexans)
      Allows to check spy arguments on specified call

    const spy = chai.spy()

    spy(1); // first call
    spy(2); // second call
    spy(3); // third call
    spy(i); // nth call

    expect(spy).to.have.been.first.called.with(1)
    expect(spy).to.have.been.second.called.with(2)
    expect(spy).to.have.been.third.called.with(3)
    expect(spy).on.nth(i).be.called.with(i)

    Bug Fixes

    Documentation

from chai-spies GitHub release notes
Package name: node-fetch from node-fetch GitHub release notes
Package name: sinon from sinon GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade:
  - chai-spies from 1.0.0 to 1.1.0.
    See this package in npm: https://www.npmjs.com/package/chai-spies
  - node-fetch from 2.3.0 to 2.7.0.
    See this package in npm: https://www.npmjs.com/package/node-fetch
  - sinon from 7.3.1 to 7.5.0.
    See this package in npm: https://www.npmjs.com/package/sinon

See this project in Snyk:
https://app.snyk.io/org/boostinwrx/project/ab08a24c-fc02-42c4-9623-30cfdeb8d321?utm_source=github&utm_medium=referral&page=upgrade-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.

"socket hang up" / ECONNRESET on consecutive requests with Node.js 19 and Node.js 20
2 participants