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

callstackjs

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

callstackjs - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

callStack.js

@@ -50,3 +50,3 @@ /**!

var _setImmediate = window.setImmediate || function (fn) {
window.setTimeout(fn, 0);
return window.setTimeout(fn, 0);
};

@@ -224,3 +224,3 @@

return function callStackWrapper() {
var length = arguments.length
var length = arguments.length;
var args = new Array(length);

@@ -449,4 +449,4 @@

// Export
callStack.version = '1.0.0-rc';
callStack.version = '1.0.1';
return callStack;
});
{
"name": "callstackjs",
"exportName": "callStack",
"version": "1.0.0",
"version": "1.0.1",
"devDependencies": {

@@ -6,0 +6,0 @@ "grunt": "~0.4.5",

@@ -92,4 +92,4 @@ # callStack

// Owerride `toString` method
callStack.override(module, 'toString', function (toStringFn/**Function*/){
retrun function (){
callStack.override(module, 'toString', function (toStringFn/*Function*/){
return function (){
return '['+ toStringFn.call(this) +']';

@@ -107,3 +107,3 @@ };

### Option:wieght (default = 0)
### Option:weight (default = 0)
```js

@@ -110,0 +110,0 @@ var foo = callStack.wrap(function (){ console.log("foo:", arguments) }, { weight: 100 });

@@ -1,4 +0,4 @@

module('callStack');
QUnit.module('callStack');
test('wrap', function (){
QUnit.test('wrap', function (assert) {
var log = [];

@@ -17,7 +17,8 @@ var obj = {

stop();
var done = assert.async();
callStack.tick.one(function (){
equal(log.join(','), 'foo,bar,baz');
assert.equal(log.join(','), 'foo,bar,baz');
start();
done();
});

@@ -31,3 +32,3 @@

test('add', function (){
QUnit.test('add', function (assert) {
var log = [];

@@ -38,6 +39,6 @@

stop();
var done = assert.async();
callStack.tick.one(function (){
start();
equal(log.join(','), 'foo,bar');
assert.equal(log.join(','), 'foo,bar');
done();
});

@@ -47,3 +48,3 @@ });

test('weight', function (){
QUnit.test('weight', function (assert) {
var log = [];

@@ -61,7 +62,8 @@

stop();
var done = assert.async();
callStack.tick.one(function (){
equal(log.join(','), 'foo,foo,bar,bar,bar');
assert.equal(log.join(','), 'foo,foo,bar,bar,bar');
start();
done();
});

@@ -79,3 +81,3 @@

test('uniq', function (){
QUnit.test('uniq', function (assert) {
var log = [];

@@ -98,6 +100,7 @@

stop();
var done = assert.async();
callStack.tick.one(function (){
equal(log.join(','), 'baz:BAZ,bar,bar,foo:true,foo:false,foo:false:true,foo:2');
start();
assert.equal(log.join(','), 'baz:BAZ,bar,bar,foo:true,foo:false,foo:false:true,foo:2');
done();
});

@@ -126,3 +129,3 @@

test('flows', function (){
QUnit.test('flows', function (assert) {
var log = [];

@@ -140,6 +143,6 @@

stop();
var done = assert.async();
callStack.tick.one(function (){
start();
equal(log.join(','), 'foo,bar,bar,foo,qux,qux,baz');
assert.equal(log.join(','), 'foo,bar,bar,foo,qux,qux,baz');

@@ -157,6 +160,5 @@ log.splice(0, 1e5);

stop();
callStack.tick.one(function (){
start();
equal(log.join(','), 'qux,baz,bar,foo');
assert.equal(log.join(','), 'qux,baz,bar,foo');
done();
});

@@ -181,3 +183,3 @@ });

test('pause/unpause', function (){
QUnit.test('pause/unpause', function (assert) {
callStack.clear();

@@ -188,6 +190,6 @@

stop();
var done = assert.async();
callStack.tick.one(function (){
start();
equal(log.join('-'), '1-2-3');
assert.equal(log.join('-'), '1-2-3');
done();
});

@@ -207,3 +209,3 @@

test('override', function (){
QUnit.test('override', function (assert) {
var log = [];

@@ -230,7 +232,7 @@ var foo = function (a){ log.push(a) };

equal(log.join('->'), '1->2->4');
assert.equal(log.join('->'), '1->2->4');
});
test('disabled', function (){
QUnit.test('disabled', function (assert) {
callStack.disabled = true;

@@ -252,3 +254,3 @@

equal(log.join('->'), 'foo->bar->baz6');
assert.equal(log.join('->'), 'foo->bar->baz6');
callStack.disabled = false;

@@ -274,3 +276,3 @@ });

state.push(2);
equal(log.join('->'), '1->2->4->3');
assert.equal(log.join('->'), '1->2->4->3');
});

@@ -280,3 +282,3 @@

state.push(1);
equal(log.join('->'), '1->2');
assert.equal(log.join('->'), '1->2');
});

@@ -286,5 +288,5 @@

start();
equal(state.join('->'), '1->2');
assert.equal(state.join('->'), '1->2');
});
});
*/
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