Commit 8795507 1 parent 023c29b commit 8795507 Copy full SHA for 8795507
File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 154
154
},
155
155
"devDependencies" : {
156
156
"aegir" : " ^36.1.3" ,
157
- "long" : " ^4.0.0" ,
158
157
"pbjs" : " ^0.0.14" ,
159
158
"protons-runtime" : " ^1.0.0"
160
159
}
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ import pbjs from 'pbjs'
6
6
import { Basic } from './fixtures/basic.js'
7
7
import { AllTheTypes , AnEnum } from './fixtures/test.js'
8
8
import fs from 'fs'
9
- import Long from 'long'
9
+ import protobufjs from 'protobufjs'
10
+
11
+ const Long = protobufjs . util . Long
10
12
11
13
function longifyBigInts ( obj : any ) {
12
14
const output = {
@@ -15,6 +17,7 @@ function longifyBigInts (obj: any) {
15
17
16
18
for ( const key of Object . keys ( output ) ) {
17
19
if ( typeof output [ key ] === 'bigint' ) {
20
+ // @ts -expect-error exported types are incomplete
18
21
output [ key ] = Long . fromString ( `${ output [ key ] . toString ( ) } ` )
19
22
}
20
23
}
You can’t perform that action at this time.
0 commit comments