Skip to content

Commit a3febbd

Browse files
committedFeb 12, 2025·
Add dist to repo
1 parent 9fa67c0 commit a3febbd

11 files changed

+395
-1
lines changed
 

‎.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ typings/
8484

8585
# Nuxt.js build / generate output
8686
.nuxt
87-
dist
8887

8988
# Gatsby files
9089
.cache/

‎dist/esm/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import cjsModule from "../index.js";
2+
export const exportActorProfile = cjsModule.exportActorProfile;
3+
export const importActorProfile = cjsModule.importActorProfile;
4+
export const validateExportStream = cjsModule.validateExportStream;

‎dist/esm/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "module"
3+
}

‎dist/index.d.ts

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*!
2+
* Copyright (c) 2024 Interop Alliance and Dmitri Zagidulin. All rights reserved.
3+
*/
4+
import * as tar from 'tar-stream';
5+
import { type Readable } from 'stream';
6+
export interface ActorProfileOptions {
7+
actorProfile?: any;
8+
outbox?: any;
9+
followers?: any;
10+
followingAccounts?: any;
11+
lists?: any;
12+
bookmarks?: any;
13+
likes?: any;
14+
blockedAccounts?: any;
15+
blockedDomains?: any;
16+
mutedAccounts?: any;
17+
}
18+
export declare function exportActorProfile({ actorProfile, outbox, followers, followingAccounts, lists, bookmarks, likes, blockedAccounts, blockedDomains, mutedAccounts }: ActorProfileOptions & {
19+
media?: File[];
20+
}): Promise<{
21+
addMediaFile: (fileName: string, buffer: ArrayBuffer, contentType: string) => void;
22+
finalize: () => tar.Pack;
23+
}>;
24+
/**
25+
* Imports an ActivityPub profile from a .tar archive stream.
26+
* @param tarStream - A ReadableStream containing the .tar archive.
27+
* @returns A promise that resolves to the parsed profile data.
28+
*/
29+
export declare function importActorProfile(tarStream: Readable): Promise<Record<string, any>>;
30+
export * from './verify';
31+
//# sourceMappingURL=index.d.ts.map

‎dist/index.d.ts.map

+1
Original file line numberDiff line numberDiff line change

‎dist/index.js

+227
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/index.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/verify.d.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { type Readable } from 'stream';
2+
/**
3+
* Validates the structure and content of an exported ActivityPub tarball.
4+
* @param tarStream - A ReadableStream containing the .tar archive.
5+
* @returns A promise that resolves to an object with `valid` (boolean) and `errors` (string[]).
6+
*/
7+
export declare function validateExportStream(tarStream: Readable): Promise<{
8+
valid: boolean;
9+
errors: string[];
10+
}>;
11+
//# sourceMappingURL=verify.d.ts.map

‎dist/verify.d.ts.map

+1
Original file line numberDiff line numberDiff line change

‎dist/verify.js

+115
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/verify.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.