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 Compare versions

Comparing version 5.0.2 to 5.0.3

5

History.md
5.0.3 / 2018-05-02
==================
* Fix #1775: Default sandbox does not restore stubs, spies, mocks
5.0.2 / 2018-05-01

@@ -3,0 +8,0 @@ ==================

3

lib/sinon.js

@@ -18,6 +18,3 @@ "use strict";

match: require("./sinon/match"),
spy: require("./sinon/spy"),
spyCall: require("./sinon/call"),
stub: require("./sinon/stub"),
mock: require("./sinon/mock"),

@@ -24,0 +21,0 @@ expectation: require("./sinon/mock-expectation"),

@@ -5,2 +5,3 @@ "use strict";

var getPropertyDescriptor = require("./util/core/get-property-descriptor");
var isEsModule = require("./util/core/is-es-module");
var isPropertyConfigurable = require("./util/core/is-property-configurable");

@@ -262,2 +263,6 @@ var isNonExistentOwnProperty = require("./util/core/is-non-existent-own-property");

sandbox.stub = function stub(object, property) {
if (isEsModule(object)) {
throw new TypeError("ES Modules cannot be stubbed");
}
if (isNonExistentOwnProperty(object, property)) {

@@ -264,0 +269,0 @@ throw new TypeError("Cannot stub non-existent own property " + valueToString(property));

{
"name": "sinon",
"description": "JavaScript test spies, stubs and mocks.",
"version": "5.0.2",
"version": "5.0.3",
"homepage": "http://sinonjs.org/",

@@ -6,0 +6,0 @@ "author": "Christian Johansen",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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