@@ -62,7 +62,7 @@ describe('detect-node-support', () => {
62
62
'14' : '14.3.0'
63
63
}
64
64
} ,
65
- engines : '>=10 '
65
+ engines : '>=14 '
66
66
} ) ;
67
67
} ) ;
68
68
@@ -454,7 +454,7 @@ describe('detect-node-support', () => {
454
454
'14' : '14.3.0'
455
455
}
456
456
} ,
457
- engines : '>=10 '
457
+ engines : '>=14 '
458
458
} ) ;
459
459
} ) ;
460
460
@@ -491,7 +491,7 @@ describe('detect-node-support', () => {
491
491
'14' : '14.3.0'
492
492
}
493
493
} ,
494
- engines : '>=10 '
494
+ engines : '>=14 '
495
495
} ) ;
496
496
} ) ;
497
497
@@ -518,7 +518,7 @@ describe('detect-node-support', () => {
518
518
version : '0.0.0-development' ,
519
519
commit : '9cef39d21ad229dea4b10295f55b0d9a83800b23' ,
520
520
timestamp : 1580673602000 ,
521
- engines : '>=10 '
521
+ engines : '>=14 '
522
522
} ) ;
523
523
} ) ;
524
524
@@ -596,7 +596,7 @@ describe('detect-node-support', () => {
596
596
content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
597
597
} )
598
598
. get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
599
- . reply ( 403 , null , {
599
+ . reply ( 403 , '' , {
600
600
'x-ratelimit-limit' : '60' ,
601
601
'x-ratelimit-remaining' : '0' ,
602
602
'x-ratelimit-reset' : `${ Math . round ( Date . now ( ) / 1000 ) + 1 } `
@@ -621,7 +621,7 @@ describe('detect-node-support', () => {
621
621
'14' : '14.3.0'
622
622
}
623
623
} ,
624
- engines : '>=10 '
624
+ engines : '>=14 '
625
625
} ) ;
626
626
} ) ;
627
627
@@ -635,10 +635,11 @@ describe('detect-node-support', () => {
635
635
. reply ( 200 , {
636
636
content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
637
637
} )
638
+ // https://docs.github.com/en/rest/overview/resources-in-the-rest-api#secondary-rate-limits
638
639
. get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
639
- . reply ( 403 , 'Abuse detected ' ) ;
640
+ . reply ( 403 , 'You have exceeded a secondary rate limit ' ) ;
640
641
641
- await expect ( NodeSupport . detect ( { repository : 'git+https://github.com/pkgjs/detect-node-support.git' } ) ) . to . reject ( / A b u s e d e t e c t e d / ) ;
642
+ await expect ( NodeSupport . detect ( { repository : 'git+https://github.com/pkgjs/detect-node-support.git' } ) ) . to . reject ( / Y o u h a v e e x c e e d e d a s e c o n d a r y r a t e l i m i t / ) ;
642
643
} ) ;
643
644
} ) ;
644
645
@@ -685,7 +686,7 @@ describe('detect-node-support', () => {
685
686
'14' : '14.3.0'
686
687
}
687
688
} ,
688
- engines : '>=10 '
689
+ engines : '>=14 '
689
690
} ) ;
690
691
} ) ;
691
692
@@ -716,7 +717,7 @@ describe('detect-node-support', () => {
716
717
version : '0.0.0-development' ,
717
718
commit : '9cef39d21ad229dea4b10295f55b0d9a83800b23' ,
718
719
timestamp : 1580673602000 ,
719
- engines : '>=10 '
720
+ engines : '>=14 '
720
721
} ) ;
721
722
} ) ;
722
723
@@ -814,7 +815,7 @@ describe('detect-node-support', () => {
814
815
'14' : '14.3.0'
815
816
}
816
817
} ,
817
- engines : '>=10 '
818
+ engines : '>=14 '
818
819
} ) ;
819
820
} ) ;
820
821
@@ -864,7 +865,7 @@ describe('detect-node-support', () => {
864
865
'14' : '14.3.0'
865
866
}
866
867
} ,
867
- engines : '>=10 '
868
+ engines : '>=14 '
868
869
} ) ;
869
870
} ) ;
870
871
@@ -901,7 +902,7 @@ describe('detect-node-support', () => {
901
902
'14' : '14.3.0'
902
903
}
903
904
} ,
904
- engines : '>=10 '
905
+ engines : '>=14 '
905
906
} ) ;
906
907
} ) ;
907
908
@@ -938,7 +939,7 @@ describe('detect-node-support', () => {
938
939
'14' : '14.3.0'
939
940
}
940
941
} ,
941
- engines : '>=10 '
942
+ engines : '>=14 '
942
943
} ) ;
943
944
} ) ;
944
945
@@ -979,7 +980,7 @@ describe('detect-node-support', () => {
979
980
'14' : '14.3.0'
980
981
}
981
982
} ,
982
- engines : '>=10 '
983
+ engines : '>=14 '
983
984
} ) ;
984
985
} ) ;
985
986
0 commit comments