New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sinon

Package Overview
Dependencies
Maintainers
4
Versions
208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sinon - npm Package Versions

1
21

3.2.1

Diff

Changelog

Source

3.2.1

  • resolvesThis should override previous throws
  • preserve context of functions from nise: fakeServer, fakeServerWithClock
  • Fix regression for issue #1526 regarding onFirstCall().throws()
  • Fix docs regression introduced by #1523
mrgnrdrck
published 3.2.0 •

Changelog

Source

3.2.0

  • Fix #1521 by caching references to Array.prototype.filter (#1523)
  • Fix #1368 by adding stub#resolvesThis (#1517)
fatso83
published 3.1.0 •

Changelog

Source

3.1.0

  • Lots of documentation updates
  • Fix regression on sandbox.stub(obj,protoMethod)
  • Add factory functions for sandbox and fake server
  • Add support for passing a function to stub.throws(...). (#1511)
mrgnrdrck
published 3.0.0 •

Changelog

Source

3.0.0

  • Remove deprecated exports (see migration guide)
  • Fix #1432: add details around expectations.withArgs behavior to docs (#1501)
  • Fix #1487: incorrect withArgs().returnValue
  • add format.setFormatter
  • Upgrade lolex to 2.1.2
  • Extract fakeXhr, fakeServer and fakeServerWithClock into own module nise and re-import it to keep api the same
mrgnrdrck
published 2.4.1 •

Changelog

Source

2.4.1

  • stub#withArgs: set promiseLibrary correctly (#1497)
mrgnrdrck
published 2.4.0 •

Changelog

Source

2.4.0

  • Allow anonymous mock functions to be named
mrgnrdrck
published 2.3.8 •

Changelog

Source

2.3.8

  • Fix 1474: propagates promiseLibrary to new stub behaviors (#1484)
mrgnrdrck
published 2.3.7 •

Changelog

Source

2.3.7

  • Fix #1476: spy.withArgs(args...).firstCall is broken
mrgnrdrck
published 2.3.6 •

Changelog

Source

2.3.6

  • Fix #1274: spy.withArgs(args...).callCount is incorrect
mrgnrdrck
published 2.3.5 •

Changelog

Source

2.3.5

  • Check configurable on a prop before creating (fixes #1456) (#1462)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc