@hocuspocus/provider
Advanced tools
Comparing version 2.11.3 to 2.12.0-rc.0
@@ -113,3 +113,3 @@ /// <reference types="node" /> | ||
* Make sure to *not* listen for further changes, when there’s | ||
* noone connected anymore. | ||
* no one connected anymore. | ||
*/ | ||
@@ -116,0 +116,0 @@ onDisconnect: ({ documentName }: onDisconnectPayload) => Promise<void>; |
@@ -1,3 +0,2 @@ | ||
import type { MessageEvent } from 'ws'; | ||
import { Event } from 'ws'; | ||
import { type MessageEvent, Event } from 'ws'; | ||
import EventEmitter from './EventEmitter.js'; | ||
@@ -38,3 +37,3 @@ import { HocuspocusProvider } from './HocuspocusProvider.js'; | ||
/** | ||
* 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. | ||
* 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. | ||
*/ | ||
@@ -41,0 +40,0 @@ initialDelay: number; |
@@ -116,3 +116,3 @@ import { Encoder } from 'lib0/encoding'; | ||
/** | ||
* if changes havent been persisted to a version yet, we'll create one with the specified name, | ||
* if changes haven't been persisted to a version yet, we'll create one with the specified name, | ||
* expect when `false` is passed. | ||
@@ -119,0 +119,0 @@ */ |
@@ -83,3 +83,3 @@ /// <reference types="node" /> | ||
/** | ||
* A list of hocuspocus extenions. | ||
* A list of hocuspocus extensions. | ||
*/ | ||
@@ -86,0 +86,0 @@ extensions: Array<Extension>; |
{ | ||
"name": "@hocuspocus/provider", | ||
"version": "2.11.3", | ||
"version": "2.12.0-rc.0", | ||
"description": "hocuspocus provider", | ||
@@ -32,3 +32,3 @@ "homepage": "https://hocuspocus.dev", | ||
"dependencies": { | ||
"@hocuspocus/common": "^2.11.3", | ||
"@hocuspocus/common": "^2.12.0-rc.0", | ||
"@lifeomic/attempt": "^3.0.2", | ||
@@ -35,0 +35,0 @@ "lib0": "^0.2.87", |
@@ -7,4 +7,3 @@ import { | ||
import * as url from 'lib0/url' | ||
import type { MessageEvent } from 'ws' | ||
import { Event } from 'ws' | ||
import { type MessageEvent, Event } from 'ws' | ||
import EventEmitter from './EventEmitter.js' | ||
@@ -54,3 +53,3 @@ import { HocuspocusProvider } from './HocuspocusProvider.js' | ||
/** | ||
* 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. | ||
* 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. | ||
*/ | ||
@@ -354,3 +353,3 @@ initialDelay: number, | ||
// Init the WebSocket connection | ||
const ws = new this.configuration.WebSocketPolyfill(this.url) | ||
const ws = new this.configuration.WebSocketPolyfill(this.url, { followRedirects: true }) | ||
ws.binaryType = 'arraybuffer' | ||
@@ -357,0 +356,0 @@ ws.identifier = this.identifier |
@@ -146,3 +146,3 @@ import { Encoder } from 'lib0/encoding' | ||
/** | ||
* if changes havent been persisted to a version yet, we'll create one with the specified name, | ||
* if changes haven't been persisted to a version yet, we'll create one with the specified name, | ||
* expect when `false` is passed. | ||
@@ -149,0 +149,0 @@ */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
817161
9321
1