Skip to content

Commit 6a6ab5d

Browse files
committed
updated deps
1 parent 89c7fe9 commit 6a6ab5d

File tree

13 files changed

+57
-62
lines changed

13 files changed

+57
-62
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

ios/libopenpgp_bridge.a

-839 KB
Binary file not shown.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-fast-openpgp",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "library for use openPGP",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",
@@ -153,6 +153,6 @@
153153
]
154154
},
155155
"dependencies": {
156-
"flatbuffers": "^2.0.3"
156+
"flatbuffers": "^2.0.6"
157157
}
158158
}

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ export default class OpenPGP {
536536
if (error) {
537537
throw new Error('intResponse: ' + error);
538538
}
539-
return response.output().toFloat64();
539+
return Number(response.output());
540540
}
541541

542542
private static _boolResponse(result: flatbuffers.ByteBuffer): boolean {

src/model/file-hints.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ isBinary():boolean {
2828
return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : false;
2929
}
3030

31-
mutate_isBinary(value:boolean):boolean {
31+
mutate_is_binary(value:boolean):boolean {
3232
const offset = this.bb!.__offset(this.bb_pos, 4);
3333

3434
if (offset === 0) {

src/model/int-response.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ static getSizePrefixedRootAsIntResponse(bb:flatbuffers.ByteBuffer, obj?:IntRespo
2020
return (obj || new IntResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
2121
}
2222

23-
output():flatbuffers.Long {
23+
output():bigint {
2424
const offset = this.bb!.__offset(this.bb_pos, 4);
25-
return offset ? this.bb!.readInt64(this.bb_pos + offset) : this.bb!.createLong(0, 0);
25+
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
2626
}
2727

28-
mutate_output(value:flatbuffers.Long):boolean {
28+
mutate_output(value:bigint):boolean {
2929
const offset = this.bb!.__offset(this.bb_pos, 4);
3030

3131
if (offset === 0) {
@@ -47,8 +47,8 @@ static startIntResponse(builder:flatbuffers.Builder) {
4747
builder.startObject(2);
4848
}
4949

50-
static addOutput(builder:flatbuffers.Builder, output:flatbuffers.Long) {
51-
builder.addFieldInt64(0, output, builder.createLong(0, 0));
50+
static addOutput(builder:flatbuffers.Builder, output:bigint) {
51+
builder.addFieldInt64(0, output, BigInt('0'));
5252
}
5353

5454
static addError(builder:flatbuffers.Builder, errorOffset:flatbuffers.Offset) {
@@ -60,7 +60,7 @@ static endIntResponse(builder:flatbuffers.Builder):flatbuffers.Offset {
6060
return offset;
6161
}
6262

63-
static createIntResponse(builder:flatbuffers.Builder, output:flatbuffers.Long, errorOffset:flatbuffers.Offset):flatbuffers.Offset {
63+
static createIntResponse(builder:flatbuffers.Builder, output:bigint, errorOffset:flatbuffers.Offset):flatbuffers.Offset {
6464
IntResponse.startIntResponse(builder);
6565
IntResponse.addOutput(builder, output);
6666
IntResponse.addError(builder, errorOffset);

src/model/key-options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ compressionLevel():number {
104104
return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
105105
}
106106

107-
mutate_compressionLevel(value:number):boolean {
107+
mutate_compression_level(value:number):boolean {
108108
const offset = this.bb!.__offset(this.bb_pos, 10);
109109

110110
if (offset === 0) {
@@ -124,7 +124,7 @@ rsaBits():number {
124124
return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
125125
}
126126

127-
mutate_rsaBits(value:number):boolean {
127+
mutate_rsa_bits(value:number):boolean {
128128
const offset = this.bb!.__offset(this.bb_pos, 12);
129129

130130
if (offset === 0) {

0 commit comments

Comments
 (0)