@openclaw/nostr 2026.6.33 → 2026.6.35

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/api.js CHANGED
@@ -152,9 +152,17 @@ async function importProfileFromRelays(opts) {
152
152
  sourceRelay: bestEvent.relay
153
153
  };
154
154
  }
155
+ const sanitizedProfile = sanitizeProfileUrls(contentToProfile(content));
156
+ const validatedProfile = NostrProfileSchema.safeParse(sanitizedProfile);
157
+ if (!validatedProfile.success) return {
158
+ ok: false,
159
+ error: "Profile event content has invalid fields",
160
+ relaysQueried,
161
+ sourceRelay: bestEvent.relay
162
+ };
155
163
  return {
156
164
  ok: true,
157
- profile: sanitizeProfileUrls(contentToProfile(content)),
165
+ profile: validatedProfile.data,
158
166
  event: {
159
167
  id: bestEvent.event.id,
160
168
  pubkey: bestEvent.event.pubkey,
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@openclaw/nostr",
3
- "version": "2026.6.33",
3
+ "version": "2026.6.35",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/nostr",
9
- "version": "2026.6.33",
9
+ "version": "2026.6.35",
10
10
  "dependencies": {
11
11
  "nostr-tools": "2.23.5",
12
12
  "zod": "4.4.3"
13
13
  },
14
14
  "peerDependencies": {
15
- "openclaw": ">=2026.6.33"
15
+ "openclaw": ">=2026.6.35"
16
16
  },
17
17
  "peerDependenciesMeta": {
18
18
  "openclaw": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/nostr",
3
- "version": "2026.6.33",
3
+ "version": "2026.6.35",
4
4
  "description": "OpenClaw Nostr channel plugin for NIP-04 encrypted direct messages.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,7 +12,7 @@
12
12
  "zod": "4.4.3"
13
13
  },
14
14
  "peerDependencies": {
15
- "openclaw": ">=2026.6.33"
15
+ "openclaw": ">=2026.6.35"
16
16
  },
17
17
  "peerDependenciesMeta": {
18
18
  "openclaw": {
@@ -50,10 +50,10 @@
50
50
  "minHostVersion": ">=2026.4.10"
51
51
  },
52
52
  "compat": {
53
- "pluginApi": ">=2026.6.33"
53
+ "pluginApi": ">=2026.6.35"
54
54
  },
55
55
  "build": {
56
- "openclawVersion": "2026.6.33"
56
+ "openclawVersion": "2026.6.35"
57
57
  },
58
58
  "release": {
59
59
  "publishToClawHub": true,