applesauce-core 0.0.0-next-20250105215133 → 0.0.0-next-20250109205419

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.
@@ -14,7 +14,7 @@ export * from "./lnurl.js";
14
14
  export * from "./lru.js";
15
15
  export * from "./mailboxes.js";
16
16
  export * from "./file-metadata.js";
17
- export * from "./media-post.js";
17
+ export * from "./picture-post.js";
18
18
  export * from "./pointers.js";
19
19
  export * from "./profile.js";
20
20
  export * from "./relays.js";
@@ -14,7 +14,7 @@ export * from "./lnurl.js";
14
14
  export * from "./lru.js";
15
15
  export * from "./mailboxes.js";
16
16
  export * from "./file-metadata.js";
17
- export * from "./media-post.js";
17
+ export * from "./picture-post.js";
18
18
  export * from "./pointers.js";
19
19
  export * from "./profile.js";
20
20
  export * from "./relays.js";
@@ -0,0 +1,4 @@
1
+ import { NostrEvent } from "nostr-tools";
2
+ export declare const PICTURE_POST_KIND = 20;
3
+ /** Return the media attachments from a kind 20 media post */
4
+ export declare function getPicturePostAttachments(post: NostrEvent): import("./file-metadata.js").FileMetadata[];
@@ -0,0 +1,6 @@
1
+ import { getMediaAttachments } from "./file-metadata.js";
2
+ export const PICTURE_POST_KIND = 20;
3
+ /** Return the media attachments from a kind 20 media post */
4
+ export function getPicturePostAttachments(post) {
5
+ return getMediaAttachments(post);
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "applesauce-core",
3
- "version": "0.0.0-next-20250105215133",
3
+ "version": "0.0.0-next-20250109205419",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",