@coinbase/cdp-app-attest 0.0.97 → 0.0.98

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.
Files changed (2) hide show
  1. package/dist/esm/index.js +23 -21
  2. package/package.json +3 -2
package/dist/esm/index.js CHANGED
@@ -1,44 +1,46 @@
1
- import { registerAttestationModule as a } from "@coinbase/cdp-core";
2
- import { requireNativeModule as n } from "expo-modules-core";
3
- const t = n("CdpAppAttest");
4
- async function r() {
1
+ import { registerDeviceInfoModule as n, registerAttestationModule as a } from "@coinbase/cdp-core";
2
+ import r from "react-native-device-info";
3
+ import { requireNativeModule as o } from "expo-modules-core";
4
+ const t = o("CdpAppAttest");
5
+ async function c() {
5
6
  return await t.isSupported();
6
7
  }
7
- async function o(e) {
8
+ async function s(e) {
8
9
  if (typeof t.initialize == "function")
9
10
  return await t.initialize(e);
10
11
  }
11
- async function c(e) {
12
+ async function u(e) {
12
13
  return await t.attest(e);
13
14
  }
14
- async function s(e) {
15
+ async function d(e) {
15
16
  return await t.createAssertion(e);
16
17
  }
17
18
  const i = "coinbase.cdp.attestation-registration-confirmed";
18
- async function u(e) {
19
+ async function f(e) {
19
20
  await t.setKeychainValue(i, e);
20
21
  }
21
22
  async function p() {
22
23
  return await t.getKeychainValue(i);
23
24
  }
24
- async function f() {
25
+ async function l() {
25
26
  await t.clearKey(), await t.deleteKeychainValue(i);
26
27
  }
28
+ n({ getBundleId: () => r.getBundleId() });
27
29
  a({
28
- isSupported: r,
29
- initialize: o,
30
- attest: c,
31
- createAssertion: s,
32
- confirmRegistration: u,
30
+ isSupported: c,
31
+ initialize: s,
32
+ attest: u,
33
+ createAssertion: d,
34
+ confirmRegistration: f,
33
35
  getRegisteredKeyId: p,
34
- clearAttestation: f
36
+ clearAttestation: l
35
37
  });
36
38
  export {
37
- c as attest,
38
- f as clearAttestation,
39
- u as confirmRegistration,
40
- s as createAssertion,
39
+ u as attest,
40
+ l as clearAttestation,
41
+ f as confirmRegistration,
42
+ d as createAssertion,
41
43
  p as getRegisteredKeyId,
42
- o as initialize,
43
- r as isSupported
44
+ s as initialize,
45
+ c as isSupported
44
46
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cdp-app-attest",
3
- "version": "0.0.97",
3
+ "version": "0.0.98",
4
4
  "type": "module",
5
5
  "description": "CDP native module for iOS App Attest and Android Play Integrity",
6
6
  "files": [
@@ -43,7 +43,8 @@
43
43
  "expo-modules-core": "*",
44
44
  "react": "*",
45
45
  "react-native": "*",
46
- "@coinbase/cdp-core": "^0.0.97"
46
+ "react-native-device-info": "^10.3.0",
47
+ "@coinbase/cdp-core": "^0.0.98"
47
48
  },
48
49
  "devDependencies": {
49
50
  "@size-limit/preset-small-lib": "^11.2.0",