Socket
Socket
Sign inDemoInstall

timermodule

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"name" : "timermodule",
"version" : "0.0.3",
"version" : "0.0.4",
"main" : "./dist/index.js",

@@ -5,0 +5,0 @@ "author" : "Vallinayagam Thirumalaimurugan",

@@ -29,6 +29,5 @@ # USAGE

The notifier function will be called each time for a change in timer object. The notifier function will get an arguement in the format below :
"<yourtimername>" : {
time(keyword) : {
The notifier function will be called each time for a change in timer object. The notifier function will get an arguement in the format : (key, value). The value will be in the format as below :
```
"time"(keyword) : {
hh(keyword) : "<values>",

@@ -38,4 +37,4 @@ mm(keyword) : "<values>",

},
status : "INIT (OR) RUNNING (OR) PAUSED"
}
"status"(keyword) : "INIT (OR) RUNNING (OR) PAUSED"
```

@@ -42,0 +41,0 @@ **Once you are done with creating an instance and initializing it, you can proceed calling the methods available on the timer instance **

@@ -61,4 +61,4 @@ let defaultValue = {hh : "00", mm : "00", ss : "00"};

getTimerDetail : function(key) {return this.timerDetails[key]} ,
notify : function() {
this.notifier(this.clientData);
notify : function(key) {
this.notifier(key, this.clientData[key]);
},

@@ -99,3 +99,3 @@ setTimerDetail : function(key, obj) {

this.setClientData(key, {time});
this.notify();
this.notify(key);
}, 1000);

@@ -112,3 +112,3 @@ this.setTimerDetail(key, {intervalId});

this.triggerTimerMechanism(key);
isInitCall != true && this.notify();
isInitCall != true && this.notify(key);
},

@@ -123,3 +123,3 @@ pause : function(key) {

this.setClientData(key, {status : "PAUSED", time : previousTime});
isInitCall != true && this.notify();
isInitCall != true && this.notify(key);
},

@@ -134,3 +134,3 @@ resume : function(key) {

this.triggerTimerMechanism(key);
isInitCall != true && this.notify();
isInitCall != true && this.notify(key);
},

@@ -142,5 +142,5 @@ reset : function(key) {

this.deleteTimerDetailKey(key, "startTime");
this.getTimerDetail(key).isInitCall != true && this.notify();
this.getTimerDetail(key).isInitCall != true && this.notify(key);
}
}
export default Timer
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc