Socket
Socket
Sign inDemoInstall

sinon

Package Overview
Dependencies
Maintainers
2
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.3.0 to 1.3.1

pkg/sinon-1.3.1.js

4

Changelog.txt

@@ -0,1 +1,5 @@

== 1.3.1 / 2012-01-04
* Fix bug in core sinon: isNode was used for both a variable and a function,
causing load errors and lots of bugs. Should have never left the door.
== 1.3.0 / 2012-01-01

@@ -2,0 +6,0 @@ * Support using bare functions as fake server response handlers (< 1.3.0

4

lib/sinon.js

@@ -17,3 +17,3 @@ /*jslint eqeqeq: false, onevar: false, forin: true, nomen: false, regexp: false, plusplus: false*/

function isNode(obj) {
function isDOMNode(obj) {
var success = false;

@@ -38,3 +38,3 @@

function isElement(obj) {
return div && obj && obj.nodeType === 1 && isNode(obj);
return div && obj && obj.nodeType === 1 && isDOMNode(obj);
}

@@ -41,0 +41,0 @@

{
"name": "sinon",
"description": "JavaScript test spies, stubs and mocks.",
"version": "1.3.0",
"version": "1.3.1",
"homepage": "http://cjohansen.no/sinon/",

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

/**
* Sinon.JS 1.3.0, 2012/01/01
* Sinon.JS 1.3.1, 2012/01/04
*

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

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