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

dtimer

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dtimer - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

8

lib/dtimer.js

@@ -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) {

2

package.json
{
"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

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