@onekeyfe/react-native-lite-card 6.7.0-29 → 6.7.0-30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,7 +44,7 @@
44
44
  return @{
45
45
  @"hasBackup":[NSNull null],
46
46
  @"pinRetryCount":@(_pinRTL),
47
- @"isNewCard":@(_status == OKNFCLiteStatusNewCard),
47
+ @"isNewCard":@((BOOL)(_status == OKNFCLiteStatusNewCard)),
48
48
  @"serialNum":_SN
49
49
  };
50
50
  }
@@ -4,7 +4,7 @@ export type CallbackError = {
4
4
  message: string | null;
5
5
  } | null;
6
6
  export type CardInfo = {
7
- hasBackup: boolean;
7
+ hasBackup: boolean | null;
8
8
  isNewCard: boolean;
9
9
  serialNum: string;
10
10
  pinRetryCount: number;
@@ -39,7 +39,7 @@ export declare enum CardErrors {
39
39
  NotInitializedError = 4002
40
40
  }
41
41
  type KeyValuePair = {
42
- code: string;
42
+ code: number;
43
43
  message: string;
44
44
  };
45
45
  export interface Spec extends TurboModule {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-lite-card",
3
- "version": "6.7.0-29",
3
+ "version": "6.7.0-30",
4
4
  "description": "OneKey Lite NFC card operations and connection events for React Native",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -7,7 +7,7 @@ import {
7
7
  export type CallbackError = { code: number; message: string | null } | null;
8
8
 
9
9
  export type CardInfo = {
10
- hasBackup: boolean;
10
+ hasBackup: boolean | null;
11
11
  isNewCard: boolean;
12
12
  serialNum: string;
13
13
  pinRetryCount: number;
@@ -49,7 +49,7 @@ export enum CardErrors {
49
49
  }
50
50
 
51
51
  type KeyValuePair = {
52
- code: string;
52
+ code: number;
53
53
  message: string;
54
54
  };
55
55