Comparing version 5.1.0 to 5.2.0
@@ -103,2 +103,9 @@ /// <reference types="node" /> | ||
/** | ||
* Mode of the connection. | ||
* | ||
* One of `"normal"`, `"subscriber"`, or `"monitor"`. When the connection is | ||
* not in `"normal"` mode, certain commands are not allowed. | ||
*/ | ||
get mode(): "normal" | "subscriber" | "monitor"; | ||
/** | ||
* Listen for all requests received by the server in real time. | ||
@@ -105,0 +112,0 @@ * |
@@ -256,2 +256,15 @@ "use strict"; | ||
/** | ||
* Mode of the connection. | ||
* | ||
* One of `"normal"`, `"subscriber"`, or `"monitor"`. When the connection is | ||
* not in `"normal"` mode, certain commands are not allowed. | ||
*/ | ||
get mode() { | ||
return this.options.monitor | ||
? "monitor" | ||
: this.condition.subscriber | ||
? "subscriber" | ||
: "normal"; | ||
} | ||
/** | ||
* Listen for all requests received by the server in real time. | ||
@@ -258,0 +271,0 @@ * |
{ | ||
"name": "ioredis", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"description": "A robust, performance-focused and full-featured Redis client for Node.js.", | ||
@@ -5,0 +5,0 @@ "main": "./built/index.js", |
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
672989
14895