File tree 4 files changed +259
-254
lines changed
packages/eventstream-marshaller/src
4 files changed +259
-254
lines changed Original file line number Diff line number Diff line change 61
61
"@types/chai-as-promised" : " ^7.1.2" ,
62
62
"@types/fs-extra" : " ^8.0.1" ,
63
63
"@types/jest" : " 27.4.0" ,
64
- "@typescript-eslint/eslint-plugin" : " 4.30 .0" ,
65
- "@typescript-eslint/parser" : " 4.30 .0" ,
64
+ "@typescript-eslint/eslint-plugin" : " 5.15 .0" ,
65
+ "@typescript-eslint/parser" : " 5.15 .0" ,
66
66
"async" : " 3.2.1" ,
67
67
"chai" : " ^4.2.0" ,
68
68
"chai-as-promised" : " ^7.1.1" ,
69
69
"codecov" : " ^3.4.0" ,
70
70
"concurrently" : " 7.0.0" ,
71
71
"cucumber" : " ^6.0.5" ,
72
72
"downlevel-dts" : " 0.7.0" ,
73
- "eslint" : " 7.32 .0" ,
74
- "eslint-config-prettier" : " 8.3 .0" ,
75
- "eslint-plugin-prettier" : " 3.4.1 " ,
73
+ "eslint" : " 8.11 .0" ,
74
+ "eslint-config-prettier" : " 8.5 .0" ,
75
+ "eslint-plugin-prettier" : " 4.0.0 " ,
76
76
"eslint-plugin-simple-import-sort" : " 7.0.0" ,
77
- "eslint-plugin-sort-export-all" : " 1.1 .1" ,
78
- "esprint" : " 3.1 .0" ,
77
+ "eslint-plugin-sort-export-all" : " 1.2 .1" ,
78
+ "esprint" : " 3.3 .0" ,
79
79
"figlet" : " ^1.5.0" ,
80
80
"fs-extra" : " ^9.0.0" ,
81
81
"generate-changelog" : " ^1.7.1" ,
Original file line number Diff line number Diff line change @@ -42,10 +42,12 @@ describe("Int64", () => {
42
42
} ) ;
43
43
44
44
it ( "should throw when a number larger than 2^63 -1 is provided" , ( ) => {
45
+ // eslint-disable-next-line @typescript-eslint/no-loss-of-precision
45
46
expect ( ( ) => Int64 . fromNumber ( 9323372036854775807 ) ) . toThrow ( ) ;
46
47
} ) ;
47
48
48
49
it ( "should throw when a number smaller than -1 * 2^63 is provided" , ( ) => {
50
+ // eslint-disable-next-line @typescript-eslint/no-loss-of-precision
49
51
expect ( ( ) => Int64 . fromNumber ( - 9323372036854775807 ) ) . toThrow ( ) ;
50
52
} ) ;
51
53
} ) ;
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export class Int64 {
18
18
}
19
19
20
20
static fromNumber ( number : number ) : Int64 {
21
+ // eslint-disable-next-line @typescript-eslint/no-loss-of-precision
21
22
if ( number > 9223372036854775807 || number < - 9223372036854775808 ) {
22
23
throw new Error ( `${ number } is too large (or, if negative, too small) to represent as an Int64` ) ;
23
24
}
You can’t perform that action at this time.
0 commit comments