Comparing version 0.3.0 to 0.3.1
@@ -216,2 +216,6 @@ 'use strict'; | ||
if (typeof delay !== 'number') { | ||
throw new Error('delay argument must be of type number'); | ||
} | ||
// Copy event. | ||
@@ -361,2 +365,6 @@ ev = JSON.parse(JSON.stringify(ev)); | ||
if (typeof delay !== 'number') { | ||
throw new Error('delay argument must be of type number'); | ||
} | ||
return this._redisTime() | ||
@@ -363,0 +371,0 @@ .then(function (now) { |
{ | ||
"name": "dtimer", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Distributed timer backed by Redis.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -22,3 +22,3 @@ # dtimer | ||
* Requires Redis version 2.6.0 or later (dtimer uses lua) | ||
* The redis module NUST be promisified at module level in advance, even legacy callback style is used. | ||
* The redis module MUST be promisified at module level in advance, even legacy callback style is used. | ||
```js | ||
@@ -41,3 +41,3 @@ var Promise = require('bluebird'); | ||
> The redis module MUST be promsified before instantiating clients for `pub` and `sub`. See the example below. | ||
> The redis module MUST be promisified before instantiating clients for `pub` and `sub`. See the example below. | ||
@@ -74,3 +74,3 @@ ### Instance method | ||
> The `ev` object may have user-defined properties as its own properties, however, the following properties are reserved and used by dtimer; 'id', 'maxRetries' and '_numRetries'. If your appkication needs to use these names (for application specific use), then consider putting all user-defined event object inside the `ev` like this: | ||
> The `ev` object may have user-defined properties as its own properties, however, the following properties are reserved and used by dtimer; 'id', 'maxRetries' and '_numRetries'. If your application needs to use these names (for application specific use), then consider putting all user-defined event object inside the `ev` like this: | ||
@@ -77,0 +77,0 @@ ```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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
32020
479
0