Comparing version 0.5.1 to 0.5.2
@@ -113,9 +113,10 @@ /* | ||
, cname = ocmd.cmd | ||
, err = null | ||
; | ||
if ( ! ocmd.isQuit ) { | ||
if ( m.on ) return sendError( ocmd, 'only the QUIT command is allowed in monitor mode.' ); | ||
if ( ocmd.isQuit ) return cqueue.qtail.push( ocmd ) + cqueue.qhead.length - cqueue.hpos; | ||
if ( m.on ) return sendError( ocmd, 'only the QUIT command is allowed in monitor mode.' ); | ||
if ( s.on ) { | ||
// Redis >= 2.8.x permits PING in pubsub mode | ||
if ( ocmd.isPing ) return cqueue.qtail.push( ocmd ) + cqueue.qhead.length - cqueue.hpos; | ||
if ( s.on && ! ocmd.isSubscription ) return sendError( ocmd, cname + ' command is not allowed in PubSub mode.' ); | ||
if( ! ocmd.isSubscription ) return sendError( ocmd, cname + ' command is not allowed in PubSub mode.' ); | ||
} | ||
@@ -192,3 +193,2 @@ if ( ocmd.isMonitor ) m.on = 1; | ||
} | ||
} | ||
@@ -195,0 +195,0 @@ return cqueue.shift(); |
{ | ||
"name": "bilanx", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "β Bilanx, a fast and simplified command queue for Deuces, a minimal Redis client.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/rootslab/bilanx", |
@@ -20,6 +20,2 @@ /* | ||
} | ||
, transaction : { | ||
on : 0 | ||
, active : 0 | ||
} | ||
, monitoring : { | ||
@@ -30,3 +26,2 @@ on : 0 | ||
, auth : 0 | ||
, select : 0 | ||
} | ||
@@ -45,6 +40,2 @@ ; | ||
} | ||
, transaction : { | ||
on : 1 | ||
, active : 1 | ||
} | ||
, monitoring : { | ||
@@ -55,3 +46,2 @@ on : 1 | ||
, auth : 1 | ||
, select : 1 | ||
}; | ||
@@ -58,0 +48,0 @@ |
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
27944
544