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