🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

sinon

Package Overview
Dependencies
Maintainers
4
Versions
213
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

to
1.17.3

pkg/sinon-1.10.0.js
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