@openwallet-foundation/askar-react-native 0.4.4-alpha-20251124153732 → 0.5.0-alpha-20251207073409

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.
package/build/index.js CHANGED
@@ -23,7 +23,6 @@ const module = react_native_1.NativeModules.Askar;
23
23
  if (!module.install())
24
24
  throw Error('Unable to install the turboModule: askar');
25
25
  // This can already check whether `_askar` exists on global
26
- // biome-ignore lint/correctness/noInvalidUseBeforeDeclaration:
27
26
  if (!_askar) {
28
27
  throw Error('_askar has not been exposed on global. Something went wrong while installing the turboModule');
29
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,sEAAmE;AACnE,+CAA4C;AAE5C,yDAAqD;AAErD,kCAAkC;AAClC,sEAAmD;AAEnD,MAAM,MAAM,GAAG,4BAAa,CAAC,KAAmC,CAAA;AAChE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;IAAE,MAAM,KAAK,CAAC,0CAA0C,CAAC,CAAA;AAE9E,2DAA2D;AAC3D,+DAA+D;AAC/D,IAAI,CAAC,MAAM,EAAE,CAAC;IACZ,MAAM,KAAK,CAAC,8FAA8F,CAAC,CAAA;AAC7G,CAAC;AAID,IAAA,4BAAa,EAAC,EAAE,KAAK,EAAE,IAAI,mCAAgB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAmE;AACnE,+CAA4C;AAG5C,yDAAqD;AAErD,kCAAkC;AAClC,sEAAmD;AAEnD,MAAM,MAAM,GAAG,4BAAa,CAAC,KAAmC,CAAA;AAChE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;IAAE,MAAM,KAAK,CAAC,0CAA0C,CAAC,CAAA;AAE9E,2DAA2D;AAC3D,IAAI,CAAC,MAAM,EAAE,CAAC;IACZ,MAAM,KAAK,CAAC,8FAA8F,CAAC,CAAA;AAC7G,CAAC;AAID,IAAA,4BAAa,EAAC,EAAE,KAAK,EAAE,IAAI,mCAAgB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA"}
@@ -6,7 +6,7 @@ export type ReturnObject<T = unknown> = {
6
6
  export type Callback = (o: ReturnObject<never>) => void;
7
7
  export type CallbackWithResponse<T = unknown> = (o: ReturnObject<T>) => void;
8
8
  type Argument = Record<string, unknown> | unknown[] | Date | Uint8Array | SerializedArgument | boolean | StoreHandle | SessionHandle | ScanHandle | ArcHandle | Key | Jwk;
9
- type SerializedArgument = string | number | Callback | CallbackWithResponse | ArrayBuffer;
9
+ type SerializedArgument = string | number | Callback | CallbackWithResponse | ArrayBuffer | ArrayBufferLike | Uint8Array;
10
10
  export type SerializedOptions<Type> = {
11
11
  [Property in keyof Type]: Type[Property] extends string ? string : Type[Property] extends number ? number : Type[Property] extends Record<string, unknown> ? string : Type[Property] extends unknown[] ? string : Type[Property] extends unknown[] | undefined ? string : Type[Property] extends Record<string, unknown> | undefined ? string | undefined : Type[Property] extends Date ? number : Type[Property] extends Date | undefined ? number | undefined : Type[Property] extends string | undefined ? undefined | string : Type[Property] extends number | undefined ? undefined | number : Type[Property] extends Callback ? Callback : Type[Property] extends CallbackWithResponse ? CallbackWithResponse : Type[Property] extends Uint8Array ? ArrayBuffer : Type[Property] extends Uint8Array | undefined ? ArrayBuffer : Type[Property] extends StoreHandle ? number : Type[Property] extends SessionHandle ? number : Type[Property] extends ScanHandle ? number : Type[Property] extends ArcHandle ? string : Type[Property] extends Jwk ? string : unknown;
12
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openwallet-foundation/askar-react-native",
3
- "version": "0.4.4-alpha-20251124153732",
3
+ "version": "0.5.0-alpha-20251207073409",
4
4
  "license": "Apache-2.0",
5
5
  "description": "React Native wrapper for Askar",
6
6
  "main": "build/index",
@@ -30,12 +30,12 @@
30
30
  "scripts"
31
31
  ],
32
32
  "dependencies": {
33
- "@openwallet-foundation/askar-shared": "0.4.4-alpha-20251124153732"
33
+ "@openwallet-foundation/askar-shared": "0.5.0-alpha-20251207073409"
34
34
  },
35
35
  "devDependencies": {
36
36
  "react": "18.2.0",
37
37
  "react-native": ">= 0.71",
38
- "typescript": "~5.4.5"
38
+ "typescript": "~5.9.3"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": ">= 16",