Huge News!Announcing our $40M Series B led by Abstract Ventures.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 1.17.2 to 1.17.3

pkg/sinon-1.10.0.js

8

Changelog.txt
1.17.3 / 2016-01-27
==================
* Fix toString() calls
* Ensure sinon can run in a WebWorker
* Changed the priority of which global is chosen first.
* Fixed #785 by checking the global variables are set
1.17.2 / 2015-10-21

@@ -3,0 +11,0 @@ ==================

6

lib/sinon/call.js

@@ -158,5 +158,9 @@ /**

toString: function () {
var callStr = this.proxy.toString() + "(";
var callStr = this.proxy ? this.proxy.toString() + "(" : "";
var args = [];
if (!this.args) {
return ":(";
}
for (var i = 0, l = this.args.length; i < l; ++i) {

@@ -163,0 +167,0 @@ args.push(sinon.format(this.args[i]));

@@ -10,4 +10,20 @@ /**

*/
/**
* Returns the global to prevent assigning values to 'this' when this is undefined.
* This can occur when files are interpreted by node in strict mode.
* @private
*/
function getGlobal() {
"use strict";
return typeof window !== "undefined" ? window : global;
}
if (typeof sinon === "undefined") {
this.sinon = {};
if (typeof this === "undefined") {
getGlobal().sinon = {};
} else {
this.sinon = {};
}
}

@@ -14,0 +30,0 @@

2

package.json
{
"name": "sinon",
"description": "JavaScript test spies, stubs and mocks.",
"version": "1.17.2",
"version": "1.17.3",
"homepage": "http://sinonjs.org/",

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

/**
* Sinon.JS 1.16.1, 2015/09/22
* Sinon.JS 1.16.1, 2015/11/25
*

@@ -4,0 +4,0 @@ * @author Christian Johansen (christian@cjohansen.no)

/**
* Sinon.JS 1.17.0, 2015/10/21
* Sinon.JS 1.17.0, 2015/11/25
*

@@ -4,0 +4,0 @@ * @author Christian Johansen (christian@cjohansen.no)

/**
* Sinon.JS 1.17.2, 2015/10/21
* Sinon.JS 1.17.2, 2015/11/25
*

@@ -4,0 +4,0 @@ * @author Christian Johansen (christian@cjohansen.no)

/**
* Sinon.JS 1.17.2, 2015/10/21
* Sinon.JS 1.17.3, 2016/01/27
*

@@ -4,0 +4,0 @@ * @author Christian Johansen (christian@cjohansen.no)

Sorry, the diff of this file is not supported yet

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

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

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

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

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

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

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