bump standard linter
This commit is contained in:
parent
085dda4cbd
commit
e33c67fc72
1702
package-lock.json
generated
1702
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -81,7 +81,7 @@
|
|||||||
"jsdoc": "^3.6.6",
|
"jsdoc": "^3.6.6",
|
||||||
"markdownlint-cli": "^0.23.2",
|
"markdownlint-cli": "^0.23.2",
|
||||||
"rollup": "^2.47.0",
|
"rollup": "^2.47.0",
|
||||||
"standard": "^14.3.4",
|
"standard": "^16.0.4",
|
||||||
"tui-jsdoc-template": "^1.2.2",
|
"tui-jsdoc-template": "^1.2.2",
|
||||||
"typescript": "^4.2.4",
|
"typescript": "^4.2.4",
|
||||||
"y-protocols": "^1.0.4"
|
"y-protocols": "^1.0.4"
|
||||||
|
@ -678,7 +678,6 @@ export const typeListInsertGenericsAfter = (transaction, parent, referenceItem,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
packJsonContent()
|
packJsonContent()
|
||||||
|
@ -129,9 +129,9 @@ export const snapshot = doc => createSnapshot(createDeleteSetFromStructStore(doc
|
|||||||
* @protected
|
* @protected
|
||||||
* @function
|
* @function
|
||||||
*/
|
*/
|
||||||
export const isVisible = (item, snapshot) => snapshot === undefined ? !item.deleted : (
|
export const isVisible = (item, snapshot) => snapshot === undefined
|
||||||
snapshot.sv.has(item.id.client) && (snapshot.sv.get(item.id.client) || 0) > item.id.clock && !isDeleted(snapshot.ds, item.id)
|
? !item.deleted
|
||||||
)
|
: snapshot.sv.has(item.id.client) && (snapshot.sv.get(item.id.client) || 0) > item.id.clock && !isDeleted(snapshot.ds, item.id)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Transaction} transaction
|
* @param {Transaction} transaction
|
||||||
|
@ -316,9 +316,9 @@ export const mergeUpdatesV2 = (updates, YDecoder = UpdateDecoderV2, YEncoder = U
|
|||||||
const clockDiff = dec1.curr.id.clock - dec2.curr.id.clock
|
const clockDiff = dec1.curr.id.clock - dec2.curr.id.clock
|
||||||
if (clockDiff === 0) {
|
if (clockDiff === 0) {
|
||||||
// @todo remove references to skip since the structDecoders must filter Skips.
|
// @todo remove references to skip since the structDecoders must filter Skips.
|
||||||
return dec1.curr.constructor === dec2.curr.constructor ? 0 : (
|
return dec1.curr.constructor === dec2.curr.constructor
|
||||||
dec1.curr.constructor === Skip ? 1 : -1 // we are filtering skips anyway.
|
? 0
|
||||||
)
|
: dec1.curr.constructor === Skip ? 1 : -1 // we are filtering skips anyway.
|
||||||
} else {
|
} else {
|
||||||
return clockDiff
|
return clockDiff
|
||||||
}
|
}
|
||||||
|
@ -324,7 +324,7 @@ export const init = (tc, { users = 5 } = {}, initTestObject) => {
|
|||||||
*/
|
*/
|
||||||
export const compare = users => {
|
export const compare = users => {
|
||||||
users.forEach(u => u.connect())
|
users.forEach(u => u.connect())
|
||||||
while (users[0].tc.flushAllMessages()) {}
|
while (users[0].tc.flushAllMessages()) {} // eslint-disable-line
|
||||||
// For each document, merge all received document updates with Y.mergeUpdates and create a new document which will be added to the list of "users"
|
// For each document, merge all received document updates with Y.mergeUpdates and create a new document which will be added to the list of "users"
|
||||||
// This ensures that mergeUpdates works correctly
|
// This ensures that mergeUpdates works correctly
|
||||||
const mergedDocs = users.map(user => {
|
const mergedDocs = users.map(user => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user