primus-locky
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -103,2 +103,3 @@ const _ = require('lodash'); | ||
// If the locker is the current user, refresh the lock. | ||
this.primus.emit('refreshLock', resource, room, spark, locker); | ||
if (user === locker) this.locky.refresh(resource); | ||
@@ -109,3 +110,2 @@ }); | ||
/** | ||
@@ -124,7 +124,3 @@ * Refresh all active locks. | ||
// Simulate that the user is joining the room. | ||
rooms.forEach((room) => { | ||
const resource = resourceRoom.parse(room); | ||
this.primus.emit('refreshLock', resource, room, spark); | ||
this.onJoinRoom(room, spark); | ||
}); | ||
rooms.forEach((room) => this.onJoinRoom(room, spark)); | ||
}); | ||
@@ -131,0 +127,0 @@ }); |
{ | ||
"name": "primus-locky", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Primus locky is a primus plugin for locky, it provides a room based locking.", | ||
@@ -5,0 +5,0 @@ "main": "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
18808
413