Comparing version 1.17.2 to 1.17.3
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 @@ ================== |
@@ -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 @@ |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5236689
87
100773
28
29