@pryv/monitor 3.4.1 → 3.6.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pryv/monitor",
3
- "version": "3.4.1",
3
+ "version": "3.6.0",
4
4
  "description": "Extends `pryv` with event-driven notifications for changes on a Pryv.io account",
5
5
  "keywords": [
6
6
  "Pryv",
package/src/Monitor.js CHANGED
@@ -164,9 +164,9 @@ class Monitor extends EventEmitter {
164
164
  }
165
165
 
166
166
  /**
167
- * Plan 66: register a handler for the server's fine-grained
168
- * `accessUpdated` event. Fires whenever a Pryv.io ≥ 2.0.0-pre.X server
169
- * emits the event after a successful `accesses.update` — payload is
167
+ * Register a handler for the server's fine-grained `accessUpdated`
168
+ * event. Fires whenever a Pryv.io ≥ 2.0.0-pre.X server emits the
169
+ * event after a successful `accesses.update` — payload is
170
170
  * `{ type: 'access-updated', accessId: '<base>:<serial>', serial }`.
171
171
  *
172
172
  * Requires `Monitor.UpdateMethod.Socket` to be active (the event
@@ -23,8 +23,8 @@ class Socket extends UpdateMethod {
23
23
  this.socket = await this.monitor.connection.socket.open();
24
24
  this.socket.on('eventsChanged', () => { this.monitor.updateEvents(); });
25
25
  this.socket.on('streamsChanged', () => { this.monitor.updateStreams(); });
26
- // Plan 66: re-emit the server's fine-grained `accessUpdated` event
27
- // on the Monitor itself so consumers can subscribe via
26
+ // Re-emit the server's fine-grained `accessUpdated` event on the
27
+ // Monitor itself so consumers can subscribe via
28
28
  // `monitor.onAccessUpdated(handler)`. The underlying SocketIO has
29
29
  // already busted the connection's accessInfo cache; the payload
30
30
  // carries the new composite accessId + serial for fine-grained
package/src/index.d.ts CHANGED
@@ -97,10 +97,10 @@ declare module 'pryv' {
97
97
  stop(): Monitor;
98
98
 
99
99
  /**
100
- * Plan 66: register a handler for the server's fine-grained
101
- * `accessUpdated` event. Requires `Monitor.UpdateMethod.Socket`.
102
- * The underlying `connection.socket` busts the
103
- * `connection.accessInfo` cache before this fires.
100
+ * Register a handler for the server's fine-grained `accessUpdated`
101
+ * event. Requires `Monitor.UpdateMethod.Socket`. The underlying
102
+ * `connection.socket` busts the `connection.accessInfo` cache
103
+ * before this fires.
104
104
  */
105
105
  onAccessUpdated(handler: (payload: { type: 'access-updated', accessId: string, serial: number }) => void): Monitor;
106
106