anear-js-api 0.3.7 → 0.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -95,7 +95,7 @@ class AnearMessaging {
95
95
  let timerStarter = () => {}
96
96
 
97
97
  if (timeoutMsecs > 0) {
98
- let timer = this.participantTimers[participant.id] || createTimer(anearEvent, participant, timeoutMsecs)
98
+ const timer = this.participantTimers[participant.id] || this.createTimer(anearEvent, participant, timeoutMsecs)
99
99
 
100
100
  if (timer.isPaused) {
101
101
  timerRemaining = this.timeRemaining
@@ -129,14 +129,14 @@ class AnearMessaging {
129
129
  }
130
130
 
131
131
  pauseParticipantTimer(participantId) {
132
- const timer = this.participantTimers[particpantId]
132
+ const timer = this.participantTimers[participantId]
133
133
 
134
134
  if (timer && timer.isRunning) timer.pause()
135
135
  }
136
136
 
137
137
  resetParticipantTimer(participantId) {
138
138
  // called after participant takes Action before timer expires
139
- const timer = this.participantTimers[particpantId]
139
+ const timer = this.participantTimers[participantId]
140
140
  if (timer) timer.reset()
141
141
  }
142
142
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anear-js-api",
3
- "version": "0.3.7",
3
+ "version": "0.3.10",
4
4
  "description": "Javascript Developer API for Anear Apps",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {