@jaw.id/ui 0.4.7 → 0.4.8
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/index.js +3 -7
- package/dist/utils/reverseResolve.d.ts.map +1 -1
- package/package.json +18 -1
package/dist/index.js
CHANGED
|
@@ -57248,9 +57248,9 @@ function aU(e, t, n) {
|
|
|
57248
57248
|
}
|
|
57249
57249
|
//#endregion
|
|
57250
57250
|
//#region src/utils/reverseResolve.ts
|
|
57251
|
-
var oU = "https://api.justaname.id/ens/v2/reverse", sU = 50, cU = "https://
|
|
57251
|
+
var oU = "https://api.justaname.id/ens/v2/reverse", sU = 50, cU = "https://metadata.ens.domains/mainnet/avatar/";
|
|
57252
57252
|
function lU(e) {
|
|
57253
|
-
return
|
|
57253
|
+
return cU + encodeURIComponent(e);
|
|
57254
57254
|
}
|
|
57255
57255
|
async function uU(e, t, n) {
|
|
57256
57256
|
let r = new URL(oU);
|
|
@@ -57263,11 +57263,7 @@ async function uU(e, t, n) {
|
|
|
57263
57263
|
for (let e of o) {
|
|
57264
57264
|
if (!e?.name) continue;
|
|
57265
57265
|
let t = { name: e.name };
|
|
57266
|
-
|
|
57267
|
-
let n = lU(e.records?.records?.texts?.find((e) => e.key === "avatar")?.value);
|
|
57268
|
-
n && (t.avatar = n);
|
|
57269
|
-
}
|
|
57270
|
-
s[e.address.toLowerCase()] = t;
|
|
57266
|
+
n && e.records?.records?.texts?.find((e) => e.key === "avatar")?.value && (t.avatar = lU(e.name)), s[e.address.toLowerCase()] = t;
|
|
57271
57267
|
}
|
|
57272
57268
|
return s;
|
|
57273
57269
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reverseResolve.d.ts","sourceRoot":"","sources":["../../src/utils/reverseResolve.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reverseResolve.d.ts","sourceRoot":"","sources":["../../src/utils/reverseResolve.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAwED,6LAA6L;AAC7L,wBAAsB,uBAAuB,CAAC,MAAM,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAOrH;AAED,2KAA2K;AAC3K,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,YAAY,EAAE,EACtB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAE3C"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jaw.id/ui",
|
|
3
3
|
"description": "Pre-built React dialogs for JAW.id",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.8",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -35,6 +35,23 @@
|
|
|
35
35
|
"default": "./dist/index.js"
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
+
"nx": {
|
|
39
|
+
"targets": {
|
|
40
|
+
"test": {
|
|
41
|
+
"cache": true,
|
|
42
|
+
"inputs": [
|
|
43
|
+
"default",
|
|
44
|
+
"^production",
|
|
45
|
+
"{projectRoot}/vitest.config.ts"
|
|
46
|
+
],
|
|
47
|
+
"executor": "nx:run-commands",
|
|
48
|
+
"options": {
|
|
49
|
+
"cwd": "{projectRoot}",
|
|
50
|
+
"command": "bunx vitest run"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
38
55
|
"peerDependencies": {
|
|
39
56
|
"react": ">=18.0.0",
|
|
40
57
|
"react-dom": ">=18.0.0"
|