@@ -321,22 +321,22 @@ class CausalArray<T> extends BaseCausalCollection<T> implements CausalCollection
321321 this . delete ( hash , undefined , author , extraAuth ) ;
322322 }
323323
324- async push ( element : T ) {
325- await this . insertAt ( element , this . _contents . length ) ;
324+ async push ( element : T , author ?: Identity , extraAuth ?: Authorizer ) {
325+ await this . insertAt ( element , this . _contents . length , author , extraAuth ) ;
326326 }
327327
328- async pop ( ) : Promise < T > {
328+ async pop ( author ?: Identity , extraAuth ?: Authorizer ) : Promise < T > {
329329 this . rebuild ( ) ;
330330 const lastIdx = this . _contents . length - 1 ;
331331 const last = this . _contents [ lastIdx ] ;
332- await this . deleteAt ( lastIdx ) ;
332+ await this . deleteAt ( lastIdx , author , extraAuth ) ;
333333
334334 return last ;
335335 }
336336
337- async concat ( elements : T [ ] ) {
337+ async concat ( elements : T [ ] , author ?: Identity , extraAuth ?: Authorizer ) {
338338 this . rebuild ( ) ;
339- await this . insertManyAt ( elements , this . _contents . length ) ;
339+ await this . insertManyAt ( elements , this . _contents . length , author , extraAuth ) ;
340340 }
341341
342342 contents ( ) {
@@ -625,6 +625,8 @@ class CausalArray<T> extends BaseCausalCollection<T> implements CausalCollection
625625 console . log ( 'verification OK' )
626626
627627 if ( ! Verification . checkKeys ( usedKeys , op ) ) {
628+ console . log ( 'usedKeys' , Array . from ( usedKeys ) ) ;
629+ console . log ( 'op' , Array . from ( op . getCausalOps ( ) . keys ( ) ) )
628630 return false ;
629631 }
630632
0 commit comments