Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bondjs

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bondjs - npm Package Compare versions

Comparing version 1.2.3 to 2.0.0

21

lib/bond.js
// Generated by CoffeeScript 2.0.0-beta8
void function () {
var _find, _registry, allStubs, arrayEqual, bond, createAnonymousSpy, createReturnSpy, createThroughSpy, enhanceSpy, isFunction, nextTick, registerCleanupHook, registered, registry;
var _, _find, _registry, allStubs, bond, createAnonymousSpy, createReturnSpy, createThroughSpy, enhanceSpy, isFunction, nextTick, registerCleanupHook, registered, registry;
_ = require('underscore');
isFunction = function (obj) {

@@ -60,3 +61,3 @@ return typeof obj === 'function';

calledArgs = spy.calledArgs[i$];
if (arrayEqual(args, calledArgs))
if (_.isEqual(args, calledArgs))
return true;

@@ -73,13 +74,2 @@ }

};
arrayEqual = function (A, B) {
var a, b, i;
for (var i$ = 0, length$ = A.length; i$ < length$; ++i$) {
a = A[i$];
i = i$;
b = B[i];
if (a !== b)
return false;
}
return true;
};
nextTick = function () {

@@ -207,6 +197,3 @@ if (isFunction('undefined' !== typeof process && null != process ? process.nextTick : void 0))

};
if ('undefined' !== typeof window && null != window)
window.bond = bond;
if ('undefined' !== typeof module && null != module ? module.exports : void 0)
module.exports = bond;
module.exports = bond;
}.call(this);

5

package.json
{
"name": "bondjs",
"version": "1.2.3",
"version": "2.0.0",
"description": "simple js stub/spy library",

@@ -19,3 +19,6 @@ "license": "MIT",

"coffee-script-redux": "~2.0.0"
},
"dependencies": {
"underscore": "^1.8.3"
}
}

@@ -45,4 +45,2 @@ # bond ![build status](https://travis-ci.org/EndangeredMassa/bond.png) [![David](https://david-dm.org/EndangeredMassa/bond.png)](https://david-dm.org/EndangeredMassa/bond)

`<script src="bond.js">` -> `window.bond(...)`
**with mocha, qunit, jasmine**: These frameworks should work with bond as is. Bond looks for a global function named either `afterEach` or `testDone` to implement its spy/stub restore functionality. If those exist, as they should when using these frameworks, it should work fine.

@@ -49,0 +47,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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