Configure Long before requiring compiled protobuf

This commit is contained in:
Fedor Indutny
2022-03-24 10:05:48 -07:00
committed by GitHub
parent 6d97976179
commit e8651afa0b
4 changed files with 19 additions and 9 deletions
+1 -5
View File
@@ -1,12 +1,8 @@
// Copyright 2018-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as protobuf from 'protobufjs/minimal';
import Long from 'long';
import './wrap';
import { signalservice as SignalService } from './compiled';
protobuf.util.Long = Long;
protobuf.configure();
export { SignalService };
+10
View File
@@ -0,0 +1,10 @@
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as protobuf from 'protobufjs/minimal';
import Long from 'long';
protobuf.util.Long = Long;
protobuf.configure();
export default protobuf;