@hocuspocus/extension-throttle 2.11.2 → 2.12.0-rc.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.
@@ -110,7 +110,7 @@ export declare class Redis implements Extension {
110
110
  onChange(data: onChangePayload): Promise<any>;
111
111
  /**
112
112
  * Make sure to *not* listen for further changes, when there’s
113
- * noone connected anymore.
113
+ * no one connected anymore.
114
114
  */
115
115
  onDisconnect: ({ documentName }: onDisconnectPayload) => Promise<void>;
116
116
  beforeBroadcastStateless(data: beforeBroadcastStatelessPayload): Promise<number>;
@@ -1,5 +1,4 @@
1
- import type { MessageEvent } from 'ws';
2
- import { Event } from 'ws';
1
+ import { type MessageEvent, Event } from 'ws';
3
2
  import EventEmitter from './EventEmitter.js';
4
3
  import { HocuspocusProvider } from './HocuspocusProvider.js';
5
4
  import { WebSocketStatus, onAwarenessChangeParameters, onAwarenessUpdateParameters, onCloseParameters, onDisconnectParameters, onMessageParameters, onOpenParameters, onOutgoingMessageParameters, onStatusParameters } from './types.js';
@@ -35,7 +34,7 @@ export interface CompleteHocuspocusProviderWebsocketConfiguration {
35
34
  */
36
35
  delay: number;
37
36
  /**
38
- * The intialDelay is the amount of time to wait before making the first attempt. This option should typically be 0 since you typically want the first attempt to happen immediately.
37
+ * The initialDelay is the amount of time to wait before making the first attempt. This option should typically be 0 since you typically want the first attempt to happen immediately.
39
38
  */
40
39
  initialDelay: number;
41
40
  /**
@@ -113,7 +113,7 @@ export type THistoryAction = THistoryDocumentRevertAction | THistoryVersionCreat
113
113
  export type THistoryDocumentRevertAction = {
114
114
  action: 'document.revert';
115
115
  /**
116
- * if changes havent been persisted to a version yet, we'll create one with the specified name,
116
+ * if changes haven't been persisted to a version yet, we'll create one with the specified name,
117
117
  * expect when `false` is passed.
118
118
  */
119
119
  currentVersionName?: string | false;
@@ -80,7 +80,7 @@ export interface Configuration extends Extension {
80
80
  */
81
81
  name: string | null;
82
82
  /**
83
- * A list of hocuspocus extenions.
83
+ * A list of hocuspocus extensions.
84
84
  */
85
85
  extensions: Array<Extension>;
86
86
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hocuspocus/extension-throttle",
3
- "version": "2.11.2",
3
+ "version": "2.12.0-rc.0",
4
4
  "description": "hocuspocus throttle extension",
5
5
  "homepage": "https://hocuspocus.dev",
6
6
  "keywords": [
@@ -28,7 +28,7 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@hocuspocus/server": "^2.11.2"
31
+ "@hocuspocus/server": "^2.12.0-rc.0"
32
32
  },
33
33
  "gitHead": "b3454a4ca289a84ddfb7fa5607a2d4b8d5c37e9d"
34
34
  }