lint
This commit is contained in:
parent
a5ffdce342
commit
d0f9c4a27f
@ -27,7 +27,9 @@ build collaborative or distributed applications ping us at
|
|||||||
|
|
||||||
## Sponsorship
|
## Sponsorship
|
||||||
|
|
||||||
Please contribute to the project financially if your company relies on Yjs. Support the project and receive more attention on your tickets. [](https://github.com/sponsors/dmonad)
|
Please contribute to the project financially if your company relies on Yjs.
|
||||||
|
Support the project and receive more attention on your tickets.
|
||||||
|
[](https://github.com/sponsors/dmonad)
|
||||||
|
|
||||||
## Who is using Yjs
|
## Who is using Yjs
|
||||||
|
|
||||||
|
@ -131,8 +131,8 @@ export const decodeUpdateV2 = (update, YDecoder = UpdateDecoderV2) => {
|
|||||||
structs.push(curr)
|
structs.push(curr)
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
'structs': structs,
|
structs,
|
||||||
'ds': readDeleteSet(updateDecoder),
|
ds: readDeleteSet(updateDecoder)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -530,7 +530,7 @@ export const testUndoBlockBug = tc => {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Undo text formatting delete should not corrupt peer state.
|
* Undo text formatting delete should not corrupt peer state.
|
||||||
*
|
*
|
||||||
* @see https://github.com/yjs/yjs/issues/392
|
* @see https://github.com/yjs/yjs/issues/392
|
||||||
* @param {t.TestCase} tc
|
* @param {t.TestCase} tc
|
||||||
*/
|
*/
|
||||||
@ -539,7 +539,7 @@ export const testUndoDeleteTextFormat = tc => {
|
|||||||
const text = doc.getText()
|
const text = doc.getText()
|
||||||
text.insert(0, 'Attack ships on fire off the shoulder of Orion.')
|
text.insert(0, 'Attack ships on fire off the shoulder of Orion.')
|
||||||
const doc2 = new Y.Doc()
|
const doc2 = new Y.Doc()
|
||||||
const text2 = doc2.getText();
|
const text2 = doc2.getText()
|
||||||
Y.applyUpdate(doc2, Y.encodeStateAsUpdate(doc))
|
Y.applyUpdate(doc2, Y.encodeStateAsUpdate(doc))
|
||||||
const undoManager = new Y.UndoManager(text)
|
const undoManager = new Y.UndoManager(text)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user