Comparing version 8.0.4 to 8.1.0
8.1.0 / 2020-01-16 | ||
================== | ||
* Support negative indices in getCall (#2199) | ||
8.0.4 / 2020-01-06 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -43,3 +43,8 @@ "use strict"; | ||
getCall: function getCall(i) { | ||
getCall: function getCall(index) { | ||
var i = index; | ||
if (i < 0) { | ||
// Negative indices means counting backwards from the last call | ||
i += this.callCount; | ||
} | ||
if (i < 0 || i >= this.callCount) { | ||
@@ -46,0 +51,0 @@ return null; |
{ | ||
"name": "sinon", | ||
"description": "JavaScript test spies, stubs and mocks.", | ||
"version": "8.0.4", | ||
"version": "8.1.0", | ||
"homepage": "https://sinonjs.org/", | ||
@@ -61,4 +61,4 @@ "author": "Christian Johansen", | ||
"@sinonjs/formatio": "^4.0.1", | ||
"@sinonjs/samsam": "^4.2.1", | ||
"diff": "^4.0.1", | ||
"@sinonjs/samsam": "^4.2.2", | ||
"diff": "^4.0.2", | ||
"lolex": "^5.1.2", | ||
@@ -69,3 +69,3 @@ "nise": "^3.0.1", | ||
"devDependencies": { | ||
"@babel/core": "^7.5.5", | ||
"@babel/core": "^7.8.3", | ||
"@sinonjs/referee": "^4.0.0", | ||
@@ -76,4 +76,4 @@ "babel-plugin-istanbul": "^6.0.0", | ||
"dependency-check": "^4.1.0", | ||
"eslint": "^6.2.2", | ||
"eslint-config-prettier": "^6.3.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-prettier": "^6.9.0", | ||
"eslint-config-sinon": "^3.0.0", | ||
@@ -80,0 +80,0 @@ "eslint-plugin-ie11": "^1.0.0", |
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
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
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
4668858
54112
Updated@sinonjs/samsam@^4.2.2
Updateddiff@^4.0.2