New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

safequeue

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

safequeue - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

7

lib/queue.js

@@ -81,3 +81,8 @@ /* vim: set expandtab tabstop=2 shiftwidth=2 foldmethod=marker: */

return _sequence.push(build(item, tmout, this));
var n = _sequence.push(build(item, tmout, this));
if (1 === n) {
this.emit('fill');
}
return n;
};

@@ -84,0 +89,0 @@ /* }}} */

2

package.json
{
"name": "safequeue",
"version": "0.0.1",
"version": "0.0.2",
"author": "Aleafs Zhang (zhangxc83@gmail.com)",

@@ -5,0 +5,0 @@ "contributors": [],

@@ -23,2 +23,5 @@ [![Build Status](https://secure.travis-ci.org/aleafs/safequeue.png?branch=master)](http://travis-ci.org/aleafs/safequeue)

queue.on('fill', function () {
});
queue.on('full', function (len, max) {

@@ -25,0 +28,0 @@ });

@@ -15,3 +15,3 @@ /* vim: set expandtab tabstop=2 shiftwidth=2 foldmethod=marker: */

var _messages = [];
['full', 'timeout'].forEach(function (i) {
['fill', 'full', 'timeout'].forEach(function (i) {
_me.on(i, function () {

@@ -29,3 +29,3 @@ _messages.push([i].concat(Array.prototype.slice.call(arguments)));

process.nextTick(function () {
_messages.should.eql([]);
_messages.should.eql([['fill']]);
_me.shift().should.eql(1);

@@ -38,3 +38,3 @@ _me.shift().should.eql('a');

_me.size().should.eql(0);
_messages.should.eql([[
_messages.should.eql([['fill'],[
'timeout', 'c', 5, 0

@@ -54,3 +54,3 @@ ]]);

var _messages = [];
['full', 'timeout'].forEach(function (i) {
['fill', 'full', 'timeout'].forEach(function (i) {
_me.on(i, function () {

@@ -69,3 +69,3 @@ _messages.push([i].concat(Array.prototype.slice.call(arguments)));

_messages.should.eql([['full', 5, 5]]);
_messages.should.eql([['fill'],['full', 5, 5]]);
_messages = [];

@@ -78,3 +78,3 @@

setTimeout(function () {
_messages.should.eql([['timeout', 'x', 5, 0]]);
_messages.should.eql([['fill'],['timeout', 'x', 5, 0]]);
done();

@@ -81,0 +81,0 @@ }, 8);

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