bump standard linter
This commit is contained in:
		
							parent
							
								
									085dda4cbd
								
							
						
					
					
						commit
						e33c67fc72
					
				
							
								
								
									
										1708
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1708
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -81,7 +81,7 @@
 | 
			
		||||
    "jsdoc": "^3.6.6",
 | 
			
		||||
    "markdownlint-cli": "^0.23.2",
 | 
			
		||||
    "rollup": "^2.47.0",
 | 
			
		||||
    "standard": "^14.3.4",
 | 
			
		||||
    "standard": "^16.0.4",
 | 
			
		||||
    "tui-jsdoc-template": "^1.2.2",
 | 
			
		||||
    "typescript": "^4.2.4",
 | 
			
		||||
    "y-protocols": "^1.0.4"
 | 
			
		||||
 | 
			
		||||
@ -646,7 +646,7 @@ export const typeListInsertGenericsAfter = (transaction, parent, referenceItem,
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  content.forEach(c => {
 | 
			
		||||
    if(c === null) {
 | 
			
		||||
    if (c === null) {
 | 
			
		||||
      jsonContent.push(c)
 | 
			
		||||
    } else {
 | 
			
		||||
      switch (c.constructor) {
 | 
			
		||||
@ -678,7 +678,6 @@ export const typeListInsertGenericsAfter = (transaction, parent, referenceItem,
 | 
			
		||||
              }
 | 
			
		||||
          }
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
  })
 | 
			
		||||
  packJsonContent()
 | 
			
		||||
 | 
			
		||||
@ -129,9 +129,9 @@ export const snapshot = doc => createSnapshot(createDeleteSetFromStructStore(doc
 | 
			
		||||
 * @protected
 | 
			
		||||
 * @function
 | 
			
		||||
 */
 | 
			
		||||
export const isVisible = (item, snapshot) => snapshot === undefined ? !item.deleted : (
 | 
			
		||||
  snapshot.sv.has(item.id.client) && (snapshot.sv.get(item.id.client) || 0) > item.id.clock && !isDeleted(snapshot.ds, item.id)
 | 
			
		||||
)
 | 
			
		||||
export const isVisible = (item, snapshot) => snapshot === undefined
 | 
			
		||||
  ? !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
 | 
			
		||||
 | 
			
		||||
@ -316,9 +316,9 @@ export const mergeUpdatesV2 = (updates, YDecoder = UpdateDecoderV2, YEncoder = U
 | 
			
		||||
          const clockDiff = dec1.curr.id.clock - dec2.curr.id.clock
 | 
			
		||||
          if (clockDiff === 0) {
 | 
			
		||||
            // @todo remove references to skip since the structDecoders must filter Skips.
 | 
			
		||||
            return dec1.curr.constructor === dec2.curr.constructor ? 0 : (
 | 
			
		||||
              dec1.curr.constructor === Skip ? 1 : -1 // we are filtering skips anyway.
 | 
			
		||||
            )
 | 
			
		||||
            return dec1.curr.constructor === dec2.curr.constructor
 | 
			
		||||
              ? 0
 | 
			
		||||
              : dec1.curr.constructor === Skip ? 1 : -1 // we are filtering skips anyway.
 | 
			
		||||
          } else {
 | 
			
		||||
            return clockDiff
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
@ -324,7 +324,7 @@ export const init = (tc, { users = 5 } = {}, initTestObject) => {
 | 
			
		||||
 */
 | 
			
		||||
export const compare = users => {
 | 
			
		||||
  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"
 | 
			
		||||
  // This ensures that mergeUpdates works correctly
 | 
			
		||||
  const mergedDocs = users.map(user => {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user